/* SchoolEducare - Enterprise SaaS Design System */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand Colors - Sophisticated Palette */
    --primary: #00A651;
    /* Logo Green */
    --primary-light: #00C862;
    --primary-glow: rgba(0, 166, 81, 0.1);

    --secondary: #153C66;
    /* Deep Branded Blue */
    --secondary-light: #1e4b7a;
    --secondary-tint: #f0f4f8;
    /* Light Blue Section */
    --primary-tint: #f0fdf4;
    /* Light Green Section */

    --accent: #00A651;

    /* Professional Neutrals */
    --bg-dark: #ffffff;
    --bg-card: #ffffff;
    --text-main: #153C66;
    --text-muted: #64748b;
    --glass-border: #e2e8f0;
    --brand-border: rgba(0, 166, 81, 0.15);

    /* Refined Bulky Spacing & Radii */
    --container-max: 1200px;
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 40px;

    --section-pad: 7rem;
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 2000;
    background: transparent;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: width 0.1s ease-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #ffffff;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.7;
    letter-spacing: -0.01em;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

h1,
h2,
h3,
h4 {
    letter-spacing: -0.03em;
    line-height: 1.2;
}

/* Background Elements */
.bg-mesh {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(at 10% 10%, rgba(0, 166, 81, 0.08) 0, transparent 40%),
        radial-gradient(at 90% 10%, rgba(1, 10, 20, 0.05) 0, transparent 40%),
        radial-gradient(at 50% 50%, rgba(0, 166, 81, 0.03) 0, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.bg-blob {}

/* Typography */
h1 {
    font-size: clamp(3rem, 6vw, 4.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 400;
}

span {
    display: inline-block;
}

main.sub-page-main {
    padding-top: 12rem;
    padding-bottom: 8rem;
}

@media (max-width: 768px) {
    main.sub-page-main {
        padding-top: 8rem !important;
        padding-bottom: 4rem !important;
    }
}

/* Buttons */
.btn {
    padding: 1.2rem 2.5rem;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 15px 35px -10px rgba(0, 166, 81, 0.5);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(0, 166, 81, 0.6);
}

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

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

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 0;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.8rem 0;
    box-shadow: 0 15px 40px rgba(21, 60, 102, 0.08);

    border-bottom: 1px solid rgba(0, 166, 81, 0.1);
}

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

.logo img {
    display: block;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

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

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
}

.nav-cta {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
}

@media (max-width: 992px) {
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);

        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    /* Prevent body scroll when menu is active */
    body.menu-active {
        overflow: hidden;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-cta {
        display: none;
    }

    .nav-links .nav-cta-mobile {
        display: block !important;
        margin-top: 2rem;
    }

    /* Hero Responsive Stacking */
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

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

    .hero p {
        margin: 1.5rem auto;
    }

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

    .hero-visual {
        min-height: 400px;
        width: 100%;
    }
}

/* Hero Section */
.hero {
    padding: 12rem 0 8rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    max-width: 900px;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: rgba(0, 166, 81, 0.1);
    border: 1px solid rgba(0, 166, 81, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero h1 {
    font-size: 4.8rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    max-width: 650px;
    margin: 1.5rem auto;
    font-size: 1.15rem;
    color: var(--text-muted);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.hero-visual img {
    width: 100%;
    display: block;
    opacity: 0.95;
    transition: transform 1s ease;
}

/* Mobile App Glow & Scan */
.mobile-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 166, 81, 0.1) 0%, transparent 70%);
    filter: blur(50px);
    z-index: 1;
    animation: pulse-glow 4s ease-in-out infinite alternate;
}

.scan-line {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent, rgba(0, 166, 81, 0.2), transparent);
    z-index: 5;
    pointer-events: none;
    animation: scan-move 4s linear infinite;
}

@keyframes pulse-glow {
    from {
        transform: scale(1);
        opacity: 0.5;
    }

    to {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes scan-move {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

/* Floating Education Icons */
.floating-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-icons i {
    position: absolute;
    font-size: 1.8rem;
    color: var(--primary);
    opacity: 0.25;
    animation: float-fade 8s ease-in-out infinite alternate;
    animation-delay: var(--d);
    filter: drop-shadow(0 0 10px rgba(0, 166, 81, 0.2));
}

@keyframes float-fade {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.15;
    }

    50% {
        opacity: 0.35;
    }

    100% {
        transform: translate(25px, -35px) rotate(20deg);
        opacity: 0.15;
    }
}

/* Section Headings */
.section-head {
    text-align: center;
    margin-bottom: 5rem;
}

.section-head h2 span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-head {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-head h2 span {
    color: var(--primary);
}

/* Platform Section */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.platform-card {
    background: rgba(255, 255, 255, 0.7);

    padding: 4rem 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 166, 81, 0.1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.platform-card:hover {
    transform: translateY(-15px) scale(1.02);
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary);
    box-shadow: 0 40px 80px rgba(0, 166, 81, 0.15);
}

.platform-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-25deg);
    transition: 0.75s;
}

.platform-card:hover::after {
    left: 125%;
}

.platform-card i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Modules */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 5rem;
}

.module-item {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    box-shadow: 0 10px 30px rgba(21, 60, 102, 0.05);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.module-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(21, 60, 102, 0.12);
    border-color: var(--primary);
}

.module-item i {
    font-size: 1.8rem;
    color: var(--primary);
    transition: color 0.3s;
}

.module-item:hover i {
    color: white;
}

.module-item span {
    font-weight: 500;
    font-size: 1rem;
}

/* Graphs Section */
.graphs-container {
    background: #f8fafc;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 166, 81, 0.04);
}

.graph-box {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 166, 81, 0.05);
}

.bar-container {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    height: 180px;
    margin-top: 2rem;
}

.bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary), var(--primary-light));
    border-radius: 6px 6px 0 0;
    transition: height 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    padding: 1.8rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.stat-val {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Map & GPS Component */
.map-container {
    background: #f1f5f9;
    height: 400px;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background-image:
        linear-gradient(rgba(0, 166, 81, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 166, 81, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    box-shadow: inset 0 0 50px rgba(0, 166, 81, 0.05);
}

.map-bus {
    position: absolute;
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    z-index: 10;
}

.map-route {
    position: absolute;
    inset: 0;
    border: 1.5px dashed rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    margin: 60px;
}

/* Virtual Classroom Component */
.virtual-ui {
    background: #000;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.6);
}

.video-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 1.2rem;
}

.main-video {
    background: #111;
    aspect-ratio: 16/9;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    border: 1px solid var(--glass-border);
}

.side-videos {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.side-video {
    background: #111;
    aspect-ratio: 16/9;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
}

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

.control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Logo Slider */
.slider-container {
    width: 100%;
    overflow: hidden;
    padding: 6rem 0;
}

.slider-track {
    display: flex;
    gap: 6rem;
    width: max-content;
    animation: scroll 60s linear infinite;
    align-items: center;
}

.slider-item {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.4;
    white-space: nowrap;
}

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

    100% {
        transform: translateX(-50%);
    }
}

/* Modal System */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(1, 10, 20, 0.8);

    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.modal-header h2 span {
    color: var(--primary);
}

.modal-header p {
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Form Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Intelligence Hub Component */
.intel-core {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.intel-core {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .intel-core {
        transform: scale(0.6);
    }
}

.core-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(#feffff 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid rgba(0, 166, 81, 0.6);
    box-shadow: 0 0 50px rgba(0, 166, 81, 0.4), inset 0 0 30px rgba(0, 166, 81, 0.3);
    z-index: 5;
    animation: core-shimmer 4s infinite alternate ease-in-out;
}

@keyframes core-shimmer {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

.tech-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(0, 166, 81, 0.4);
    animation: rotate 20s linear infinite;
}

.ring-1 {
    width: 280px;
    height: 280px;
    border-style: dotted;
    animation-duration: 40s;
}

.ring-2 {
    width: 220px;
    height: 220px;
    border-style: double;
    animation-duration: 25s;
    animation-direction: reverse;
}

.core-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.2;
    animation: core-pulse-circle 3s infinite;
}

@keyframes core-pulse-circle {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.intel-node {
    --node-scale: 1;
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--brand-border);
    box-shadow: 0 10px 30px rgba(21, 60, 102, 0.1);

    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transform: translate(calc(var(--x) * var(--node-scale)), calc(var(--y) * var(--node-scale)));
    animation: node-float 6s ease-in-out infinite;
    animation-delay: var(--d);
    z-index: 10;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .intel-node {
        --node-scale: 0.45;
        padding: 0.4rem 0.6rem;
        border-radius: 12px;
    }

    .intel-node i {
        font-size: 0.8rem !important;
    }

    .intel-node span {
        font-size: 0.5rem !important;
    }
}

.intel-node:hover {
    transform: translate(var(--x), var(--y)) scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 166, 81, 0.15);
}

.intel-node i {
    color: var(--primary);
    font-size: 1.2rem;
}

.intel-node span {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary);
}

.data-stream {
    position: absolute;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    opacity: 0.3;
    animation: stream-flow 3s linear infinite;
}

@keyframes core-float {

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

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

@keyframes core-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes node-float {

    0%,
    100% {
        transform: translate(calc(var(--x) * var(--node-scale)), calc(var(--y) * var(--node-scale)));
    }

    50% {
        transform: translate(calc(var(--x) * var(--node-scale)), calc((var(--y) - 20px) * var(--node-scale)));
    }
}

@keyframes stream-flow {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.ribbon-parent {
    position: relative;
    overflow: hidden;
}

.coming-soon-ribbon {
    position: absolute;
    top: 25px;
    right: -45px;
    background: var(--primary);
    color: white;
    padding: 0.5rem 4rem;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 5;
    white-space: nowrap;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile App Showcase Section */
.mobile-app-showcase {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    padding: 5rem;
    display: flex;
    gap: 4rem;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 20px 40px rgba(0, 166, 81, 0.03);
}

.mobile-app-content {
    flex: 1.2;
    min-width: 300px;
}

.mobile-app-mockups {
    flex: 1;
    min-width: 350px;
    display: flex;
    justify-content: center;
    position: relative;
    height: 500px;
}

.mockup-back {
    position: absolute;
    width: 180px;
    height: 360px;
    background: #000;
    border: 5px solid #222;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateX(-90px) translateY(50px) rotate(-10deg);
    z-index: 1;
    opacity: 0.6;
}

.mockup-middle {
    position: absolute;
    width: 200px;
    height: 400px;
    background: #000;
    border: 6px solid #222;
    border-radius: 35px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transform: translateX(-40px) translateY(25px) rotate(-5deg);
    z-index: 2;
    opacity: 0.8;
}

.mockup-front {
    position: relative;
    width: 220px;
    height: 440px;
    background: #000;
    border: 7px solid #222;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px var(--primary-glow);
    z-index: 3;
    transform: translateX(50px);
}

.mockup-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 25px;
    background: #222;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

/* Responsive */
@media (max-width: 992px) {
    .graphs-container {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
}

@media (max-width: 768px) {
    .hero-visual {
        height: 300px !important;
        margin-top: 2rem !important;
    }

    .hero-btns {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 0.6rem !important;
        width: 100%;
        padding: 0 1rem;
    }

    .hero-btns .btn {
        padding: 0.7rem 0.8rem !important;
        font-size: 0.75rem !important;
        flex: 1;
        min-width: 0;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 0;
    }

    .hero {
        padding: 10rem 0 6rem;
    }

    h1 {
        font-size: 3rem;
    }

    .btn {
        width: auto;
        justify-content: center;
    }

    .section-head {
        margin-bottom: 3.5rem;
    }

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

    .module-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* FAQ Accordion Styles */
.faq-item {
    background: var(--secondary-tint);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 1px solid var(--brand-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 166, 81, 0.05);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.faq-question h4 {
    margin: 0;
    color: var(--secondary);
    font-size: 1.1rem;
    pointer-events: none;
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.faq-answer {
    max-height: 0;
    padding: 0 2rem;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.faq-item.faq-active {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 166, 81, 0.08);
}

.faq-item.faq-active .faq-answer {
    max-height: 500px;
    opacity: 1;
    padding-top: 0;
}

.faq-item.faq-active .faq-question i {
    transform: rotate(45deg);
}

/* /* Final Comprehensive Mobile Overrides */
@media (max-width: 768px) {
    :root {
        --section-pad: 3rem;
    }

    html,
    body {
        overflow-x: hidden !important;
        width: 100%;
        position: relative;
    }

    .container {
        padding: 0 1rem !important;
        max-width: 100vw;
    }

    h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    h2 {
        font-size: 1.6rem !important;
    }

    .hero {
        padding: 6rem 0 3rem !important;
    }

    .hero-visual {
        height: 300px !important;
        margin-top: 1rem !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        overflow: visible !important;
    }

    .intel-core {
        width: 110px !important;
        height: 110px !important;
        transform: scale(0.9);
    }

    .core-text {
        font-size: 0.65rem !important;
        letter-spacing: 0.5px !important;
    }

    .ring-1 {
        width: 190px !important;
        height: 190px !important;
    }

    .ring-2 {
        width: 150px !important;
        height: 150px !important;
    }

    .module-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        margin-top: 3rem !important;
    }

    .module-item {
        padding: 1rem !important;
        gap: 0.5rem !important;
    }

    .module-item i {
        font-size: 1.4rem !important;
    }

    .module-item span {
        font-size: 0.85rem !important;
    }

    .slider-container {
        padding: 2rem 0 !important;
    }

    .slider-track {
        gap: 2rem !important;
    }

    .slider-item {
        font-size: 0.95rem !important;
    }

    /* Analytics Fix */
    .graphs-container {
        padding: 1.5rem !important;
        gap: 3rem !important;
        grid-template-columns: 1fr !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
        margin-bottom: 2.5rem !important;
    }

    .stat-item {
        padding: 1rem !important;
        text-align: center;
    }

    .stat-val {
        font-size: 1.6rem !important;
    }

    .graph-box {
        padding: 1.5rem !important;
        margin-top: 2rem !important;
    }

    .bar-container {
        height: 140px !important;
        gap: 12px !important;
    }

    /* Modal Fix */
    .modal-content {
        padding: 1.5rem !important;
        width: 95% !important;
        border-radius: var(--radius-sm) !important;
    }

    .modal-header h2 {
        font-size: 1.5rem !important;
    }

    .logo img {
        height: 45px !important;
    }
}

@media (max-width: 380px) {
    h1 {
        font-size: 1.8rem !important;
    }

    .hero-badge {
        font-size: 0.65rem !important;
    }

    .module-grid {
        grid-template-columns: 1fr !important;
    }
}

@keyframes gradient-text {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Hero Video Background */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    will-change: transform;
    transform: translateZ(0);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    will-change: transform;
    transform: translateZ(0) scale(1.05);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            #ffffff 100%);
}

/* Mobile App Section Responsive Styles */
@media (max-width: 768px) {
    .mobile-app-showcase {
        padding: 2rem !important;
        gap: 2.5rem !important;
        flex-direction: column;
        text-align: center;
    }

    .mobile-app-buttons {
        justify-content: center !important;
    }

    .mobile-app-mockups {
        min-width: 100% !important;
        height: 380px !important;
        transform: scale(0.75);
        transform-origin: top center;
        margin-top: -1rem;
    }
}

@media (max-width: 480px) {
    .mobile-app-mockups {
        height: 320px !important;
        transform: scale(0.65);
    }
}

/* AI Robot Assistant */
.ai-assistant {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    font-family: 'Outfit', sans-serif;
}

.ai-bubble {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--brand-border);
    padding: 1.2rem;
    border-radius: 20px 20px 0 20px;
    box-shadow: 0 15px 35px rgba(0, 166, 81, 0.15);
    max-width: 250px;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.ai-assistant:hover .ai-bubble,
.ai-bubble.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.ai-bubble p {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 1rem !important;
    line-height: 1.4;
    font-weight: 600;
    text-align: left;
}

.ai-actions {
    display: flex;
    gap: 10px;
}

.btn-ai {
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#start-autoscroll {
    background: var(--primary);
    color: white;
}

#start-autoscroll:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.btn-close {
    background: #f1f5f9;
    color: var(--text-muted);
}

.btn-close:hover {
    background: #e2e8f0;
}

.ai-robot {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 166, 81, 0.3);
    animation: float-robot 4s ease-in-out infinite;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.robot-pulse {
    position: absolute;
    inset: -8px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: pulse-robot 2s linear infinite;
    opacity: 0;
}

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

@keyframes pulse-robot {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

@media (max-width: 768px) {
    .ai-assistant {
        bottom: 20px;
        right: 20px;
    }
    .ai-bubble {
        max-width: 200px;
    }
}