/* @import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Base Styles and Variables - DESKTOP FIRST */
:root {
    /* Color Palette */
    --primary: #4A80F0;
    --primary-light: #789FFF;
    --primary-dark: #3b5edd;
    --secondary: #B0C4DE;
    --accent: #8429c9;
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-off-white: #f8f9fa;
    --bg-dark: #222222;
    --bg-gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --border-light: #e0e0e0;

    /* Typography */
    --font-heading: "Rubik", sans-serif;
    --font-body: "Space Mono", monospace;

    /* Spacing - Desktop values */
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 2rem;
    /* 32px */
    --spacing-lg: 4rem;
    /* 64px */
    --spacing-xl: 8rem;
    /* 128px */

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Container Width */
    --container-width: 1200px;
    --container-padding: 2rem;
    /* Desktop container padding */

    /* Header height variables */
    --header-height-desktop: 80px;
    --header-height-mobile: 60px;

     --text-dark-rgb: 51, 51, 51; /* for #333333 */
    --primary-rgb: 74, 128, 240; /* for #4A80F0 */
    --bg-light-rgb: 255, 255, 255; /* for #ffffff */
}

/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height-desktop);
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

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

/* Using clamp for responsive font sizes, ensuring desktop max values are appropriate */
h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw + 1rem, 3rem);
    letter-spacing: -0.01em;
}

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

p {
    margin-bottom: 1.5rem;
    color: var(--text-medium);
}

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

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

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

button {
    cursor: pointer;
    font-family: var(--font-body);
}

/* Custom Cursor - Hide on touch devices */
@media (hover: hover) and (pointer: fine) {
    body {
      /* cursor: none; */ /* Uncomment if you want to fully hide default system cursor */
    }
    .cursor {
        position: fixed;
        width: 8px;
        height: 8px;
        background-color: var(--primary);
        border-radius: 50%;
        pointer-events: none;
        transform: translate(-50%, -50%);
        z-index: 9999;
        transition: transform 0.1s ease;
    }

    .cursor-follower {
        position: fixed;
        width: 40px;
        height: 40px;
        border: 1px solid var(--primary-light);
        border-radius: 50%;
        pointer-events: none;
        transform: translate(-50%, -50%);
        z-index: 9998;
        transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    }
}


/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Section Styles */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--bg-gradient);
    margin: var(--spacing-sm) auto 0;
    border-radius: var(--radius-full);
}

.section-header.light h2,
.section-header.light .section-tag {
    color: var(--text-light);
}
.section-header.light .section-line {
    background: var(--text-light);
}


/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: var(--primary-dark);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-dark);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--primary);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn-outline-sm {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-outline-sm:hover {
    background-color: var(--primary);
    color: var(--text-light);
}

/* Header and Navigation - REDESIGN */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0; /* Base padding */
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    border-bottom: 1px solid transparent; /* Initial transparent border */
}

header.scrolled {
    background-color: rgba(var(--bg-light-rgb), 0.9); /* Use RGB for opacity */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0; /* Slightly reduce padding on scroll */
    border-bottom: 1px solid var(--border-light);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none; /* Ensure logo is not underlined if it's an <a> tag */
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.65rem; /* Slightly adjusted */
    color: var(--primary-dark); /* Darker primary for more contrast */
    transition: color 0.3s ease;
}
header.scrolled .logo-text {
    color: var(--primary);
}

.logo-dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    margin-left: 5px;
    transition: background-color 0.3s ease;
}

/* Desktop Navigation */
nav.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem; /* Increased gap for more spacing */
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500; /* Slightly less bold for a cleaner look */
    font-size: 0.95rem; /* Slightly adjusted */
    color: var(--text-medium); /* Softer color for nav links */
    position: relative;
    padding: 0.5rem 0.25rem; /* Add some padding for better hover area */
    transition: color 0.3s ease;
}

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

.nav-link::after { /* Underline animation */
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease-out;
}

.nav-link:hover::after,
.nav-link.active::after { /* .active class would need to be set by JS based on scroll position */
    width: 100%;
}

/* CTA Button style for a nav link */
.nav-link-button {
    padding: 0.5rem 1.25rem;
    border: 1.5px solid var(--primary-light);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-link-button:hover {
    background-color: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
    transform: translateY(-1px);
}
.nav-link-button::after { /* Remove underline for button-styled link */
    display: none;
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none; /* Hidden on desktop by default */
    flex-direction: column;
    justify-content: space-around; /* Distribute space for a cleaner look */
    width: 28px;
    height: 22px;
    cursor: pointer;
    z-index: 1002;
    background: transparent;
    border: none;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2.5px; /* Slightly thinner bars */
    background-color: var(--primary);
    border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); /* Smoother transition */
    transform-origin: center;
}

/* Hamburger to X animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7.75px) rotate(45deg); /* Adjusted for new height/spacing */
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px); /* Slide out effect */
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.75px) rotate(-45deg); /* Adjusted for new height/spacing */
}

/* Mobile Menu Panel - Redesigned */
.mobile-menu {
    display: none; /* Managed by JS/Media Query, initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; /* Full viewport height */
    background-color: var(--bg-light);
    z-index: 1001; /* Below toggle button, above content */
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%); /* Slide in from right */
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto; /* Allow scrolling if content exceeds height */
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0%);
}

.mobile-menu-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push social to bottom if present */
    align-items: center;
    height: 100%;
    padding: var(--spacing-lg) var(--spacing-md); /* Generous padding */
    text-align: center;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: var(--spacing-lg);
}

.mobile-menu .logo.mobile-logo .logo-text {
    color: var(--primary-dark); /* Ensure visibility on light background */
}

.mobile-menu-close {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    /* Added to make the X visible */
    width: 30px;
    height: 30px;
    position: relative;
}
.mobile-menu-close::before,
.mobile-menu-close::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 14px;
    width: 20px;
    height: 2px;
    background-color: var(--text-dark);
}
.mobile-menu-close::before {
    transform: rotate(45deg);
}
.mobile-menu-close::after {
    transform: rotate(-45deg);
}


.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0 0 auto 0; /* Push list up, auto margin for bottom takes space */
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Space between mobile links */
    align-items: center;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.75rem; /* Large, touch-friendly links */
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    transition: color 0.3s ease, background-color 0.3s ease;
    display: block; /* Make whole area clickable */
}

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

.mobile-nav-link-button { /* Optional: Style contact as button in mobile too */
    background-color: var(--primary);
    color: var(--text-light);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
}
.mobile-nav-link-button:hover {
    background-color: var(--primary-dark);
    color: var(--text-light);
}


.mobile-menu-social {
    margin-top: var(--spacing-lg); /* Space above social links */
    display: flex;
    gap: 1.5rem;
}
.mobile-menu-social a svg {
    width: 24px;
    height: 24px;
    fill: var(--text-medium); /* Adjust fill/stroke as per your SVGs */
    transition: fill 0.3s ease;
}
.mobile-menu-social a:hover svg {
    fill: var(--primary);
}


/* Ensure body scroll is prevented when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}


/* Hero Section */
.hero {
    min-height: 100vh; /* Use min-height to ensure it's at least viewport high */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height-desktop); /* Account for fixed header */
    padding-bottom: var(--spacing-md); /* Add some bottom padding for scroll indicator */
}


.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.organic-blob {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at center, rgba(74, 128, 240, 0.15) 0%, rgba(74, 128, 240, 0.08) 40%, rgba(74, 128, 240, 0.03) 70%, transparent 100%);
    filter: blur(2px);
    animation: organicFlow 15s ease-in-out infinite, organicFloat 20s ease-in-out infinite;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.organic-blob-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at center, rgba(186, 95, 255, 0.12) 0%, rgba(186, 95, 255, 0.06) 40%, rgba(186, 95, 255, 0.02) 70%, transparent 100%);
    filter: blur(3px);
    animation: organicFlow2 18s ease-in-out infinite, organicFloat2 25s ease-in-out infinite;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    top: 20%;
    right: -10%;
}

.organic-blob-3 {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle at center, rgba(176, 196, 222, 0.1) 0%, rgba(176, 196, 222, 0.05) 40%, rgba(176, 196, 222, 0.02) 70%, transparent 100%);
    filter: blur(1.5px);
    animation: organicFlow3 12s ease-in-out infinite, organicFloat3 16s ease-in-out infinite;
    border-radius: 40% 60% 60% 40% / 60% 40% 40% 60%;
    bottom: 10%;
    left: -5%;
}

.organic-blob::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at center, rgba(74, 128, 240, 0.08) 0%, rgba(74, 128, 240, 0.04) 50%, transparent 100%);
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    animation: organicFlowReverse 20s ease-in-out infinite;
    filter: blur(4px);
}

.organic-blob::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle at center, rgba(74, 128, 240, 0.2) 0%, rgba(74, 128, 240, 0.1) 40%, transparent 100%);
    border-radius: 20% 80% 80% 20% / 20% 20% 80% 80%;
    animation: organicFlowInner 10s ease-in-out infinite;
    filter: blur(1px);
}

@keyframes organicFlow {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: scale(1) rotate(0deg);
    }

    10% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: scale(1.1) rotate(36deg);
    }

    20% {
        border-radius: 20% 80% 80% 20% / 20% 20% 80% 80%;
        transform: scale(0.9) rotate(72deg);
    }

    30% {
        border-radius: 80% 20% 20% 80% / 80% 80% 20% 20%;
        transform: scale(1.05) rotate(108deg);
    }

    40% {
        border-radius: 40% 60% 60% 40% / 60% 40% 40% 60%;
        transform: scale(1.15) rotate(144deg);
    }

    50% {
        border-radius: 60% 40% 40% 60% / 40% 60% 60% 40%;
        transform: scale(0.95) rotate(180deg);
    }

    60% {
        border-radius: 25% 75% 75% 25% / 75% 25% 25% 75%;
        transform: scale(1.08) rotate(216deg);
    }

    70% {
        border-radius: 75% 25% 25% 75% / 25% 75% 75% 25%;
        transform: scale(1.12) rotate(252deg);
    }

    80% {
        border-radius: 35% 65% 65% 35% / 65% 35% 35% 65%;
        transform: scale(0.92) rotate(288deg);
    }

    90% {
        border-radius: 65% 35% 35% 65% / 35% 65% 65% 35%;
        transform: scale(1.06) rotate(324deg);
    }
}

@keyframes organicFlow2 {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: scale(1) rotate(0deg);
    }

    20% {
        border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
        transform: scale(1.2) rotate(72deg);
    }

    40% {
        border-radius: 30% 70% 40% 60% / 70% 40% 60% 30%;
        transform: scale(0.8) rotate(144deg);
    }

    60% {
        border-radius: 70% 30% 60% 40% / 30% 60% 40% 70%;
        transform: scale(1.1) rotate(216deg);
    }

    80% {
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
        transform: scale(0.9) rotate(288deg);
    }
}

@keyframes organicFlow3 {

    0%,
    100% {
        border-radius: 40% 60% 60% 40% / 60% 40% 40% 60%;
        transform: scale(1) rotate(0deg);
    }

    25% {
        border-radius: 80% 20% 40% 60% / 20% 80% 60% 40%;
        transform: scale(1.3) rotate(90deg);
    }

    50% {
        border-radius: 20% 80% 20% 80% / 80% 20% 80% 20%;
        transform: scale(0.7) rotate(180deg);
    }

    75% {
        border-radius: 60% 40% 80% 20% / 40% 60% 20% 80%;
        transform: scale(1.15) rotate(270deg);
    }
}

@keyframes organicFlowReverse {

    0%,
    100% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: scale(1) rotate(360deg);
    }

    50% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: scale(1.2) rotate(180deg);
    }
}

@keyframes organicFlowInner {

    0%,
    100% {
        border-radius: 20% 80% 80% 20% / 20% 20% 80% 80%;
        transform: scale(1) rotate(0deg);
    }

    33% {
        border-radius: 80% 20% 40% 60% / 80% 40% 60% 20%;
        transform: scale(1.4) rotate(120deg);
    }

    66% {
        border-radius: 40% 60% 20% 80% / 60% 20% 80% 40%;
        transform: scale(0.6) rotate(240deg);
    }
}

@keyframes organicFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-30px, -40px);
    }

    50% {
        transform: translate(20px, -60px);
    }

    75% {
        transform: translate(-10px, -20px);
    }
}

@keyframes organicFloat2 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    20% {
        transform: translate(40px, -30px);
    }

    40% {
        transform: translate(-20px, 50px);
    }

    60% {
        transform: translate(60px, 20px);
    }

    80% {
        transform: translate(-30px, -40px);
    }
}

@keyframes organicFloat3 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(50px, -25px);
    }

    66% {
        transform: translate(-40px, 35px);
    }
}

.organic-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.organic-blob:nth-child(1) {
    top: 10%;
    left: 20%;
}

.organic-blob:nth-child(2) {
    top: 60%;
    right: 15%;
}

.organic-blob:nth-child(3) {
    bottom: 20%;
    left: 10%;
}

@media (prefers-reduced-motion: reduce) {

    .organic-blob,
    .organic-blob-2,
    .organic-blob-3,
    .organic-blob::before,
    .organic-blob::after {
        animation: none;
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 var(--spacing-md);
    z-index: 1;
}

.hero-title {
    margin-bottom: var(--spacing-md);
}

.gradient-text {
    background: var(--text-medium);
    /* var(--bg-gradient); */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-md);
    color: var(--text-medium);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-medium);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--text-medium);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-medium);
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* Floating Cards Animation */
.hero-animation {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    z-index: 1;
}

.floating-card {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    animation: float 3s ease-in-out infinite;
    width: 220px;
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

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

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

.floating-card:nth-child(2) {
    animation-delay: 0.5s;
    margin-left: var(--spacing-lg);
}

.floating-card:nth-child(3) {
    animation-delay: 1s;
    margin-left: calc(var(--spacing-lg) * 2);
}

.floating-card .material-symbols-outlined {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 500;
}

.floating-card span:last-child {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* About Section */
#about { /* Added ID for potential direct linking from nav */
    background-color: var(--bg-off-white); /* Give it a slightly different background */
}
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.about-stats {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: space-around;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
    position: relative;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-medium);
}

.expertise-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    max-width: var(--container-width);
    margin: var(--spacing-lg) auto 0;
    padding: 0 var(--container-padding);
}

.expertise-card {
    background-color: var(--bg-light); /* Changed from off-white for contrast with section bg */
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    text-align: center;
}

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

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
}

.card-icon .material-symbols-outlined {
    font-size: 40px;
    color: var(--text-light);
}

/* Why On-device Section */
.why-on-device {
    background-color: var(--primary-dark);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.benefit-card {
    background-color: rgba(var(--bg-light-rgb), 0.05); /* Adjusted for better contrast with dark bg */
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    transition: transform var(--transition-normal), background-color var(--transition-normal);
    text-align: center;
    border: 1px solid rgba(var(--bg-light-rgb), 0.1); /* Subtle border */
}

.benefit-card:hover {
    transform: translateY(-10px);
    background-color: rgba(var(--bg-light-rgb), 0.1);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(var(--bg-light-rgb), 0.1); /* Adjusted */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
}

.benefit-icon .material-symbols-outlined {
    font-size: 30px;
    color: var(--text-light);
}

.benefit-card h3 {
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

.benefit-card p {
    color: rgba(var(--text-light-rgb, 255, 255, 255), 0.85); /* Slightly less bright for readability */
    margin-bottom: 0;
    font-size: 0.9rem;
}



/* Products Section - Redesign */
.products {
    background-color: var(--bg-light); /* Or a very light grey like #f9fafb if desired */
}

.products-showcase {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Featured Product Card Styling */
.product-card.featured {
    display: flex;
    flex-direction: column; /* Mobile first: image on top */
    background-color: var(--bg-off-white); /* Or var(--bg-light) if you prefer pure white */
    border-radius: var(--radius-xl); /* More pronounced rounding like reference */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Softer, more spread shadow */
    margin-bottom: var(--spacing-lg);
    overflow: hidden; /* Clip child elements like image */
}

.product-card.featured .featured-image-container { /* Replaces .product-image for featured */
    width: 100%;
    /* max-height: 400px; /* Control max height on mobile if needed */
    overflow: hidden;
    position: relative; /* For potential overlays or aspect ratio control */
}
.product-card.featured .featured-image-container img {
    width: 100%;
    height: 100%; /* Ensure image fills container for carousel */
    display: block;
    object-fit: cover; /* Ensures image covers the area, might crop */
}

.product-card.featured .featured-content-container { /* Replaces .product-content for featured */
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
}

.featured-title-icon {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Space between icon and title */
    margin-bottom: var(--spacing-sm);
}

.product-title-app-icon {
    width: 32px;  /* Adjust size as needed */
    height: 32px; /* Adjust size as needed */
    object-fit: contain; /* If using img tag for icon */
}

.product-card.featured h3 {
    font-size: clamp(1.5rem, 3vw, 2rem); /* Responsive title for featured product */
    color: var(--text-dark);
    font-weight: 700; /* Bolder than normal h3 if desired */
    margin-bottom: 0; /* Handled by gap in .featured-title-icon */
}

.product-card.featured .product-description {
    font-size: 1rem; /* Slightly larger description */
    color: var(--text-medium);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.product-card.featured .tags-container {
    margin-bottom: var(--spacing-md);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}
.product-card.featured .feature-tag { /* Style for featured tags if different */
    background-color: rgba(var(--primary-rgb), 0.1); /* Using RGB for opacity */
    color: var(--primary-dark);
    font-weight: 500; /* Slightly less bold than product grid tags */
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
}

.features-heading { /* For "Key Features Include:" or "Includes:" */
    font-weight: 600; /* Semibold */
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-top: var(--spacing-xs);
    margin-bottom: 0.5rem;
}

.product-features-list { /* For the UL */
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
}
.product-features-list li {
    margin-bottom: 0.4rem;
}

.product-card.featured .btn-primary {
    padding: 0.8rem 2rem; /* Larger button for featured */
    font-size: 1rem;
}


/* Product Grid Cards Styling (Redesign) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.product-card { /* General card style, now also applies to grid items */
    background-color: var(--bg-off-white);
    border-radius: var(--radius-lg); /* Consistent rounding for all cards */
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.07); /* Slightly softer shadow for grid cards */
    display: flex;
    flex-direction: column;
    height: 100%; /* Important for equal height in grid rows */
    transition: all 0.3s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.product-image-top {
    width: 100%;
    overflow: hidden; /* Ensure image respects card rounding if not rounded itself */
    background-color: #e9ecef; /* Placeholder background */
}

.product-image-top img {
    width: 100%;
    height: 100%; /* Make image fill container height (for carousel) */
    display: block;
    object-fit: cover; /* Fills the width, crops height if necessary */
    /* border-top-left-radius: var(--radius-lg); REMOVED - handled by carousel container */
    /* border-top-right-radius: var(--radius-lg); REMOVED */
}

.product-card .product-content { /* Content area for grid cards */
    padding: var(--spacing-sm);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card .product-content h3 {
    font-size: 1.2rem; /* Title size for grid cards */
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.product-card .product-description {
    font-size: 0.85rem;
    margin-bottom: var(--spacing-sm);
    flex-grow: 1; /* Allow description to push features/button down if short */
    min-height: 3.5em; /* Help align content start if descriptions vary a lot */
}

.product-card .tags-container {
    margin-bottom: var(--spacing-sm);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}
.product-card .feature-tag {
    background-color: #e7eaf3; /* Lighter, less saturated blue like reference */
    color: #3b5edd; /* Darker blue text for contrast */
    font-weight: 600; /* Bolder for tags */
    font-size: 0.65rem;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
}

.product-card .features-heading {
    font-size: 0.8rem;
}
.product-card .product-features-list {
    font-size: 0.85rem;
    margin-bottom: var(--spacing-sm);
    flex-grow: 1; /* Allow list to take space */
}
.product-card .product-features-list li {
    margin-bottom: 0.25rem;
}


.product-card .btn.btn-outline-sm { /* Button in grid cards */
    width: 100%;
    margin-top: auto; /* Push to bottom */
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: var(--radius-md); /* Match reference */
    border-width: 1.5px; /* Slightly bolder border */
}


/* Carousel specific styles */
.product-carousel { /* Generic class for all carousels */
    position: relative;
    overflow: hidden;
}

/* Featured product carousel image container already styled as .featured-image-container */
/* Grid product carousel image container */
.product-card .product-image-top.product-carousel {
    /* height: 200px; /* Set a fixed height for the carousel area */
    min-height: 180px; /* Ensure a minimum height */
    max-height: 220px; /* And a maximum height */
    border-top-left-radius: var(--radius-lg); /* Match card rounding */
    border-top-right-radius: var(--radius-lg);
    margin-bottom: 0; /* Remove bottom margin if content follows directly */
}

.product-carousel .carousel-track-container {
    width: 100%;
    height: 100%; /* Make it fill the .product-carousel */
    overflow: hidden;
    /* Ensure child also respects rounding if parent is rounded (e.g. for grid top images) */
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.product-carousel .carousel-track {
    display: flex;
    height: 100%; /* Track should also fill the height */
    transition: transform 0.5s ease-in-out; /* Slide animation */
}

.product-carousel .carousel-slide {
    min-width: 100%; /* Each slide takes full width of the container */
    height: 100%;   /* Each slide takes full height */
    box-sizing: border-box;
}

/* Image behavior is handled by parent containers and object-fit on img */

/* Carousel Navigation Buttons */
.product-carousel .carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Hidden by default, show on hover */
    transition: opacity 0.3s ease, background-color 0.3s ease;
}
.product-carousel:hover .carousel-button {
    opacity: 0.8;
}
.product-carousel .carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 1;
}
.product-carousel .carousel-button.prev {
    left: 10px;
}
.product-carousel .carousel-button.next {
    right: 10px;
}
.product-carousel .carousel-button .material-symbols-outlined {
    font-size: 20px;
}

/* Carousel Dots */
.product-carousel .carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.product-carousel .carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.product-carousel .carousel-dot.active {
    background-color: white;
    border-color: rgba(0,0,0,0.4);
}



/* Image Peek Modal Styles */
.image-peek-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    padding-top: 50px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.85); /* Black w/ opacity */
    -webkit-backdrop-filter: blur(5px); /* Optional: blur background */
    backdrop-filter: blur(5px);
}

.peek-modal-content {
    margin: auto;
    display: block;
    width: auto; /* Auto width */
    max-width: 90%; /* Max width of the image */
    height: auto; /* Auto height */
    max-height: 80vh; /* Max height of the image, leaving space for close button and caption */
    object-fit: contain; /* Ensure the whole image is visible */
    border-radius: var(--radius-md); /* Optional: rounded corners for the image itself */
}

#peekModalCaption {
    margin: 15px auto 30px auto; /* Add some bottom margin */
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 0.9rem;
}

/* Close Button */
.peek-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    line-height: 1;
}

.peek-modal-close:hover,
.peek-modal-close:focus {
    color: #bbb;
    text-decoration: none;
}

/* Add Animation (Optional) */
.peek-modal-content, #peekModalCaption {
    animation-name: zoomInModal;
    animation-duration: 0.4s;
}

@keyframes zoomInModal {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}


/* Use Cases Section */
.use-cases {
    background-color: var(--primary-dark);
    color: var(--text-light);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.use-case-card {
    background-color: rgba(var(--bg-light-rgb), 0.05); /* Adjusted */
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    transition: transform var(--transition-normal), background-color var(--transition-normal);
    text-align: center;
    border: 1px solid rgba(var(--bg-light-rgb), 0.1);
    display: flex; /* Added for vertical alignment */
    flex-direction: column; /* Added */
}

.use-case-card:hover {
    transform: translateY(-10px);
    background-color: rgba(var(--bg-light-rgb), 0.1);
}

.use-case-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(var(--bg-light-rgb), 0.1); /* Adjusted */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.use-case-icon .material-symbols-outlined {
    font-size: 30px;
    color: var(--text-light);
}

.use-case-card h3 {
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
    font-size: 1.15rem; /* Slightly adjust for balance */
}

.use-case-card p {
    color: rgba(var(--text-light-rgb), 0.85);
    margin-bottom: 0;
    font-size: 0.9rem;
    flex-grow: 1; /* Allow p to take up space for alignment */
}

/* Impact Section - Assuming this was previously hidden or part of another section */
/* If you have a dedicated impact section, style it here. Example: */
/*
.impact {
    background-color: var(--bg-light);
}
.impact-content { ... }
*/


/* Testimonials Section */
.testimonials {
    background-color: var(--primary-dark); /* Reverting to primary-dark if preferred */
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.testimonial-slider {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    overflow: hidden; /* This hides non-active slides */
}

.testimonial-track {
    display: flex;
    transition: transform var(--transition-slow);
    margin-bottom: var(--spacing-md);
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 var(--spacing-sm); /* Some horizontal padding for content within slide */
    box-sizing: border-box;
    opacity: 0.5; /* Non-active slides are faded */
    transform: scale(0.95); /* Non-active slides are smaller */
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.testimonial-slide.active-slide { /* JS will add this class to the current slide */
    opacity: 1;
    transform: scale(1);
}


.testimonial-card {
    background-color: rgba(var(--bg-light-rgb), 0.05); /* Adjusted */
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    height: 100%; /* Ensure cards in track have same height if content varies */
    border: 1px solid rgba(var(--bg-light-rgb), 0.1);
}

.testimonial-content {
    position: relative;
}

.quote-icon {
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 0;
    color: rgba(var(--bg-light-rgb), 0.1); /* Adjusted */
    position: absolute;
    top: -20px;
    left: -10px;
}

.testimonial-content p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.author-info h3 {
    color: var(--text-light);
    margin: 0;
    font-size: 1rem;
}

.author-info p {
    color: rgba(var(--text-light-rgb), 0.85);
    margin: 0;
    font-size: 0.875rem;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.testimonial-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(var(--bg-light-rgb), 0.1); /* Adjusted */
    border: none;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-normal);
}

.testimonial-btn:hover {
    background-color: rgba(var(--bg-light-rgb), 0.2);
}

.testimonial-dots {
    display: flex;
    gap: 8px;
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background-color var(--transition-normal), transform var(--transition-normal);
    border: none;
    padding: 0;
}

.testimonial-dot.active {
    background-color: var(--text-light);
    transform: scale(1.2);
}

/* Team Section */
/* If #team section is meant to be shown, remove display:none or control via JS */
.team {
    background-color: var(--bg-off-white); /* Consistent with about section */
    /* display: none; /* Remove if section is active */
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.team-member {
    background-color: var(--bg-light); /* Cards on off-white bg */
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    text-align: center; /* Center content */
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.member-photo {
    position: relative;
    overflow: hidden;
    /* Consider an aspect ratio for consistency if images vary */
    /* aspect-ratio: 1 / 1; or 3 / 4; */
}

.member-photo img {
    width: 100%;
    /* height: 100%; /* If using aspect-ratio on parent */
    /* object-fit: cover; /* If using aspect-ratio on parent */
    display: block; /* Removes bottom space */
    transition: transform var(--transition-normal);
}

.team-member:hover .member-photo img {
    transform: scale(1.05);
}

.member-social {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.team-member:hover .member-social {
    opacity: 1;
    transform: translateY(0);
}

.social-link { /* Assuming this is for team member social links */
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light); /* Icon color */
    transition: background-color var(--transition-normal);
}
.social-link svg { /* If using SVGs */
    width: 18px;
    height: 18px;
    fill: currentColor;
}


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

.member-info {
    padding: var(--spacing-md);
}
.member-info h3 { /* Name */
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.member-title { /* Role/Title */
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    display: block; /* Ensure it takes its own line */
}

.member-bio {
    font-size: 0.875rem;
    color: var(--text-medium);
    margin-bottom: 0;
    line-height: 1.5;
}

.team-cta {
    text-align: center;
    margin-top: var(--spacing-md);
}

/* Developers Section */
.developers {
    background-color: var(--primary-dark);
    color: var(--text-light);
}

.developers-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.dev-info {
    flex: 1;
    min-width: 300px;
}

.dev-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.dev-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.dev-feature {
    flex: 1 1 200px;
    text-align: center;
    padding: var(--spacing-sm);
    background-color: rgba(var(--bg-light-rgb), 0.05); /* Adjusted */
    border-radius: var(--radius-md);
    border: 1px solid rgba(var(--bg-light-rgb), 0.1);
}

.dev-feature .material-symbols-outlined {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

.dev-feature h3 {
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
    font-size: 1.125rem;
}

.dev-feature p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    font-size: 0.875rem;
}

.dev-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.dev-cta .btn-primary { /* Primary button on dark bg */
    background: var(--primary); /* Lighter primary for better contrast */
    color: var(--text-light);
}
.dev-cta .btn-primary:hover {
    background: var(--primary-light);
}


.dev-cta .btn-secondary { /* Secondary button on dark bg */
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dev-cta .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: var(--text-light);
}


.code-preview {
    flex: 1.2; /* Give slightly more space to code preview if desired */
    background-color: #1e1e1e; /* Common dark theme editor color */
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 100%;
    display: flex; /* Added for better internal structure */
    flex-direction: column; /* Added */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);

}

.code-header {
    display: flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: #333333; /* Darker header for code block */
    border-bottom: 1px solid #444;
}

.code-dots {
    display: flex;
    gap: 6px;
    margin-right: var(--spacing-sm);
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dots span:nth-child(1) {
    background-color: #ff5f56;
}

.code-dots span:nth-child(2) {
    background-color: #ffbd2e;
}

.code-dots span:nth-child(3) {
    background-color: #27c93f;
}

.code-title {
    font-size: 0.875rem;
    color: #ccc; /* Lighter text for title */
    font-family: var(--font-body);
}

pre {
    margin: 0;
    padding: var(--spacing-md);
    overflow-x: auto;
    flex-grow: 1; /* Allow pre to fill available space */
    background-color: #1e1e1e; /* Ensure pre itself has the dark bg */
}

code {
    font-family: "Fira Code", "Space Mono", monospace; /* Fira Code is good for code */
    font-size: 0.875rem;
    color: #d4d4d4; /* Common light text color for dark themes */
    line-height: 1.6;
    white-space: pre; /* Preserve whitespace correctly */
}
/* Basic syntax highlighting (conceptual - for full use a library) */
code .token.comment { color: #6a9955; }
code .token.keyword { color: #569cd6; }
code .token.string { color: #ce9178; }
code .token.function { color: #dcdcaa; }
code .token.operator { color: #d4d4d4; }
code .token.punctuation  { color: #d4d4d4; }
code .token.number  { color: #b5cea8; }


/* Contact Section */
.contact {
    background-color: var(--bg-light);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.contact-item .material-symbols-outlined {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 0.2rem;
}

.contact-item h3 {
    margin: 0 0 var(--spacing-xs) 0;
    font-size: 1.125rem;
}

.contact-item p {
    margin: 0;
    color: var(--text-medium);
}

.social-links { /* For contact section */
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}
.social-links .social-link svg { /* Assuming SVGs are used here too */
    width: 24px;
    height: 24px;
    fill: var(--text-medium);
    transition: fill var(--transition-fast);
}
.social-links .social-link:hover svg {
    fill: var(--primary);
}


.contact-form {
    flex: 1.5; /* Give form slightly more space if desired */
    min-width: 300px;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.85rem 1rem; /* Slightly more padding */
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
    background-color: var(--bg-light); /* Ensure bg color */
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}
textarea {
    min-height: 120px; /* Good default height */
    resize: vertical; /* Allow vertical resize */
}


/* Newsletter */
.newsletter {
    background-color: var(--primary-light);
    padding: var(--spacing-lg) 0;
}

.newsletter-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    text-align: center;
    color: var(--text-light);
}

.newsletter-content h2 {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: var(--spacing-xs);
}

.newsletter-form input {
    flex: 1;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.75rem 1.5rem;
}
.newsletter-form .btn-primary { /* Style for subscribe button if needed */
    background-color: var(--primary-dark); /* Darker button on light bg */
}
.newsletter-form .btn-primary:hover {
    background-color: var(--accent); /* Example hover */
}


/* Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-lg) 0 0;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.footer-logo .logo-text {
    color: var(--text-light);
    font-size: 1.8rem; /* Slightly larger footer logo */
}
.footer-logo .logo-dot {
    background-color: var(--primary-light); /* Brighter dot for footer */
}


.footer-tagline {
    font-size: 0.9rem; /* Slightly larger */
    color: rgba(255, 255, 255, 0.7); /* Brighter */
    margin-bottom: var(--spacing-lg); /* More space */
    line-height: 1.6;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 600; /* Bolder footer headings */
}

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

.footer-column ul li {
    margin-bottom: 0.6rem; /* More space between links */
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-normal);
    font-size: 0.9rem;
}

.footer-column ul li a:hover {
    color: var(--primary-light); /* Brighter hover */
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--container-padding);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.language-selector select {
    background-color: rgba(255,255,255,0.05); /* Subtle background */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Softer border */
    color: rgba(255, 255, 255, 0.7); /* Brighter text */
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.875rem;
}
.language-selector select option {
    background-color: var(--bg-dark); /* Ensure dropdown options are themed */
    color: var(--text-light);
}


.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(5px); /* Added */
    backdrop-filter: blur(5px);      /* Added */
    z-index: 2000;
    overflow-y: auto;
    padding: var(--spacing-sm);
    opacity: 0; /* Added for transition */
    visibility: hidden; /* Added for transition */
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Added for transition */
}
.modal.active { /* JS should add this class */
    opacity: 1;
    visibility: visible;
}


.modal-content {
    background-color: var(--bg-light);
    margin: 5% auto;
    padding: var(--spacing-md);
    width: 90%;
    max-width: 1000px;
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow: var(--shadow-xl); /* Added shadow */
    transform: scale(0.95); /* Added for transition */
    transition: transform 0.3s ease; /* Added for transition */
}
.modal.active .modal-content {
    transform: scale(1);
}


.close-modal {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    font-size: 2rem;
    color: var(--text-medium);
    cursor: pointer;
    transition: color var(--transition-normal), transform var(--transition-normal);
    background: none;
    border: none;
    padding: 0.5rem;
    line-height: 1;
    z-index: 10; /* Ensure it's above content */
}

.close-modal:hover {
    color: var(--text-dark);
    transform: rotate(90deg);
}
.close-modal::before { /* Using pseudo-element for X */
    content: '\00D7'; /* Multiplication sign for X */
    font-weight: bold;
}


.modal-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

/* ------------------------- */
/* RESPONSIVE DESIGN SECTION */
/* ------------------------- */

@media (max-width: 1200px) {
    /* Adjustments for slightly smaller desktops / larger tablets */
    .hero-animation {
        right: 5%;
    }

    .floating-card {
        width: 180px;
        padding: var(--spacing-sm);
    }

    .floating-card:nth-child(2) {
        margin-left: var(--spacing-md);
    }
    .floating-card:nth-child(3) {
        margin-left: calc(var(--spacing-md) * 1.5);
    }
}


@media (max-width: 992px) {
    /* Tablet and Large Mobile */
    :root {
        --spacing-md: 1.75rem;
        --spacing-lg: 3.5rem;
        --spacing-xl: 7rem;
        --container-padding: 1.5rem;
    }

    h1 { font-size: clamp(2.25rem, 5vw + 0.8rem, 3.5rem); }
    h2 { font-size: clamp(1.75rem, 4vw + 0.8rem, 2.5rem); }

    /* --- Header and Navigation --- */
    nav.main-nav ul { display: none; }
    .mobile-menu-toggle { display: flex; }
    .mobile-menu { display: block; } /* Allow JS to control visibility via .active */

    .hero-animation {
        position: static;
        transform: none;
        margin-top: var(--spacing-lg);
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-sm);
        width: 100%;
    }
    .floating-card {
        width: clamp(180px, 45%, 220px); /* Adjust to allow 2 cards per row more easily */
        margin-left: 0 !important;
        margin-bottom: var(--spacing-sm);
    }

    /* --- Product Grid & YouTube Video Grid --- */
    .product-grid, .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    .product-card.featured {
        flex-direction: column; /* Stack featured product */
    }
    .product-card.featured .featured-image-container {
        flex: 1 1 auto;
        max-height: 350px;
    }
    .product-card.featured .featured-content-container {
        padding: var(--spacing-md);
    }


    .expertise-cards,
    .benefits-container,
    .use-cases-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .dev-features { gap: var(--spacing-md); }
    .dev-feature { flex-basis: calc(50% - var(--spacing-md)/2); }

    .footer-columns { gap: var(--spacing-md); }
    .footer-column { min-width: calc(50% - var(--spacing-md)/2); }

    /* --- Mobobi AI Showcase (Tabs Section) --- */
    .showcase-container {
        flex-direction: column;
        padding: var(--spacing-md);
    }
    .showcase-tabs {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap; /* Changed from auto for better tab display */
        overflow-x: visible; /* Allow wrapping */
        padding-right: 0;
        border-right: none;
        margin-bottom: var(--spacing-md);
        gap: 0.5rem; /* Add gap between tab buttons */
    }
    .tab-button {
        width: auto;
        flex-grow: 1; /* Allow buttons to grow and share space */
        flex-basis: auto; /* Let content decide initial size */
        text-align: center;
        font-size: 0.85rem; /* Slightly smaller for more tabs to fit */
        padding: 0.6rem 0.8rem;
    }
    .tab-content {
        flex-direction: column;
    }
    .tab-content .content-text { padding-right: 0; }
    .tab-content .content-demo {
        min-width: 100%;
        max-width: 100%;
        padding: var(--spacing-sm);
    }
}


/* Styles for screens 768px and below (Typical Mobile Devices) */
@media (max-width: 768px) {
    html {
        scroll-padding-top: var(--header-height-mobile);
    }

    :root {
        --container-padding: 1rem;
        --spacing-sm: 0.75rem;
        --spacing-md: 1.25rem;
        --spacing-lg: 2.5rem;
        --spacing-xl: 4rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.2rem; }

    header {
        padding: 0.5rem var(--container-padding);
        height: var(--header-height-mobile);
        /* Ensure background is applied for mobile menu consistency */
        background-color: rgba(var(--bg-light-rgb), 0.95);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        box-shadow: var(--shadow-sm);
    }
    .navbar { width: 100%; }
    .logo-text { font-size: 1.35rem; }

    .mobile-menu ul li a {
        font-size: 1.75rem;
        padding: 0.75rem 1.5rem;
    }

    section { padding: var(--spacing-lg) 0; }
    .section-header { margin: 0 auto var(--spacing-md); }

    .hero {
        min-height: calc(100vh - var(--header-height-mobile));
        padding-top: var(--header-height-mobile);
        padding-bottom: var(--spacing-md);
    }
    .hero-content { padding: 0 var(--spacing-sm); }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
    .hero-cta .btn {
        width: 80%;
        max-width: 300px;
        text-align: center;
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    .hero-animation {
        /* If hero cards should be visible on mobile, remove display:none */
        display: flex; /* Or its original display type if not flex */
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
        margin-top: var(--spacing-md); /* Add some space if stacked under hero content */
    }
    .floating-card {
        width: 90%;
        max-width: 280px;
        padding: var(--spacing-sm);
    }
    .floating-card span:last-child { font-size: 0.9rem; }

    .scroll-indicator { display: none; }

    .about-content,
    .impact-content,
    .developers-content,
    .contact-container {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    .about-text p { font-size: 0.95rem; }
    .stat-number { font-size: 2.25rem; }
    .stat-label { font-size: 0.85rem; }

    .expertise-cards,
    .benefits-container,
    .use-cases-grid,
    .product-grid,
    .video-grid { /* Consolidate single column grid for mobile */
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .expertise-card,
    .benefit-card,
    .use-case-card {
        padding: var(--spacing-md);
    }
    .card-icon { width: 50px; height: 50px; }
    .card-icon .material-symbols-outlined { font-size: 24px; }

    .product-card.featured .featured-image-container { max-height: 250px; }
    .product-content, .product-card .product-content { padding: var(--spacing-md); }
    .product-card p.product-description {
        min-height: auto;
        font-size: 0.85rem;
    }
    .feature-tag {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
    .product-card .product-features-list { font-size: 0.8rem; }


    blockquote {
        font-size: 1rem;
        padding-left: var(--spacing-sm);
    }
    .testimonial-slide { padding: 0; }
    .testimonial-card { padding: var(--spacing-sm); }
    .testimonial-content p { font-size: 0.9rem; }
    .author-image { width: 40px; height: 40px; }

    .dev-info p { font-size: 1rem; }
    .dev-features {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    .dev-feature { flex-basis: auto; }
    .code-preview { margin-top: var(--spacing-md); }
    pre { padding: var(--spacing-sm); }
    code { font-size: 0.75rem; }

    .form-group { margin-bottom: var(--spacing-sm); }
    input[type="text"], input[type="email"], textarea {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .newsletter { padding: var(--spacing-md) 0; }
    .newsletter-content p { font-size: 0.9rem; }
    .newsletter-form {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }

    .footer-columns {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    .footer-column { min-width: 100%; }
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
        padding: var(--spacing-md) var(--container-padding);
    }

    .modal-content {
        width: 95%;
        margin: 15% auto;
        padding: var(--spacing-md);
    }
    .modal-team-grid { grid-template-columns: 1fr; }

    /* YouTube specific for mobile */
    .channel-title {
        font-size: 1.7rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
        margin-bottom: var(--spacing-md);
    }
    .channel-title .material-symbols-outlined { font-size: 2rem; margin-bottom: 0.2rem;}
    .video-category-title { font-size: 1.35rem; margin-top: var(--spacing-md); }
    .video-thumbnail-link { height: 190px; }
    .video-thumbnail-link .play-icon { font-size: 3.2rem; opacity: 0.9; background-color: rgba(var(--primary-rgb), 0.7); }
    h5.video-title { font-size: 0.95rem; min-height: calc(1.4em * 2); }
    p.video-meta { font-size: 0.8rem; }
    .video-info { padding: var(--spacing-sm); }
}


@media (max-width: 480px) { /* Smaller Mobile */
    .video-grid { gap: var(--spacing-sm); } /* Already 1fr */
    .video-thumbnail-link { height: 160px; }
    h5.video-title { font-size: 0.85rem; }
    .video-duration { font-size: 0.7rem; padding: 2px 5px; }
    .video-thumbnail-link .play-icon { font-size: 2.8rem; }
}


/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 1s ease forwards; }

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.pulse { animation: pulse 2s infinite; }


/* Mobobi AI Showcase Section */
.mobobi-ai-showcase {
    background-color: var(--bg-off-white);
    padding: var(--spacing-lg) 0;
}

.mobobi-ai-showcase .section-header .subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0.5rem auto var(--spacing-md);
}

.showcase-container {
    display: flex;
    /* flex-direction: column; /* Default: Stack tabs above content on mobile/tablet */
    gap: var(--spacing-md);
    background-color: var(--bg-light);
    padding: var(--spacing-md); /* Reduced for smaller screens, adjusted by 992px breakpoint */
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    max-width: 1100px;
    margin: 0 auto;
}

.showcase-tabs {
    display: flex;
    flex-direction: column; /* Default: Stack tab buttons vertically */
    gap: 0.5rem;
    flex-shrink: 0;
    padding-right: 0;
    border-right: none;
    margin-bottom: var(--spacing-md); /* Space below tabs on mobile/tablet */
}

.tab-button {
    background-color: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-medium);
    padding: 0.75rem 1rem;
    text-align: left;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    width: 100%; /* Full width for mobile/stacked layout */
}

.tab-button:hover {
    background-color: rgba(var(--primary-rgb), 0.05);
    color: var(--primary);
    border-color: var(--primary-light);
}

.tab-button.active {
    background-color: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

.showcase-content {
    flex-grow: 1;
    min-height: 400px;
}

.tab-content {
    display: none;
    flex-direction: column; /* Default: Stack text and demo on mobile/tablet */
    gap: var(--spacing-md);
    animation: fadeIn 0.5s ease;
}

.tab-content.active { display: flex; }

.tab-content .content-text {
    flex: 1;
    padding-right: 0; /* No padding needed if stacked */
}

.tab-content .content-text h3 {
    font-size: 1.75rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.tab-content .content-text p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.tab-content .content-text .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}


.tab-content .content-demo {
    flex: 1;
    background-color: var(--bg-off-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 100%; /* Default for stacked layout */
}

.content-demo select,
.content-demo textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
}
.content-demo textarea { min-height: 100px; resize: vertical; }
.content-demo .demo-action {
    text-align: center;
    padding: var(--spacing-md) 0;
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color var(--transition-fast);
}
.content-demo .demo-action:hover { border-color: var(--primary-light); }
.content-demo .mic-icon,
.content-demo .upload-icon,
.content-demo .material-symbols-outlined.graphic_eq {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.content-demo .demo-action p { font-size: 0.9rem; color: var(--text-medium); margin-bottom: 0; }
.content-demo .file-drop-area { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.content-demo .file-drop-area .btn { font-size: 0.8rem; }

.content-demo .tts-controls { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.85rem; }
.content-demo .tts-controls input[type="range"] { flex-grow: 1; }
.content-demo .btn.full-width { width: 100%; }

.content-demo .translate-row { display: flex; align-items: center; gap: 0.5rem; }
.content-demo .translate-row select { flex-grow: 1;}

.content-demo .rhino-style-demo {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 1rem; border: 1px solid var(--border-light); border-radius: var(--radius-md);
}
.content-demo .rhino-style-demo .device-icon { font-size: 4rem; color: var(--text-medium); margin-bottom: 0.5rem; }
.content-demo .rhino-style-demo .large-mic {
    font-size: 3rem; color: var(--primary); background-color: var(--primary-light);
    border-radius: 50%; padding: 0.75rem; color: white; margin-bottom: 0.5rem; cursor: pointer;
}
.content-demo .rhino-context { font-size: 0.85rem; color: var(--text-medium); }
.content-demo .rhino-context ul { list-style: none; padding: 0;}
.content-demo .rhino-context li { margin-bottom: 0.25rem;}

.content-demo .speaker-output-placeholder,
.content-demo .dubbing-options-placeholder {
    background-color: var(--bg-light); padding: var(--spacing-sm); border-radius: var(--radius-sm);
    font-size: 0.85rem; color: var(--text-medium); border: 1px solid var(--border-light);
}
.content-demo .speaker-output-placeholder p { margin-bottom: 0.3rem; font-size: 0.9em; }
.noise-cancellation-demo img { display: block; margin-left: auto; margin-right: auto; }


/* Desktop and larger screens layout for AI showcase */
@media (min-width: 993px) { /* Changed from 769px to 993px */
    .mobobi-ai-showcase .showcase-container {
        flex-direction: row; /* Side-by-side layout */
        padding: var(--spacing-lg); /* More padding for desktop */
    }
    .mobobi-ai-showcase .showcase-tabs {
        width: 220px; /* Fixed width for tab column */
        flex-direction: column; /* Stack tab buttons vertically */
        flex-wrap: nowrap;
        overflow-x: visible;
        margin-bottom: 0;
        padding-right: var(--spacing-md);
        border-right: 1px solid var(--border-light);
        gap: 0.5rem;
    }
    .mobobi-ai-showcase .tab-button {
        width: 100%; /* Full width within their column */
        text-align: left;
        font-size: 0.9rem; /* Restore original font size */
        padding: 0.75rem 1rem; /* Restore original padding */
    }
    .mobobi-ai-showcase .tab-content {
        flex-direction: row; /* Side-by-side text and demo */
    }
    .mobobi-ai-showcase .tab-content .content-text {
        padding-right: var(--spacing-md);
    }
    .mobobi-ai-showcase .tab-content .content-demo {
        min-width: 350px;
        max-width: 450px;
        padding: var(--spacing-md); /* Restore desktop padding */
    }
}


/* YouTube Showcase Section - Enhanced Design */
.youtube-showcase {
    background-color: var(--bg-light);
    padding: var(--spacing-lg) 0 var(--spacing-xl) 0;
}

.youtube-showcase .section-header .section-intro {
    font-size: 1.05rem;
    color: var(--text-medium);
    max-width: 750px;
    margin: 1rem auto var(--spacing-lg);
    line-height: 1.75;
}

.channel-showcase-section {
    margin-bottom: var(--spacing-xl);
}

.channel-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.channel-title .material-symbols-outlined {
    color: #FF0000;
    font-size: clamp(2rem, 5vw, 2.5rem);
    background-color: rgba(255,0,0,0.05);
    padding: 0.3rem;
    border-radius: 50%;
}

.video-category-title {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    color: var(--primary-dark);
    font-weight: 600;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--primary-light);
    display: inline-block;
}
.channel-showcase-section > .video-category-title:first-of-type {
    margin-top: 0;
}


.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.video-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(var(--text-dark-rgb), 0.06),
                0 1px 3px rgba(var(--text-dark-rgb), 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(0.25, 0.1, 0.25, 1),
                box-shadow 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
    border: 1px solid var(--border-light);
}

.video-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 8px 20px rgba(var(--text-dark-rgb), 0.08),
                0 4px 8px rgba(var(--text-dark-rgb), 0.06);
}
.video-card.placeholder {
    background: transparent;
    box-shadow: none;
    border: 1px dashed var(--border-light);
    min-height: 280px;
}

.video-thumbnail-link {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background-color: #2c2c2c;
    border-bottom: 1px solid var(--border-light);
}

.video-thumbnail-link img.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}


.video-thumbnail-link:hover .video-thumbnail {
    transform: scale(1.08);
}

.video-thumbnail-link .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.95);
    background-color: rgba(var(--primary-rgb), 0.6);
    border-radius: 50%;
    padding: 0.3em;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
    opacity: 0;
    will-change: transform, opacity;
}
.video-thumbnail-link:hover .play-icon {
    transform: translate(-50%, -50%) scale(1);
    background-color: rgba(var(--primary-rgb), 0.9);
    opacity: 1;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(20, 20, 20, 0.8);
    color: white;
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.video-info {
    padding: var(--spacing-md) var(--spacing-sm);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

h5.video-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.45em * 2);
}
h5.video-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
h5.video-title a:hover {
    color: var(--primary-dark);
}

p.video-meta {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-top: auto;
    padding-top: var(--spacing-xs);
    line-height: 1.5;
}
.star-badge {
    color: #f39c12;
    font-weight: 600;
    margin-left: 0.4em;
}
.star-badge .material-symbols-outlined {
    font-size: 1em;
    vertical-align: text-bottom;
}

.section-notes {
    margin-top: var(--spacing-xl);
    background-color: #fdfdfd;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid #e9ecef;
    font-size: 0.85rem;
    color: var(--text-medium);
}
.section-notes h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}
.section-notes h5 {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}
.section-notes ul,
.section-notes ol.insights-list {
    list-style-position: inside;
    padding-left: 0;
    margin: 0 0 var(--spacing-sm) 0;
}
.section-notes ol.insights-list li {
    margin-bottom: 0.3rem;
    line-height: 1.6;
}
.section-notes p.insights-text {
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

/* Featured product desktop layout */
@media (min-width: 993px) { /* Changed from 769px */
    .product-card.featured {
        flex-direction: row;
        align-items: center;
    }
    .product-card.featured .featured-image-container {
        flex: 0 0 45%;
        max-height: 450px;
    }
    .product-card.featured .featured-content-container {
        flex: 1;
        padding: var(--spacing-lg);
    }
    .product-card.featured .btn-primary {
        width: auto;
    }
}