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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
    cursor: none;
    /* Hide default cursor for custom cursor */
}

html {
    scroll-behavior: smooth;
}

/* Mobile pe default cursor restore karo */
@media (hover: none) and (pointer: coarse) {
    * { cursor: auto; }
    #fire-canvas { display: none !important; }
}

:root {
    --bg-color: #080808;
    --second-bg-color: #121212;
    --text-color: #ededed;
    --main-color: #ff0000;
    /* Aesthetic Red */
    --main-color-shadow: 0 0 15px #ff0000, 0 0 30px #ff0000;
    --glass-bg: rgba(25, 25, 25, 0.4);
    --glass-border: rgba(255, 255, 255, 0.05);
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    /* GPU-accelerated scroll */
    -webkit-overflow-scrolling: touch;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--main-color);
    box-shadow: 0 0 10px var(--main-color), 0 0 20px var(--main-color);
    z-index: 99999;
    transition: width 0.1s;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 5px;
}

/* Custom Fire Cursor Canvas — Desktop Only */
#fire-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    will-change: contents;
}

/* Cinematic Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.intro-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Falling Letters Wrapper */
.falling-letters-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Main text row — clip hides everything above so letters drop in */
.falling-main {
    display: flex;
    align-items: flex-end;
    height: 10vw;
    overflow: hidden;
    position: relative;
}

/* Reflection row — flipped vertically, fades out downward */
.falling-reflection {
    display: flex;
    align-items: flex-start;
    height: 4.5vw;
    position: relative;
    transform: scaleY(-1);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0) 85%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0) 85%);
    overflow: hidden;
    pointer-events: none;
}

/* Individual letter — starts as hollow outline above clip area */
.fl-letter {
    font-family: 'Anton', sans-serif;
    font-size: 9vw;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px #fff;
    display: inline-block;
    letter-spacing: 3px;
    transform: translateY(-120%);
    animation: letterDrop 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.fl-letter.filled {
    color: #fff;
    -webkit-text-stroke: 0px transparent;
    transition: color 0.2s ease, -webkit-text-stroke 0.2s ease;
}

/* Reflection letters */
.fl-ref-letter {
    font-family: 'Anton', sans-serif;
    font-size: 9vw;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255,255,255,0.4);
    display: inline-block;
    letter-spacing: 3px;
    transform: translateY(-120%);
    animation: letterDrop 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.fl-ref-letter.filled {
    color: rgba(255,255,255,0.4);
    -webkit-text-stroke: 0px transparent;
    transition: color 0.2s ease, -webkit-text-stroke 0.2s ease;
}

@keyframes letterDrop {
    0%   { transform: translateY(-120%); }
    75%  { transform: translateY(6%); }
    100% { transform: translateY(0%); }
}

/* Thin divider line between text and reflection */
.preloader-divider {
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
    transition: width 0.6s ease;
    margin: 0;
}
.preloader-divider.expand {
    width: 100%;
}

/* Role subtitle reveal */
.intro-role-reveal {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    margin-top: 1.2rem;
}
.intro-role-reveal.show {
    max-height: 5rem;
    opacity: 1;
}

.intro-role {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4vw;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 8px;
}

/* Hide previous animation remnants */
.slit-mask, .slit-box, .intro-text-wrapper,
.main-text, .reflection-text, .intro-name, .intro-line {
    display: none !important;
}

/* Global Section Styling */
section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.heading {
    text-align: center;
    font-size: 4.5rem;
    margin-bottom: 2rem;
}

.heading span {
    color: var(--main-color);
    text-shadow: var(--main-color-shadow);
}

/* ============================================
   Header / Navbar (Completely Transparent)
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.4s ease;
}

.header.sticky {
    padding: 1.5rem 9%;
    background: transparent;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 2.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.logo-text {
    color: #fff;
    transition: color 0.3s ease;
}

.logo-highlight {
    color: var(--main-color);
}

.logo:hover .logo-text {
    color: var(--main-color);
}

.navbar {
    /* Fixed Vertical Navigation on the Right */
    position: fixed;
    right: 0; /* Bilkul screen k right side per chipka diya */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 55px; /* Aapas mein mazeed khola khola fasla */
    align-items: flex-end;
    z-index: 1000;
}

.navbar a {
    position: relative;
    font-size: 1.1rem; /* Thora chota size */
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Smooth bouncy animation */
    /* Padding left/right aur top/bottom adjust ki taake boxes chotay ho jayen */
    padding: 10px 20px; 
    border-radius: 30px 0 0 30px; /* Sirf left side se curve (rounded) */
    background: rgba(10, 10, 10, 0.25); /* Background transparent kardia taake background nazar aaye */
    backdrop-filter: blur(15px); /* Glassmorphism/blur barha diya */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-right: none; 
    border-left: 2px solid rgba(255, 255, 255, 0.1); /* Border thora light kardia */
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar a:hover,
.navbar a.active {
    background: rgba(255, 0, 0, 0.15);
    border-color: rgba(255, 0, 0, 0.3);
    border-left: 3px solid var(--main-color); /* Hover pe left side red glow boundary */
    box-shadow: -10px 0 20px rgba(255, 0, 0, 0.4); /* glow */
    padding-right: 35px; /* Hover / Active par yeh screen se thora aagay pop out hoga */
    color: var(--main-color);
}

.menu-btn {
    font-size: 2.8rem;
    color: var(--text-color);
    display: none;
    cursor: pointer;
}

/* Home Section */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: transparent;
    overflow: hidden;
}

.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 0, 60, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 60, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

.home::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 0, 60, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    top: 20%;
    left: 10%;
    z-index: 0;
    pointer-events: none;
}

.home-content {
    z-index: 1;
    position: relative;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    will-change: contents;
}

.hero-title {
    display: flex;
    flex-direction: column;
    font-family: 'Anton', sans-serif;
    line-height: 1.1;
    margin-bottom: 2.5rem;
    letter-spacing: 4px;
}

.hero-title .hero-name {
    font-family: 'Anton', sans-serif;
    font-size: 8.5rem;
    color: var(--main-color);
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
    margin-bottom: 0.5rem;
}

.hero-title .hero-role {
    font-family: 'Anton', sans-serif;
    font-size: 4.8rem;
    color: #f0f0f0;
    /* Crisp Off-White */
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-left: 1.5rem;
}

span.typing {
    color: var(--main-color);
    text-shadow: 0 0 5px var(--main-color);
}

.home-img {
    border-radius: 50%;
}

.home-content p {
    font-size: 1.6rem;
    margin: 2rem 0 4rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
    box-shadow: 0 0 10px transparent;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: var(--main-color-shadow);
    transform: translateY(-5px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2.8rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 10px rgba(255, 153, 0, 0.2);
    font-size: 1.6rem;
    color: var(--text-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--main-color);
    z-index: -1;
    transition: 0.5s ease;
}

.btn:hover {
    color: #fff;
    box-shadow: var(--main-color-shadow);
}

.btn:hover::before {
    width: 100%;
}

.btn-outline {
    color: var(--main-color);
    border-color: rgba(255, 0, 0, 0.5);
    background: rgba(255, 0, 0, 0.05);
}

.btn-outline::before {
    display: none;
}

.btn-outline:hover {
    color: var(--main-color);
    background: rgba(255, 0, 0, 0.15);
    border-color: var(--main-color);
}

.home-img .glowing-circle {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--main-color), #000);
    box-shadow: var(--main-color-shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floatImage 4s ease-in-out infinite;
    will-change: transform;
}

.placeholder-img {
    font-size: 15rem;
    color: var(--bg-color);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

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

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

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

/* About Section & Datapad */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10rem 2rem;
}

.holographic-datapad-container {
    perspective: 1500px;
    width: 100%;
    max-width: 800px;
}

.holographic-datapad {
    position: relative;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 4px;
    padding: 4rem;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.1), inset 0 0 20px rgba(0, 0, 0, 0.8);
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

/* Corner Brackets for HUD feel */
.bracket {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--main-color);
    box-shadow: 0 0 10px var(--main-color);
}
.top-left { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.top-right { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.bottom-left { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.bottom-right { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.datapad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
}

.datapad-header .heading {
    margin-bottom: 0;
    font-size: 3.5rem;
    text-align: left;
}

.status-indicator {
    font-family: monospace;
    font-size: 1.4rem;
    color: var(--main-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-shadow: 0 0 5px var(--main-color);
}

.blinking-dot {
    width: 10px;
    height: 10px;
    background: var(--main-color);
    border-radius: 50%;
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    0% { opacity: 1; box-shadow: 0 0 10px var(--main-color); }
    100% { opacity: 0.2; box-shadow: none; }
}

.datapad-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.system-log {
    background: rgba(0, 0, 0, 0.4);
    border-left: 3px solid var(--main-color);
    padding: 1.5rem 2rem;
}

.log-prefix {
    font-family: monospace;
    font-size: 1.4rem;
    color: var(--main-color);
    display: block;
    margin-bottom: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.system-log p, .system-log ul {
    font-size: 1.6rem;
    color: #e0e0e0;
    line-height: 1.6;
}

.system-log ul {
    padding-left: 2rem;
    list-style-type: square;
}

.system-log ul li {
    margin-bottom: 0.5rem;
}

.terminal-cursor {
    animation: blink 1s infinite step-end;
    font-weight: bold;
    color: var(--main-color);
}

/* ======================== 
   Experience / System History (3D Concept) 
   ======================== */
.experience {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-bottom: 5rem;
    overflow: visible;
}

.history-timeline {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 4rem auto 0;
    padding: 2rem 0;
    perspective: 1500px; /* 3D Perspective */
}

/* Central Energy Beam */
.history-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background: linear-gradient(to bottom, transparent, var(--main-color), transparent);
    box-shadow: 0 0 15px var(--main-color), 0 0 30px var(--main-color);
    animation: energyCoreBeam 3s linear infinite;
}

@keyframes energyCoreBeam {
    0% { opacity: 0.4; }
    50% { opacity: 1; box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color); }
    100% { opacity: 0.4; }
}

.history-item {
    position: relative;
    width: 50%;
    margin-bottom: 6rem;
    transform-style: preserve-3d;
    z-index: 1;
}

.history-item:nth-child(odd) {
    left: 0;
    padding-right: 5rem;
}

.history-item:nth-child(even) {
    left: 50%;
    padding-left: 5rem;
}

/* Glowing Nodes */
.history-dot {
    position: absolute;
    top: 3rem;
    width: 2.5rem;
    height: 2.5rem;
    background: #000;
    border: 3px solid var(--main-color);
    border-radius: 50%;
    box-shadow: inset 0 0 10px var(--main-color), 0 0 15px var(--main-color), 0 0 30px var(--main-color);
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulseNode 2s infinite ease-in-out;
}

.history-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--main-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--main-color);
}

@keyframes pulseNode {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.history-item:nth-child(odd) .history-dot {
    right: -1.25rem;
}

.history-item:nth-child(even) .history-dot {
    left: -1.25rem;
}

/* Horizontal connectors */
.history-item::before {
    content: '';
    position: absolute;
    top: 4rem;
    width: 5rem;
    height: 2px;
    background: var(--main-color);
    box-shadow: 0 0 10px var(--main-color);
    z-index: 0;
}

.history-item:nth-child(odd)::before {
    right: 0;
}

.history-item:nth-child(even)::before {
    left: 0;
}

/* 3D Datapad Card styling */
.history-datapad {
    width: 100%;
    padding: 3rem;
    border: 1px solid rgba(255, 0, 0, 0.4);
    background: linear-gradient(135deg, rgba(15,15,15,0.8), rgba(0,0,0,0.9));
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8), inset 0 0 20px rgba(255,0,0,0.05);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform: translateZ(0) scale(1);
    position: relative;
    overflow: hidden;
}

/* Float animation for the cards */
.history-item:nth-child(odd) .history-datapad {
    animation: floatCardLeft 6s ease-in-out infinite;
    will-change: transform;
}

.history-item:nth-child(even) .history-datapad {
    animation: floatCardRight 6s ease-in-out infinite;
    will-change: transform;
}

@keyframes floatCardLeft {
    0%, 100% { transform: translateY(0px) rotateY(3deg); }
    50% { transform: translateY(-8px) rotateY(6deg); }
}

@keyframes floatCardRight {
    0%, 100% { transform: translateY(0px) rotateY(-3deg); }
    50% { transform: translateY(-8px) rotateY(-6deg); }
}

/* Hover 3D interactive effect */
.history-datapad:hover {
    transform: translateZ(50px) scale(1.05) rotateY(0deg) !important;
    box-shadow: 0 25px 45px rgba(0,0,0,0.9), 0 0 30px rgba(255, 0, 0, 0.3), inset 0 0 20px rgba(255, 0, 0, 0.2);
    border-color: var(--main-color);
    z-index: 10;
}

/* Scanner line effect inside the card */
.history-datapad::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255,0,0,0.1), transparent);
    animation: scannerSweep 4s linear infinite;
    pointer-events: none;
}

@keyframes scannerSweep {
    0% { top: -100%; }
    100% { top: 100%; }
}

.history-date {
    font-size: 1.4rem;
    color: #fff;
    background: var(--main-color);
    padding: 0.3rem 1rem;
    border-radius: 4px;
    font-style: normal;
    font-weight: 600;
    box-shadow: 0 0 10px var(--main-color);
    display: inline-block;
    margin-top: 1rem;
    letter-spacing: 1px;
}

/* Timeline Responsive */
@media (max-width: 850px) {
    .history-timeline::before {
        left: 2.5rem;
    }
    
    .history-item {
        width: 100%;
        left: 0 !important;
        padding-left: 6rem !important;
        padding-right: 1.5rem !important;
    }
    
    .history-dot {
        left: 1.25rem !important;
        right: auto !important;
    }
    
    .history-item::before {
        left: 2.5rem !important;
        width: 3.5rem;
    }
    
    .history-item:nth-child(odd) .history-datapad,
    .history-item:nth-child(even) .history-datapad {
        animation: floatCardLeft 6s ease-in-out infinite; 
    }
}

/* Skills */
.skills {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skills-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    margin-top: 4rem;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem; /* Gap reduce kar diya */
}

.skill-item {
    width: 100%;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.2rem 1.5rem; /* Padding kaafi kam kar di, ab dabba chota ho jayega */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--main-color);
    box-shadow: 0 0 10px var(--main-color);
    transition: all 0.3s ease;
    z-index: 0;
}

.skill-item:hover {
    transform: translateX(10px);
    border-color: rgba(255, 0, 0, 0.3);
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.2);
}

.skill-item:hover::before {
    width: 8px;
}

.skill-info {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem; /* Name/Percentage aur line ke darmiyan ka fasla kam */
    z-index: 1;
}

.skill-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
}

.skill-percent {
    font-size: 1.2rem;
    color: var(--main-color);
    font-weight: 700;
    text-shadow: 0 0 8px var(--main-color);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    position: relative;
    z-index: 1;
}

.progress {
    height: 100%;
    background: var(--main-color);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--main-color);
    position: relative;
}

.progress::after {
    content: '';
    position: absolute;
    top: -2px;
    right: 0;
    height: 10px;
    width: 4px;
    background: #fff;
    box-shadow: 0 0 10px #fff, 0 0 20px var(--main-color);
    border-radius: 2px;
}

.skills-globe-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 600px;
    height: 600px;
    overflow: visible;
}

#globe-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.tagcloud {
    position: relative;
    z-index: 10;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--main-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tagcloud .tagcloud--item {
    cursor: pointer;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tagcloud .tagcloud--item:hover {
    color: #fff;
    text-shadow: 0 0 15px var(--main-color);
    z-index: 100;
}

.skill-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Text highlighting roknay ky liay */
}

.skill-globe-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
    margin-bottom: 5px;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.4)); /* Original soft shadow */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Float smoothly */
    user-select: none;
    -webkit-user-drag: none;
}

.skill-globe-text {
    font-size: 14px;
    color: var(--text-color); /* Original color */
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    background: rgba(15, 15, 20, 0.7); /* Deep dark background */
    backdrop-filter: blur(4px); /* Smooth clear glass */
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05); /* very subtle elegant border */
    transition: all 0.3s ease;
}

.tagcloud .tagcloud--item:hover .skill-globe-icon {
    transform: scale(1.3) translateY(-8px); /* Pop up more gracefully */
}

.tagcloud .tagcloud--item:hover .skill-globe-text {
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.1); /* Subtle white glow */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); /* Smooth drop shadow on hover */
    text-shadow: 0 0 10px var(--main-color);
}


/* Projects */
.projects {
    background: rgba(18, 18, 18, 0.4);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 0, 0, 0.1);
}

.projects-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    margin-top: 5rem;
    margin-bottom: 5rem;
}

@media (max-width: 991px) {
    .projects-wrapper {
        flex-direction: column;
    }
}

/* Left Side List */
.projects-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
}

.project-list-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-list-item:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: var(--main-color);
    transform: translateX(10px);
}

.project-list-item .icon {
    font-size: 2.2rem;
    color: var(--main-color);
    min-width: 40px;
    text-align: center;
}

.project-list-item .info h3 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.project-list-item .info p {
    font-size: 1.2rem;
    color: #ccc;
}

.portfolio-container {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Anchor cards to bottom */
    height: 550px;
    width: 100%;
    max-width: 600px;
}

/* 3D Poker Card Portfolio Container */
.portfolio-card-container {
    perspective: 1000px;
    width: 260px;
    aspect-ratio: 1 / 1.42;
    position: absolute;
    bottom: 0;
    transform-origin: bottom center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
}

/* Fan out the cards */
.portfolio-card-container:nth-child(1) { transform: rotate(-35deg) translateX(-180px); z-index: 1; }
.portfolio-card-container:nth-child(2) { transform: rotate(-25deg) translateX(-130px); z-index: 2; }
.portfolio-card-container:nth-child(3) { transform: rotate(-15deg) translateX(-80px); z-index: 3; }
.portfolio-card-container:nth-child(4) { transform: rotate(-5deg) translateX(-30px); z-index: 4; }
.portfolio-card-container:nth-child(5) { transform: rotate(5deg) translateX(30px); z-index: 5; }
.portfolio-card-container:nth-child(6) { transform: rotate(15deg) translateX(80px); z-index: 6; }
.portfolio-card-container:nth-child(7) { transform: rotate(25deg) translateX(130px); z-index: 7; }
.portfolio-card-container:nth-child(8) { transform: rotate(35deg) translateX(180px); z-index: 8; }

/* The new hover animation! Pull the card out and straighten it */
.portfolio-card-container:hover,
.portfolio-card-container.hovered {
    transform: translateY(-150px) rotate(0deg) scale(1.1) !important;
    z-index: 100 !important;
}

.portfolio-card {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    cursor: pointer;
}

/* Flip the card when pulled out */
.portfolio-card-container:hover .portfolio-card,
.portfolio-card-container.hovered .portfolio-card {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px; /* Classic card rounding */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* Dark grey premium card border */
    border: 8px solid #2b2a2a;
    background-color: #050505; /* Base dark color */
}

/* Card Front (The back of the poker card, what you see first) */
.card-front {
    /* Using the processed AI Poker Card Back Image */
    background: url('poker_card_back_processed.png') no-repeat center center;
    /* Zooming in slightly with background-size to hide the casino table background, 
       while showing the card itself fully. Adjust percentage if needed. */
    background-size: 195%; 
    background-color: #0a0a0a;
}

/* Inner borders for playing cards */
.card-border {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    pointer-events: none;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
}

.card-emblem {
    font-size: 5rem;
    color: #fff;
    background: #000;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 4px solid var(--main-color);
    box-shadow: 0 0 0 2px #fff, 0 0 30px var(--main-color);
    z-index: 2;
}

/* Card Back (The face of the poker card, revealed on hover) */
.card-back {
    transform: rotateY(180deg);
    /* Set the new poker face image */
    background: url('poker_card_face_processed.png') no-repeat center center;
    /* Zoom slightly if needed to frame the cutout face image properly */
    background-size: 195%;
    background-color: #050505;
}

.card-rank {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 2.8rem;
    font-family: "Georgia", "Times New Roman", serif; /* Poker classic font */
    font-weight: bold;
    color: #fff;
    line-height: 1;
    z-index: 5;
}

.card-rank span:last-child {
    font-size: 2.4rem; /* Suit slightly smaller */
    margin-top: -2px;
}

.card-rank.red-suit {
    color: var(--main-color);
}

.card-rank.top-left {
    top: 12px;
    left: 14px;
}

.card-rank.bottom-right {
    bottom: 12px;
    right: 14px;
    transform: rotate(180deg);
}

.card-content {
    text-align: center;
    padding: 0 3rem;
    z-index: 2;
}

.card-content h4 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Anton', sans-serif;
}

.card-content p {
    font-size: 1.3rem;
    color: #bbb;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.card-content a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: var(--main-color);
    border-radius: 50%;
    color: #fff;
    font-size: 1.8rem;
    transition: 0.3s;
    border: 2px solid #fff;
}

.card-content a:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--main-color);
}

@keyframes floatCard {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* ============================================
   Secure Uplink Terminal (Contact Section)
   ============================================ */
.contact {
    background: transparent;
    padding: 10rem 9% 5rem;
}

.uplink-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 4rem;
}

@media (max-width: 991px) {
    .uplink-container {
        flex-direction: column;
    }
}

/* Left Panel: Status & Radar */
.uplink-status {
    flex: 1;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 10px;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.05), inset 0 0 20px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
}

/* Radar Animation */
.radar-container {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid rgba(255, 0, 0, 0.3);
    background: repeating-radial-gradient(
        transparent 0,
        transparent 20px,
        rgba(255, 0, 0, 0.1) 21px,
        transparent 22px
    ),
    linear-gradient(90deg, transparent 49%, rgba(255, 0, 0, 0.2) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(255, 0, 0, 0.2) 50%, transparent 51%);
    margin-bottom: 3rem;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.1);
}

.radar-sweep {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 50%;
    background: linear-gradient(45deg, rgba(255, 0, 0, 1) 0%, transparent 100%);
    border-radius: 100% 0 0 0;
    transform-origin: bottom right;
    animation: radarSweep 4s linear infinite;
    opacity: 0.5;
}

@keyframes radarSweep {
    to { transform: rotate(360deg); }
}

.radar-blip {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    top: 40px;
    right: 50px;
    box-shadow: 0 0 10px #ff0000;
    animation: blipFade 4s linear infinite;
}

@keyframes blipFade {
    0%, 10% { opacity: 1; transform: scale(1.5); }
    30%, 100% { opacity: 0; transform: scale(1); }
}

/* Status Text */
.status-info {
    width: 100%;
    text-align: left;
}

.glitch-text {
    font-size: 2.8rem;
    color: var(--main-color);
    margin-bottom: 2rem;
    font-family: 'Anton', sans-serif;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--main-color);
    position: relative;
}

.terminal-line {
    font-family: monospace;
    font-size: 1.4rem;
    color: #bbb;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.terminal-line .highlight {
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Right Panel: Form */
.uplink-form-container {
    flex: 1.5;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 4rem;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

/* Laser Scanner Line */
.laser-scanner {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--main-color);
    box-shadow: 0 0 15px var(--main-color), 0 0 30px var(--main-color);
    animation: scanLaser 6s ease-in-out infinite;
    z-index: 10;
    opacity: 0.5;
}

@keyframes scanLaser {
    0% { top: 0; opacity: 0; }
    10% { opacity: 0.6; }
    50% { top: 100%; }
    90% { opacity: 0.6; }
    100% { top: 0; opacity: 0; }
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    padding-bottom: 1.5rem;
    margin-bottom: 3rem;
}

.terminal-header span {
    font-family: monospace;
    font-size: 1.4rem;
    color: #888;
}

.status-dots {
    display: flex;
    gap: 8px;
}

.status-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-dots .dot.red { background: #ff5f56; }
.status-dots .dot.yellow { background: #ffbd2e; }
.status-dots .dot.green { background: #27c93f; }

.secure-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.input-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.input-group label {
    font-family: monospace;
    font-size: 1.3rem;
    color: var(--main-color);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.input-group input,
.input-group textarea {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem 1.5rem;
    font-size: 1.6rem;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    border-radius: 4px 4px 0 0;
}

.input-group textarea {
    resize: none;
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom-color: var(--main-color);
    background: rgba(255, 0, 0, 0.05);
    box-shadow: inset 0 -20px 20px -20px rgba(255, 0, 0, 0.3);
}

.input-group input:focus + label,
.input-group textarea:focus + label {
    color: #fff;
    text-shadow: 0 0 8px var(--main-color);
}

/* Cyber Glitch Button */
.cyber-btn {
    position: relative;
    background: transparent;
    border: 1px solid var(--main-color);
    padding: 1.5rem 3rem;
    color: #fff;
    font-family: 'Anton', sans-serif;
    font-size: 2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 1rem;
    align-self: flex-start;
}

.cyber-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--main-color);
    transition: all 0.4s ease;
    z-index: -1;
}

.cyber-btn:hover::before {
    left: 0;
}

.cyber-btn:hover {
    box-shadow: 0 0 20px var(--main-color);
    transform: translateY(-2px);
}

.btn-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: none;
    pointer-events: none;
}

.cyber-btn:active .btn-glitch {
    display: block;
    animation: btnGlitchAnim 0.2s linear infinite;
    background: rgba(255, 255, 255, 0.2);
}

@keyframes btnGlitchAnim {
    0% { transform: translate(2px, 2px); }
    20% { transform: translate(-2px, -2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, 2px); }
    80% { transform: translate(2px, 0); }
    100% { transform: translate(-2px, 0); }
}

/* ============================================
   Footer (Redesigned)
   ============================================ */
.footer {
    background: linear-gradient(to top, rgba(10, 10, 15, 0.9), transparent);
    padding: 5rem 9% 3rem;
    border-top: 1px solid rgba(255, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: radial-gradient(circle, var(--main-color) 0%, transparent 100%);
    opacity: 0.5;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    text-align: center;
}

.footer-brand .logo {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-brand p {
    font-size: 1.4rem;
    color: #888;
    letter-spacing: 1px;
}

.footer-social {
    display: flex;
    gap: 2rem;
}

.footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    background: var(--main-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3);
    border-color: var(--main-color);
}

.footer-email {
    margin-top: 1rem;
}

.footer-email p {
    font-size: 1.6rem;
    color: #ccc;
    font-family: monospace;
    letter-spacing: 1px;
}

.footer-copyright p {
    font-size: 1.3rem;
    color: #666;
}

.footer-iconTop {
    position: absolute;
    bottom: 4rem;
    right: 9%;
}

.scroll-top-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: rgba(10, 10, 15, 0.8);
    border: 2px solid var(--main-color);
    border-radius: 50%;
    color: var(--main-color);
    font-size: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.scroll-top-btn::before {
    content: '';
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--main-color);
    transition: all 0.4s ease;
    z-index: 0;
}

.scroll-top-btn:hover::before {
    bottom: 0;
}

.scroll-top-btn i {
    position: relative;
    z-index: 1;
    transition: color 0.4s ease;
}

.scroll-top-btn:hover i {
    color: #fff;
    animation: bounceUp 1s infinite;
}

@keyframes bounceUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@media (max-width: 768px) {
    .footer-iconTop {
        position: static;
        margin-top: 3rem;
        display: flex;
        justify-content: center;
    }
}

/* Scrolling Marquee */
.skills-marquee {
    width: 100%;
    max-width: 1000px;
    margin: 4rem auto 0 auto;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scrollMarquee 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 30px;
    gap: 10px;
    opacity: 0.8;
    transition: 0.3s;
}

.marquee-item:hover {
    opacity: 1;
    transform: scale(1.1);
}

.marquee-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 0, 60, 0.4));
}

.marquee-item span {
    color: #fff;
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
        cursor: pointer;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: auto;
        transform: none;
        width: 100%;
        padding: 1rem 3%;
        background: rgba(10, 10, 15, 0.97);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-top: 1px solid rgba(255, 0, 0, 0.3);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .5);
        display: none;
        flex-direction: column;
        align-items: flex-start;
        z-index: 100;
    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 1.5rem 0;
        margin-left: 0;
        transform: none;
        width: 100%;
        text-align: left;
        border-radius: 8px;
    }

    .navbar a:hover,
    .navbar a.active {
        transform: translateY(-2px);
    }

    .home {
        flex-direction: column;
        text-align: center;
    }

    .skills-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        align-items: center;
    }

    .hero-title .hero-name {
        font-size: 6rem;
    }

    .hero-title .hero-role {
        font-size: 3.2rem;
    }

    .about-img {
        width: 70vw;
        margin-top: 4rem;
    }

    .intro-name {
        font-size: 12vw;
    }

    .intro-role {
        font-size: 4vw;
        letter-spacing: 5px;
    }

    /* Mobile pe heavy blur effects band — GPU relief */
    .holographic-datapad,
    .history-datapad,
    .skill-item,
    .uplink-status,
    .uplink-form-container {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    /* Mobile pe float/3D card animations band — scroll smooth ho */
    .history-item:nth-child(odd) .history-datapad,
    .history-item:nth-child(even) .history-datapad {
        animation: none;
        transform: none;
    }

    /* Portfolio cards simpler on mobile */
    .portfolio-container {
        height: 400px;
    }
    .portfolio-card-container {
        width: 200px;
    }
    .portfolio-card-container:nth-child(1) { transform: rotate(-30deg) translateX(-140px); }
    .portfolio-card-container:nth-child(2) { transform: rotate(-20deg) translateX(-100px); }
    .portfolio-card-container:nth-child(3) { transform: rotate(-12deg) translateX(-60px); }
    .portfolio-card-container:nth-child(4) { transform: rotate(-4deg) translateX(-20px); }
    .portfolio-card-container:nth-child(5) { transform: rotate(4deg) translateX(20px); }
    .portfolio-card-container:nth-child(6) { transform: rotate(12deg) translateX(60px); }
    .portfolio-card-container:nth-child(7) { transform: rotate(20deg) translateX(100px); }
    .portfolio-card-container:nth-child(8) { transform: rotate(30deg) translateX(140px); }

    /* Skills globe mobile fix */
    .skills-globe-container {
        height: 420px;
    }

    /* Skills globe text labels chotay mobile pe */
    .skill-globe-text {
        font-size: 11px;
        padding: 2px 5px;
    }
    .skill-globe-icon {
        width: 26px;
        height: 26px;
    }

    /* Touch-friendly tap targets */
    .navbar a {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .hero-title .hero-name {
        font-size: 5rem;
    }

    .hero-title .hero-role {
        font-size: 2.8rem;
    }

    .intro-name {
        font-size: 16vw;
    }

    .intro-role {
        font-size: 4.5vw;
        letter-spacing: 3px;
    }

    .skills-globe-container {
        height: 360px;
    }

    /* Preloader text smaller on tiny screens */
    .fl-letter, .fl-ref-letter {
        font-size: 13vw;
    }
    .falling-main {
        height: 15vw;
    }
    .falling-reflection {
        height: 7vw;
    }
}

/* Burnable Text Hover Effect */
.burnable {
    font-family: inherit;
    transition: text-shadow 0.2s ease, color 0.2s ease;
    display: inline;
}

.burnable:hover {
    color: #fff !important;
    animation: textFire 0.4s infinite alternate;
}

@keyframes textFire {
    0% {
        text-shadow:
            0 -1px 3px #FFF,
            0 -2px 6px #ff0,
            0 -4px 10px #ff8000,
            0 -8px 20px #ff0000;
    }

    100% {
        text-shadow:
            0 -1px 3px #FFF,
            0 -3px 8px #ff0,
            0 -6px 14px #ff8000,
            0 -12px 30px #ff0000;
    }
}