/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-main: 'Inter', sans-serif;
    --bg-color: #ffffff;
    --text-color: #111111;
    --accent-color: #333333;
    --secondary-text: #555555;
    --border-color: #e0e0e0;
    --transition-speed: 0.3s;

    /* Rotary Dial Theme Vars - Light Mode */
    --dial-bg: radial-gradient(circle at center, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0) 70%);
    --dial-center-bg: radial-gradient(circle, #f5f5f5 0%, #e0e0e0 100%);
    --dial-center-border: #cccccc;
    --dial-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dark-mode {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --accent-color: #cccccc;
    --secondary-text: #aaaaaa;
    --border-color: #333333;

    /* Rotary Dial Theme Vars - Dark Mode */
    --dial-bg: radial-gradient(circle at center, rgba(34, 34, 34, 0.5) 0%, rgba(0, 0, 0, 0) 70%);
    --dial-center-bg: radial-gradient(circle, #333 0%, #111 100%);
    --dial-center-border: #444444;
    --dial-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid var(--text-color);
    background: transparent;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: scale(0.95);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1rem;
    color: var(--secondary-text);
    text-align: center;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.circular-square {
    border-radius: 50%;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background-color var(--transition-speed);
}

.dark-mode header {
    background-color: rgba(10, 10, 10, 0.9);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.nav-links li a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--text-color);
    transition: width 0.3s ease-out;
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a:hover {
    opacity: 1;
    /* Override default opacity hover */
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    z-index: 999;
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav-links {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav-links a {
    font-size: 2rem;
    font-weight: 600;
}

/* Theme Toggle */
.theme-toggle {
    cursor: pointer;
    margin-left: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: var(--text-color);
    transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

/* Sections */
section {
    min-height: 100vh;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
    border-bottom: 1px solid var(--border-color);
}

section:last-child {
    border-bottom: none;
}

/* Profile Section */
#profile {
    display: flex;
    justify-content: center;
    height: 80vh;
}

.profile-container {
    display: flex;
    justify-content: center;
    gap: 3.5rem;
    height: 100%;
}

.section__pic-container {
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
}

.section__pic-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.section__text {
    align-self: center;
    text-align: center;
}

.section__text p {
    font-weight: 600;
}

.title {
    font-size: 3rem;
    text-align: center;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

.section__text__p1 {
    text-align: center;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0s;
}

.section__text__p2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.4s;
}

.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#socials-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

/* Icons */
.icon {
    cursor: pointer;
    height: 2rem;
}

/* Buttons */


.btn-color-1,
.btn-color-2 {
    border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
    cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
    background: rgb(53, 53, 53);
    color: white;
}

.btn-color-1:hover {
    background: white;
    color: black;
}

.btn-color-2 {
    background: none;
}

.btn-color-2:hover {
    border: rgb(255, 255, 255) 0.1rem solid;
}

/* Skills Section */
.details-container {
    padding: 1.5rem;
    flex: 1;
    background: white;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    text-align: center;
}

.about-containers {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.about-containers .details-container {
    background: transparent;
}

.experience-sub-title {
    color: rgb(85, 85, 85);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.article-container {
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: space-around;
}

article {
    display: flex;
    width: 10rem;
    justify-content: space-around;
    gap: 0.5rem;
}

article .icon {
    cursor: default;
}

/* About Grid */
.about-pic {
    border-radius: 20px;
    filter: grayscale(100%);
    width: 100%;
    max-width: 400px;
    /* Decreased by 15% from 400px */
    margin: 0 auto;
    transition: filter 0.3s ease;
}

.about-pic:hover {
    filter: grayscale(0%);
}

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

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

/* Certifications Grid */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cert-card {
    border: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s;
}

.cert-card:hover {
    transform: translateY(-5px);
    background-color: var(--text-color);
    color: var(--bg-color);
}

.cert-card:hover .cert-issuer {
    color: var(--bg-color);
    opacity: 0.8;
}

.cert-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cert-issuer {
    font-size: 0.9rem;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* Timeline (Education) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 1px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -0.5px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    right: -6px;
    background-color: var(--bg-color);
    border: 2px solid var(--text-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -6px;
}

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

.project-card {
    border: 1px solid var(--border-color);
    padding: 2rem;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    background: rgba(var(--text-color), 0.02);
}

.project-card h3 {
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Skills Grid (Matching Projects) */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    border: 1px solid var(--border-color);
    padding: 2rem;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    background: rgba(var(--text-color), 0.02);
}

.skill-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.skill-card p {
    color: var(--secondary-text);
    line-height: 1.7;
    font-size: 0.95rem;
}


/* Contact Icons Redesign */
/* Rotary Dial Contact Layout */
/* Rotary Dial Contact Layout */
/* Rotary Dial Contact Layout */
/* Rotary Dial Contact Layout */
.contact-icons-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 3rem auto 0;
    border-radius: 50%;
    /* Subtle glow behind the dial instead of a hard container line */
    background: var(--dial-bg);
}

.contact-icons-wrapper:hover .dial-ring {
    animation-play-state: paused;
}

/* The rotating ring */
.dial-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: rotate-dial 60s linear infinite;
}

/* Static Center Knob */
.dial-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: var(--bg-color);
    background: var(--dial-center-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--dial-center-border);
    box-shadow: var(--dial-shadow);
    z-index: 5;
    text-align: center;
    cursor: pointer;
    pointer-events: auto;
    /* Re-enable clicks */
    transition: all 0.3s ease;
}

.dial-center:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 0 30px rgba(var(--text-color), 0.2);
    border-color: var(--text-color);
}

.dial-center svg {
    fill: var(--secondary-text);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
    transition: fill 0.3s ease;
}

.dial-center:hover svg {
    fill: var(--text-color);
    animation: phone-shake 0.5s ease infinite;
}

.contact-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;

    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -25px;
    margin-left: -25px;
}

/* Positioning 6 icons in a circle (360/6 = 60 degrees) */
.contact-icon-box:nth-child(1) {
    transform: rotate(0deg) translate(125px) rotate(0deg);
}

.contact-icon-box:nth-child(2) {
    transform: rotate(60deg) translate(125px) rotate(-60deg);
}

.contact-icon-box:nth-child(3) {
    transform: rotate(120deg) translate(125px) rotate(-120deg);
}

.contact-icon-box:nth-child(4) {
    transform: rotate(180deg) translate(125px) rotate(-180deg);
}

.contact-icon-box:nth-child(5) {
    transform: rotate(240deg) translate(125px) rotate(-240deg);
}

.contact-icon-box:nth-child(6) {
    transform: rotate(300deg) translate(125px) rotate(-300deg);
}

/* Sticky Hover Effect maintaining position */
.contact-icon-box:nth-child(1):hover {
    transform: rotate(0deg) translate(125px) rotate(0deg) scale(1.3);
}

.contact-icon-box:nth-child(2):hover {
    transform: rotate(60deg) translate(125px) rotate(-60deg) scale(1.3);
}

.contact-icon-box:nth-child(3):hover {
    transform: rotate(120deg) translate(125px) rotate(-120deg) scale(1.3);
}

.contact-icon-box:nth-child(4):hover {
    transform: rotate(180deg) translate(125px) rotate(-180deg) scale(1.3);
}

.contact-icon-box:nth-child(5):hover {
    transform: rotate(240deg) translate(125px) rotate(-240deg) scale(1.3);
}

.contact-icon-box:nth-child(6):hover {
    transform: rotate(300deg) translate(125px) rotate(-300deg) scale(1.3);
}

/* Center Button Interactive Styles */
.dial-center {
    cursor: pointer;
    pointer-events: auto;
    /* Re-enable clicks */
    transition: all 0.3s ease;
}

.dial-center:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 0 30px rgba(var(--text-color), 0.2);
    border-color: var(--text-color);
}

.dial-center:hover svg {
    fill: var(--text-color);
    animation: phone-shake 0.5s ease infinite;
}

@keyframes phone-shake {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-15deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(15deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.contact-icon-box:hover {
    z-index: 10;
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
    box-shadow: 0 0 20px rgba(var(--text-color), 0.5);
}

.contact-icon-box svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@keyframes rotate-dial {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

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

.show {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media screen and (max-width: 900px) {
    #profile {
        display: block;
        height: fit-content;
    }

    .profile-container {
        display: block;
        gap: 0;
        height: fit-content;
    }

    .section__pic-container {
        width: 275px;
        height: 275px;
        margin: 0 auto 2rem;
    }



    .about-containers {
        flex-wrap: wrap;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-icons-wrapper {
        transform: scale(0.8);
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 25px;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        text-align: left;
    }
}

/* --- Easter Eggs --- */

/* 1. Mini GPU Widget */
.mini-gpu-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 120px;
    height: 60px;
    perspective: 800px;
    z-index: 9999;
}

.gpu-card {
    width: 100%;
    height: 100%;
    background: #222;
    border: 2px solid #444;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #333 0%, #111 100%);
    position: relative;
    transform: rotateY(-15deg) rotateX(10deg);
    transition: transform 0.3s ease;
}

.gpu-card:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.1);
}

.gpu-shroud {
    display: flex;
    gap: 5px;
}

.fan {
    width: 35px;
    height: 35px;
    background: #111;
    border-radius: 50%;
    position: relative;
    border: 1px solid #555;
    animation: spin 2s linear infinite;
    /* Default Idle Speed */
}

/* Fan Blades */
.fan .blade {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40%;
    height: 6px;
    background: #888;
    transform-origin: 0% 50%;
    border-radius: 2px;
}

.fan .blade:nth-child(1) {
    transform: rotate(0deg) translateX(2px);
}

.fan .blade:nth-child(2) {
    transform: rotate(120deg) translateX(2px);
}

.fan .blade:nth-child(3) {
    transform: rotate(240deg) translateX(2px);
}

.gpu-led {
    position: absolute;
    bottom: -15px;
    right: 5px;
    font-size: 8px;
    font-family: monospace;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    font-weight: bold;
    letter-spacing: 1px;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}



/* 3. Gamer Mode (Konami Code) */
body.gamer-mode {
    animation: rgb-bg 10s linear infinite;
}

body.gamer-mode .gpu-led {
    color: red;
    text-shadow: 0 0 10px red;
    content: "OVERCLOCKED";
}

body.gamer-mode .gpu-card {
    border-color: red;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    animation: shake 0.5s ease-in-out infinite;
}

body.gamer-mode .fan {
    animation-duration: 0.1s !important;
    /* MAX SPEED */
    border-color: red;
}

@keyframes rgb-bg {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: rotateY(-15deg) rotateX(10deg) translate(0, 0);
    }

    25% {
        transform: rotateY(-15deg) rotateX(10deg) translate(1px, 1px);
    }

    50% {
        transform: rotateY(-15deg) rotateX(10deg) translate(-1px, -1px);
    }

    75% {
        transform: rotateY(-15deg) rotateX(10deg) translate(-1px, 1px);
    }
}

/* --- Premium Tech Overlay & Nano GPU --- */

.tech-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    /* Behind everything */
    overflow: hidden;
}

/* Nano GPU Model */
.nano-gpu {
    position: absolute;
    top: 15%;
    right: 10%;
    width: 140px;
    height: 50px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 1px solid #444;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    animation: gpu-float 12s ease-in-out infinite;
    z-index: 0;
}

.gpu-chassis {
    padding: 4px;
    display: flex;
    justify-content: space-between;
    height: 100%;
    align-items: center;
}

.fan-assembly {
    display: flex;
    gap: 5px;
}

.fan {
    width: 38px;
    height: 38px;
    background: #111;
    border-radius: 50%;
    border: 1px solid #333;
    position: relative;
    /* Spinning Animation defined previously or new one */
    animation: spin-fan 0.5s linear infinite;
}

.fan::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.1);
}

.fan::before {
    /* Fan Blades */
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: conic-gradient(from 0deg, transparent 0deg, #555 20deg, transparent 40deg, transparent 120deg, #555 140deg, transparent 160deg, transparent 240deg, #555 260deg, transparent 280deg);
    border-radius: 50%;
}

.gpu-details {
    width: 30px;
    height: 100%;
    background: #222;
    border-left: 1px solid #333;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.led-strip {
    width: 4px;
    height: 80%;
    background: #00ff00;
    box-shadow: 0 0 8px #00ff00;
    border-radius: 2px;
    opacity: 0.8;
    animation: pulse-led 3s ease-in-out infinite;
}

/* Airflow Animation */
.airflow-stream {
    position: absolute;
    top: 50%;
    left: -60px;
    /* Coming out of the back/side */
    transform: translateY(-50%);
    width: 80px;
    height: 40px;
    pointer-events: none;
}

.airflow-stream span {
    position: absolute;
    display: block;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), transparent);
    height: 1px;
    border-radius: 2px;
    opacity: 0;
    animation: airflow 1.5s linear infinite;
}

.airflow-stream span:nth-child(1) {
    top: 10px;
    width: 40px;
    animation-delay: 0s;
}

.airflow-stream span:nth-child(2) {
    top: 20px;
    width: 60px;
    animation-delay: 0.4s;
}

.airflow-stream span:nth-child(3) {
    top: 30px;
    width: 30px;
    animation-delay: 0.8s;
}

/* Subtle Background Tech Hints */
.tech-hint {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.server-hint-1 {
    bottom: 10%;
    left: 5%;
    width: 80px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 5px;
}

.server-hint-1::before,
.server-hint-1::after {
    content: '';
    height: 2px;
    background: rgba(0, 255, 0, 0.2);
    width: 10px;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.2);
    animation: blink-random 4s infinite;
}

.router-hint-1 {
    top: 20%;
    left: 15%;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

/* Keyframes */
@keyframes spin-fan {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes gpu-float {

    0%,
    100% {
        transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) translateY(0);
    }

    50% {
        transform: perspective(1000px) rotateY(-10deg) rotateX(2deg) translateY(-20px);
    }
}

@keyframes airflow {
    0% {
        transform: translateX(40px);
        opacity: 0;
    }

    20% {
        opacity: 0.6;
    }

    100% {
        transform: translateX(-60px);
        opacity: 0;
    }

    /* Moving LEFT away from fans if fans are on left, wait fans are on the left of chassis? */
    /* Let's adjust airflow direction based on visual. If fans are pushing air OUT, it should go away from GPU. */
}

@keyframes pulse-led {

    0%,
    100% {
        opacity: 0.4;
        box-shadow: 0 0 5px #00ff00;
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 15px #00ff00;
    }
}

@keyframes blink-random {

    0%,
    40%,
    80% {
        opacity: 0.2;
    }

    20%,
    60%,
    100% {
        opacity: 0.8;
    }
}

/* --- Nano Tech Dust Animations --- */
#tech-dust-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind everything */
    pointer-events: none;
    overflow: hidden;
}

.tech-dust-particle {
    position: absolute;
    opacity: 0.2;
    /* Very subtle */
    color: var(--text-color);
    transition: color var(--transition-speed);
}

.tech-dust-particle svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Specific Component Animations */

/* 1. Nano GPU Fans */
.nano-gpu .fan-blade {
    transform-origin: center;
    animation: nano-spin 2s linear infinite;
}

@keyframes nano-spin {
    to {
        transform: rotate(360deg);
    }
}

/* 2. Server Lights */
.nano-server .blink-light {
    animation: nano-blink 3s infinite;
}

.nano-server .blink-light:nth-child(2) {
    animation-delay: 1s;
}

.nano-server .blink-light:nth-child(3) {
    animation-delay: 0.5s;
}

@keyframes nano-blink {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* 3. Router Signal */
.nano-router .signal-wave {
    opacity: 0;
    animation: nano-signal 2s infinite ease-out;
}

.nano-router .signal-wave:nth-child(1) {
    animation-delay: 0s;
}

.nano-router .signal-wave:nth-child(2) {
    animation-delay: 0.3s;
}

.nano-router .signal-wave:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes nano-signal {
    0% {
        opacity: 1;
        transform: scale(0.5);
    }

    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* 4. Airflow (Tesla Vents Style) */
.nano-airflow {
    position: absolute;
    width: 40px;
    height: 10px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0.1;
    transform-origin: left;
    filter: blur(1px);
}

/* Floating Motion */
@keyframes float-dust {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(10px, -15px) rotate(5deg);
    }

    66% {
        transform: translate(-5px, 10px) rotate(-5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* High End Aesthetic Tweak */
.dark-mode .tech-dust-particle {
    opacity: 0.15;
    /* Even more subtle in dark mode */
}


html {
  scroll-behavior: smooth;
}

.logo a {
  text-decoration: none;
  color: inherit;
  font-weight: inherit;
}