:root {
    --bg-color: #ffffff;
    --text-main: #000000;
    --text-muted: #555555;
    --primary-gradient: linear-gradient(135deg, #000000 0%, #333333 100%);
    --secondary-gradient: linear-gradient(135deg, #222222 0%, #555555 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    
    --font-main: 'Space Grotesk', sans-serif;
    --container-max: 1200px;
}

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

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

/* 3D Canvas Container */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Layout Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary-gradient);
    z-index: 1001;
    transition: width 0.1s;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 4rem;
}

/* Glassmorphism Classes */
.glass-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1.2rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.nav-links a:hover {
    color: #000000;
    opacity: 1;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

.btn-outline {
    border: 1px solid rgba(0, 0, 0, 0.3);
    padding: 0.6rem 1.5rem;
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: #000000;
    background: rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Offset for header */
}

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

.badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333333;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.about-features {
    display: grid;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: left;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    position: relative;
    perspective: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 1. Core Node (IT Services) */
.anim-core-node {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-border 2s infinite;
}
.anim-core-node::after {
    content: '';
    width: 15px;
    height: 15px;
    background: #333333;
    border-radius: 50%;
}

/* 2. Data Flow Layers (Software Dev) */
.anim-data-flow {
    width: 30px;
    height: 30px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(60deg) rotateZ(-45deg);
}
.anim-data-flow div {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #333333;
    border-radius: 4px;
    animation: flow-up 2s infinite ease-in-out;
}
.anim-data-flow .layer2 { animation-delay: 0.2s; border-color: #000000; }
.anim-data-flow .layer3 { animation-delay: 0.4s; border-color: #555555; }

/* 3. Graph Network (Business Solutions) */
.anim-graph {
    width: 40px;
    height: 40px;
    position: relative;
    animation: rotate-2d 10s infinite linear;
}
.anim-graph::before, .anim-graph::after {
    content: '';
    position: absolute;
    background: #000000;
    border-radius: 50%;
    width: 10px;
    height: 10px;
}
.anim-graph::before { top: 0; left: 15px; box-shadow: 15px 30px 0 #333333, -15px 30px 0 #555555; }
.anim-graph .line {
    position: absolute;
    width: 2px;
    height: 30px;
    background: rgba(0,0,0,0.3);
    top: 5px; left: 19px;
    transform-origin: top center;
}
.anim-graph .line1 { transform: rotate(30deg); }
.anim-graph .line2 { transform: rotate(-30deg); }

/* 4. AI Core (Artificial Intelligence) */
.anim-ai-core {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #555555, #000000);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    animation: pulse-sphere 3s infinite ease-in-out;
}

/* 5. Processing Pipeline (App Management) */
.anim-pipeline {
    display: flex;
    gap: 5px;
    align-items: center;
}
.anim-pipeline div {
    width: 8px;
    height: 25px;
    background: #000000;
    border-radius: 4px;
    animation: wave-scale 1.5s infinite ease-in-out;
}
.anim-pipeline .bar2 { animation-delay: 0.2s; background: #333333; }
.anim-pipeline .bar3 { animation-delay: 0.4s; background: #555555; }

/* 6. Synapse (Future Products) */
.anim-synapse {
    width: 40px;
    height: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.anim-synapse::before, .anim-synapse::after {
    content: '';
    width: 12px;
    height: 12px;
    background: #000000;
    border-radius: 50%;
}
.anim-synapse .pulse {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #555555;
    border-radius: 50%;
    left: 10px;
    animation: travel 1.5s infinite ease-in-out;
}

/* Animations */
@keyframes pulse-border {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
}
@keyframes flow-up {
    0% { transform: translateZ(-10px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateZ(20px); opacity: 0; }
}
@keyframes rotate-2d {
    100% { transform: rotate(360deg); }
}
@keyframes wave-scale {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.8); }
}
@keyframes travel {
    0% { left: 5px; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 25px; opacity: 0; }
}
@keyframes pulse-sphere {
    0%, 100% { transform: scale(1); box-shadow: 0 0 15px rgba(0, 0, 0, 0.4); }
    50% { transform: scale(1.15); box-shadow: 0 0 25px rgba(0, 0, 0, 0.6); }
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Industries */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

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

.industry-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Mission */
.mission-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.mission-statement {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 2rem 0;
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 20px;
    background: rgba(255, 255, 255, 0.8);
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.tagline {
    font-weight: 600;
    color: #555555 !important;
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #000000;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: all 0.3s;
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: 0.4s ease;
    }

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

    .menu-toggle {
        display: flex;
    }

    .hero-cta {
        flex-direction: column;
        padding: 0 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Base states for GSAP animations */
.gsap-reveal, .gsap-fade-up, .gsap-scale-up, .gsap-stagger {
    visibility: hidden;
}
