:root {
    --bg-color: #FFFFFF; /* Main canvas */
    --bg-section-color: #F8F5F0; /* Secondary white for sections */
    --text-primary: #000000;
    --text-secondary: #2B303B;
    --primary-accent: #091C3A; /* Deep blue for actions/logo */
    --border-color: #E5E7EB; /* Thin, subtle borders */
    --button-text-color: #FFFFFF;
    --button-hover-bg: #1A3A5A; /* Slightly darker for hover */
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes pulse {
    0% {
        transform: opacity(1);
    }
    50% {
        transform: opacity(.5);
    }
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color); /* Main canvas background */
    color: var(--text-primary);
    /* Removed background image and ambient glows for a cleaner look */
    overflow-x: hidden;
}

/* Ambient Background Glows */
/* Removed ambient background glows */

/* Step 1: Vanta.js Background Canvas */
#vanta-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header & Navigation --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo-container {
    perspective: 800px; /* For the 3D effect */
}

/* Step 2: 3D Glass Logo */
.logo-container .logo-wrapper { /* Renamed for clarity and to remove "glass" connotation */
    position: relative;
    padding: 0.5rem; /* Reduced padding */
    background: transparent; /* No background for logo wrapper */
    border: none; /* No border */
    border-radius: 0; /* No border radius */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    max-width: 60px;
    max-height: 60px;
}

.glass-logo-wrapper:hover {
    transform: rotateX(0) rotateY(0);
}

.logo-img {
    height: 60px; /* Smaller logo */
    display: block;
    animation: float 3s ease-in-out infinite;
}

.showcase-img {
    perspective: 800px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.4s ease;
    transform: rotateX(10deg) rotateY(-10deg);
    animation: float 3s ease-in-out infinite;
}

.showcase-img:hover {
    transform: rotateX(0) rotateY(0);
}

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

.desktop-nav {
    display: flex;
    gap: 0.5rem;
}

/* Language Switcher */
.header-actions { /* Kept for structure, but styling adjusted */
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switch {
    display: flex; /* Kept for layout */
    background: transparent; /* No background */
    border: none; /* No border */
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
}

.lang-btn {
    background: none;
    border: none;
    padding: 0.5rem 0.75rem; /* Adjusted padding */
    border-radius: 4px; /* Sharper corners */
    cursor: pointer;
    font-size: 0.9rem; /* Slightly larger font */
    font-weight: 500; /* Lighter weight */
    color: var(--text-secondary); /* Secondary text color */
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

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

.lang-btn.active {
    background: var(--primary-accent); /* Primary accent for active */
    color: var(--button-text-color); /* White text */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Step 4: Magnetic & Liquid Buttons */
.magnetic-button {
    position: relative;
    display: inline-block;
    padding: 0.75rem 1.25rem; /* Adjusted padding */
    color: var(--text-primary); /* Primary text color */
    text-decoration: none;
    font-weight: 700; /* Bold for buttons */
    border-radius: 8px;
    overflow: hidden;
}

.magnetic-button span {
    position: relative;
    z-index: 2;
    display: inline-block;
}

.magnetic-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-accent); /* Primary accent for background */
    border-radius: 4px; /* Sharper corners */
    transform: scale(0);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease; /* Snappier transition */
    z-index: 1;
}

.magnetic-button:hover::before {
    transform: scale(1); /* No radial expansion, just fill */
    opacity: 1;
}

.magnetic-button:hover span {
    color: var(--button-text-color); /* White text on hover */
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-accent); /* Primary accent for CTA */
    color: var(--button-text-color); /* White text */
    padding: 0.75rem 1.75rem;
    border-radius: 4px; /* Sharp, high-end SaaS look */
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 1px solid var(--primary-accent);
    /* Removed opacity from transition to prevent conflicts with GSAP reveal animations */
    transition: box-shadow 0.3s ease;
    cursor: pointer;
}

/* Prevent duplicate background effects when magnetic logic is applied to a solid CTA button */
.cta-button.magnetic-button::before {
    display: none;
}

.cta-button:hover {
    opacity: 0.95;
    box-shadow: 0 10px 20px rgba(9, 28, 58, 0.1);
}

/* --- Hero Section --- */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-items: stretch;
    width: 100%;
    gap: 2rem;
    padding: 4rem 0;
    min-height: 70vh;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(4rem, 8vw, 7.5rem); /* Responsive font size */
    font-weight: 900;
    letter-spacing: -0.05em; /* Tight letter-spacing */
    line-height: 1.1;
    color: var(--text-primary); /* Heavy black heading */
}

.hero-title span {
    color: var(--primary-accent);
}
/* Removed .text-coreidon-blue from hero-title span as per new design */
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary); /* Secondary text color */
    max-width: 450px;
    margin: 1.5rem 0;
}

.hero-spline-scene {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 20px;
    overflow: hidden;
}

#hero-3d-scene {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* --- Generic Content Section --- */
.content-section {
    padding: 5rem 0;
    text-align: center;
    background-color: var(--bg-section-color); /* Secondary white for sections */
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary); /* Secondary text color */
    max-width: 650px;
    font-family: 'Inter', sans-serif; /* Body copy font */
    margin: 1rem auto 0;
    line-height: 1.6;
    text-align: center;
}

/* --- Clients Section --- */
.clients-section {
    padding: 4rem 0;
}

/* .clients-section .section-title moved to general .section-title */

/* Clients Carousel */
.clients-carousel-container {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.clients-carousel-container {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    perspective: 1000px;
}

.clients-carousel-track {
    display: flex;
    width: fit-content;
    animation: scroll 30s linear infinite;
}

.clients-carousel-container:hover .clients-carousel-track {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.client-card {
    flex-shrink: 0;
    width: 250px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
    transform: none; /* Removed 3D rotation for cleaner look */
}

.client-glass-panel {
    height: 100px;
    width: 100%;
    display: flex;
    align-items: center; /* Kept for layout */
    justify-content: center; /* Kept for layout */
    background: var(--bg-color); /* White background */
    backdrop-filter: none; /* Removed blur */
    -webkit-backdrop-filter: none;
    border-radius: 4px; /* Sharper corners */
    border: 1px solid var(--border-color); /* Subtle border */
    padding: 1rem;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.client-glass-panel img {
    max-width: 80%;
    max-height: 80%;
    transition: all 0.3s ease;
}

.client-card:hover {
    transform: translateY(-3px); /* Subtle lift */
    z-index: 10;
}

.client-card:hover .client-glass-panel {
    background: var(--bg-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- Step 3: Feature Connector --- */
.feature-connector-section {
    position: relative;
    padding: 5rem 0;
    background-color: var(--bg-section-color); /* Secondary white for sections */
}

.svg-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 100px;
    z-index: -1;
}

.feature-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.feature-item {
    text-align: center;
    transition: transform 0.3s ease, opacity 0.3s ease, border-color 0.3s ease; /* Snappier transition */
    background-color: var(--bg-color); /* White background */
    backdrop-filter: none; /* Removed blur */
    padding: 2rem;
    margin: 2rem;
    border-radius: 4px; /* Sharper corners */
    border: 1px solid var(--border-color); /* Subtle border */
    box-shadow: none; /* Removed heavy shadows */
    background-image: none; /* Removed background pattern */
}

.feature-item h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif; /* Heading font */
    color: var(--text-primary); /* Primary text color */
}

.feature-wrapper h3 {
    text-align: center;
    margin: 3rem 0; /* Provides vertical centering and breathing room */
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-secondary);
    width: 100%;
}

/* --- Services Section --- */
.services-section {
    padding: 5rem 0;
    overflow: hidden; /* Prevent scrollbars from absolute elements */
}

/* --- Orbit Circular Layout (New Design) --- */
.orbit-layout {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 500px;
    margin: 4rem auto 0; /* Added margin-top to clear section headline */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .orbit-layout {
        height: 700px;
        margin-top: 8rem; /* Increased margin for desktop to prevent overlap */
    }
}

.orbit-connections {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.orbit-path {
    stroke: var(--primary-accent); /* Solid primary accent color */
    stroke-width: 3;
    fill: none;
    opacity: 0.3; /* More subtle */
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.3; }
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
}

.orbit-center-node {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: var(--primary-accent); /* Solid primary accent */
    box-shadow: none; /* Removed shadows */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-ping {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: var(--primary-accent); /* Primary accent color */
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.2;
}

@keyframes ping {
    75%, 100% { transform: scale(2); opacity: 0; }
}

.orbit-center-text {
    position: relative;
    z-index: 20;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    text-shadow: rgba(0, 0, 0, 0.5) 0px 0px 10px;
}

.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 30;
    /* Transform is handled inline for specific positions */
}

.orbit-service-card {
    width: 12rem;
    background-color: var(--bg-color); /* White background */
    backdrop-filter: none; /* Removed blur */
    border-radius: 4px; /* Sharper corners */
    box-shadow: none; /* Removed shadows */
    border: 1px solid var(--border-color); /* Subtle border */
    transition: transform 0.3s ease, border-color 0.3s ease; /* Snappier transition */
}

.orbit-service-card:hover {
    box-shadow: none; /* Removed shadows */
    border-color: var(--primary-accent); /* Highlight border on hover */
    transform: translateY(-3px); /* Subtle lift */
    z-index: 40;
}

.card-content {
    padding: 1rem;
    text-align: center;
    position: relative;
}

.card-indicator {
    position: absolute;
    top: -0.25rem;
    left: -0.25rem;
    width: 0.75rem;
    height: 0.75rem;
    background-color: var(--primary-accent); /* Primary accent color */
    border-radius: 50%;
    border: 2px solid var(--bg-color); /* White border */
    box-shadow: none; /* Removed shadows */
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 4px; /* Sharper corners */
    background-color: transparent; /* Transparent background */
    margin-bottom: 0.75rem;
    transition: transform 0.3s;
    border: 1px solid var(--border-color); /* Subtle border */
    box-shadow: none; /* Removed shadows */
}

.orbit-service-card:hover .card-icon {
    transform: scale(1.1);
}

.card-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-accent); /* Primary accent color */
}

.orbit-service-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary); /* Primary text color */
    margin-bottom: 0.5rem;
}

.orbit-service-card p {
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.625;
}

@media (min-width: 1024px) {
    .orbit-service-card {
        width: 14rem;
    }
    .card-content {
        padding: 1.25rem;
    }
    .card-icon {
        width: 3.5rem;
        height: 3.5rem;
    }
    .card-icon svg {
        width: 1.75rem;
        height: 1.75rem;
    }
    .orbit-service-card h3 {
        font-size: 1rem;
    }
}

.orbit-bg-circle-1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20rem;
    height: 20rem; /* Kept for visual structure */
    border: 1px solid var(--border-color); /* Subtle border */
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.orbit-bg-circle-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24rem;
    height: 24rem; /* Kept for visual structure */
    border: 1px solid var(--border-color); /* Subtle border */
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .orbit-bg-circle-1 { width: 24rem; height: 24rem; }
    .orbit-bg-circle-2 { width: 30rem; height: 30rem; }
}

/* --- Spotlight Card Effect (n8n style) --- */
.service-card {
    position: relative; /* Kept for internal positioning */
    background-color: var(--bg-color); /* White background */
    backdrop-filter: none; /* Removed blur */
    border-radius: 4px; /* Sharper corners */
    padding: 2rem; /* Kept padding */
    border: 1px solid var(--border-color); /* Subtle border */
    overflow: hidden; /* Kept for content */
    transition: transform 0.3s ease, border-color 0.3s ease; /* Snappier transition */
    box-shadow: none; /* Removed shadows */
}


/* --- Step 4: Bento Grid --- */
.bento-grid-section {
    padding: 5rem 0;
    background-color: var(--bg-section-color); /* Apply background to the whole section */
    border-radius: 12px; /* Smooth edges for the section container */
    padding: 4rem 2rem; /* Ensure padding around the grid content */
}
/* .section-title moved to general .section-title */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    background-color: transparent; /* Remove background from the grid itself */
}

.bento-card {
    background-color: var(--bg-color); /* White background */
    backdrop-filter: none; /* Removed blur */
    border-radius: 4px; /* Sharper corners */
    padding: 1.5rem;
    box-shadow: none; /* Removed shadows */
    border: 1px solid var(--border-color); /* Subtle border */
    transition: transform 0.3s ease, border-color 0.3s ease; /* Snappier transition */
    background-image: none; /* Removed background pattern */
}

.bento-card:hover {
    transform: translateY(-3px); /* Subtle lift */
    box-shadow: none; /* Removed shadows */
    border-color: var(--primary-accent); /* Highlight border on hover */
}

.bento-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif; /* Heading font */
    color: var(--text-primary); /* Primary text color */
}

.bento-card p {
    color: var(--text-secondary); /* Secondary text color */
}


/* --- Step 5: Mobile-First Optimizations --- */
.mobile-nav {
    display: none; /* Hidden on desktop by default */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px; /* Slightly smaller */
    background-color: var(--bg-color); /* White background */
    backdrop-filter: none; /* Removed blur */
    -webkit-backdrop-filter: none;
    border-top: 1px solid var(--border-color); /* Subtle border */
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}

.feature-swiper {
    display: none; /* Hidden on desktop */
}

/* Asymmetrical sizes */
.bento-card.card-large { grid-column: span 2; grid-row: span 2; }
.bento-card.card-medium { grid-column: span 2; }


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

    .mobile-nav {
        display: flex; /* Show on mobile */
    }

    /* Hide desktop nav, show mobile toggle if needed */
    .desktop-nav, .main-header .cta-button {
        display: none;
    }
    
    /* Hide desktop header actions on mobile */
    .header-actions {
        display: none;
    }

    /* Disable 3D background for performance */
    #vanta-canvas { /* Vanta.js is removed entirely */
        display: none;
    }

    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 0;
    }

    .hero-subtitle {
        margin: 1.5rem auto;
    }

    .hero-spline-scene {
        grid-row: 1; /* Move 3D scene to the top on mobile */
        height: 300px;
    }

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

    .bento-card.card-large, .bento-card.card-medium {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* Services Orbit Section on Mobile */
    .orbit-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        height: auto; /* Override fixed height for dynamic content */
    }

    .orbit-connections,
    .orbit-center,
    .orbit-bg-circle-1,
    .orbit-bg-circle-2 {
        display: none; /* Hide decorative elements on mobile */
    }

    .orbit-item {
        position: static; /* Reset absolute positioning to fall into flex flow */
        width: 100%;
        display: flex;
        justify-content: center;
        transform: none !important; /* Override inline transform for mobile view */
    }

    .orbit-service-card {
        width: 80%;
        max-width: 400px; /* Prevent cards from being too wide on tablets */
    }
}

/* --- Quote Section --- */
.quote-section {
    padding: 6rem 0;
    text-align: center;
}

.quote-logo {
    height: 280px;
    margin: 0 auto 2rem auto;
    display: block;
}

.quote-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem; /* Slightly larger */
    font-weight: 700;
    color: var(--text-primary); /* Primary text color */
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
    letter-spacing: -0.02em;
} 

@media (max-width: 768px) {
    .quote-section { padding: 4rem 1rem; }
    .quote-text { font-size: 1.25rem; }
}

/* --- Footer --- */
.main-footer-section {
    padding: 4rem 2rem 2rem;
    color: var(--button-text-color); /* White text */
    background-color: var(--primary-accent); /* Primary accent background */
}

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

.footer-column h4 {
    font-size: 1.1rem;
    color: var(--button-text-color); /* White text */
    margin-bottom: 1rem;
}

.footer-column p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-column a {
    color: var(--button-text-color); /* White text */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* Lighter border for contrast */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

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

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.8); /* Slightly muted white */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: auto; /* Allow width to adjust to content */
        padding: 0 8px; /* Add horizontal padding for spacing */
        height: 50px;
        text-decoration: none;
        color: #555;
        border-radius: 999px;
        transition: background-color 0.3s ease;
    }

    /* Ensure text does not wrap */
    .mobile-nav-item span {
        font-size: 0.7rem; /* Slightly larger */
    }

    .mobile-nav-item.active {
        background-color: var(--border-color); /* Subtle background for active */
        color: var(--primary-accent); /* Primary accent for active text */
    }

    .mobile-lang-switch {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-right: 10px;
    }

    .mobile-nav-item.cta {
        background-color: var(--primary-accent); /* Primary accent for CTA */
        color: var(--button-text-color); /* White text */
    }
}

/* Product Modal & Hover Effects */
.feature-item {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative; /* Kept for click hint positioning */
    will-change: transform, opacity;
}
.feature-item:hover {
    transform: translateY(-3px); /* Subtle lift */
    box-shadow: none; /* Removed shadows */
    border-color: var(--primary-accent); /* Highlight border on hover */
    background: var(--bg-color); /* White background */
}
.click-hint {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 0.8rem;
    color: #3B82F6;
    font-weight: 600;
}

/* Modal Styles */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Kept for full screen */
    background: rgba(0, 0, 0, 0.7); /* Slightly less opaque */
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.product-modal.active {
    opacity: 1;
    pointer-events: auto;
}
.product-modal-content {
    background: var(--bg-color); /* White background */
    border: 1px solid var(--border-color); /* Subtle border */
    border-radius: 4px; /* Sharper corners */
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto; /* Kept for scrollable content */
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}
.product-modal.active .product-modal-content {
    transform: scale(1);
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color); /* Subtle border */
    color: var(--text-primary); /* Primary text color */
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.2s;
    z-index: 10;
}
.modal-close:hover {
    background: var(--bg-section-color); /* Subtle hover background */
}
.modal-body {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    overflow-y: auto;
}
.modal-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.modal-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem; /* Kept spacing */
    font-family: 'Space Grotesk', sans-serif; /* Heading font */
    color: var(--text-primary); /* Primary text color */
    /* Removed gradient text for cleaner look */
}
.modal-info p {
    color: var(--text-secondary); /* Secondary text color */
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
/* Removed modal-image-wrapper and modal-image styling as they are specific to the old design */
.modal-image-wrapper {
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-left: 1px solid #374151;
}
.modal-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid var(--border-color);
}
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    .modal-image-wrapper {
        border-left: none;
        border-top: 1px solid #374151;
        order: -1;
    }
    .modal-info {
        padding: 25px;
    }
}

/* Legal Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7); /* Slightly less opaque */
    backdrop-filter: blur(8px);
    display: none;
    align-items: center; /* Kept for centering */
    justify-content: center;
    padding: 20px;
}
.modal.active {
    display: flex;
}
.modal-content-wrapper {
    background-color: var(--bg-color); /* White background */
    color: var(--text-secondary); /* Secondary text color */
    border: 1px solid var(--border-color); /* Subtle border */
    border-radius: 4px; /* Sharper corners */
    width: 90%; /* Kept for responsiveness */
    max-width: 800px;
    padding: 30px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}
.modal-header {
    margin-bottom: 20px;
    padding-right: 40px;
}

.legal-content p {
    text-align: justify;
}

#legal-modal-title {
    font-size: 2rem; /* Kept font size */
    margin-bottom: 1rem; /* Kept spacing */
    font-family: 'Space Grotesk', sans-serif; /* Heading font */
    color: var(--text-primary); /* Primary text color */
    /* Removed gradient text for cleaner look */
}

#legal-modal-body h3 {
    color: var(--text-primary); /* Primary text color */
    font-family: 'Space Grotesk', sans-serif; /* Heading font */
    margin: 10px;
}
/* Kept paragraph styling */
#legal-modal-body p {
    margin: 10px;
}

/* --- Scheduler Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for contrast */
    display: flex; /* Kept for centering */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1rem;
}

.modal-content {
    background: var(--bg-color); /* White background */
    color: var(--text-primary); /* Primary text color */
    padding: 1.5rem;
    border-radius: 4px; /* Sharper corners */
    width: 100%;
    max-width: 400px; /* Kept for responsiveness */
    border: 1px solid var(--line-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color); /* Subtle border */
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem; /* Kept font size */
    font-weight: 700; /* Kept font weight */
    color: var(--text-primary); /* Primary text color */
}

.close-modal-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.close-modal-btn:hover {
    opacity: 1;
}

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

/* On desktop, switch to two columns */
@media (min-width: 992px) {
    .modal-content {
        max-width: 900px; /* Wider for desktop */
    }
    .scheduler-columns {
        display: grid;
        grid-template-columns: 1fr 1.2fr; /* 1 part for inputs, 1.2 for calendar */
        gap: 2rem;
    }
    .scheduler-form-details {
        order: 1; /* Left column */
    } 
    .scheduler-picker {
        order: 2; /* Right column */
    }
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500; /* Kept font weight */
    color: var(--text-secondary); /* Secondary text color */
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%; /* Kept width */
    padding: 0.75rem; /* Kept padding */
    background: var(--bg-section-color); /* Secondary white background */
    border: 1px solid var(--line-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-accent); /* Primary accent for focus */
    box-shadow: 0 0 0 1px var(--primary-accent); /* Subtle focus ring */
}

#calendar-container {
    background: var(--bg-section-color); /* Secondary white background */
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--line-color);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.calendar-header span {
    font-weight: 600;
}

.calendar-header button {
    background: none;
    border: none; /* Kept no border */
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}
.calendar-header button:hover:not(:disabled) {
    background-color: var(--border-color); /* Subtle hover background */
}
.calendar-header button:disabled {
    color: var(--border-color); /* Muted color for disabled */
    cursor: not-allowed;
}

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; }
.calendar-day, .calendar-weekday { padding: 0.5rem; font-size: 0.8rem; }
.calendar-weekday { font-weight: bold; color: var(--text-secondary); }
.calendar-day { cursor: pointer; border-radius: 4px; border: 1px solid transparent; transition: all 0.2s; } /* Sharper corners, subtle border */
.calendar-day:not(.disabled):not(.weekend):hover { background: var(--border-color); } /* Subtle hover background */
.calendar-day.disabled, .calendar-day.weekend { color: var(--border-color); cursor: not-allowed; } /* Muted color for disabled */
.calendar-day.selected { background: var(--primary-accent); color: var(--button-text-color); font-weight: bold; border-color: var(--primary-accent); } /* Primary accent for selected */

#time-slots-container {
    margin-top: 1.5rem;
}

#time-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 0.5rem; }
.time-slot { padding: 0.6rem; border: 1px solid var(--line-color); border-radius: 8px; text-align: center; cursor: pointer; transition: all 0.2s ease; }
.time-slot:hover:not(.disabled):not(.selected) { background: var(--border-color); border-color: var(--primary-accent); } /* Subtle hover, primary accent border */
.time-slot.selected { background: var(--primary-accent); color: var(--button-text-color); font-weight: bold; border-color: var(--primary-accent); } /* Primary accent for selected */
.time-slot.disabled { background: var(--bg-section-color); color: var(--text-secondary); cursor: not-allowed; text-decoration: line-through; } /* Muted background and text for disabled */
 
.modal-footer {
    border-top: 1px solid var(--line-color);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    text-align: right;
}

/* Re-using the site's CTA button style */
.modal-footer .cta-button {
    padding: 0.75rem 1.5rem;
    font-weight: 700; /* Bold for CTA */
    border: none;
}

/* --- Toast Notifications --- */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    padding: 16px;
    border-radius: 4px; /* Sharper corners */
    background: var(--primary-accent); /* Primary accent background */
    color: var(--button-text-color); /* White text */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 4.7s forwards;
    backdrop-filter: none; /* Removed blur */
    border: none; /* No border */
    pointer-events: auto; /* Kept for interaction */
    font-size: 0.9rem;
}

.toast.success { border-left: 4px solid #10B981; }
.toast.error { border-left: 4px solid #EF4444; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}