/* Global Styles */
:root {
    /* Professional Light Palette */
    --bg-deep: #ffffff;
    --primary: #2563eb;
    /* Royal Blue */
    --secondary: #0891b2;
    /* Teal */
    --accent: #d97706;
    /* Amber */
    --neon-blue: #3b82f6;
    /* Use softer blue for "neon" effects in light mode */
    --text-main: #0f172a;
    /* Dark Slate (almost black) */
    --text-muted: #475569;
    /* Slate Gray */

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(226, 232, 240, 0.8);
    /* Light gray border */
    --glass-highlight: rgba(255, 255, 255, 0.5);

    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Three.js Canvas */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.canvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Inverted gradient for light mode: White fade to transparent */
    background: radial-gradient(circle at top left, rgba(239, 246, 255, 0.4), transparent 70%),
        radial-gradient(circle at bottom right, rgba(240, 253, 250, 0.4), transparent 70%);
    pointer-events: none;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 45px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 2rem 50px;
}

.hero-content {
    max-width: 900px;
    margin-bottom: 4rem;
}

.badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    display: inline-block;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-main);
}

.highlight-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.cta-button {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px -5px rgba(37, 99, 235, 0.5);
}

.secondary {
    background: #fff;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

/* Stats Strip */
.stats-strip {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
    justify-content: center;
    background: var(--glass-bg);
    padding: 2rem 4rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-block;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.2rem;
    font-weight: 600;
}

/* Portals Section */
.portals {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 5rem;
    position: relative;
    display: inline-block;
    width: 100%;
    color: var(--text-main);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
}

.glass-card {
    background: #fff;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.glass-card:hover .card-glow {
    opacity: 1;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.4s ease;
}

.ocp-icon {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.edc-icon {
    background: rgba(8, 145, 178, 0.1);
    color: var(--secondary);
}

.glass-card:hover .icon-circle {
    transform: scale(1.1) rotate(10deg);
}

.glass-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.subtitle {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.link-text {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* What We Do */
.what-we-do {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: #f8fafc;
    /* Slight off-white separation */
    border-radius: 30px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.feature-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    color: var(--text-main);
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* About Overlay */
.about {
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about-glass {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    position: relative;
    z-index: 10;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    color: var(--text-main);
}

.about-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    background: #0f172a;
    /* Keep footer dark for contrast */
    color: #fff;
    padding: 5rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-col p {
    color: #94a3b8;
}

.footer-col h4 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-transform: uppercase;
}

.footer-col a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #fff;
}

.social-icons a {
    display: inline-block;
    font-size: 1.2rem;
    margin-right: 1.5rem;
    color: #fff;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-size: 0.9rem;
}

/* Animations Triggered by Classes */
.hidden-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .stats-strip {
        gap: 2rem;
        padding: 2rem;
    }
}