/* ========================================
   Main Stylesheet
   AI Process Automation Website
   ======================================== */

/* ========================================
   Reset & Base Styles
   ======================================== */

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

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

body {
    font-family: 'IBM Plex Serif', 'Lora', serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

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

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

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

/* ========================================
   Layout & Container
   ======================================== */

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 0.6rem 1.25rem;
    transition: all var(--transition-normal);
    max-width: 1000px;
    width: calc(100% - 4rem);
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 248, 255, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 102, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Dark theme navbar */
[data-theme="dark"] .navbar {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(20, 30, 48, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
    max-width: 100%;
    padding: 0;
}

.navbar.scrolled {
    padding: 0.5rem 1.5rem;
    box-shadow: var(--shadow-lg);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 30px;
    width: auto;
    display: block;
}

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

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

/* Light theme nav links */
[data-theme="light"] .nav-menu a {
    color: #1a1a1a;
}

[data-theme="light"] .nav-menu a:hover {
    color: var(--accent-primary);
}

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

.nav-menu a:hover::after,
.nav-menu a:focus::after {
    width: 100%;
}

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

/* Hide mobile menu controls on desktop */
.mobile-menu-controls {
    display: none !important;
}

.mobile-controls-wrapper,
.mobile-language,
.mobile-theme,
.mobile-cta-btn {
    display: none !important;
}

/* Show mobile controls only on mobile */
@media (max-width: 768px) {
    .mobile-menu-controls {
        display: block !important;
    }

    .mobile-controls-wrapper,
    .mobile-language,
    .mobile-theme {
        display: flex !important;
    }

    .mobile-cta-btn {
        display: inline-flex !important;
    }
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-dropdown {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.lang-dropdown:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
}

/* Dark theme dropdown */
[data-theme="dark"] .lang-dropdown {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

[data-theme="dark"] .lang-dropdown:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.lang-dropdown option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color var(--transition-fast);
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--accent-primary);
}

.lang-divider {
    color: var(--text-tertiary);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: all var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Mega Menu Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.dropdown-arrow {
    transition: transform var(--transition-fast);
}

.has-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    pointer-events: none;
    z-index: 1000;
}

.has-dropdown.active .mega-menu,
.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mega-menu-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    min-width: 500px;
}

[data-theme="light"] .mega-menu-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.mega-menu-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mega-menu-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mega-menu-list li a {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.mega-menu-list li a::after {
    display: none;
}

.mega-menu-list li a:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.menu-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.mega-menu-list li a strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.mega-menu-list li a p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Mobile mega menu */
@media (max-width: 968px) {
    .mega-menu {
        position: static;
        transform: none;
        margin-top: 0.5rem;
    }

    .mega-menu-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        min-width: auto;
        width: 100%;
    }
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    font-size: 1rem;
    border: none;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-hero {
    border-radius: 130px;
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
    font-weight: 700;
    background: #25D366 !important;
    color: #ffffff !important;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background: #25D366 !important;
    color: #ffffff !important;
    border: 2px solid #0066ff;
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.5);
    transform: scale(1.05);
    filter: none;
}

/* Dark theme: electric purple border on hover */
[data-theme="dark"] .btn-hero:hover {
    border: 2px solid #a855f7;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

/* Navbar CTA button with rounded style */
.navbar .btn-primary {
    border-radius: 50px;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 9rem;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-item::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-primary);
    flex-shrink: 0;
}

.stat-value {
    display: inline;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.stat-label {
    display: inline;
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* ========================================
   Section Headers
   ======================================== */

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.section-title {
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

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

/* ========================================
   Services Section
   ======================================== */

.services-section {
    padding: 4rem 0;
    display: flex;
    align-items: center;
}

.services-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.services-content {
    max-width: 550px;
}

.services-image {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
}

.services-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

@media (max-width: 968px) {
    .services-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-image {
        order: -1;
    }
}

.services-main-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.services-main-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--accent-primary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.services-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.services-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.check-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    padding: 3px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: white;
    stroke-width: 3;
    margin-top: 2px;
}

.services-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Image Placeholder Styles */
.image-placeholder {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all var(--transition-normal);
}

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

.image-placeholder svg {
    opacity: 0.5;
    color: var(--text-secondary);
}

.image-placeholder p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin: 0;
}

/* ========================================
   QR Check-in Section
   ======================================== */

.qr-checkin-section {
    padding: 4rem 0;
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
}

.qr-checkin-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.qr-checkin-content {
    max-width: 550px;
}

.qr-checkin-image {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
}

.qr-checkin-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.qr-checkin-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.qr-checkin-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--accent-primary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.qr-checkin-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qr-checkin-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.qr-checkin-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 968px) {
    .qr-checkin-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ========================================
   Industries Section
   ======================================== */

.industries-section {
    padding: 3rem 0;
}

.industries-section .container {
    max-width: 1100px;
}

.industries-carousel-container {
    position: relative;
    overflow: hidden;
    padding: 2rem 3rem;
}

.industries-carousel {
    display: flex;
    transition: transform 0.5s ease;
    gap: 1.5rem;
}

.industry-card {
    min-width: calc((100% - 3rem) / 2);
    max-width: 280px;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all var(--transition-normal);
    flex-shrink: 0;
    border: 2px solid transparent;
}

.industry-card:hover {
    border: 2px solid #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    transform: translateY(-4px);
}

@media (min-width: 1024px) {
    .industry-card {
        min-width: calc((100% - 4.5rem) / 3);
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .industry-card {
        min-width: calc(100% - 3rem);
    }

    .industries-carousel-container {
        padding: 2rem 2.5rem;
    }
}

.industry-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.industry-title {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.industry-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Carousel navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--transition-fast);
    z-index: 10;
}

.carousel-nav:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.carousel-nav.prev {
    left: 0;
}

.carousel-nav.next {
    right: 0;
}

/* Carousel dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-dot.active {
    background: var(--accent-primary);
    width: 24px;
    border-radius: 5px;
}

/* ========================================
   Social Proof Section
   ======================================== */

.social-proof-section {
    background: var(--bg-secondary);
    padding: 3rem 0;
}

.social-proof-section .container {
    max-width: 900px;
}

.social-proof-section .section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.logos-marquee {
    margin: 2rem 0;
    overflow: hidden;
    position: relative;
}

.logos-track {
    display: flex;
    gap: 2rem;
    animation: scroll 30s linear infinite;
}

.logo-item {
    min-width: 120px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-120px * 6 - 2rem * 6));
    }
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.testimonial-card {
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.8;
}

.testimonial-author strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.testimonial-metric {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    text-align: center;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-success);
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

/* ========================================
   Features Section
   ======================================== */

.features-section {
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.feature-column-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-links li {
    margin: 0;
}

.feature-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 400;
    transition: color var(--transition-fast);
    display: block;
    padding: 0.25rem 0;
}

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

/* Responsive layout */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .feature-column {
        gap: 1rem;
    }
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/images/BackgroundAI.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.cta-section * {
    color: white;
}

/* Force white text in light theme */
[data-theme="light"] .cta-section .cta-title,
[data-theme="light"] .cta-section .cta-subtitle {
    color: white !important;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    margin-bottom: 1rem;
}

.cta-subtitle {
    margin-bottom: 3rem;
    font-size: 1.25rem;
}

.demo-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    border: none;
}

.form-group textarea {
    resize: vertical;
}

.demo-form .btn {
    width: 100%;
    background: white;
    color: var(--accent-primary);
    margin-top: 1rem;
}

.demo-form .btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: 2rem 0 1rem;
}

.footer .container {
    max-width: 900px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

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

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

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

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

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

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
}

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

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.social-links a svg {
    width: 18px;
    height: 18px;
}

.social-links a:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
}

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

.copyright {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.legal-links::before {
    content: '|';
    color: var(--border-color);
    margin-right: 0.5rem;
}

.legal-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.875rem;
}

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

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .feature-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-row.reverse {
        direction: ltr;
    }

    .feature-visual {
        min-height: 300px;
    }
}

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

    section {
        padding: 3rem 0;
    }

    .navbar {
        width: calc(100% - 2rem);
        padding: 0.8rem 1rem;
    }

    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 1rem;
        right: 1rem;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 1.5rem;
        transform: translateY(-150%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        box-shadow: var(--shadow-lg);
        border-radius: 20px;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

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

    .nav-menu li {
        margin: 0;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.1rem;
    }

    /* Hide dropdowns in mobile menu by default */
    .nav-menu .has-dropdown .mega-menu,
    .nav-menu .has-dropdown .mobile-submenu {
        display: none;
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.03);
        padding: 0.75rem;
        margin: 0.5rem 0 0 0;
        border-radius: 8px;
        border-left: 2px solid var(--accent-primary);
    }

    /* Show submenu when dropdown is active on mobile */
    .nav-menu .has-dropdown.active .mega-menu,
    .nav-menu .has-dropdown.active .mobile-submenu {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Make mega menu simpler and more compact on mobile */
    .nav-menu .mega-menu-content {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        grid-template-columns: unset;
        min-width: unset;
    }

    .nav-menu .mega-menu-section {
        padding: 0;
        margin-bottom: 0.5rem;
    }

    .nav-menu .mega-menu-section:last-child {
        margin-bottom: 0;
    }

    .nav-menu .mega-menu-title {
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 0.5rem;
        padding-bottom: 0.25rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--accent-primary);
    }

    .nav-menu .mega-menu-list {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .nav-menu .mega-menu-list li {
        padding: 0;
        border: none;
    }

    /* Compact card styling for mobile mega menu */
    .nav-menu .mega-menu-list a {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.5rem;
        font-size: 0.85rem;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.02);
        transition: background 0.2s ease;
    }

    .nav-menu .mega-menu-list a:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-menu .mega-menu-list .menu-icon {
        font-size: 1.1rem;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .nav-menu .mega-menu-list a > div {
        flex: 1;
    }

    .nav-menu .mega-menu-list a strong {
        display: block;
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 0.15rem;
        color: var(--text-primary);
    }

    .nav-menu .mega-menu-list a p {
        font-size: 0.7rem;
        line-height: 1.3;
        margin: 0;
        color: var(--text-secondary);
        opacity: 0.8;
    }

    /* Hide desktop nav controls on mobile */
    .nav-controls {
        display: none !important;
    }

    /* Show mobile menu controls */
    .mobile-menu-controls {
        display: block !important;
        border-top: 2px solid rgba(255, 255, 255, 0.1);
        margin-top: 1rem;
        padding-top: 1.5rem !important;
    }

    .mobile-controls-wrapper {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .mobile-control-label {
        display: block;
        font-size: 0.85rem;
        color: var(--text-secondary);
        margin-bottom: 0.5rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .mobile-language,
    .mobile-theme {
        display: flex;
        flex-direction: column;
    }

    .mobile-language .lang-dropdown {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .mobile-theme {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-theme .mobile-control-label {
        margin-bottom: 0;
    }

    .mobile-theme-toggle {
        flex-shrink: 0;
    }

    .mobile-cta-btn {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .navbar .btn-primary {
        width: 100%;
        margin-top: 0;
        text-align: center;
    }

    .hero-section {
        min-height: 60vh;
        padding-top: 7rem;
        padding-bottom: 3rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem) !important;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        justify-content: center;
    }

    .btn-hero {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Center all primary buttons on mobile */
    .btn-primary {
        margin-left: auto;
        margin-right: auto;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem) !important;
    }

    .about-section {
        padding: 2rem 0;
    }

    .mission-content, .qr-checkin-container, .services-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .mission-image-content img, .qr-checkin-image img, .services-image img {
        max-height: 400px;
        min-height: 350px;
        object-fit: cover;
        width: 100%;
    }

    /* Fix "Learn About the Platform" button wrapping */
    .services-cta,
    .btn-secondary,
    .cta-link {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.9rem !important;
        padding: 0.75rem 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .services-grid,
    .industries-grid {
        grid-template-columns: 1fr;
    }

    .nav-controls {
        flex-wrap: wrap;
    }
}

/* ========================================
   About Page Styles
   ======================================== */

/* About Hero Section */
.about-hero {
    min-height: 35vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 7rem;
    text-align: center;
}

.about-hero .hero-title {
    margin-bottom: 1rem;
}

.about-hero .hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 0;
}

/* Mission Section - Closer to title */
.mission-section {
    padding: 0 0 1rem;
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.mission-text-content {
    text-align: left;
}

.mission-text-content .section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.mission-text-content .about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

.mission-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Legacy support for old structure */
.about-content-full {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content-full .section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-content-full .about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Responsive layout for Mission section */
@media (max-width: 768px) {
    .mission-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mission-text-content {
        text-align: center;
    }

    .mission-image {
        max-height: 300px;
    }
}

/* Values Section with Interactive Cards */
.values-section {
    padding: 2rem 0;
}

.values-intro {
    max-width: 700px;
    margin: 1.5rem auto 0;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Interactive Card Effects */
.interactive-card {
    cursor: pointer;
    transform-style: preserve-3d;
}

.interactive-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(0, 102, 255, 0.1) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.interactive-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.3);
}

/* Card Glow Effect */
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(0, 102, 255, 0.4) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.interactive-card:hover .card-glow {
    opacity: 1;
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1) rotate(180deg);
        opacity: 0.6;
    }
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
    transition: transform var(--transition-normal);
}

.interactive-card:hover .value-icon {
    transform: scale(1.2) rotate(5deg);
}

.value-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.value-description {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* About Page Footer */
.footer-section {
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-subtitle {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.footer-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

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

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

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

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 102, 255, 0.1);
    color: var(--accent-primary);
    margin-right: 0.5rem;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Responsive About Page */
@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-hero {
        padding: 4rem 0 1.5rem;
    }

    .about-hero .hero-subtitle {
        font-size: 1.2rem;
    }

    .mission-section {
        padding: 1.5rem 0 3rem;
    }

    .cta-title {
        font-size: 2rem;
    }
}

/* ========================================
   Booking Page Styles
   ======================================== */

/* Booking Hero - Reduced padding, centered like index hero */
.booking-hero {
    padding-top: 9rem !important;
    min-height: 15vh !important;
    position: relative;
    z-index: 8;
    padding-bottom: 1rem !important;
}

.booking-hero .hero-content {
    position: relative;
    z-index: 4;
}

.booking-hero .hero-subtitle {
    margin-bottom: 0.5rem;
}

.booking-section {
    padding: 0 0 4rem;
    position: relative;
    z-index: 2;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-section .container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-widget {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

/* Light theme booking widget */
[data-theme="light"] .booking-widget {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive Booking Page */
@media (max-width: 768px) {
    .booking-hero {
        padding-top: 5rem !important;
        min-height: 25vh !important;
    }

    .booking-section {
        padding: 1.5rem 0 3rem;
        min-height: 50vh;
    }
}
