:root {
    --bg-dark: #0f172a;
    --bg-light: #ffffff;
    --bg-gray: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #f8fafc;
    --text-gray: #64748b;
    --primary-blue: #2563eb;
    --primary-blue-hover: #1d4ed8;
    --border-color: #e2e8f0;
    --footer-bg: #1e293b;
    --font-main: 'Inter', sans-serif;
}

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

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: transparent;
    overflow-x: hidden;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4%;
    position: relative;
    z-index: 10;
}

/* Utilities */
.text-blue { color: var(--primary-blue); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.ml-4 { margin-left: 1rem; }
.bg-light-gray { background-color: var(--bg-gray); }
.bg-blue-light { background-color: #eff6ff; }
.text-4xl { font-size: 2.5rem; }

/* Typography */
.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* Navbar */
.navbar {
    background-color: var(--bg-dark);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background-color 0.3s, backdrop-filter 0.3s;
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1rem 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: transparent !important;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-dark);
    z-index: -2;
}

/* Tech Nodes Background */
.hero-bg-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 80% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    z-index: -1;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    padding-bottom: 6rem;
    padding-top: 2rem;
}

.hero-title {
    color: var(--text-light);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: #cbd5e1;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.hero-desc {
    color: var(--text-gray);
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    border: none;
}

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

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

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

.btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding-top: 2rem;
}

.hero-image {
    max-height: 80vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom right;
    display: block;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background-color: transparent !important;
    position: relative;
}
.about-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-light);
    z-index: -2;
}

.about-content {
    max-width: 800px;
}

.about-text {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-links {
    margin-top: 2rem;
}

.text-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.3s;
}

.text-link:hover {
    opacity: 0.8;
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background-color: transparent !important;
    position: relative;
}
.services-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-gray);
    z-index: -2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    transition: box-shadow 0.3s, transform 0.3s;
}

.service-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio-section {
    padding: 6rem 0;
    background-color: transparent !important;
    position: relative;
}
.portfolio-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-light);
    z-index: -2;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.portfolio-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.portfolio-img-placeholder {
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.portfolio-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Footer Section */
.footer-section {
    padding: 4rem 0 2rem;
    color: var(--text-light);
    background-color: transparent !important;
    position: relative;
}
.footer-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-dark);
    z-index: -2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 3rem;
    position: relative;
    z-index: 10;
}

.footer-heading {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-icons a {
    color: var(--text-light);
    background: rgba(255,255,255,0.1);
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s;
}

.social-icons a:hover {
    background: var(--primary-blue);
}

.contact-line {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: var(--text-light);
    font-family: inherit;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-submit {
    align-self: flex-start;
}

/* WebGL Canvas */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* above backgrounds (-2), below content (auto/10) */
    pointer-events: none; /* allow interactions with links */
}

/* Floating Elements */
.floating-shape {
    position: absolute;
    color: var(--primary-blue);
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
    transition: transform 0.1s ease-out;
}
.shape-1 { top: 20%; left: 10%; font-size: 3rem; }
.shape-2 { top: 60%; right: 15%; font-size: 5rem; }
.shape-3 { bottom: 15%; left: 30%; font-size: 2.5rem; }

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .hero-content {
        padding-bottom: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image-container {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none; /* Add hamburger for real impl */
    }
}
