:root {
    /* Dark Theme (Default) */
    --bg-color: #030407;
    --bg-radial: radial-gradient(circle at center, #10151f 0%, #030407 100%);
    --text-main: #f5f6fa;
    --text-muted: #8892b0;
    --accent-glow: rgba(255, 255, 255, 0.2);
    --accent-solid: #ffffff;
    --border-glass: rgba(255, 255, 255, 0.1);
    --bg-glass: rgba(0, 0, 0, 0.6);
    --logo-filter: invert(1);
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --nav-height: 80px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="light"] {
    --bg-color: #fdfdfd;
    --bg-radial: radial-gradient(circle at center, #ffffff 0%, #f0f2f5 100%);
    --text-main: #030407;
    --text-muted: #4a5568;
    --accent-glow: rgba(0, 0, 0, 0.05);
    --accent-solid: #000000;
    --border-glass: rgba(0, 0, 0, 0.08);
    --bg-glass: rgba(255, 255, 255, 0.7);
    --logo-filter: invert(0);
}

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

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

/* Background Canvas & 3D Container */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    background: var(--bg-radial);
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.15; /* Subtler grid/particles */
}

/* Perspective Grid Overlay */
#canvas-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    pointer-events: none;
}

/* Helper Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
}

/* Links & Buttons */
a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    display: inline-block;
    background: var(--text-main);
    color: var(--bg-color);
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}
.btn-primary:hover {
    background: var(--accent-solid);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text-main);
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 30px;
    border: 1px solid var(--border-glass);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}
.btn-secondary:hover {
    border-color: var(--accent-solid);
    color: var(--accent-solid);
}

.btn-primary-outline {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--text-muted);
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
}
.btn-primary-outline:hover {
    border-color: var(--accent-solid);
    color: var(--accent-solid);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    z-index: 100;
    transition: var(--transition);
}
.navbar.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
}
.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    filter: var(--logo-filter);
    transition: var(--transition);
}
.company-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}
.nav-links li a {
    font-size: 0.9rem;
    font-family: var(--font-heading);
    color: var(--text-muted);
}
.nav-links li a:hover {
    color: var(--accent-solid);
}

/* Theme Toggle Button */
.theme-switch button {
    background: transparent;
    border: 1px solid var(--border-glass);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 8px;
    transition: var(--transition);
}
.theme-switch button:hover {
    background: var(--border-glass);
    border-color: var(--accent-solid);
}
.theme-switch svg {
    width: 20px;
    height: 20px;
    fill: var(--text-main);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 5%;
}
.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
}
.hero-title .highlight {
    background: linear-gradient(90deg, var(--text-main), var(--accent-solid));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
}
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    animation: bounce 2s infinite;
}
.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-heading);
}
.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: currentColor;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Sections Common */
section {
    padding: 120px 0;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 48px;
    text-align: center;
}
.section-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
}

/* Divisions Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.card {
    padding: 40px 32px;
    text-align: left;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    transition: var(--transition);
}
.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.15);
}
.card:hover::before {
    background: var(--accent-solid);
    box-shadow: 0 0 15px var(--accent-glow);
}
.card-icon {
    margin-bottom: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geo-icon {
    border: 2px solid var(--accent-solid);
    position: relative;
    box-shadow: 0 0 10px var(--accent-glow);
}

.geo-icon.triangle {
    width: 0; height: 0;
    border-left: 17px solid transparent;
    border-right: 17px solid transparent;
    border-bottom: 30px solid var(--accent-solid);
    background: transparent;
    border-top: none;
    border-bottom-color: var(--accent-solid);
    box-shadow: none;
}

.geo-icon.square {
    width: 30px; height: 30px;
}

.geo-icon.hexagon {
    width: 30px; height: 30px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: var(--accent-solid);
    border: none;
}

.geo-icon.diamond {
    width: 30px; height: 30px;
    transform: rotate(45deg);
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.card-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 24px;
}
.tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--border-glass);
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    color: var(--accent-solid);
}

/* Leadership Profile */
.profile-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 48px;
    padding: 48px;
    max-width: 900px;
    margin: 0 auto;
}
.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 2px solid var(--border-glass);
    padding: 8px;
}
.profile-info {
    flex: 1;
    min-width: 250px;
}
.profile-name {
    font-size: 2rem;
    margin-bottom: 8px;
}
.profile-role {
    color: var(--accent-solid);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}
.profile-bio {
    color: var(--text-muted);
    margin-bottom: 24px;
}
.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    padding: 10px 20px;
    border-radius: 8px;
}
.link-btn:hover {
    background: var(--border-glass);
}
.linkedin-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 80px 0 40px;
    background: var(--bg-color);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}
.footer-brand h2 {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.footer-brand p {
    color: var(--text-muted);
}
.footer h4 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.footer p, .footer a {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
}
.email-link {
    font-size: 1.2rem;
    color: var(--text-main);
}
.email-link:hover {
    color: var(--accent-solid);
    text-shadow: 0 0 10px var(--accent-glow);
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 40px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile hide for now */
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-cta {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .profile-card {
        flex-direction: column;
        text-align: center;
        padding: 32px 20px;
    }
}
