html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    color: #0f172a; /* Dark text for contrast */
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Background Network Canvas */
#networkCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 1; /* Fully visible on white */
}

/* Clean White Cards with Soft Shadow */
.clean-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.clean-card:hover {
    transform: translateY(-5px);
    border-color: #2d7a96; /* Fabric Cyan */
    box-shadow: 0 20px 40px -10px rgba(45, 122, 150, 0.15);
}

/* Navigation Bar */
.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    height: 6.5rem; /* Initial Height */
    display: flex;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

.glass-nav.scrolled {
    height: 4.5rem; /* Reduced height on scroll */
    background: rgba(255, 255, 255, 0.98);
}

.glass-nav img {
    height: 5rem;
    transition: height 0.3s ease-in-out;
}

.glass-nav.scrolled img {
    height: 3.5rem;
}

/* Gradient Text */
.text-gradient-brand {
    background: linear-gradient(to right, #1a2b45, #2d7a96);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tech Stack Scroller */
.tech-scroller-mask {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Mobile Menu */
#mobileMenu {
    transition: transform 0.3s ease-in-out;
}
#mobileMenu.hidden {
    display: none;
}
#mobileMenu.active {
    display: block;
    transform: translateY(0);
}

/* --- Premium Additions --- */

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Tech Marquee */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* Step Numbers */
.step-number {
    -webkit-text-stroke: 1px #2d7a96;
    color: transparent;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

/* Glow Effect / Parallax Utility */
.parallax {
    will-change: transform;
}

.hover-glow {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-glow:hover {
    box-shadow: 0 20px 50px rgba(45, 122, 150, 0.12);
    transform: translateY(-8px);
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}