/* ===== CSS CUSTOM PROPERTIES (VARIABLES) ===== */
:root {
  /* Brand Colors - Based on DEK Innovations Logo */
  --primary-color: #8B7D8B;
  --primary-dark: #6B5B6B;
  --primary-light: #A69BA6;
  --secondary-color: #7D4F5C;
  --accent-color: #9B8B9B;
  --maroon-accent: #7D4F5C;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f1f3f4;
  --bg-card: #ffffff;
  --bg-overlay: rgba(255, 255, 255, 0.95);
  
  /* Text Colors */
  --text-primary: #2c2c2c;
  --text-secondary: #5a5a5a;
  --text-muted: #8a8a8a;
  --text-inverse: #ffffff;
  
  /* Border Colors */
  --border-color: #e5e5e5;
  --border-light: #f0f0f0;
  --border-dark: #d0d0d0;
  
  /* Shadow Colors */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--maroon-accent) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-light) 100%);
  --gradient-hero: linear-gradient(135deg, var(--primary-light) 0%, var(--maroon-accent) 100%);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 5rem 0;
  --section-padding-sm: 3rem 0;
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
}

/* Dark Mode Colors */
[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2a2a2a;
  --bg-tertiary: #3a3a3a;
  --bg-card: #2a2a2a;
  --bg-overlay: rgba(26, 26, 26, 0.95);
  
  --text-primary: #f5f5f5;
  --text-secondary: #d0d0d0;
  --text-muted: #a0a0a0;
  --text-inverse: #1a1a1a;
  
  --border-color: #404040;
  --border-light: #505050;
  --border-dark: #606060;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

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

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.25rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.125rem); }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

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

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

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

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

.section-description {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--bg-overlay);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: var(--bg-primary);
  box-shadow: var(--shadow-md);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Dashboard Button */
.dashboard-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-weight: 400;
  font-size: 0.75rem;
  text-decoration: none;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  opacity: 0.8;
}

.dashboard-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.05;
  transition: left var(--transition-normal);
}

.dashboard-btn:hover::before {
  left: 0;
}

.dashboard-btn:hover {
  border-color: var(--border-color);
  color: var(--text-secondary);
  opacity: 1;
  box-shadow: none;
}

.dashboard-btn span,
.dashboard-btn i {
  position: relative;
  z-index: 1;
}

.dashboard-btn i {
  font-size: 0.75rem;
}

/* Navbar CTA Button */
.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.nav-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--maroon-accent) 0%, var(--primary-dark) 100%);
  transition: left var(--transition-normal);
}

.nav-cta-btn:hover::before {
  left: 0;
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.nav-cta-btn span,
.nav-cta-btn i {
  position: relative;
  z-index: 1;
}

.nav-cta-btn i {
  font-size: 0.75rem;
  transition: transform var(--transition-normal);
}

.nav-cta-btn:hover i {
  transform: translateX(2px);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  transition: all var(--transition-normal);
}

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

/* Legacy text logo styles (kept for footer and other uses) */
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-subtext {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-top: -0.25rem;
}

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

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

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

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

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 0.25rem;
}

.bar {
  width: 1.5rem;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-normal);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-actions {
    gap: 0.75rem;
  }

  .dashboard-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  .dashboard-btn span {
    display: none;
  }

  .dashboard-btn i {
    font-size: 0.875rem;
    margin: 0;
  }

  .nav-cta-btn {
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
  }

  .nav-cta-btn span {
    display: none;
  }

  .nav-cta-btn i {
    font-size: 0.875rem;
    margin: 0;
  }

  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }

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

  .hamburger {
    display: flex;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(0.375rem, 0.375rem);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(0.375rem, -0.375rem);
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 1rem 1rem;
  }

  .nav-cta-btn {
    padding: 0.5rem 0.75rem;
  }

  .theme-toggle {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.875rem;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  opacity: 0.95;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

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

.logo-text-large {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.logo-subtext-large {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  margin-top: -0.5rem;
  display: block;
}

.hero-title {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-description {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
  max-width: 500px;
}

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

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.cta-button.primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-lg);
}

.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.cta-button.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.cta-button.secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 400px;
}

.floating-elements {
  position: relative;
  width: 100%;
  height: 100%;
}

.floating-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: float 6s ease-in-out infinite;
  backdrop-filter: blur(10px);
}

.floating-card:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-card:nth-child(2) {
  top: 20%;
  right: 20%;
  animation-delay: 1.5s;
}

.floating-card:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 3s;
}

.floating-card:nth-child(4) {
  bottom: 10%;
  right: 10%;
  animation-delay: 4.5s;
}

.floating-card i {
  font-size: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.floating-card span {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

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

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  animation: bounce 2s infinite;
}

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

/* Mobile Hero */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    margin-top: 10rem;
  }

  .hero-visual {
    height: 300px;
  }

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

  .cta-button {
    padding: 0.875rem 1.5rem;
  }
}

/* ===== SERVICES SECTION ===== */
.services {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.05;
  transition: left var(--transition-slow);
}

.service-card:hover::before {
  left: 0;
}

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

.service-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

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

.service-card p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.service-features {
  list-style: none;
  text-align: left;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
}

/* ===== PACKAGES SECTIONS ===== */
.packages {
  padding: var(--section-padding);
}

.marketing-packages {
  background: var(--bg-primary);
}

.web-packages {
  background: var(--bg-secondary);
}

/* ===== PACKAGES TOGGLE STYLES ===== */
.slideshow-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 7rem;
}

.slide-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.slide-nav-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.1;
  transition: left var(--transition-normal);
}

.slide-nav-btn:hover::before {
  left: 0;
}

.slide-nav-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.slide-nav-btn.active {
  background: var(--gradient-primary);
  border-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-lg);
}

.slide-nav-btn.active::before {
  display: none;
}

.slide-nav-btn i {
  font-size: 1.25rem;
}

.packages-container {
  position: relative;
}

.packages-section {
  display: none;
}

.packages-section.active {
  display: block;
}

.section-header-inner {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.section-title-inner {
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2rem;
}

.section-subtitle-inner {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin: 0;
}

/* Mobile Toggle Styles */
@media (max-width: 768px) {
  .slideshow-nav {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .slide-nav-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .slide-nav-btn i {
    font-size: 1rem;
  }
  
  .section-header-inner {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .section-title-inner {
    font-size: 1.5rem;
  }
  
  .section-subtitle-inner {
    font-size: 1rem;
  }
}

.packages-categories {
  margin-bottom: 3rem;
}

.category-section {
  margin-bottom: 6rem;
}

.category-title {
  text-align: center;
  margin-bottom: 0.5rem;
  margin-top: 8rem;
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 600;
}

.category-subtitle {
  text-align: center;
  margin-bottom: 4rem;
  color: var(--text-muted);
  font-style: italic;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.package-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.package-card.featured {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}

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

.package-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.package-badge {
  position: absolute;
  top: -1px;
  right: 2rem;
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
}

.package-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.package-header h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.package-price {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.price-main {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-period {
  color: var(--text-muted);
  font-size: 1rem;
}

.price-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.management-fee {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.package-features {
  list-style: none;
}

.package-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.package-features li:last-child {
  border-bottom: none;
}

.package-features i {
  margin-top: 0.125rem;
  font-size: 0.875rem;
}

.package-features .fa-check {
  color: var(--success-color);
}

.package-features .fa-times {
  color: var(--error-color);
}

.packages-addons {
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

.packages-addons h4 {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 400;
}

.addons-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.addon-item {
  background: transparent;
  border: none;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.addon-item:hover {
  color: var(--text-secondary);
}

.packages-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  opacity: 0.6;
  margin: 0;
}

/* ===== DASHBOARD SECTION ===== */
.dashboard-section {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.dashboard-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 4rem;
}

.dashboard-mockup-container {
  position: relative;
  max-width: 700px;
  width: 100%;
}

.dashboard-video-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.video-placeholder {
  width: 100%;
  max-width: 500px;
  height: 300px;
  background: var(--bg-secondary);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
  transition: all var(--transition-normal);
}

.video-placeholder:hover {
  border-color: var(--primary-color);
  background: var(--bg-card);
}

.video-placeholder i {
  font-size: 3rem;
  color: var(--primary-color);
}

.video-placeholder h4 {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.125rem;
}

.video-placeholder p {
  margin: 0;
  font-size: 0.875rem;
  text-align: center;
  max-width: 300px;
}

.dashboard-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: all var(--transition-normal);
}

.dashboard-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  box-shadow: var(--shadow-2xl);
}

.mockup-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mockup-controls {
  display: flex;
  gap: 0.5rem;
}

.control-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.control-dot.red {
  background: #ff5f57;
}

.control-dot.yellow {
  background: #ffbd2e;
}

.control-dot.green {
  background: #28ca42;
}

.mockup-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.mockup-content {
  display: flex;
  min-height: 300px;
}

.dashboard-nav {
  background: var(--bg-tertiary);
  border-right: 1px solid var(--border-color);
  padding: 1rem 0;
  width: 150px;
  flex-shrink: 0;
}

.dashboard-nav .nav-item {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.dashboard-nav .nav-item:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.dashboard-nav .nav-item.active {
  background: var(--bg-card);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  font-weight: 600;
}

.dashboard-main {
  flex: 1;
  padding: 1.5rem;
}

.dashboard-cards-slideshow {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.dashboard-cards-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 1rem;
}

.dashboard-cards-container .dash-card {
  flex: 0 0 calc(33.333% - 0.67rem);
  min-width: 120px;
}

.slideshow-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.indicator.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

.indicator:hover {
  background: var(--primary-light);
}

/* Legacy support for old dashboard-cards class */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.dash-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  transition: all var(--transition-fast);
}

.dash-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.dash-card .card-icon {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.5rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
}

.dash-card .card-info h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.dash-card .card-info p {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--success-color);
  margin: 0;
}

.dashboard-features {
  display: flex;
  flex-direction: column;
}

.features-slideshow {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  width: 100%;
}

.features-container {
  display: flex;
  gap: 2rem;
  animation: scroll-left 20s linear infinite;
  width: calc(200% + 4rem); /* Double width to accommodate duplicated cards */
}

.features-container .feature-item {
  flex: 0 0 calc(16.666% - 1.67rem); /* 6 cards visible, so each is ~16.666% */
  min-width: 250px;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* Move by half the container width */
  }
}


/* Remove indicators since we don't need them for continuous scroll */
.features-indicators {
  display: none;
}

/* Legacy support for old feature-grid class */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  position: relative;
  z-index: 1;
}

.feature-item h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.feature-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Mobile Dashboard */
@media (max-width: 768px) {
  .dashboard-content {
    gap: 3rem;
  }
  
  .dashboard-preview {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .dashboard-mockup {
    transform: none;
  }
  
  .mockup-content {
    min-height: 250px;
  }
  
  .dashboard-nav {
    width: 120px;
  }
  
  .dashboard-nav .nav-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .dashboard-main {
    padding: 1rem;
  }
  
  .dashboard-cards {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .dash-card {
    padding: 0.75rem;
  }
  
  .video-placeholder {
    height: 250px;
  }
  
  .video-placeholder i {
    font-size: 2.5rem;
  }
  
  .video-placeholder h4 {
    font-size: 1rem;
  }
  
  .video-placeholder p {
    font-size: 0.8rem;
    max-width: 250px;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-item {
    padding: 1.5rem;
  }
  
  .feature-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }
}

/* ===== VISION SECTION ===== */
.vision {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.vision-timeline {
  position: relative;
  margin-bottom: 4rem;
}

.vision-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 4rem;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-icon {
  width: 4rem;
  height: 4rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.timeline-content {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin: 0 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -20px;
  border-left-color: var(--bg-card);
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -20px;
  border-right-color: var(--bg-card);
}

.timeline-content h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

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

.timeline-content p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.vision-features {
  list-style: none;
}

.vision-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.vision-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

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

.stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  transition: all var(--transition-normal);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: 3rem;
  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 {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Mobile Vision */
@media (max-width: 768px) {
  .vision-timeline::before {
    left: 2rem;
  }

  .timeline-item {
    flex-direction: row !important;
  }

  .timeline-icon {
    margin-left: 0;
  }

  .timeline-content {
    margin-left: 3rem;
    margin-right: 0;
  }

  .timeline-content::before {
    left: -20px !important;
    right: auto !important;
    border-right-color: var(--bg-card) !important;
    border-left-color: transparent !important;
  }
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.contact-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-lg);
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-details h4 {
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.contact-details p {
  margin: 0;
  color: var(--text-secondary);
}

.social-links {
  margin-top: 1rem;
}

.social-links h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.social-link:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Contact Form */
.contact-form-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

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

.submit-btn:active {
  transform: translateY(0);
}

.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-align: center;
  display: none;
}

.form-status.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-status.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error-color);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Mobile Contact */
@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form-container {
    padding: 1.5rem;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-tertiary);
  padding: 3rem 0 1rem;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.footer-description {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  max-width: 300px;
}

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

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.footer-contact i {
  width: 1rem;
  color: var(--primary-color);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.legal-link {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.legal-link:hover {
  color: var(--primary-color);
}

/* Mobile Footer */
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== ANIMATIONS & UTILITIES ===== */
@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);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.fade-in-left {
  animation: fadeInLeft 0.6s ease-out;
}

.fade-in-right {
  animation: fadeInRight 0.6s ease-out;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary-color);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Scroll Animations */
.aos-animate {
  transition-duration: 0.8s;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

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

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

/* Selection */
::selection {
  background: var(--primary-color);
  color: white;
}

::-moz-selection {
  background: var(--primary-color);
  color: white;
}

/* Focus Styles */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Print Styles */
@media print {
  .theme-toggle,
  .navbar,
  .hero-scroll,
  .floating-elements {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --border-color: #000000;
    --text-secondary: #000000;
  }
  
  [data-theme="dark"] {
    --border-color: #ffffff;
    --text-secondary: #ffffff;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .floating-card {
    animation: none;
  }
  
  .scroll-indicator {
    animation: none;
  }
}

/* Performance Optimizations */
.hero-visual,
.floating-elements,
.service-card,
.package-card,
.timeline-item {
  will-change: transform;
}

/* Mouse Cursor Dot */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.15s ease-out;
  opacity: 0;
}

.cursor-dot.active {
  opacity: 0.8;
}

.cursor-dot.hover {
  width: 16px;
  height: 16px;
  background: var(--maroon-accent);
  box-shadow: 0 0 20px rgba(125, 79, 92, 0.4);
}

/* ===== PROJECTS SHOWCASE SECTION ===== */
.projects-showcase {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.projects-slideshow {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.projects-container {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.projects-container::-webkit-scrollbar {
  display: none;
}

.project-card {
  flex: 0 0 300px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.project-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

.project-info {
  color: white;
  text-align: left;
}

.project-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
}

.project-info p {
  font-size: 0.875rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.project-link:hover {
  transform: translateX(5px);
}

.slideshow-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slide-arrow {
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

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

.slide-arrow:active {
  transform: scale(0.95);
}

.slide-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Mobile Projects Slideshow */
@media (max-width: 768px) {
  .projects-container {
    gap: 1rem;
    padding: 0.5rem 0;
  }
  
  .project-card {
    flex: 0 0 250px;
  }
  
  .project-image {
    height: 200px;
  }
  
  .project-overlay {
    padding: 1rem;
  }
  
  .project-info h3 {
    font-size: 1.125rem;
  }
  
  .project-info p {
    font-size: 0.8rem;
  }
  
  .slide-arrow {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .project-card {
    flex: 0 0 220px;
  }
  
  .project-image {
    height: 180px;
  }
  
  .slideshow-controls {
    gap: 0.75rem;
    margin-top: 1.5rem;
  }
}

/* ===== CTA POPUP MODAL ===== */
.cta-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.cta-popup.active {
  opacity: 1;
  visibility: visible;
}

.popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.popup-content {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  padding: 3rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--border-color);
  transform: scale(0.8) translateY(50px);
  transition: all var(--transition-normal);
}

.cta-popup.active .popup-content {
  transform: scale(1) translateY(0);
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 1;
}

.popup-close:hover {
  background: var(--error-color);
  color: white;
  transform: scale(1.1);
}

.popup-header {
  text-align: center;
  margin-bottom: 2rem;
}

.popup-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  animation: pulse 2s infinite;
}

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

.popup-header h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.popup-header p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.popup-benefits {
  margin-bottom: 2rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.benefit-item:last-child {
  border-bottom: none;
}

.benefit-item i {
  color: var(--success-color);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.benefit-item span {
  font-weight: 500;
  color: var(--text-primary);
}

.popup-cta {
  text-align: center;
}

.popup-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.popup-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--maroon-accent) 0%, var(--primary-dark) 100%);
  transition: left var(--transition-normal);
}

.popup-cta-btn:hover::before {
  left: 0;
}

.popup-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  color: white;
}

.popup-cta-btn span,
.popup-cta-btn i {
  position: relative;
  z-index: 1;
}

.popup-cta-btn i {
  font-size: 1rem;
  transition: transform var(--transition-normal);
}

.popup-cta-btn:hover i {
  transform: translateX(3px);
}

.popup-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
}

/* Mobile Popup Styles */
@media (max-width: 768px) {
  .popup-content {
    padding: 2rem;
    margin: 1rem;
    max-width: none;
    width: calc(100% - 2rem);
  }
  
  .popup-header h3 {
    font-size: 1.5rem;
  }
  
  .popup-header p {
    font-size: 0.9rem;
  }
  
  .popup-cta-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
  }
  
  .benefit-item {
    padding: 0.5rem 0;
  }
  
  .benefit-item span {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .popup-content {
    padding: 1.5rem;
  }
  
  .popup-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }
  
  .popup-header h3 {
    font-size: 1.25rem;
  }
  
  .popup-close {
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
  }
}

/* Ensure proper stacking contexts */
.navbar {
  isolation: isolate;
}

.hero {
  isolation: isolate;
}

.theme-toggle {
  isolation: isolate;
}

.cta-popup {
  isolation: isolate;
}
