/* Base Styles */
:root {
    /* Modern, tech-forward color palette */
    --primary-color: #3a86ff;
    --secondary-color: #4361ee;
    --accent-color: #4cc9f0;
    --gradient-1: linear-gradient(135deg, #3a86ff 0%, #4361ee 100%);
    --gradient-2: linear-gradient(135deg, #4cc9f0 0%, #4895ef 100%);
    --dark-color: #0a2342;
    --light-color: #f8f9fa;
    --gray-color: #8d99ae;
    --light-gray: #e9ecef;
    --success-color: #38b000;
    --border-radius: 12px;
    --border-radius-sm: 6px;
    --box-shadow: 0 10px 30px rgba(0, 30, 80, 0.08);
    --box-shadow-hover: 0 15px 35px rgba(0, 30, 80, 0.15);
    --transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Dark Theme Variables */
    --dark-bg-color: #0f172a;
    --dark-card-bg: #1e293b;
    --dark-text-color: #cbd5e1;
    --dark-heading-color: #f1f5f9;
    --dark-border-color: #334155;
    --dark-subtle-bg: #1a2438;
    --dark-gradient-1: linear-gradient(135deg, #3a86ff 0%, #4361ee 100%);
    --dark-gradient-2: linear-gradient(135deg, #4cc9f0 0%, #4895ef 100%);
    --dark-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --dark-box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.3);    --rgb-primary-color: 58, 134, 255;
    --rgb-accent-color: 76, 201, 240;
    
    /* Additional color variations */
    --primary-color-light: #e6f0ff;
    --primary-color-ultra-light: #f0f5ff;
    --accent-color-light: #7b9cff;
    --secondary-color-light: #ff9f43;
    --text-muted: #6c757d;
    --dark-gray: #495057;
    --light-gray-secondary: #adb5bd;
    --dark-blue-primary: #1a1a2e;
    --dark-blue-secondary: #262640;
    --dark-blue-tertiary: #2c2f48;
}

/* At the top, add these global smooth scrolling styles */
html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Theme Body Styles */
body.dark-theme {
    color: var(--dark-text-color);
    background-color: var(--dark-bg-color);
}

body, main {
    overflow-x: hidden;
}

/* Add main content padding to avoid overlap with fixed header */
main {
    padding-top: 90px; /* Desktop header height (nav 60px + header padding 2*15px) */
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: visible;
    position: relative;
}

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

/* Dark Theme General Text & Links */
.dark-theme h1,
.dark-theme h2,
.dark-theme h3,
.dark-theme h4,
.dark-theme h5,
.dark-theme h6 {
    color: var(--dark-heading-color);
}

.dark-theme p,
.dark-theme li,
.dark-theme span:not([class*="gradient"]):not([class*="logo"]):not([class*="price"]):not([class*="skill"]) {
    color: var(--dark-text-color);
}

.dark-theme a:not(.btn):not(.footer-social a):not(.logo-link) {
    color: var(--accent-color);
}

.dark-theme a:not(.btn):not(.footer-social a):not(.logo-link):hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

/* URGENT FIX: Profile Image Background Removal and Positioning */
img[src*="profile-image"],
.profile-image,
.profile-pic,
.about-profile-image,
.about-me img,
.bio img,
.team-member img {
  max-width: 280px;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: -70px auto auto auto;
  background: transparent !important;
  box-shadow: none !important;
  isolation: isolate;
  mix-blend-mode: normal;
  position: relative;
  z-index: 10 !important;
}

/* EMERGENCY: Remove ALL backgrounds from ALL possible containers */
.profile-section,
.about-section,
.about-me-section,
.about-me,
.bio-section,
.team-section,
section:has(img[src*="profile"]),
div:has(img[src*="profile"]),
.profile-container,
.about-image-container,
.bio-container,
.team-member,
.profile-wrapper,
.profile-image-wrapper,
.profile-card,
.team-card,
.bio-card {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  position: relative;
}

/* Ensure parent elements have proper z-index stacking */
section:has(img[src*="profile"]) {
  z-index: 5 !important;
}

/* FIX TESTIMONIAL SLIDER TOGGLES Z-INDEX */
.testimonial-controls,
.testimonial-dots,
.slider-controls,
.slider-dots,
.testimonial-navigation,
.slider-navigation,
.carousel-dots,
.carousel-controls,
.testimonial-indicators,
.slider-indicators,
.dots,
.dot-indicators,
.client-testimonial-controls,
.clients-slider-dots {
  position: relative;
  z-index: 10 !important;
}

/* Make all individual dots/toggles clickable */
.dot, 
.indicator,
.testimonial-dot,
.slider-dot,
.carousel-dot,
.slider-indicator,
.testimonial-bullet,
.control-dot {
  position: relative;
  z-index: 11 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Ensure testimonial sections don't hide controls */
.testimonial-section,
.client-section,
.testimonial-container,
.testimonials,
.client-testimonials,
section:has(.testimonial),
div:has(.testimonial) {
  overflow: visible !important;
}

/* Remove horizontal dividers between sections */
section {
    border: none !important;
    position: relative;
}

/* Remove any potential horizontal rules */
hr, section:before, section:after {
    display: none !important;
    border: none !important;
}

/* Reset section margins */
section, .services, .portfolio, .testimonials, .about, .contact {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-top: none !important;
    border-bottom: none !important;
}

/* Adjust specific section padding for better spacing */
.portfolio, .services, .about, .testimonials {
    padding-top: 50px;
    padding-bottom: 50px;
}

/* Specifically target the about section spacing */
#about, .about {
    padding-top: 50px; 
    border-top: none !important;
}

/* Reduce gap above About Futurelab a tiny bit more */
.testimonials + #about,
.testimonials + .about {
    padding-top: 40px;
    margin-top: 0;
    border-top: none;
}

/* Reduce vertical spacing between sections */
section {
  margin-bottom: 60px;
  padding-top: 60px;
}

/* Specifically reduce spacing above the services section */
section.services-section,
#services,
section[id="services"],
.services-container,
section:has(.section-title:contains("Services")),
section:has(h2:contains("My Services")) {
  margin-top: 30px;
  padding-top: 40px;
}

/* Reduce spacing after other common sections that might precede services */
section.about-section,
section.hero-section,
section.intro-section,
#about,
#hero {
  margin-bottom: 40px;
  padding-bottom: 40px;
}

/* Reduce gap between testimonials and about section */
#about, .about {
    padding-top: 50px;
}

/* Reduce spacing between testimonials and portfolio/work section */
.portfolio, #portfolio {
    padding-top: 20px;
    margin-top: 10px;
}

/* Override for specific portfolio section spacing */
section#portfolio.pt-64 {
    padding-top: 16rem !important;
}

/* Adjust spacing for section titles in the portfolio area */
.portfolio .section-title, 
#portfolio .section-title {
    margin-bottom: 30px;
}

/* Adjust bottom spacing of testimonials */
.testimonials {
    margin-bottom: 0;
    padding-bottom: 10px;
}

/* Adjust spacing for mobile */
@media (max-width: 768px) {
  section {
    margin-bottom: 40px;
    padding-top: 40px;
  }
  
  section.services-section,
  #services,
  .services-container {
    margin-top: 20px;
    padding-top: 30px;
  }

  #about, .about {
    padding-top: 40px;
  }
}

/* MOBILE-ONLY FIX: Prevent horizontal scrolling without affecting desktop */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  .container, 
  section,
  .section {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .row, 
  .flex-container,
  [class*="d-flex"] {
    flex-wrap: wrap;
  }
}

/* PokéSpud Mockup Image Styling - CENTERED WITH SOFTER CORNERS */
.pokespud-section img[src*="pokespud-mockup"],
img[src*="pokespud-mockup"],
.pokespud-mockup {
  border-radius: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 90%;
  width: auto;
  height: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

/* Container styling to ensure proper fit */
.pokespud-image-container,
.section-feature-image,
div:has(> img[src*="pokespud-mockup"]) {
  overflow: hidden;
  padding: 0 15px;
  text-align: center;
}

/* VERTICAL SPACING ADJUSTMENTS */
.trusted-brands-section,
.clients {
  margin-bottom: 20px;
}

section.services,
#services,
.services {
  padding-top: 50px;
}

@media (max-width: 768px) {
  .trusted-brands-section,
  .clients {
    margin-bottom: 10px;
  }
    section.services,
  #services,
  .services {
    padding-top: 30px;
  }
  
  section.portfolio,
  #portfolio {
    padding-top: 30px;
    margin-top: 10px;
  }
  
  /* Override for specific portfolio section spacing */
  section#portfolio.pt-64 {
    padding-top: 14rem !important;
  }
}

@media (max-width: 768px) {
  .services, 
  section#services {
    padding-bottom: 20px !important;
    margin-bottom: 0 !important;
  }
  
  .pricing {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
    .portfolio,
  section#portfolio {
    padding-top: 20px !important;
    margin-top: 0 !important;
  }
  
  /* Override for specific portfolio section spacing on mobile */
  section#portfolio.pt-64 {
    padding-top: 12rem !important;
  }
  
  section.testimonials {
    padding-top: 20px !important;
    margin-top: 20px !important;
  }
  
  .section-title {
    margin-bottom: 15px !important;
  }
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    font-weight: 700;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
    margin-bottom: 25px;
    display: block;
    margin-top: 30px;
}

/* Maintain proper spacing on mobile */
@media (max-width: 768px) {
  .section-title {
    margin-bottom: 40px;
  }
  
  .section-title:after {
    margin-top: 20px;
  }
}

/* SECTION TITLE SPACING FIX */
.section-title::after,
section > h2::after,
.contact-form-header h2::after,
.contact-info-header h2::after,
.location-container h2::after,
h2.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
  position: relative;
  left: auto;
  transform: none;
}

/* Dark Theme Section Title Underline */
.dark-theme .section-title::after,
.dark-theme section > h2::after,
.dark-theme .contact-form-header h2::after,
.dark-theme .contact-info-header h2::after,
.dark-theme .location-container h2::after,
.dark-theme h2.section-title::after {
  background: var(--dark-gradient-1);
}

/* Ensure parent text is centered for the underline to appear centered underneath */
.section-title,
section > h2,
.contact-form-header h2,
.contact-info-header h2,
.location-container h2,
h2.section-title {
  text-align: center;
}

/* Mobile adjustments for section title spacing */
@media (max-width: 768px) {
  .section-title::after,
  h2.section-title::after,
  .section-title:after,
  h2:after,
  section h2:after {
    margin-top: 30px !important;
  }
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: var(--light-color);
    position: relative;
}

/* ADDED: Styles for FAQ section titles */
.faq-section {
    margin-bottom: 40px; /* Add space between FAQ sections */
}

.faq-section-title {
    font-size: 1.5rem; /* Or your desired size */
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 25px; /* Increased bottom margin */
    padding-bottom: 10px; /* Optional: if you want space between text and a potential border */
    /* border-bottom: 1px solid var(--light-gray); Optional: if you want a separator line */
    text-align: left; /* Or center, depending on design */
}

.dark-theme .faq-section-title {
    color: var(--dark-heading-color);
    /* border-bottom-color: var(--dark-border-color); Optional */
}
/* END ADDED Styles */

.dark-theme .faq {
    background-color: var(--dark-bg-color);
}

.faq .section-title a.gradient-title-link {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: opacity 0.3s ease;
}

.dark-theme .faq .section-title a.gradient-title-link {
    background: var(--dark-gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.faq .section-title a.gradient-title-link:hover {
    opacity: 0.8;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.faq-item {
    background-color: white;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

.dark-theme .faq-item {
    background-color: var(--dark-card-bg);
    box-shadow: var(--dark-box-shadow);
    border-color: var(--dark-border-color);
}

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

.dark-theme .faq-item:hover {
    box-shadow: var(--dark-box-shadow-hover);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    color: var(--dark-color);
}

.dark-theme .faq-question h3 {
    color: var(--dark-heading-color);
}

.faq-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
}

.faq-toggle i {
    font-size: 1.1rem;
    color: var(--primary-color);
    pointer-events: none; /* ADDED: Prevent icon from interfering with clicks */
}

.dark-theme .faq-toggle i {
    color: var(--accent-color);
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px; /* Horizontal padding */
    padding-top: 0; /* Initial vertical padding */
    padding-bottom: 0; /* Initial vertical padding */
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid transparent; /* Prepare for border visibility */
    /* REVISED: Define all transitions here for consistency */
    transition: max-height 0.35s ease-in-out, padding-top 0.35s ease-in-out, padding-bottom 0.35s ease-in-out, border-top-color 0.35s ease-in-out;
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* REVISED: Increased max-height */
    padding-top: 20px; /* Vertical padding when active */
    padding-bottom: 25px; /* Vertical padding when active */
    border-top-color: var(--light-gray); /* Make border visible */
    /* Transition properties are now taken from the base .faq-answer style */
}

.dark-theme .faq-item.active .faq-answer {
    border-top-color: var(--dark-border-color);
}

.faq-answer p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--gray-color);
}

.dark-theme .faq-answer p {
    color: var(--dark-text-color);
}

.faq-answer ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.faq-answer ul li {
    margin-bottom: 8px;
    color: var(--gray-color);
}

.dark-theme .faq-answer ul li {
    color: var(--dark-text-color);
}

.faq-answer ul li strong {
    color: var(--dark-color);
    font-weight: 600;
}

.dark-theme .faq-answer ul li strong {
    color: var(--dark-heading-color);
}

/* FAQ Mobile Adjustments */
@media (max-width: 768px) {
    .faq {
        padding: 60px 0;
    }

    .faq-question {
        padding: 18px 20px;
    }

    .faq-question h3 {
        font-size: 1.05rem;
    }

    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-item.active .faq-answer {
        padding-top: 15px;
        padding-bottom: 20px;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover:before {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.dark-theme .btn-primary {
    box-shadow: 0 4px 15px rgba(var(--rgb-primary-color), 0.4);
}

.dark-theme .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(var(--rgb-primary-color), 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.1);
}

.dark-theme .btn-secondary {
    color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(var(--rgb-accent-color), 0.2);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.2);
}

.dark-theme .btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--dark-bg-color);
    box-shadow: 0 6px 20px rgba(var(--rgb-accent-color), 0.3);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

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

.dark-theme .btn-outline {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

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

.dark-theme .btn-outline:hover {
    background-color: var(--accent-color);
    color: var,--light-color;
}

.full-width {
    width: 100%;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 30, 80, 0.05);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.dark-theme header {
    background-color: rgba(15, 23, 42, 0.9);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

header.scrolled {
    padding: 12px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 25px rgba(0, 30, 80, 0.08);
}

.dark-theme header.scrolled {
    background-color: rgba(15, 23, 42, 0.95);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px; /* Base height */
}

/* Desktop Navigation Links Base Styles */
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px; /* Desktop gap */
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links li {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a {
    display: flex;
    align-items: center;
    height: 100%;
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 0;
}

.dark-theme .nav-links a:not(.btn) {
    color: var(--dark-text-color);
}

.dark-theme .nav-links a:not(.btn):hover {
    color: var(--accent-color);
}

/* Desktop link underline */
.nav-links a:not(.btn):after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
}
.dark-theme .nav-links a:not(.btn):after {
    background: var(--dark-gradient-1);
}
.nav-links a:not(.btn):hover:after {
    width: 100%;
}
.nav-links a:hover {
    color: var(--primary-color);
}

/* Desktop: Contact button in header (consolidated) */
.nav-links a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 8px 16px;
    margin: auto 0;
    margin-left: 20px;
}
.nav-links a.btn.btn-outline {
    border: 2px solid var(--primary-color);
}
.dark-theme .nav-links a.btn.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.dark-theme .nav-links a.btn.btn-outline:hover {
    background-color: var(--primary-color);
    color: var,--light-color;
}

/* Consolidated Theme Toggle Button */
.theme-toggle {
    position: relative; /* Ensures .toggle-glow is positioned relative to this button */
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 5px; /* Tappable area */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px; /* Default for desktop if it's part of nav-links or nav controls */
    z-index: 1002; /* Ensure it's above mobile menu backdrop if needed */
}
/* Icon styling should be handled by the SVG/font-icon used in theme-toggle.js */

/* Consolidated Hamburger Menu Button */
.hamburger {
    display: none; /* Hidden by default, shown on mobile */
    cursor: pointer;
    padding: 10px;
    background: transparent;
    border: none;
    z-index: 1002; /* Above mobile menu backdrop */
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}
.dark-theme .hamburger span {
    background-color: var(--dark-text-color);
}
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    nav { /* Ensure nav behaves as a flex container for logo and controls */
        display: flex;
        align-items: center;
        position: relative; /* Added for absolute positioning of logo */
    }

    nav > .logo-link { /* Assuming .logo-link is the class for your logo anchor tag */
        position: absolute; /* Changed for centering */
        left: 50%;
        top: 50%; /* Vertically center within nav height */
        transform: translate(-50%, -50%);
    }

    .hamburger {
        display: block; /* Show hamburger */
        order: 2;   /* Hamburger appears after the theme toggle on the right */
        margin-left: 10px; /* Space between theme toggle and hamburger */
    }

    .theme-toggle {
        order: 1;   /* Theme toggle appears before the hamburger on the right */
        margin-left: auto; /* Changed to push controls to the right */
    }

    .nav-links { /* Mobile menu panel */
        position: fixed;
        top: 0; /* Adjust if header has a fixed height, e.g., top: 70px; */
        left: -100%; /* Off-screen initially */
        width: 80%; /* Or 100% */
        max-width: 300px; /* Optional max width */
        height: 100vh;
        background-color: var(--light-color);
        display: flex;
        flex-direction: column;
        align-items: center; /* Center links horizontally */
        justify-content: center; /* Center links vertically */
        padding: 20px;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease-in-out; /* Animate 'left' for slide-in */
        z-index: 1001; /* Below hamburger/theme-toggle but above page content */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0; /* Reset desktop gap */
    }

    .dark-theme .nav-links {
        background-color: var(--dark-bg-color);
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        left: 0; /* Slide in */
    }

    .nav-links li {
        width: 100%;
        margin: 10px 0; /* Spacing between mobile menu items */
    }

    .nav-links a {
        display: block; /* Make links take full width of li */
        padding: 15px 0;
        font-size: 1.2rem; /* Larger tap targets */
        font-weight: 500;
        width: 100%;
        text-align: center;
        color: var(--dark-color);
        border-bottom: 1px solid var(--light-gray); /* Optional separator */
        height: auto; /* Override desktop height */
    }
    .nav-links li:last-child a {
        border-bottom: none;
    }

    .dark-theme .nav-links a {
        color: var(--dark-text-color);
        border-bottom-color: var(--dark-border-color);
    }

    .nav-links a:hover {
        color: var(--primary-color);
        background-color: rgba(0,0,0,0.02);
    }
    .dark-theme .nav-links a:hover {
        color: var(--accent-color);
        background-color: rgba(255,255,255,0.03);
    }

    .nav-links a:after { /* Hide desktop underline on mobile */
        display: none;
    }

    .nav-links a.btn { /* Mobile styling for the contact button */
        display: block; /* Full width or inline-block with auto margins */
        width: auto;
        max-width: 200px;
        margin: 20px auto 0 auto; /* Center button */
        padding: 12px 24px;
        border-bottom: none; /* Remove separator if any */
        font-size: 1.1rem;
    }

    /* Adjust main content padding for mobile header height */
    main {
        padding-top: 70px; /* Mobile header height from header.html nav.container */
    }
}

/* Cookie Consent Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-card-bg); /* Using a theme variable */
    color: var(--dark-text-color);
    padding: 20px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    z-index: 10000; /* Ensure it's above other content */
    display: none; /* Initially hidden, JS will show it */
    border-top: 1px solid var(--dark-border-color);
    transition: transform 0.3s ease-out;
}

body.dark-theme .cookie-banner {
    background-color: var(--dark-subtle-bg); /* Slightly different for dark theme if needed */
    color: var(--dark-text-color);
    border-top: 1px solid var(--dark-border-color);
}

/* Light theme specific adjustments if needed, otherwise it inherits from .cookie-banner */
body:not(.dark-theme) .cookie-banner {
    background-color: var(--light-color);
    color: var(--dark-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-top: 1px solid var(--light-gray);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 960px; /* Limit width of content within banner */
    margin: 0 auto;
    gap: 20px; /* Space between text and buttons */
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    flex-grow: 1;
}

.cookie-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.dark-theme .cookie-content a {
    color: var(--accent-color);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cookie-buttons .btn {
    padding: 8px 15px; /* Smaller buttons for banner */
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-content p {
        margin-bottom: 15px;
    }
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Desktop Navigation Styles (Ensure .nav-links reverts correctly if needed) */
@media (min-width: 769px) {
    .hamburger {
        display: none; /* Ensure hamburger is hidden on desktop */
    }

    .theme-toggle {
        margin-left: 30px; /* Increased space from nav-links / contact button */
        flex-shrink: 0;    /* Prevent shrinking if space is tight */
    }

    .nav-links { /* Ensure desktop styles for nav-links */
        position: static;
        transform: translateX(0);
        left: auto; /* Reset mobile 'left' */
        width: auto;
        height: 100%;
        background-color: transparent;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
        transition: none; /* Or specific desktop transitions */
        z-index: auto;
        overflow-y: visible;
        gap: 30px; /* Restore desktop gap */
    }
    .dark-theme .nav-links {
        background-color: transparent;
    }

    .nav-links li {
        width: auto;
        margin: 0; /* Reset mobile margin */
    }

    .nav-links a {
        display: flex;
        padding: 0;
        font-size: inherit;
        font-weight: 500;
        width: auto;
        text-align: left;
        color: var(--dark-color);
        border-bottom: none;
        background-color: transparent;
        height: 100%; /* Restore desktop height */
    }
    .dark-theme .nav-links a:not(.btn) {
        color: var(--dark-text-color);
    }
     .nav-links a:hover {
        color: var(--primary-color);
        background-color: transparent;
    }
    .dark-theme .nav-links a:not(.btn):hover {
        color: var(--accent-color);
    }

    .nav-links a:not(.btn):after { /* Restore desktop underline */
        display: block;
    }

    .nav-links a.btn { /* Restore desktop button styles */
        margin: auto 0 auto 20px;
        padding: 8px 16px;
        font-size: inherit;
        display: inline-flex; /* Ensure it's not block */
    }
}

/* Hero Section */
.hero {
    padding: 150px 0 120px;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef1ff 100%);
    position: relative;
    overflow: hidden;
}

/* Mobile hero padding override */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 80px;
    }
}

.dark-theme .hero {
    background: var(--dark-bg-color);
}

.hero:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: var(--gradient-2);
    opacity: 0.05;
    border-radius: 100% 0 0 100%;
}

.hero:after {
    content: "";
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: var(--gradient-1);
    opacity: 0.05;
    border-radius: 100%;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.dark-theme .hero h1 {
    background: var(--dark-gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero h1 span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dark-theme .hero h1 span {
    background: var(--dark-gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 35px;
    color: var(--gray-color);
    max-width: 90%;
}

.dark-theme .hero p {
    color: var(--dark-text-color);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    justify-content: center;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 30, 80, 0.15);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    box-shadow: 0 25px 50px rgba(0, 30, 80, 0.2);
}

.floating-tech {
    position: absolute;
    background: white;
    padding: 10px 15px;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.dark-theme .floating-tech {
    background: var(--dark-card-bg);
    color: var(--dark-text-color);
    box-shadow: var(--dark-box-shadow);
}

.floating-tech i {
    color: var(--primary-color);
}

.dark-theme .floating-tech i {
    color: var(--accent-color);
}

.tech-1 {
    top: 10%;
    left: 10%;
    animation: float 6s infinite ease-in-out;
}

.tech-2 {
    bottom: 15%;
    right: 10%;
    animation: float 8s infinite ease-in-out reverse;
}

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

/* Add styling for typewriter cursor */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background-color: currentColor;
  margin-left: 2px;
  animation: cursor-blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Hero Orb Styles */
#hero-orb-container {
    width: 400px; /* Increased size */
    height: 400px; /* Increased size */
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px; /* For 3D effects */
    margin: 0 auto; /* Center the orb container if it's a block */
}

.hero-orb {
    width: 200px; /* Increased size */
    height: 200px; /* Increased size */
    position: relative;
    transform-style: preserve-3d;
    animation: rotateOrb 25s linear infinite;
}

.hero-orb-core {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #d1a7ff, #8A2BE2 60%, #4B0082 100%);
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.8), 
                0 0 70px rgba(75, 0, 130, 0.6),
                inset 0 0 25px rgba(255, 255, 255, 0.4),
                inset 0 0 10px #e0c6ff; /* Enhanced shadow */
    position: absolute;
    transform: translateZ(0px); /* Base layer */
}

.hero-orb-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(173, 216, 230, 0.1); /* Light blue, semi-transparent */
    animation: rotateLayer 15s ease-in-out infinite alternate;
}

.hero-orb-layer1 {
    transform: translateZ(15px) rotateY(30deg) rotateX(20deg); /* Adjusted for new size */
    box-shadow: inset 0 0 15px rgba(173, 216, 230, 0.5), 0 0 10px rgba(173, 216, 230, 0.3);
    animation-delay: -2s; /* Stagger animation */
    animation-duration: 18s;
}

.hero-orb-layer2 {
    transform: translateZ(30px) rotateY(-45deg) rotateX(-30deg); /* Adjusted for new size */
    background-color: rgba(221, 160, 221, 0.1); /* Light purple, semi-transparent */
    box-shadow: inset 0 0 15px rgba(221, 160, 221, 0.5), 0 0 10px rgba(221, 160, 221, 0.3);
    animation-delay: -4s; /* Stagger animation */
    animation-duration: 22s;
    animation-direction: alternate-reverse;
}

.hero-orb-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%; /* Adjusted for new size */
    height: 200%; /* Adjusted for new size */
    background: radial-gradient(circle, rgba(138, 43, 226, 0.3) 0%, rgba(138, 43, 226, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) translateZ(-70px); /* Adjusted for new size */
    pointer-events: none; /* So it doesn't interfere with mouse events */
    animation: pulseGlow 5s ease-in-out infinite alternate;
}

/* Particle Styles */
.hero-orb-particles {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
    transform-style: preserve-3d;
}

.orb-particle { 
    position: absolute;
    top: 50%; 
    left: 50%; 
    /* Base transform is handled by the animation keyframes directly */
    background: #d1a7ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #d1a7ff, 0 0 15px #fff, 0 0 5px #ad5eff;
    opacity: 0; /* Initial state, animation will take over */
    animation-name: particlePath; /* Changed from particleFlyOut */
    /* animation-duration, animation-delay, animation-iteration-count are set by JS */
    animation-timing-function: linear; /* Also set by JS, but good default */
}

@keyframes particlePath { /* Renamed from particleFlyOut and logic updated */
    0% {
        /* Start on the orb surface (using JS-calculated offsets), small and slightly visible */
        /* translate(-50%, -50%) centers the particle itself at the calculated offset point */
        transform: translate(-50%, -50%) translate3d(var(--offset-x, 0vmin), var(--offset-y, 0vmin), var(--offset-z, 0vmin)) scale(0.4);
        opacity: 0.7;
    }
    20% {
        /* Become fully visible briefly */
        opacity: 1;
    }
    100% {
        /* Move outwards from the center, grow, and fade */
        /* TRAVEL_FACTOR (e.g., 1.8) determines how far they fly out relative to their start position */
        transform: translate(-50%, -50%) translate3d(calc(var(--offset-x, 0vmin) * 1.8), calc(var(--offset-y, 0vmin) * 1.8), calc(var(--offset-z, 0vmin) * 1.8)) scale(1.5);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    /* Adjust particle animation for mobile if needed */
    @keyframes particlePath { /* Ensure this overrides the desktop version */
        0% {
            transform: translate(-50%, -50%) translate3d(var(--offset-x, 0vmin), var(--offset-y, 0vmin), var(--offset-z, 0vmin)) scale(0.35);
            opacity: 0.7;
        }
        /* 20% opacity state will be inherited from the non-media-queried version or can be redefined */
        100% {
            /* Shorter travel and smaller scale for mobile */
            transform: translate(-50%, -50%) translate3d(calc(var(--offset-x, 0vmin) * 1.5), calc(var(--offset-y, 0vmin) * 1.5), calc(var(--offset-z, 0vmin) * 1.5)) scale(1.3);
            opacity: 0;
        }
    }
}

@keyframes rotateOrb {
    0% {
        transform: rotateY(0deg) rotateX(5deg) rotateZ(0deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(5deg) rotateZ(360deg);
    }
}

@keyframes rotateLayer {
    0% {
        transform: rotateY(0deg) rotateX(0deg) scale(1.0);
    }
    50% {
        transform: rotateY(180deg) rotateX(90deg) scale(1.05);
    }
    100% {
        transform: rotateY(360deg) rotateX(0deg) scale(1.0);
    }
}

@keyframes pulseGlow {
    from {
        opacity: 0.7;
        transform: translate(-50%, -50%) translateZ(-70px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) translateZ(-70px) scale(1.05);
    }
}

/* Responsive adjustments for the orb */
@media (max-width: 768px) {
    #hero-orb-container {
        width: 250px; /* Adjusted for mobile */
        height: 250px; /* Adjusted for mobile */
    }

    .hero-orb {
        width: 120px; /* Adjusted for mobile */
        height: 120px; /* Adjusted for mobile */
    }

    .hero-orb-glow {
        width: 180%;
        height: 180%;
    }

    .orb-particle { /* Adjust particle animation for mobile if needed */
        /* Example: smaller particles or less travel distance */
    }

    @keyframes particleFlyOut {
        0% {
            transform: translate(-50%, -50%) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(3px) scale(0.3);
            opacity: 0.7;
        }
        100% {
            transform: translate(-50%, -50%) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(120px) scale(1.5); /* Shorter travel for mobile */
            opacity: 0;
        }
    }
}

/* Mobile adjustments for hero section */
@media (max-width: 768px) {
    .hero {
        padding-top: 30px;    /* Reduced top padding from previous value */
        padding-bottom: 40px; /* Kept bottom padding or adjust as needed */
    }

    .hero .container {
        flex-direction: column; /* Stack items vertically */
        gap: 30px;             /* Adjust gap for vertical layout */
    }

    .hero-content {
        text-align: center; /* Center text when stacked */
    }

    #hero-orb-container {
        margin: 20px auto 0 auto; /* Adjust top margin and center orb */
    }

    .hero h1 {
        font-size: 2.5rem; /* Adjust heading size for mobile */
    }

    .hero p {
        font-size: 1rem; /* Adjust paragraph size for mobile */
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center; /* Center buttons */
    }
}

.clients {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

.clients-text {
    font-size: 0.85rem;
    color: var(--gray-color);
}

.dark-theme .clients-text {
    color: var(--dark-text-color);
}

.clients-logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Lottie Animation Container */
.lottie-container {
    width: 100%;
    height: 400px;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

/* Hide the fallback image when Lottie loads */
.fallback-image {
    display: none;
}

.lottie-loaded .fallback-image {
    display: none;
}

/* Fix for 3D animation glitches on mobile devices */
@media (max-width: 768px) {
  .hero-3d-container, 
  .hero-animation-container,
  .animated-3d-element {
    transform: scale(0.8) !important;
    transform-style: preserve-3d;
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
  }
  
  .hero-section {
    overflow: hidden;
    height: auto !important;
  }
  
  .hero-3d-element, .float-animation {
    animation-duration: 8s !important;
  }
  
  .animated-3d-element,
  .hero-3d-object,
  .hero-3d-container {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  .hero-content-container {
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  
  img[src*="-mockup.png"],
  .hero-mockup-image,
  .device-preview {
    max-width: 280px;
    height: auto;
    margin: 0 auto;
  }
}

/* Even more aggressive optimization for very small screens */
@media (max-width: 480px) {
  .hero-3d-container, 
  .hero-animation-container,
  .animated-3d-element {
    transform: scale(0.6) !important;
    opacity: 0.9;
  }
  
  .floating-element,
  .animated-particle {
    animation-play-state: paused;
  }
}

/* FIX FOR MOBILE MENU - Make it scrollable */
@media (max-width: 768px) {
  .dropdown-content, .submenu {
    position: relative !important;
    max-height: none !important;
    top: 0 !important;
    box-shadow: none !important;
  }
  
  .brands-section .section-title,
  .brands-section .section-subtitle {
    text-align: center;
    width: 100%;
  }
  
  img[src*="-mockup.png"],
  .mockup-image,
  .phone-mockup,
  .project-mockup,
  .device-preview img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 300px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
  }
  
  .showcase-card,
  .project-card,
  .demo-card {
    overflow: hidden !important;
    height: auto !important;
  }
  
  .showcase-preview,
  .project-showcase,
  .demo-preview {
    height: auto !important;
    max-height: 350px !important;
    overflow: hidden !important;
  }
  
  .demo-preview,
  .project-showcase {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 20px !important;
  }
}

/* CRITICAL FIX: FORCE MOCKUP IMAGES TO PROPER SIZE ON MOBILE */
@media (max-width: 768px) {
  img[src*="cardwizz-mockup.png"],
  img[src*="pokespud-mockup.png"],
  .demo-preview img,
  .project-showcase img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 300px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
  }
}

/* TARGETED MOBILE SPACING ADJUSTMENTS */
@media (max-width: 768px) {
  .trusted-brands-section,
  .clients {
    margin-bottom: 10px;
  }
  
  section.services,
  #services {
    padding-top: 30px;
  }
  
  section.portfolio,
  #portfolio {
    padding-top: 30px;
    margin-top: 10px;
  }
}



/* Improved portfolio image positioning for mobile */
@media (max-width: 768px) {
    .portfolio-item .portfolio-image {
        padding: 20px 0;
        margin-bottom: 20px;
    }
    
    img[src*="cardwizz-mockup.png"] {
        margin-top: 15px;
        margin-bottom: 25px;
    }
    
    .portfolio-item {
        padding: 20px 0;
    }
}

/* Reduce padding around CardWizz mockup image on mobile */
@media (max-width: 768px) {
  .portfolio-item .portfolio-image img[src*="cardwizz-mockup.png"] {
    margin: 0 !important;
    padding: 5px !important;
  }
  
  .portfolio-item .portfolio-image {
    padding: 5px !important;
  }
  
  .portfolio-image img {
    max-height: 320px !important;
  }
}

/* Fix CardWizz mockup spacing on mobile - targeted approach */
@media (max-width: 768px) {
  .portfolio-item:first-child .portfolio-image {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  
  .portfolio-item:first-child img[src*="cardwizz-mockup.png"] {
    margin-bottom: 0 !important;
  }
  
  .portfolio-item:first-child .portfolio-content {
    padding-top: 10px !important;
    margin-top: 0 !important;
  }
  
  .portfolio-item:first-child .portfolio-content h3 {
    margin-top: 0 !important;
  }
  
  .portfolio-item.reverse .portfolio-image {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  
  .portfolio-item.reverse .portfolio-content {
    padding-top: 10px !important;
    margin-top: 0 !important;
  }
}

/* Even more aggressive fix for very small screens */
@media (max-width: 480px) {
  .portfolio-item .portfolio-image {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  
  .portfolio-item .portfolio-content {
    padding-top: 5px !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .portfolio-content,
    .contact-form {
        padding: 30px 20px;
    }
    
    .floating-tech {
        display: none;
    }
    
    .service-card,
    .portfolio-content,
    .testimonial-content,
    .contact-form {
        padding: 25px 20px;
    }
    
    .btn {
        padding: 14px 20px;
        min-width: 120px;
    }
}

/* Services Section */
.services {
    padding: 120px 0;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.dark-theme .services {
    background-color: var(--dark-subtle-bg);
}

.services:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(67, 97, 238, 0.03) 2px, transparent 2px);
    background-size: 30px 30px;
    z-index: 0;
}

.dark-theme .services:before {
    background-image: radial-gradient(rgba(var(--rgb-accent-color), 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 70px;
    position: relative;
    z-index: 2;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(230, 230, 250, 0.7);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s ease;
}

.dark-theme .service-card {
    background-color: var(--dark-card-bg);
    box-shadow: var(--dark-box-shadow);
    border-color: var(--dark-border-color);
}

.service-card:hover {
    transform: none;
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
}

.service-icon:before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0.1;
    border-radius: 20px;
    transform: rotate(-10deg);
    transition: var(--transition);
}

.service-card:hover .service-icon:before {
    transform: rotate(0deg);
    opacity: 0.15;
}

.service-icon i {
    font-size: 35px;
    color: var(--primary-color);
    z-index: 2;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-weight: 600;
}

.dark-theme .service-card h3 {
    color: var(--dark-heading-color) !important;
}

.dark-theme .service-card p {
    color: var(--dark-text-color) !important;
}

.service-details {
    margin-top: auto;
    padding-top: 20px;
}

.service-details li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.dark-theme .service-details li {
    color: var(--dark-text-color) !important;
}

.service-details li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 18px;
    height: 18px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
}

.dark-theme .service-details li:before {
    background-color: rgba(var(--rgb-accent-color), 0.15) !important;
}

.service-details li:after {
    content: '✓';
    position: absolute;
    left: 5px;
    top: 2px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.8rem;
}

.dark-theme .service-details li:after {
    color: var(--accent-color) !important;
}

.pricing {
    text-align: center;
    position: relative;
    z-index: 2;
}

.pricing h3 {
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--dark-color);
    font-weight: 600;
}

.dark-theme .pricing h3 {
    color: var(--dark-heading-color) !important;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.price-card {
    background-color: white;
    border: 1px solid rgba(230, 230, 250, 0.7);
    border-radius: var(--border-radius);
    padding: 35px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.dark-theme .price-card {
    background-color: var(--dark-card-bg);
    border-color: var(--dark-border-color);
    box-shadow: var(--dark-box-shadow);
}

.price-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: var(--transition);
}

.price-card:hover {
    border-color: transparent;
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.dark-theme .price-card:hover {
    box-shadow: var(--dark-box-shadow-hover);
}

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

.price-card h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    font-weight: 600;
}

.dark-theme .price-card h4 {
    color: var(--dark-heading-color) !important;
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var (--gray-color);
}

.dark-theme .price span {
    color: var(--dark-text-color);
}

.price-tag {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--gradient-1);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Add specific CSS rules to override the conflicting portfolio padding styles */
#portfolio {
    padding-top: 8rem !important; /* 128px - pt-32 equivalent */
}

/* Responsive portfolio spacing */
@media (max-width: 768px) {
    #portfolio {
        padding-top: 4rem !important; /* 64px for mobile */
    }
}

/* Add any additional overrides or adjustments below this line */

/* Portfolio Section */
.portfolio {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef1ff 100%);
    position: relative;
    overflow: hidden;
}

.dark-theme .portfolio {
    background: var(--dark-bg-color);
}

.portfolio:before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: var(--gradient-1);
    opacity: 0.03;
    border-radius: 100% 0 0 0;
}

.portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
    position: relative;
    z-index: 2;
}

.portfolio-item {
    display: flex;
    align-items: center;
    gap: 60px;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(230, 230, 250, 0.7);
}

.dark-theme .portfolio-item {
    background-color: var(--dark-card-bg);
    box-shadow: var(--dark-box-shadow);
    border: 1px solid var(--dark-border-color);
}

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

.dark-theme .portfolio-item:hover {
    box-shadow: var(--dark-box-shadow-hover);
}

.portfolio-item.reverse {
    flex-direction: row-reverse;
}

.portfolio-image {
    flex: 1;
    max-width: 50%;
    overflow: hidden;
    height: 100%;
}

.portfolio-image img {
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transform: scale(1);
    transition: transform 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.portfolio-item:hover .portfolio-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0.1;
    z-index: 1;
}

.portfolio-content {
    flex: 1;
    padding: 40px;
}

.portfolio-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--dark-color);
    font-weight: 600;
}

.dark-theme .portfolio-content h3 {
    color: var(--dark-heading-color) !important;
}

.dark-theme .portfolio-content p {
    color: var(--dark-text-color) !important;
}

.portfolio-tags {
    display: inline-block;
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 20px;
    background-color: rgba(67, 97, 238, 0.05);
    padding: 6px 12px;
    border-radius: 30px;
}

.dark-theme .portfolio-tags {
    color: var(--accent-color);
    background-color: rgba(var(--rgb-accent-color), 0.1);
}

.portfolio-features {
    margin: 25px 0;
}

.portfolio-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.dark-theme .portfolio-features li {
    color: var(--dark-text-color) !important;
}

.portfolio-features li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--gradient-1);
    border-radius: 50%;
}

.dark-theme .portfolio-features li:before {
    background: var(--accent-color) !important;
}



/* NEW STYLING FOR POKESPUD AND MPFILMS MOCKUP IMAGES */
.portfolio-item img[src*="pokespud-mockup"],
.portfolio-item img[src*="mpfilms-mockup"] {
  border-radius: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 90%;
  width: auto;
  height: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Modified positioning for pokespud mockup (in reverse layout) - move away from right edge */
.portfolio-item.reverse img[src*="pokespud-mockup"] {
  margin-right: 15%;
  margin-left: auto;
  max-width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Modified positioning for mpfilms mockup - move away from left edge AND INCREASE SIZE */
.portfolio-item:not(.reverse) img[src*="mpfilms-mockup"] {
  margin-left: 10%;
  margin-right: auto;
  max-width: 90%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Add hover effect for the mockup images */
.portfolio-item img[src*="pokespud-mockup"]:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Special handling for MPFilms hover to maintain the increased size */
.portfolio-item:not(.reverse) img[src*="mpfilms-mockup"]:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Container styling to ensure proper fit */
.pokespud-image-container,
.section-feature-image,
div:has(> img[src*="pokespud-mockup"]),
div:has(> img[src*="mpfilms-mockup"]) {
  overflow: hidden;
  padding: 0 15px;
  text-align: center;
}

/* About Section */
.about {
    padding: 120px 0;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.dark-theme .about {
    background-color: var(--dark-subtle-bg);
}

.about:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(67, 97, 238, 0.03) 2px, transparent 2px);
    background-size: 30px 30px;
    z-index: 0;
}

.dark-theme .about:after {
    background-image: radial-gradient(rgba(var(--rgb-accent-color), 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.about-image {
    flex: 1;
    max-width: 40%;
    position: relative;
}

.about-image:before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0.1;
    border-radius: var(--border-radius);
    z-index: -1;
}

.dark-theme .about-image:before {
    background: var(--dark-gradient-1);
    opacity: 0.15;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-hover);
    transition: var(--transition);
}

.dark-theme .about-image img {
    box-shadow: var(--dark-box-shadow-hover);
}

.about-text {
    flex: 1.5;
}

.about-text h3 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--dark-color);
    font-weight: 600;
}

.about-text h3 span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dark-theme .about-text h3 span {
    background: var(--dark-gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--gray-color);
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
}

.skills span {
    background-color: rgba(67, 97, 238, 0.07);
    color: var(--primary-color);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.dark-theme .skills span {
    background-color: rgba(var(--rgb-accent-color), 0.1);
    color: var(--accent-color);
}

.skills span:hover {
    background-color: rgba(67, 97, 238, 0.12);
    transform: translateY(-3px);
}

.dark-theme .skills span:hover {
    background-color: rgba(var(--rgb-accent-color), 0.2);
}

.skills span::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: 0.5s ease;
}

.skills span:hover::after {
    left: 100%;
}

.education {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--light-gray);
}

.dark-theme .education {
    border-top-color: var(--dark-border-color);
}

.education h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-weight: 600;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef1ff 100%);
    position: relative;
    overflow: hidden;
}

.dark-theme .contact {
    background: var(--dark-bg-color);
}

.contact:before {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: var(--gradient-2);
    opacity: 0.05;
    border-radius: 100%;
}

.contact-content {
    display: flex;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.contact-info {
    flex: 1;
}

.contact-info p {
    font-size: 1.15rem;
    margin-bottom: 40px;
    color: var (--gray-color);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-method i {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.2);
}

.contact-method:hover i {
    transform: scale(1.1) rotate(5deg);
}

.contact-form {
    flex: 1;
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(230, 230, 250, 0.7);
    position: relative;
}

.dark-theme .contact-form {
    background-color: var(--dark-card-bg);
    box-shadow: var(--dark-box-shadow);
    border-color: var(--dark-border-color);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.dark-theme .contact-form label {
    color: var(--dark-heading-color);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: white;
    color: var(--dark-color);
}

.dark-theme .contact-form input,
.dark-theme .contact-form select,
.dark-theme .contact-form textarea {
    background-color: var(--dark-subtle-bg);
    border-color: var(--dark-border-color);
    color: var(--dark-text-color);
}

.dark-theme .contact-form input::placeholder,
.dark-theme .contact-form textarea::placeholder {
    color: var(--gray-color);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.dark-theme .contact-form input:focus,
.dark-theme .contact-form select:focus,
.dark-theme .contact-form textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--rgb-accent-color), 0.3);
}

.contact-form button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 25px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form button[type="submit"] i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.contact-form button[type="submit"]:hover i {
    transform: translateX(4px);
}

/* Form submission status */
.form-success-message {
    display: none;
    background-color: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.5);
    color: #16a34a;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.dark-theme .form-success-message {
    background-color: rgba(74, 222, 128, 0.2);
    border-color: rgba(74, 222, 128, 0.6);
    color: #4ade80;
}

.form-success-message.show {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

/* Calendly button styling */
.contact-options {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
  justify-content: center;
}

.calendly-option {
  text-align: center;
  max-width: 350px;
}

.btn-calendly {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-calendly:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(67, 97, 238, 0.3);
}

.btn-calendly i {
  font-size: 18px;
}

.calendly-description {
  color: var(--gray-color);
  font-size: 0.9rem;
}

.dark-theme .calendly-description {
  color: var(--dark-text-color);
}

/* Footer styles moved to unified footer section below */

/* Responsive Design */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .about-content,
    .hero .container {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        max-width: 100%;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        max-width: 70%;
        margin: 0 auto;
    }
    
    .portfolio-item, 
    .portfolio-item.reverse {
        flex-direction: column;
    }
    
    .portfolio-image {
        max-width: 100%;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .floating-tech {
        display: none;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero {
        padding: 150px 0 80px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .services, .portfolio, .about, .contact {
        padding: 80px 0;
    }

    .service-card {
        padding: 30px 20px;
    }

    .about-image {
        max-width: 100%;
    }

    .hero { /* This is the second .hero rule in this media query */
        padding: 130px 0 70px;
    }

    .section-title { /* This is the second .section-title rule in this media query */
        margin-bottom: 2rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 12px;
    }

    .stat-item {
        padding: 20px 15px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .portfolio-content,
    .contact-form {
        padding: 30px 20px;
    }
    
    .floating-tech {
        display: none;
    }
    
    .service-card,
    .portfolio-content,
    .testimonial-content,
    .contact-form {
        padding: 25px 20px;
    }
    
    .btn {
        padding: 14px 20px;
        min-width: 120px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dark-theme ::-webkit-scrollbar-track {
    background: var(--dark-subtle-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #3a86ff, #4361ee);
    border-radius: 6px;
    border: 3px solid #f1f1f1;
}

.dark-theme ::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-color: var(--dark-subtle-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #4361ee, #3a0ca3);
}

.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--accent-color), var(--secondary-color));
}

/* Styles for lab.html feature list items */
.lab-feature-item {
    background: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--box-shadow-sm);
    color: var(--dark-color); /* Explicit light theme text color */
}

.lab-feature-item i { /* Icon color for light theme */
    color: var(--primary-color);
    margin-right: 10px;
}

.lab-feature-item strong { /* Strong tag color for light theme */
    color: var(--dark-color);
}

.dark-theme .lab-feature-item {
    background: var(--dark-card-bg) !important;
    box-shadow: var(--dark-box-shadow);
    color: var(--dark-text-color) !important;
}

.dark-theme .lab-feature-item i { /* Icon color for dark theme */
    color: var(--accent-color) !important;
}

.dark-theme .lab-feature-item strong { /* Strong tag color for dark theme */
    color: var(--dark-heading-color) !important;
}

/* Styles for lab.html image placeholders */
.lab-image-placeholder {
    text-align: center;
    padding: 20px;
    border: 1px dashed var(--light-gray);
    margin: 30px auto;
    background: #e9ecef; /* Specific light gray for placeholder bg */
    border-radius: var(--border-radius-sm);
    max-width: 600px;
    color: var(--gray-color); /* Text color for placeholder text */
}

.dark-theme .lab-image-placeholder {
    border-color: var(--dark-border-color);
    background: var(--dark-subtle-bg) !important;
    color: var(--dark-text-color) !important;
}

/* Expert Web Design Section Styling */
#web-design-focus {
    position: relative;
    padding: 80px 0;
}

#web-design-focus .section-title {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.web-design-content {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.web-design-text p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.web-design-text h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.process-list {
    list-style: none;
    counter-reset: process-counter;
    padding: 0;
    margin: 2rem 0;
}

.process-list li {
    counter-increment: process-counter;
    position: relative;
    padding: 20px 20px 20px 80px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.process-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.process-list li::before {
    content: counter(process-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.process-list li strong {
    color: var(--primary-color);
    font-weight: 600;
}

#web-design-focus .btn-primary {
    display: block;
    width: fit-content;
    margin: 2.5rem auto 0;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(45, 102, 255, 0.3);
    transition: all 0.3s ease;
}

#web-design-focus .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(45, 102, 255, 0.4);
}

/* Dark theme support for web design section */
.dark-theme .web-design-content {
    background: rgba(30, 42, 71, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-theme .web-design-text p {
    color: #e0e6ed;
}

.dark-theme .process-list li {
    background: linear-gradient(135deg, #1e2a47 0%, #2a3855 100%);
    color: #e0e6ed;
}

.dark-theme .process-list li strong {
    color: var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #web-design-focus {
        padding: 60px 0;
    }

    #web-design-focus .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .web-design-content {
        margin: 0 20px;
        padding: 30px 25px;
        border-radius: 15px;
    }
    
    .process-list li {
        padding: 15px 15px 15px 65px;
    }
    
    .process-list li::before {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

/* Comparison Section Styling */
.comparison {
    padding: 80px 0;
    background-color: var(--light-color);
    /* text-align: center; Removed to allow button to align with title if needed */
}

.dark-theme .comparison {
    background-color: var(--dark-subtle-bg);
}

.comparison-toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px; /* Space between header and collapsible content */
    padding: 0 20px; /* Add some padding if container doesn't have it */
}

.comparison-toggle-header .section-title {
    margin-bottom: 0; /* Remove default margin from section title */
    text-align: left; /* Align title to the left */
}

.comparison-toggle-header .section-title:after {
    display: none; /* Hide the underline for this specific title instance */
}

.comparison-toggle-btn {
    padding: 10px 20px; /* Adjust padding as needed */
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap; /* Prevent button text from wrapping */
}

.comparison-toggle-btn i {
    transition: transform 0.3s ease;
}

.comparison-toggle-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.comparison-collapsible-content {
    /* Styles for the content that will be toggled */
    /* display: none; by default in HTML, JS will toggle */
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    max-height: 0; /* Initially collapsed */
    opacity: 0; /* Initially hidden */
}

.comparison-collapsible-content.open {
    max-height: 3000px; /* Adjust to fit content, can be a large value */
    opacity: 1;
}

.comparison-intro {
    max-width: 700px;
    margin: 0 auto 40px auto;
    text-align: center; /* Center the intro text */
}

.comparison-intro h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.dark-theme .comparison-intro h2 {
    color: var(--dark-heading-color);
}

.comparison-intro p {
    font-size: 1.1rem;
    color: var(--gray-color);
    line-height: 1.7;
}

.dark-theme .comparison-intro p {
    color: var(--dark-text-color);
}

.comparison-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px auto;
    border-collapse: collapse;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden; /* Ensures border-radius is applied to table */
    border: 1px solid var(--light-gray);
}

.dark-theme .comparison-table {
    box-shadow: var(--dark-box-shadow);
    border-color: var(--dark-border-color);
}

.comparison-table th,
.comparison-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.dark-theme .comparison-table th,
.dark-theme .comparison-table td {
    border-bottom-color: var(--dark-border-color);
}

.comparison-table th {
    background-color: #f0f4f8; /* Light, neutral header */
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--dark-color);
}

.dark-theme .comparison-table th {
    background-color: var(--dark-card-bg); /* Slightly darker than card for contrast */
    color: var(--dark-heading-color);
}

.comparison-table td {
    font-size: 1rem;
    color: var(--dark-color);
}

.dark-theme .comparison-table td {
    color: var(--dark-text-color);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td:nth-child(2), /* "FutureLab" column */
.comparison-table td:nth-child(3) { /* "Others" column */
    text-align: center;
}

.comparison-table .feature-name {
    font-weight: 500;
}

.comparison-table .tick {
    color: var(--success-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.comparison-table .cross {
    color: #e74c3c; /* A suitable red for "no" */
    font-size: 1.5rem;
    font-weight: bold;
}

.comparison-conclusion {
    max-width: 700px;
    margin: 0 auto;
}

.comparison-conclusion p {
    font-size: 1.1rem;
    color: var(--gray-color);
    line-height: 1.7;
    margin-bottom: 25px;
}

.dark-theme .comparison-conclusion p {
    color: var(--dark-text-color);
}

.comparison-conclusion .btn {
    margin-top: 10px;
}

/* Comparison Section Mobile Responsiveness */
@media (max-width: 768px) {
    .comparison {
        padding: 60px 15px; /* More padding on sides for mobile */
    }

    .comparison-toggle-header {
        flex-direction: column; /* Stack title and button on mobile */
        align-items: flex-start; /* Align items to the start */
        margin-bottom: 20px;
    }

    .comparison-toggle-header .section-title {
        margin-bottom: 15px; /* Space between title and button on mobile */
        text-align: center; /* Center title on mobile */
    }
    .comparison-toggle-header .section-title:after {
        display: block; /* Show underline again on mobile if desired, or keep hidden */
         margin: 15px auto 0; /* Center underline */
    }

    .comparison-toggle-btn {
        align-self: center; /* Center the button on mobile */
    }

    .comparison-intro h2 {
        font-size: 1.8rem;
    }

    .comparison-intro p {
        font-size: 1rem;
    }

    /* Force table to not be like a table anymore */
    .comparison-table table, 
    .comparison-table thead, 
    .comparison-table tbody, 
    .comparison-table th, 
    .comparison-table td, 
    .comparison-table tr {
        display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    .comparison-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .comparison-table tr {
        border: 1px solid var(--light-gray);
        border-radius: var(--border-radius-sm);
        margin-bottom: 15px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    .dark-theme .comparison-table tr {
        border-color: var(--dark-border-color);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }


    .comparison-table td {
        /* Behave like a "row" */
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%; /* Space for the data label */
        text-align: right; /* Align content to the right */
        white-space: normal; /* Allow text wrapping */
    }
    .dark-theme .comparison-table td {
        border-bottom-color: var(--dark-border-color);
    }

    .comparison-table td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 50%;
        left: 15px; /* Left padding */
        transform: translateY(-50%);
        width: 45%; /* Width of the label */
        padding-right: 10px;
        white-space: nowrap; /* Keep label on one line */
        text-align: left;
        font-weight: 600;
        color: var(--primary-color);
    }
    .dark-theme .comparison-table td:before {
        color: var(--accent-color);
    }

    /* Label the data */
    .comparison-table td:nth-of-type(1):before { content: "Feature"; }
    .comparison-table td:nth-of-type(2):before { content: "FutureLab"; }
    .comparison-table td:nth-of-type(3):before { content: "Others"; }

    .comparison-table td:nth-child(2),
    .comparison-table td:nth-child(3) {
        text-align: right; /* Content to the right */
    }
    
    .comparison-table .tick, .comparison-table .cross {
        font-size: 1.3rem; /* Slightly smaller icons for mobile */
    }

    .comparison-conclusion p {
        font-size: 1rem;
    }
    
    section#comparison.comparison { /* Ensure it's displayed */
        display: block !important; 
    }
}

/* Mobile Dark Theme Fixes for Portfolio Section */
@media (max-width: 768px) {
    /* Force dark theme colors for portfolio cards on mobile */
    body.dark-theme #portfolio .bg-white {
        background-color: #1f2937 !important;
    }
    
    body.dark-theme #portfolio .text-gray-900 {
        color: #f9fafb !important;
    }
    
    body.dark-theme #portfolio .text-gray-600 {
        color: #d1d5db !important;
    }
    
    body.dark-theme #portfolio .text-gray-500 {
        color: #9ca3af !important;
    }
    
    body.dark-theme #portfolio .text-gray-700 {
        color: #e5e7eb !important;
    }
    
    body.dark-theme #portfolio .bg-gray-100 {
        background-color: #374151 !important;
    }
    
    body.dark-theme #portfolio .border-gray-200 {
        border-color: #4b5563 !important;
    }
}

/* Service Card Link Styling */
.service-card-link {
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Inherit text color from parent */
    display: block; /* Make the entire card clickable */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover effects */
}

.service-card-link:hover {
    transform: translateY(-5px); /* Slightly raise the card on hover */
    box-shadow: 0 8px 16px rgba(0,0,0,0.15); /* Add a more pronounced shadow on hover */
}

/* AI Lab Showcase Styling */
#ai-lab-showcase {
    padding: 80px 0;
    background-color: #f9f9f9; /* Light grey background */
    text-align: center;
}

#ai-lab-showcase .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

#ai-lab-showcase h2 {
    font-size: 2.8em;
    color: #333;
    margin-bottom: 20px;
}

#ai-lab-showcase .subtitle {
    font-size: 1.2em; /* Adjusted from original if any, or set to a sensible default */
    color: #555; /* Adjusted from original if any, or set to a sensible default */
    margin-bottom: 30px; /* Adjusted from original if any, or set to a sensible default */
}

.showcase-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
}

.showcase-text-content { /* Renamed from .showcase-text */
    flex: 1;
}

.showcase-text-content h3 { /* Renamed from .showcase-text h3 */
    font-size: 1.8em;
    color: #333;
    margin-bottom: 20px; /* Increased from 15px */
}

.showcase-text-content ul { /* Renamed from .showcase-text ul */
    list-style: none;
    padding: 0;
    margin-bottom: 35px; /* Increased from 30px */
}

.showcase-text-content ul li { /* Renamed from .showcase-text ul li */
    font-size: 1.1em;
    color: #555;
    margin-bottom: 12px; /* Increased from 10px */
    position: relative;
    padding-left: 30px; /* Adjusted padding for icon */
    line-height: 1.6; /* Added for better readability */
}

/* Added icon styling for list items */
.showcase-text-content ul li::before {
    content: "\f00c"; /* Font Awesome check icon */
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900; /* For solid icons */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%); /* Vertically center icon */
    color: #28a745; /* Green check icon */
    font-size: 0.9em; /* Adjust icon size if needed */
}

.showcase-visual-content { /* Renamed from .showcase-animation */
    flex: 1;
    max-width: 400px;
}

.showcase-visual-content dotlottie-player { /* Renamed from .showcase-animation dotlottie-player */
    width: 100%;
    height: auto;
}

#ai-lab-showcase .btn {
    margin-top: 20px;
}

/* Responsive adjustments for AI Lab Showcase */
@media (max-width: 768px) {
    .showcase-content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .showcase-text-content { /* Renamed from .showcase-text */
        margin-bottom: 30px;
    }

    .showcase-text-content ul { /* Renamed from .showcase-text ul */
        display: inline-block;
        text-align: left;
    }

    .showcase-visual-content { /* Renamed from .showcase-animation */
        max-width: 300px; /* Adjust animation size for smaller screens */
    }

    #ai-lab-showcase h2 {
        font-size: 2.4em;
    }

    #ai-lab-showcase .subtitle {
        font-size: 1.1em;
    }
}



/* Dark Theme for AI Lab Showcase */
.dark-theme #ai-lab-showcase {
    background-color: var(--dark-subtle-bg); /* Using a variable from your existing dark theme */
}

.dark-theme #ai-lab-showcase h2,
.dark-theme #ai-lab-showcase .showcase-text-content h3 { /* Renamed from .showcase-text h3 */
    color: var(--dark-heading-color); /* Using a variable for heading text color */
}

.dark-theme #ai-lab-showcase .subtitle,
.dark-theme #ai-lab-showcase .showcase-text-content ul li { /* Renamed from .showcase-text ul li */
    color: var(--dark-text-color); /* Using a variable for body text color */
}

/* Added dark theme icon styling for list items */
.dark-theme #ai-lab-showcase .showcase-text-content ul li::before {
    color: var(--success-color, #28a745); /* Use a variable if available, or keep green */
}
/* The Font Awesome check icon color in .showcase-text ul li::before is green (#28a745) 
   and should generally be visible on dark backgrounds. If not, it can be adjusted here. */

/* Footer Styling */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 50px 0 20px;
    font-size: 0.95rem;
    position: relative;
}

.dark-theme footer {
    background-color: #0b1220;
}

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

.footer-column h4 {
    font-size: 1.2rem;
    color: var(--light-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-column p {
    line-height: 1.7;
    color: var(--light-gray);
    margin-bottom: 10px;
}

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

.footer-column ul li a {
    color: var(--light-gray);
    text-decoration: none;
    display: inline-block;
    padding: 5px 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--accent-color);
    transform: translateX(3px);
}

.footer-column ul li a.active {
    color: var(--accent-color);
    font-weight: 600;
}

.quick-links-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.social-links a {
    color: var(--light-gray);
    font-size: 1.3rem;
    margin-right: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:last-child {
    margin-right: 0;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--light-gray);
}

.dark-theme .footer-bottom {
    border-top-color: #1c2941;
}

/* Theme-aware text that changes color in dark mode */
.theme-aware-text {
    color: var(--dark-color);
}

.dark-theme .theme-aware-text {
    color: var(--dark-heading-color);
}

/* Portfolio section spacing override - force proper padding */
#portfolio {
    padding-top: 8rem !important; /* 128px - pt-32 equivalent */
}

/* Responsive portfolio spacing */
@media (max-width: 768px) {
    #portfolio {
        padding-top: 4rem !important; /* 64px for mobile */
    }
}