/* ========================================
   STARK VARIABLES
======================================== */
:root {
    --arc-blue: #00d9ff;
    --arc-blue-dim: rgba(0, 217, 255, 0.1);
    --arc-blue-glow: rgba(0, 217, 255, 0.6);
    --stark-gold: #ffd700;
    --bg-deep: #05070a;
    --glass: rgba(16, 20, 30, 0.8);
    --glass-border: rgba(0, 217, 255, 0.3);
    --text-main: #e8f4f8;
    --text-muted: #8b9bb4;

    --font-head: 'Orbitron', sans-serif;
    --font-sub: 'Rajdhani', sans-serif;
    --font-body: 'Exo 2', sans-serif;
    --font-code: 'Share Tech Mono', monospace;
    --font-hud: 'Audiowide', cursive;
}

/* BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    width: 100vw;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--arc-blue);
    border-radius: 3px;
}

/* BACKGROUND FX */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    z-index: 90;
    pointer-events: none;
    opacity: 0.3;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--arc-blue-dim) 1px, transparent 1px), linear-gradient(90deg, var(--arc-blue-dim) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.08;
    z-index: -2;
    transform: perspective(500px) rotateX(10deg);
    animation: grid-flow 20s linear infinite;
}

/* CUSTOM CURSOR */
#cursor {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 1.5px solid var(--arc-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px var(--arc-blue);
}

#cursor::after {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--arc-blue);
    border-radius: 50%;
}

#cursor.active {
    width: 50px;
    height: 50px;
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--stark-gold);
    box-shadow: 0 0 20px var(--stark-gold);
}

/* GLASS PANELS & UI */
.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.glass-panel:hover {
    box-shadow: 0 0 30px var(--arc-blue-dim);
    border-color: var(--arc-blue);
    transform: translateY(-5px);
}

.corner-deco {
    position: absolute;
    width: 15px;
    height: 15px;
    border-style: solid;
    border-color: var(--arc-blue);
    transition: 0.3s;
}

.tl {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

.tr {
    top: -1px;
    right: -1px;
    border-width: 2px 2px 0 0;
}

.bl {
    bottom: -1px;
    left: -1px;
    border-width: 0 0 2px 2px;
}

.br {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
}

.glass-panel:hover .corner-deco {
    width: 30px;
    height: 30px;
    box-shadow: 0 0 10px var(--arc-blue);
}

.hero-btn {
    display: inline-block;
    padding: 14px 32px;
    border: 1px solid var(--stark-gold);
    color: var(--stark-gold);
    font-family: var(--font-head);
    font-weight: bold;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
    background: rgba(255, 215, 0, 0.05);
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    margin-right: 15px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.hero-btn:hover {
    background: var(--stark-gold);
    color: #000;
    box-shadow: 0 0 30px var(--stark-gold);
}

.hero-btn.secondary {
    border-color: var(--arc-blue);
    color: var(--arc-blue);
}

.hero-btn.secondary:hover {
    background: var(--arc-blue);
    color: #000;
    box-shadow: 0 0 30px var(--arc-blue);
}

h1,
h2,
h3 {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    color: var(--stark-gold);
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    border-bottom: 1px solid var(--arc-blue-dim);
    display: inline-block;
    padding-bottom: 12px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 30%;
    height: 3px;
    background: var(--arc-blue);
}

/* LOADER */
/* #loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
} */

/* LOADING SCREEN */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.arc-reactor {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid var(--arc-blue);
    box-shadow: 0 0 30px var(--arc-blue), inset 0 0 30px var(--arc-blue);
    position: relative;
    animation: pulse 2s infinite ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.core {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 40px var(--arc-blue), 0 0 60px var(--arc-blue);
}

.coil-container {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate 10s linear infinite;
}

.coil {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 10px;
    height: 20px;
    background: #000;
    border: 1px solid var(--arc-blue);
    transform-origin: center 50px;
}

.loader-text {
    margin-top: 2rem;
    font-family: var(--font-code);
    color: var(--arc-blue);
    font-size: 1.2rem;
}

/* ANIMATIONS NEEDED */
@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 20px var(--arc-blue), inset 0 0 20px var(--arc-blue);
        opacity: 0.8;
    }

    50% {
        box-shadow: 0 0 40px var(--arc-blue), inset 0 0 40px var(--arc-blue);
        opacity: 1;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* .arc-loader {
    width: 80px;
    height: 80px;
    border: 3px solid var(--arc-blue);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    margin-top: 20px;
    font-family: var(--font-code);
    color: var(--arc-blue);
    letter-spacing: 2px;
} */

/* NAVBAR */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(5, 7, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
    font-family: var(--font-hud);
    color: var(--stark-gold);
    font-size: 1.5rem;
    text-shadow: 0 0 10px var(--stark-gold);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-item {
    color: var(--text-main);
    font-family: var(--font-code);
    font-size: 0.9rem;
    transition: 0.3s;
    font-weight: bold;
    position: relative;
}

.nav-item::before {
    content: '//';
    color: var(--arc-blue);
    margin-right: 5px;
    opacity: 0;
    transition: 0.3s;
}

.nav-item:hover {
    color: var(--arc-blue);
}

.nav-item:hover::before {
    opacity: 1;
}

/* SOCIAL HUD (DESKTOP) */
.social-hud {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 900;
}

.social-icon {
    width: 50px;
    height: 50px;
    border: 1px solid var(--arc-blue-dim);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--arc-blue);
    font-size: 1.3rem;
    transition: 0.3s;
    background: rgba(0, 0, 0, 0.6);
    clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
}

.social-icon:hover {
    background: var(--arc-blue);
    color: #000;
    box-shadow: 0 0 15px var(--arc-blue);
    transform: translateX(5px);
}

.social-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--arc-blue), transparent);
    margin: 0 auto;
}

/* SOCIAL BAR (MOBILE) */
.mobile-social-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid var(--arc-blue);
    z-index: 999;
    padding: 15px;
    justify-content: center;
    gap: 30px;
    backdrop-filter: blur(10px);
}

.mobile-social-icon {
    color: var(--arc-blue);
    font-size: 1.5rem;
}

/* MAIN LAYOUT */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 10px;
    position: relative;
    z-index: 1;
}

section {
    margin-bottom: 100px;
}

/* HERO SECTION */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    margin-bottom: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 50px;
    width: 100%;
}

/* HERO TEXT ADJUSTMENT FOR LONG NAMES */
.hero-text-side {
    z-index: 5;
}

.hero-title {
    /* CLAMP: Scales text smoothly between 2.5rem and 5rem based on viewport width */
    font-size: clamp(2.5rem, 4.5vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    background: linear-gradient(to bottom, #fff, #999);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-flicker 4s infinite alternate;
    white-space: nowrap;
    /* Tries to keep on one line */
}

.hero-role {
    font-family: var(--font-code);
    color: var(--arc-blue);
    font-size: 1.3rem;
    margin-bottom: 1.8rem;
    padding: 8px 18px;
    border-left: 3px solid var(--arc-blue);
    background: linear-gradient(90deg, rgba(0, 217, 255, 0.1), transparent);
}

/* ARC REACTOR PHOTO FRAME */
/* Animation removed from wrapper so it stays in place */
.arc-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 380px;
    height: 380px;
    margin: 0 auto;
}

.arc-ring-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px dashed var(--arc-blue-dim);
    border-radius: 50%;
    animation: spin 30s linear infinite;
}

.arc-ring-inner {
    position: absolute;
    width: 90%;
    height: 90%;
    border: 2px solid var(--arc-blue);
    border-radius: 50%;
    border-left-color: transparent;
    border-right-color: transparent;
    animation: spin 10s linear infinite reverse;
    box-shadow: 0 0 20px var(--arc-blue-dim);
}

.arc-core {
    width: 75%;
    height: 75%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--arc-blue);
    box-shadow: 0 0 40px var(--arc-blue-glow), inset 0 0 20px var(--arc-blue);
    position: relative;
    z-index: 2;
    background: #000;
}

.arc-photo {
    width: 100%;
    height: 100%;
    object-fit: auto-fit;
    opacity: 1;
    transition: 0.5s;
}

.arc-wrapper:hover .arc-ring-inner {
    border-color: var(--stark-gold);
    box-shadow: 0 0 30px var(--stark-gold);
}

/* TIMELINE */
.timeline {
    border-left: 2px solid var(--arc-blue-dim);
    padding-left: 30px;
    margin-left: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 45px;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-dot {
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--bg-deep);
    border: 2px solid var(--arc-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--arc-blue);
    transition: 0.3s;
}

.timeline-item:hover .timeline-dot {
    background: var(--stark-gold);
    border-color: var(--stark-gold);
    box-shadow: 0 0 20px var(--stark-gold);
    transform: scale(1.3);
}

/* GRID LAYOUTS */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
}

/* CERTIFICATIONS (New Style) */
.cert-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 30px;
}

.cert-icon {
    font-size: 2.2rem;
    color: var(--stark-gold);
    min-width: 45px;
}

.cert-icon img {
    width: 38px;
    height: 38px;
}


.cert-details h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: #fff;
    letter-spacing: 1px;
}

.cert-details p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.cert-link {
    font-family: var(--font-code);
    color: var(--arc-blue);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.cert-link:hover {
    color: var(--stark-gold);
    text-decoration: underline;
}

/* SKILLS */
.skill-bar {
    margin-bottom: 18px;
}

.skill-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-code);
    color: var(--arc-blue);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.progress-track {
    background: rgba(255, 255, 255, 0.1);
    height: 4px;
    width: 100%;
}

.progress-fill {
    height: 100%;
    background: var(--arc-blue);
    width: 0;
    box-shadow: 0 0 10px var(--arc-blue);
    transition: width 1.5s ease-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 2px;
    height: 10px;
    background: #fff;
    box-shadow: 0 0 10px #fff;
}

/* BLOG SECTION */
.blog-card {
    display: flex;
    flex-direction: column;
    padding: 35px;
    height: 100%;
    transition: all 0.3s ease;
}

.blog-date {
    font-family: var(--font-code);
    color: var(--stark-gold);
    font-size: 0.9rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.blog-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.blog-excerpt {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 22px;
    flex-grow: 1;
    font-size: 1.05rem;
}

.blog-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.blog-tag {
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--arc-blue);
    background: rgba(0, 217, 255, 0.1);
    padding: 6px 14px;
    border: 1px solid var(--arc-blue-dim);
    letter-spacing: 1px;
    transition: 0.3s;
}

.blog-tag:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--arc-blue);
}

.blog-link {
    font-family: var(--font-code);
    color: var(--stark-gold);
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    transition: 0.3s;
    display: inline-block;
}

.blog-link:hover {
    color: var(--arc-blue);
    transform: translateX(5px);
}

.blog-link::after {
    content: ' →';
    transition: 0.3s;
}

/* CONTACT FORM */
.holo-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    padding: 16px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 20px;
    outline: none;
    transition: 0.3s;
}

.holo-input:focus {
    border-color: var(--arc-blue);
    box-shadow: 0 0 15px var(--arc-blue-dim);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 70px 0;
    border-top: 1px solid var(--glass-border);
    font-family: var(--font-code);
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 100px;
    position: relative;
}

/* .footer-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    background-image: url('../assets/footer_mask.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 20px var(--stark-gold));
} */


/* .footer-icon {
    width: 95px;
    height: 95px;
    margin: 0 auto 20px;
    background-image: url('../assets/footer_mask.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.footer-icon::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.4);
    animation: hudRotate 4s linear infinite;
}

.footer-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.7);
    animation: arcPulse 2.5s ease-in-out infinite;
}

@keyframes hudRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes arcPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
} */

.footer-icon {
    width: 95px;
    height: 95px;
    margin: 0 auto 20px;
    background-image: url('../assets/footer_mask.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.7));
}

/* ---- Outer precision ring (thin, premium) ---- */
.footer-icon::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 215, 0, 0.25);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.25);
    animation: rotateOuter 8s linear infinite;
}

/* ---- Inner HUD micro-ticks (MCU fan service) ---- */
.footer-icon::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background:
        repeating-conic-gradient(rgba(255, 215, 0, 0.55) 0deg 1deg,
            transparent 1deg 12deg);
    mask: radial-gradient(circle, transparent 65%, black 67%);
    opacity: 0.65;
    mix-blend-mode: screen;
    animation: rotateTicks 4s linear infinite;
}

/* ---- Animations for subtle depth ---- */
@keyframes rotateOuter {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateTicks {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}





.love-3000 {
    font-family: var(--font-hud);
    color: var(--text-main);
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

/* ANIMATIONS */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes text-flicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }

    51% {
        opacity: 1;
    }

    52% {
        opacity: 0.9;
    }
}

@keyframes grid-flow {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 40px;
    }
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {

    /* Fix Hero Margin/Padding on Mobile */
    #hero {
        padding-top: 100px;
        align-items: flex-start;
        min-height: auto;
        padding-bottom: 60px;
        margin-bottom: 40px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .hero-text-side {
        order: 2;
    }

    /* Fix Title Wrapping on very small screens */
    .hero-title {
        white-space: normal;
        line-height: 1.1;
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }

    .hero-role {
        margin-bottom: 2rem;
        padding: 5px 15px;
        font-size: 1.1rem;
    }

    .hero-text-side p {
        display: none !important;
        /* Hide description on mobile */
    }

    .hero-visual-side {
        order: 1;
        margin-bottom: 30px;
    }

    /* Mobile Photo on mobile */
    .arc-wrapper {
        width: 300px;
        height: 300px;
        margin-bottom: 30px;
    }

    /* Hide Mission Briefing section on mobile */
    #about {
        display: none;
    }

    /* Hide Desktop Sidebar */
    .social-hud {
        display: none;
    }

    .mobile-social-bar {
        display: flex;
    }

    /* Show Mobile Bar */
    .nav-links {
        display: none;
    }

    /* Simplified Nav */
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-btn {
        width: 70%;
        margin-right: 0;
        padding: 12px 20px;
        margin-bottom: 20px;
    }

    nav {
        padding: 15px 20px;
    }

    h2 {
        font-size: 2rem;
    }
}