/* Custom CSS for Luiza Biodere Design Portfolio */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&family=Bebas+Neue&display=swap');

/* CSS Variables */
:root {
  --color-teal: #3d7a7a;
  --color-teal-dark: #2d5a5a;
  --color-cream: #f8f6f2;
  --color-cream-dark: #ebe7df;
  --color-navy: #1a2e35;
  --color-text: #2c3e50;
  --color-text-light: #5a6b7a;
  --color-purple-soft: #e8dff5;
  --color-green-soft: #d4f5e9;
  --color-yellow-soft: #f5f0d4;
  --color-blue-soft: #dde8f5;
  --font-display: 'Bebas Neue', cursive;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'DM Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-cream);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Typography */
.font-display {
  font-family: var(--font-display);
}

.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

/* Custom Background Gradients */
.gradient-hero {
  background: linear-gradient(135deg,
      rgba(232, 223, 245, 0.6) 0%,
      rgba(212, 245, 233, 0.4) 50%,
      rgba(245, 240, 212, 0.6) 100%);
}

.gradient-purple {
  background: linear-gradient(180deg, #c8d0ea 0%, #dde2f4 100%);
}

.gradient-green {
  background: linear-gradient(180deg, #f2d0ec 0%, #f8e4f5 100%);
}

.gradient-blue {
  background: linear-gradient(180deg, #c8ecd8 0%, #ddf5e8 100%);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  50% {
    transform: scale(1.05);
  }

  70% {
    transform: scale(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
  }

  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

@keyframes typewriter {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* Animation Classes */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse-soft {
  animation: pulse 2s ease-in-out infinite;
}

.animate-bounce-in {
  animation: bounceIn 0.8s ease-out forwards;
}

.animate-rotate-in {
  animation: rotateIn 0.6s ease-out forwards;
}

/* Delay utilities */
.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

.delay-600 {
  animation-delay: 0.6s;
}

.delay-700 {
  animation-delay: 0.7s;
}

.delay-800 {
  animation-delay: 0.8s;
}

/* Initially hidden for animation */
.animate-on-scroll {
  opacity: 0;
}

.animate-on-scroll.visible {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 246, 242, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-navy);
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo:hover {
  color: var(--color-teal);
}

.nav-link {
  position: relative;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-teal);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--color-teal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link.active {
  color: var(--color-teal);
}

/* Hero Section */
.hero-gradient {
  background: linear-gradient(135deg,
      rgba(232, 223, 245, 0.7) 0%,
      rgba(248, 246, 242, 0.5) 25%,
      rgba(212, 245, 233, 0.5) 50%,
      rgba(245, 240, 212, 0.7) 100%);
  background-size: 400% 400%;
  animation: gradientMove 15s ease infinite;
}

/* Button Styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: #1a2e35;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.btn-primary svg {
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary:hover {
  background: #39868C;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(57, 134, 140, 0.35);
  gap: 0.75rem;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--color-navy);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--color-navy);
  color: white;
  transform: translateY(-2px);
}

/* Card Styles */
.card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.project-card > * {
  position: relative;
  z-index: 2;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Tag Styles */
.tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(61, 122, 122, 0.1);
  color: var(--color-teal);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 20px;
  border: 1px solid rgba(61, 122, 122, 0.2);
}

.tag-outline {
  background: transparent;
  border: 1px solid var(--color-text-light);
  color: var(--color-text-light);
}

/* Footer Styles */
.footer {
  background: var(--color-teal);
  color: white;
  padding: 4rem 0 2rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: white;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.social-icon:hover {
  color: var(--color-teal);
  transform: translateY(-3px);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(61, 122, 122, 0.1);
}

.form-input::placeholder {
  color: #999;
}

textarea.form-input {
  min-height: 150px;
  resize: vertical;
}

/* Timeline Styles */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  background: var(--color-teal);
  border-radius: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1.5rem;
  width: 2px;
  height: calc(100% - 1rem);
  background: rgba(61, 122, 122, 0.2);
}

.timeline-item:last-child::after {
  display: none;
}

/* Section Title */
.section-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

/* Hover Effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Scroll reveal styles */
[data-aos] {
  opacity: 0;
  transition: all 0.6s ease-out;
}

[data-aos].aos-animate {
  opacity: 1;
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════
   RESPONSIVE DESIGN SYSTEM
   Breakpoints: 480 (mobile) · 768 (tablet) · 1024 (sm desktop) · 1200+ (large)
   ══════════════════════════════════════════════════ */

/* ── Responsive Typography ─────────────────────── */
h1, .font-display {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
}

/* ── Responsive Images (global) ────────────────── */
img {
  max-width: 100%;
  height: auto;
}

/* ── Prefers Reduced Motion ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .animate-float, .animate-pulse-soft, .float-element {
    animation: none !important;
  }
}

/* ── Mobile Navigation ─────────────────────────── */
@media (max-width: 767px) {
  .nav-mobile {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-cream);
    padding: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: flex !important;
    flex-direction: column;
    align-items: center;
  }

  .nav-mobile.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-mobile .nav-link {
    display: block;
    padding: 0.875rem 1rem;
    text-align: center;
    width: 100%;
    min-height: 44px;
    line-height: 44px;
    font-size: 1rem;
  }

  .nav-mobile .lang-switch {
    margin: 20px auto 8px;
    align-self: center;
    font-size: 16px;
    border-width: 2px;
    border-radius: 28px;
  }

  .nav-mobile .lang-switch button {
    padding: 10px 20px;
    font-size: 16px;
    min-height: 44px;
    min-width: 52px;
  }

  /* Mobile menu button touch target */
  #menuBtn {
    min-width: 44px;
    min-height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  #menuBtn .close-icon {
    display: none;
  }

  #menuBtn.active .hamburger-icon {
    display: none;
  }

  #menuBtn.active .close-icon {
    display: block;
  }
}

/* ── Mobile (max-width: 480px) ─────────────────── */
@media (max-width: 480px) {
  /* Header */
  .header {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .logo {
    font-size: 1rem;
  }

  /* Hero section adjustments */
  .hero-gradient, .hero-gradient + section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Typography scaling */
  .section-title {
    font-size: 0.75rem;
  }

  /* Buttons full width on mobile */
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    min-height: 48px;
    font-size: 0.9rem;
  }

  /* Cards */
  .card, .recommendation-card, .contact-card {
    padding: 1.25rem;
  }

  /* Illustration stats cards stack vertically on mobile */
  .grid.grid-cols-3 {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  /* CTA section */
  .cta-section {
    padding: 2rem 1.5rem !important;
    border-radius: 20px;
  }

  /* News items stack on mobile */
  .news-item {
    flex-direction: column;
    gap: 0.75rem;
  }

  .news-item img {
    width: 100% !important;
    height: auto !important;
    max-height: 180px;
    object-fit: cover;
  }

  /* Footer */
  .footer {
    padding: 2.5rem 0 1.5rem;
  }

  .social-icon {
    width: 48px;
    height: 48px;
  }

  /* Timeline */
  .timeline-item {
    padding-left: 1.5rem;
  }

  /* Skill tags wrap nicely */
  .skill-tag {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
  }

  /* Form inputs full width */
  .form-input {
    padding: 0.875rem 1rem;
  }

  /* Profile image */
  .profile-img {
    border-radius: 16px;
  }
}

/* ── Tablet (481px – 768px) ────────────────────── */
@media (min-width: 481px) and (max-width: 768px) {
  .header {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* Illustration stats cards stack vertically on tablet */
  .grid.grid-cols-3 {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  /* News items */
  .news-item {
    flex-direction: column;
    gap: 0.75rem;
  }

  .news-item img {
    width: 100% !important;
    height: auto !important;
    max-height: 200px;
    object-fit: cover;
  }

  /* CTA section */
  .cta-section {
    border-radius: 24px;
  }

  /* Buttons full width */
  .btn-primary, .btn-secondary {
    min-height: 48px;
  }

  .social-icon {
    width: 48px;
    height: 48px;
  }
}

/* ── Tablet landscape / small desktop (769px – 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-gradient {
    padding-top: 6rem;
  }
}

/* ── Touch device hover adaptations ────────────── */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover-lift transform on touch devices (use active instead) */
  .hover-lift:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  }

  .hover-lift:active {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  /* Card hover becomes active */
  .card:hover, .project-card:hover, .recommendation-card:hover {
    transform: none;
  }

  .card:active {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  }

  /* Skill pill */
  .skill-pill:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  .skill-pill:active {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  }

  /* Ensure all interactive elements have min tap target */
  a, button {
    min-height: 44px;
  }

  /* News item hover */
  .news-item:hover {
    padding-left: 0;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--color-teal);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-teal-dark);
}

/* Image placeholder styles */
.img-placeholder {
  background: linear-gradient(135deg, #e8dff5 0%, #d4f5e9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  font-size: 0.875rem;
}

/* Stagger children animation */
.stagger-children>* {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}

.stagger-children>*:nth-child(1) {
  animation-delay: 0.1s;
}

.stagger-children>*:nth-child(2) {
  animation-delay: 0.2s;
}

.stagger-children>*:nth-child(3) {
  animation-delay: 0.3s;
}

.stagger-children>*:nth-child(4) {
  animation-delay: 0.4s;
}

.stagger-children>*:nth-child(5) {
  animation-delay: 0.5s;
}

.stagger-children>*:nth-child(6) {
  animation-delay: 0.6s;
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Skill tag animation */
.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: white;
  border-radius: 8px;
  font-size: 0.875rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.skill-tag svg {
  color: var(--color-teal);
}

/* Image hover zoom */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.5s ease;
}

.img-zoom:hover img {
  transform: scale(1.05);
}

/* Underline animation */
.underline-animate {
  position: relative;
  display: inline-block;
}

.underline-animate::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.underline-animate:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Contact info card */
.contact-card {
  background: var(--color-cream-dark);
  border-radius: 16px;
  padding: 2rem;
}

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: rgba(61, 122, 122, 0.1);
  color: var(--color-teal);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
}

/* Profile image style */
.profile-img {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Recommendation card */
.recommendation-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.recommendation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* News item */
.news-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.news-item:hover {
  padding-left: 0.5rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
  color: white;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

/* ── Language Switcher ────────────────────────────────────── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--color-navy);
  border-radius: 20px;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
  margin-left: 8px;
}

.lang-switch button {
  padding: 5px 10px;
  border: none;
  background: transparent;
  color: var(--color-navy);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.lang-switch button.active {
  background: var(--color-navy);
  color: #fff;
}

.lang-switch button:hover:not(.active) {
  background: rgba(26, 46, 53, 0.08);
}

/* Mobile language switcher */
.nav-mobile .lang-switch {
  margin: 20px auto 8px;
  align-self: center;
}