/* ===== CSS VARIABLES ===== */
:root {
  /* Light theme colors */
  --bg-primary: #faf8ff;
  --bg-secondary: #f0ecff;
  --bg-tertiary: #ffffff;
  --text-primary: #2d1b69;
  --text-secondary: #6b46c1;
  --text-muted: #8b5cf6;
  
  /* Accent colors - vibrant and artistic */
  --accent-primary: #ff6b6b;
  --accent-secondary: #4ecdc4;
  --accent-tertiary: #ffe66d;
  --accent-quaternary: #a8e6cf;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  --gradient-secondary: linear-gradient(135deg, var(--accent-tertiary), var(--accent-primary));
  --gradient-tertiary: linear-gradient(135deg, var(--accent-secondary), var(--accent-quaternary));
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(139, 92, 246, 0.1);
  --shadow-md: 0 4px 16px rgba(139, 92, 246, 0.15);
  --shadow-lg: 0 8px 32px rgba(139, 92, 246, 0.2);
  --shadow-xl: 0 16px 64px rgba(139, 92, 246, 0.25);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Spacing */
  --section-padding: 6rem 0;
  --container-padding: 0 2rem;
}

/* Dark theme variables */
[data-theme="dark"] {
  --bg-primary: #0f0b1f;
  --bg-secondary: #1a1535;
  --bg-tertiary: #252145;
  --text-primary: #f8fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.6);
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-medium), color var(--transition-medium);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  margin-bottom: 1.5rem;
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Fade in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  transition: all var(--transition-medium);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: opacity var(--transition-fast);
}

.theme-toggle .moon-icon {
  position: absolute;
  opacity: 0;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  opacity: 0;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  opacity: 1;
}

/* ===== BACKGROUND ANIMATION ===== */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.floating-shapes {
  width: 100%;
  height: 100%;
}

.shape {
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  animation-delay: 0s;
  animation-duration: 15s;
}

.shape-2 {
  animation-delay: -5s;
  animation-duration: 20s;
}

.shape-3 {
  animation-delay: -10s;
  animation-duration: 25s;
}

.shape-4 {
  animation-delay: -15s;
  animation-duration: 18s;
}

.shape-5 {
  animation-delay: -20s;
  animation-duration: 22s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
  }
  50% {
    transform: translateY(10px) rotate(180deg);
  }
  75% {
    transform: translateY(-10px) rotate(270deg);
  }
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(250, 248, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  z-index: 999;
  transition: all var(--transition-medium);
}

[data-theme="dark"] .navbar {
  background: rgba(15, 11, 31, 0.95);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.navbar.scrolled {
  background: rgba(250, 248, 255, 0.98);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(15, 11, 31, 0.98);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Great Vibes', cursive;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--accent-primary);
  text-decoration: none;
}

.logo-icon {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--accent-primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-fast);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 4px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

.hero-text {
  z-index: 2;
}

.hero-title {
  margin-bottom: 2rem;
}

.title-main {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-accent {
  display: block;
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  color: var(--accent-secondary);
  font-size: 0.8em;
  margin-left: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-medium);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
}

.btn-outline:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-svg {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.hero-circle-1 {
  animation: pulse 4s infinite ease-in-out;
}

.hero-circle-2 {
  animation: rotate 20s infinite linear;
}

.hero-circle-3 {
  animation: pulse 3s infinite ease-in-out;
  animation-delay: 1s;
}

.hero-path {
  animation: draw 5s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.4;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes draw {
  0%, 100% {
    stroke-dasharray: 0 1000;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 1000 0;
    stroke-dashoffset: -500;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
}

.scroll-arrow {
  width: 2px;
  height: 3rem;
  background: var(--gradient-primary);
  position: relative;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 10px solid var(--accent-primary);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ===== ABOUT SECTION ===== */
.about {
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text h3 {
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: 12px;
  transition: transform var(--transition-medium);
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.feature-item span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-tertiary);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium);
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.about-mission {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--bg-tertiary);
  border-radius: 20px;
  border-left: 4px solid var(--accent-primary);
}

.about-mission h4 {
  color: var(--accent-primary);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.about-mission p {
  margin-bottom: 0;
  font-style: italic;
  color: var(--text-secondary);
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-svg {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.about-expertise h4 {
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.expertise-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.expertise-item {
  background: var(--bg-tertiary);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium);
}

.expertise-item:hover {
  transform: translateX(5px);
}

.expertise-bar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.expertise-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.progress-bar {
  position: relative;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  width: 0%;
  transition: width 2s ease-in-out;
  position: relative;
}

.progress-fill.animate {
  animation: progressAnimation 2s ease-in-out forwards;
}

.progress-percent {
  position: absolute;
  right: 0;
  top: -1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
}

@keyframes progressAnimation {
  from {
    width: 0%;
  }
}

.morphing-rect {
  animation: morph 8s infinite ease-in-out;
}

.floating-dot {
  animation: float-dot 6s infinite ease-in-out;
}

.dot-1 {
  animation-delay: 0s;
}

.dot-2 {
  animation-delay: 2s;
}

.dot-3 {
  animation-delay: 4s;
}

@keyframes morph {
  0%, 100% {
    rx: 20;
    ry: 20;
  }
  25% {
    rx: 50;
    ry: 20;
  }
  50% {
    rx: 20;
    ry: 50;
  }
  75% {
    rx: 50;
    ry: 50;
  }
}

@keyframes float-dot {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ===== SERVICES SECTION ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-tertiary);
  padding: 3rem 2rem;
  border-radius: 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-medium);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 2rem;
  padding: 1rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform var(--transition-medium);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-icon svg {
  width: 2rem;
  height: 2rem;
}

.service-card h3 {
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
  background: var(--bg-secondary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  background: var(--bg-tertiary);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
  cursor: pointer;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.portfolio-image {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  transition: transform var(--transition-medium);
}

.portfolio-item:hover .portfolio-placeholder {
  transform: scale(1.05);
}

.portfolio-placeholder svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-content {
  padding: 2rem;
}

.portfolio-content h3 {
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.portfolio-content p {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 1rem;
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}

.contact-details {
  margin-top: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium);
}

.contact-item:hover {
  transform: translateX(10px);
}

.contact-item svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.contact-form {
  background: var(--bg-tertiary);
  padding: 3rem;
  border-radius: 30px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 2rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 15px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-medium);
  font-family: inherit;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.form-group textarea {
  min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.footer-wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 120px;
  overflow: hidden;
  z-index: 1;
}

.footer-wave svg {
  width: 100%;
  height: 100%;
}

.wave-path {
  animation: wave-flow 8s ease-in-out infinite;
}

@keyframes wave-flow {
  0%, 100% {
    d: path("M0,60 C300,120 600,0 1200,60 L1200,120 L0,120 Z");
  }
  50% {
    d: path("M0,40 C300,80 600,20 1200,80 L1200,120 L0,120 Z");
  }
}

.footer-content {
  position: relative;
  z-index: 2;
  padding-top: 6rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.footer-logo .logo-icon {
  width: 2rem;
  height: 2rem;
  stroke: var(--accent-primary);
  animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.1) rotate(180deg);
    opacity: 0.8;
  }
}

.footer-description {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 350px;
  margin-bottom: 1.5rem;
}

.footer-contact-info {
  margin-bottom: 1.5rem;
}

.footer-contact-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0.5rem 0;
}

.footer-contact-info strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-medium);
  z-index: -1;
}

.social-link:hover {
  color: white;
  border-color: var(--accent-primary);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.social-link:hover::before {
  opacity: 1;
}

.social-link svg {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform var(--transition-fast);
}

.social-link:hover svg {
  transform: scale(1.1);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.footer-column h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 2rem;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  position: relative;
  padding-left: 1rem;
}

.footer-column ul li a::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
  opacity: 0;
  transform: translateX(-5px);
  transition: all var(--transition-fast);
}

.footer-column ul li a:hover {
  color: var(--accent-primary);
  padding-left: 1.5rem;
}

.footer-column ul li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.newsletter {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(139, 92, 246, 0.1);
}

.newsletter p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.newsletter-form {
  width: 100%;
}

.newsletter-input-group {
  display: flex;
  background: var(--bg-secondary);
  border-radius: 50px;
  padding: 0.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-medium);
}

.newsletter-input-group:focus-within {
  box-shadow: var(--shadow-md);
}

.newsletter-input-group input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.875rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
}

.newsletter-input-group input::placeholder {
  color: var(--text-muted);
}

.newsletter-input-group button {
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-medium);
}

.newsletter-input-group button:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.newsletter-input-group button svg {
  width: 1rem;
  height: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(139, 92, 246, 0.15);
  padding-top: 2rem;
  margin-top: 2rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--accent-primary);
}

/* Floating particles */
.footer-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0.1;
  animation: float-particle 15s infinite ease-in-out;
}

.particle-1 {
  width: 4px;
  height: 4px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 12s;
}

.particle-2 {
  width: 6px;
  height: 6px;
  top: 60%;
  left: 80%;
  animation-delay: -3s;
  animation-duration: 18s;
  background: var(--accent-secondary);
}

.particle-3 {
  width: 3px;
  height: 3px;
  top: 80%;
  left: 30%;
  animation-delay: -6s;
  animation-duration: 14s;
  background: var(--accent-tertiary);
}

.particle-4 {
  width: 5px;
  height: 5px;
  top: 40%;
  left: 70%;
  animation-delay: -9s;
  animation-duration: 16s;
  background: var(--accent-quaternary);
}

.particle-5 {
  width: 4px;
  height: 4px;
  top: 30%;
  left: 50%;
  animation-delay: -12s;
  animation-duration: 20s;
}

@keyframes float-particle {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.1;
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(10px) rotate(180deg);
    opacity: 0.2;
  }
  75% {
    transform: translateY(-10px) rotate(270deg);
    opacity: 0.4;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-tertiary);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: flex;
  }

  .theme-toggle {
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .about-visual {
    order: -1;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-form {
    padding: 2rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    padding-top: 4rem;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .footer-brand {
    align-items: center;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .newsletter {
    grid-column: 1 / -1;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 3rem;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .service-card,
  .portfolio-item {
    margin: 0 1rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-wave {
    height: 80px;
  }
  
  .footer-content {
    padding-top: 3rem;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .newsletter {
    padding: 1.5rem;
    margin: 0 1rem;
  }
}

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== LOADING STATE ===== */
.loading {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  :root {
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.8);
  }
  
  .btn-outline {
    border-width: 3px;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .theme-toggle,
  .navbar,
  .background-animation,
  .scroll-indicator {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .section {
    page-break-inside: avoid;
  }
}
