:root {
    --primary-color: #0d2538;
    /* Deep professional blue */
    --secondary-color: #00d2d3;
    /* Innovation cyan */
    --accent-color: #ff9f43;
    /* Warmth for CTAs */
    --text-color: #2d3436;
    --text-light: #636e72;
    --bg-light: #ffffff;
    --bg-off-white: #f5f6fa;
    --bg-dark: #1e272e;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #154a6e 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(13, 37, 56, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 37, 56, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff6b6b 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 159, 67, 0.4);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 159, 67, 0.5);
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 1.05rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 50%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 210, 211, 0.1), rgba(13, 37, 56, 0.05));
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 15s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 50% 60% 40% 60%;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Features/Highlights */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a4b0be;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a4b0be;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Add mobile menu logic later */
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}


/* === Immersive Electronics Animation === */
.hero-3d-stage {
    position: absolute;
    inset: 0;
    perspective: 1000px;
    /* Determines the depth of the 3D space */
    overflow: hidden;
    background: radial-gradient(circle at 50% 0%, #0d2538 0%, #000000 100%);
    /* Deep space background */
    z-index: 0;
}

.circuit-overlay {
    position: absolute;
    top: 50%;
    /* Start from horizon */
    left: -50%;
    /* Extend wider to cover rotation */
    width: 200%;
    height: 200%;
    transform-origin: 50% 0%;
    transform: rotateX(60deg) translateY(0);
    /* The 3D Floor Effect */
    opacity: 0.6;
    pointer-events: none;
    background:
        linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(13, 37, 56, 0.8) 20%, rgba(0, 0, 0, 0) 100%);
    /* Fade out at horizon */
    animation: flowFloor 20s linear infinite;
}

@keyframes flowFloor {
    0% {
        transform: rotateX(60deg) translateY(0);
    }

    100% {
        transform: rotateX(60deg) translateY(100px);
    }

    /* Simulation of movement */
}

/* Chips & Nodes */

/* Color Cycling Animations */
@keyframes colorCycle {
    0% {
        stroke: var(--secondary-color);
        fill: var(--secondary-color);
    }

    33% {
        stroke: #e056fd;
        fill: #e056fd;
    }

    /* Purple */
    66% {
        stroke: #f0932b;
        fill: #f0932b;
    }

    /* Orange */
    100% {
        stroke: var(--secondary-color);
        fill: var(--secondary-color);
    }
}

@keyframes colorCycleStroke {
    0% {
        stroke: var(--secondary-color);
    }

    33% {
        stroke: #e056fd;
    }

    66% {
        stroke: #f0932b;
    }

    100% {
        stroke: var(--secondary-color);
    }
}

@keyframes colorCycleFill {
    0% {
        fill: var(--primary-color);
    }

    33% {
        fill: #4834d4;
    }

    /* Deep Blue */
    66% {
        fill: #be2edd;
    }

    /* Magenta */
    100% {
        fill: var(--primary-color);
    }
}

/* Chips & Nodes */
.chip-body {
    fill: var(--primary-color);
    stroke: var(--secondary-color);
    stroke-width: 2;
    animation: colorCycleStroke 8s infinite linear;
}

.chip-pin {
    stroke: var(--text-light);
    stroke-width: 3;
}

.gadget-node {
    fill: white;
    stroke: var(--primary-color);
    stroke-width: 2;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    animation: colorCycleStroke 8s infinite linear reverse;
}

.gadget-node:hover {
    stroke: var(--secondary-color);
    cursor: default;
}

/* Wiring */
.circuit-trace {
    fill: none;
    stroke: #b2bec3;
    stroke-width: 1.5;
    opacity: 0.6;
    animation: colorCycleStroke 12s infinite linear;
}

.circuit-faint {
    fill: none;
    stroke: #dfe6e9;
    stroke-width: 1;
}

/* Active Data Packets */
.packet {
    fill: var(--secondary-color);
    filter: drop-shadow(0 0 8px var(--secondary-color));
    animation: colorCycleFill 4s infinite linear;
}

/* Animations */
.blink-fast {
    animation: blink 0.5s infinite alternate;
}

@keyframes blink {
    0% {
        opacity: 0.5;
        transform: scale(0.9);
        fill: var(--secondary-color);
    }

    100% {
        opacity: 1;
        transform: scale(1.3);
        fill: #ff0055;
    }

    /* Red pulse */
}

.pulse-slow {
    animation: pulseBorder 4s infinite alternate;
}

@keyframes pulseBorder {
    0% {
        stroke-width: 2;
    }

    100% {
        stroke-width: 4;
        filter: drop-shadow(0 0 12px currentColor);
    }
}

/* Dashing lines flow */
.dash-flow {
    animation: dashMove 2s linear infinite, colorCycleStroke 5s infinite;
}

.dash-flow-reverse {
    animation: dashMove 2s linear infinite reverse, colorCycleStroke 5s infinite reverse;
}

@keyframes dashMove {
    to {
        stroke-dashoffset: -220;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .circuit-overlay {
        opacity: 0.2;
    }
}