/* 
   Rashmika Viraj Portfolio - Premium 3D Spatial CSS
   Design System: Deep Cyber Space & Glassmorphism
*/

/* --- Google Font Config & Variables --- */
:root {
    --bg-color: #02060d;
    --bg-secondary: #08121e;
    
    /* Neon HSL System - Redefined to LEOVENOM (Cyber Green & Silver Metal) */
    --cyan-neon: #00ff66;
    --cyan-glow: rgba(0, 255, 102, 0.4);
    --purple-neon: #a1b0cb;
    --purple-glow: rgba(161, 176, 203, 0.35);
    
    /* Text Palette */
    --text-main: #f1f5f9;
    --text-sub: rgba(241, 245, 249, 0.75);
    --text-muted: rgba(241, 245, 249, 0.45);
    
    /* Glassmorphism System */
    --glass-bg: rgba(6, 15, 30, 0.65);
    --glass-border: rgba(0, 255, 102, 0.12);
    --glass-border-hover: rgba(0, 255, 102, 0.3);
    --glass-blur: 20px;
    
    --transition-smooth: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* --- Document Setup & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    text-decoration: none;
    border: none;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
    overflow: hidden; /* Main window scroll locked due to 3D Space viewport */
}

body {
    background: var(--bg-color);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
    position: relative;
    width: 100vw;
    height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* --- 3D Particle Canvas Background --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #081125 0%, #030812 100%);
}

/* --- Cosmic Organic Nebula Background Blobs --- */
.nebula-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Sits behind text, above plain canvas background */
    pointer-events: none;
    overflow: hidden;
}

.nebula-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.28;
    mix-blend-mode: screen;
    animation: nebulaMove 25s infinite alternate ease-in-out;
    transform-style: preserve-3d;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--cyan-neon) 0%, rgba(0, 240, 255, 0.05) 70%, transparent 100%);
    animation-duration: 35s;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, var(--purple-neon) 0%, rgba(189, 0, 255, 0.05) 70%, transparent 100%);
    animation-duration: 40s;
    animation-delay: -5s;
}

.blob-3 {
    top: 35%;
    left: 45%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, #0055ff 0%, rgba(0, 85, 255, 0.05) 70%, transparent 100%);
    animation-duration: 28s;
    animation-delay: -12s;
}

@keyframes nebulaMove {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(80px, -50px) scale(1.1) rotate(120deg);
    }
    66% {
        transform: translate(-60px, 80px) scale(0.9) rotate(240deg);
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(360deg);
    }
}

/* --- Custom Cursor --- */
.custom-cursor, .custom-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (hover: hover) {
    .custom-cursor {
        width: 8px;
        height: 8px;
        background: var(--cyan-neon);
        box-shadow: 0 0 10px var(--cyan-neon);
        opacity: 1;
    }
    
    .custom-cursor-follower {
        width: 32px;
        height: 32px;
        border: 1px solid var(--purple-neon);
        box-shadow: 0 0 8px var(--purple-glow);
        opacity: 1;
        transition: transform 0.08s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    }
}

/* --- Scroll Progress Bar --- */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 999;
}

.scroll-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--cyan-neon), var(--purple-neon));
    box-shadow: 0 0 10px var(--cyan-neon);
    transition: width 0.1s ease-out;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 900;
    background: transparent;
    transition: var(--transition-smooth);
}

.header.sticky {
    padding: 1.8rem 10%;
    background: rgba(3, 8, 18, 0.75);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: 'Kings', cursive;
    font-size: 3.2rem;
    color: var(--text-main);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.logo span {
    font-family: 'Kings', cursive;
    font-style: italic;
    color: var(--cyan-neon);
    text-shadow: 0 0 10px var(--cyan-glow);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 3.5rem;
}

.navbar a {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-sub);
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.5rem 0;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan-neon), var(--purple-neon));
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.navbar a:hover, .navbar a.active {
    color: var(--cyan-neon);
    text-shadow: 0 0 8px var(--cyan-glow);
}

.navbar a.active::after {
    width: 100%;
}

/* Hamburger Icon for Mobile */
#menu-icon {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
    z-index: 950;
}

#menu-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-main);
    border-radius: 4px;
    transition: all 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}

#menu-icon.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--cyan-neon);
}

#menu-icon.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-15px);
}

#menu-icon.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--cyan-neon);
}

/* --- 3D Scroll Spatial Viewport --- */
.scroll-3d-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    perspective: 1200px;
    z-index: 10;
}

.section-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1), opacity 1.2s ease, visibility 1.2s;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    padding: 14rem 10% 4rem;
    overflow-y: auto;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}
.section-3d::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Webkit browsers */
}

/* Enter state (Below / Deep Z-depth) */
.section-3d.next-slide {
    transform: translateZ(-2500px) rotateX(20deg) rotateY(5deg);
    opacity: 0;
    visibility: hidden;
}

/* Exit state (Above / Floating forward on Z) */
.section-3d.prev-slide {
    transform: translateZ(1200px) rotateX(-20deg) rotateY(-5deg);
    opacity: 0;
    visibility: hidden;
}

/* Active Screen state */
.section-3d.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateZ(0) rotateX(0deg) rotateY(0deg);
    z-index: 5;
}

/* --- Universal Component Elements --- */
.heading {
    font-size: 5rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    text-align: center;
    letter-spacing: -1px;
    margin-bottom: 4rem;
    color: var(--text-main);
}

.heading span {
    background: linear-gradient(135deg, var(--cyan-neon), var(--purple-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 3rem;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan-neon), var(--purple-neon));
    color: #030812;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: var(--cyan-neon);
}

/* --- SECTION 1: HOME --- */
.home-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 8rem;
    max-width: 1300px;
}

.home-content {
    flex: 1.2;
    max-width: 700px;
    text-align: left;
}

.welcome-tagline {
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--cyan-neon);
    margin-bottom: 1.5rem;
    display: block;
}

.home-content h1 {
    font-size: 6.2rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

.name-gradient {
    background: linear-gradient(135deg, #00f0ff 30%, #bd00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(0, 240, 255, 0.15);
}

.typing-container {
    font-size: 3rem;
    font-weight: 500;
    color: var(--text-sub);
    min-height: 4.5rem;
    margin-bottom: 2.5rem;
}

.home-content .typing-text {
    color: var(--cyan-neon);
    font-weight: 700;
}

.cursor-blink {
    color: var(--cyan-neon);
    animation: blink 0.8s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.home-content p {
    font-size: 1.7rem;
    line-height: 1.7;
    color: var(--text-sub);
    margin-bottom: 3.5rem;
}

.social-media {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.6rem;
    height: 4.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    font-size: 2.2rem;
    color: var(--text-sub);
    transition: var(--transition-smooth);
}

.social-media a:hover {
    color: var(--cyan-neon);
    background: rgba(0, 240, 255, 0.05);
    border-color: var(--cyan-neon);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
    transform: translateY(-4px);
}

.cta-buttons {
    display: flex;
    gap: 2rem;
}

/* 3D Interactive Hero Card */
.home-3d-hero {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.hero-3d-card {
    position: relative;
    width: 32rem;
    height: 38rem;
    border-radius: 2.4rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 2.4rem;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 240, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.hero-img {
    width: 88%;
    height: 88%;
    object-fit: cover;
    object-position: top;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateZ(30px);
    transition: var(--transition-smooth);
}

.hero-badge {
    position: absolute;
    background: rgba(8, 17, 37, 0.85);
    border: 1px solid var(--cyan-neon);
    padding: 1.2rem 1.8rem;
    border-radius: 1.6rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    backdrop-filter: blur(10px);
    z-index: 10;
    transform: translateZ(55px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.hero-badge i {
    font-size: 2.4rem;
    color: var(--cyan-neon);
}

.hero-badge h4 {
    font-size: 1.3rem;
    font-weight: 700;
}

.hero-badge p {
    font-size: 1.1rem;
    color: var(--text-sub);
}

.badge-top {
    top: 4rem;
    left: -4rem;
}

.badge-bottom {
    bottom: 4rem;
    right: -4rem;
    border-color: var(--purple-neon);
}

/* --- SECTION 2: ABOUT --- */
.about-container {
    width: 100%;
    max-width: 1200px;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 8rem;
    align-items: center;
}

.about-visual {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.about-img-box {
    position: relative;
    width: 30rem;
    height: 30rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.about-img-box img {
    width: 86%;
    height: 86%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 3px solid rgba(0, 240, 255, 0.25);
    transform: translateZ(20px);
    z-index: 2;
}

.about-img-box .circle-spin {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-left: 3px solid var(--cyan-neon);
    border-right: 3px solid var(--purple-neon);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.2);
    animation: aboutSpin 12s linear infinite;
    z-index: 1;
}

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

.about-details-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 2.4rem;
    padding: 4rem;
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    transform: translateZ(10px);
}

.about-details-card h3 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.about-meta-text {
    font-size: 1.4rem;
    color: var(--cyan-neon);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}

.about-details-card p {
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--text-sub);
    margin-bottom: 3rem;
}

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2.5rem;
}

.info-item {
    text-align: left;
}

.info-number {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--cyan-neon);
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.info-label {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- SECTION 3: JOURNEY (EDUCATION & EXPERIENCE) --- */
.journey-container {
    width: 100%;
    max-width: 1200px;
}

.journey-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.column-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
}

.column-title i {
    color: var(--cyan-neon);
    text-shadow: 0 0 10px var(--cyan-glow);
}

.journey-box {
    border-left: 2px solid rgba(0, 240, 255, 0.15);
    padding-left: 3rem;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.journey-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    padding: 2.5rem;
    backdrop-filter: blur(var(--glass-blur));
    transition: var(--transition-smooth);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transform-style: preserve-3d;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1.6rem;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(189, 0, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.journey-card::before {
    content: '';
    position: absolute;
    top: 2.8rem;
    left: -4.1rem;
    width: 2rem;
    height: 2rem;
    background: var(--bg-color);
    border: 3px solid var(--cyan-neon);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyan-neon);
    transition: var(--transition-smooth);
    z-index: 10;
}

.journey-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: 0 15px 35px rgba(189, 0, 255, 0.15);
}

.journey-card:hover::before {
    background: var(--purple-neon);
    border-color: var(--purple-neon);
    box-shadow: 0 0 12px var(--purple-neon);
}

.journey-card .year {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--cyan-neon);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.journey-card h3 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    transform: translateZ(15px);
}

.journey-card .institute {
    font-size: 1.4rem;
    color: var(--purple-neon);
    font-weight: 500;
    display: block;
    margin-bottom: 1.2rem;
    transform: translateZ(10px);
}

.journey-card p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--text-sub);
    transform: translateZ(5px);
}

/* --- SECTION 4: SKILLS --- */
.skills-container {
    width: 100%;
    max-width: 1200px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.skill-card-3d {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 3rem;
    backdrop-filter: blur(var(--glass-blur));
    text-align: left;
    transition: var(--transition-smooth);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    transform-style: preserve-3d;
}

.skill-card-3d:hover {
    border-color: var(--cyan-neon);
    box-shadow: 0 15px 35px rgba(0, 240, 255, 0.15);
    transform: translateY(-8px);
}

.skill-icon-box {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 6rem;
    height: 6rem;
    border-radius: 1.4rem;
    font-size: 3.2rem;
    margin-bottom: 2rem;
    transform: translateZ(25px);
    transition: var(--transition-smooth);
}

.skill-java { background: rgba(224, 60, 60, 0.08); color: #e03c3c; border: 1px solid rgba(224, 60, 60, 0.2); }
.skill-web { background: rgba(0, 240, 255, 0.08); color: var(--cyan-neon); border: 1px solid rgba(0, 240, 255, 0.2); }
.skill-design { background: rgba(189, 0, 255, 0.08); color: var(--purple-neon); border: 1px solid rgba(189, 0, 255, 0.2); }
.skill-coordination { background: rgba(255, 170, 0, 0.08); color: #ffaa00; border: 1px solid rgba(255, 170, 0, 0.2); }
.skill-network { background: rgba(0, 255, 136, 0.08); color: #00ff88; border: 1px solid rgba(0, 255, 136, 0.2); }
.skill-cyber { background: rgba(0, 102, 255, 0.08); color: #0066ff; border: 1px solid rgba(0, 102, 255, 0.2); }

.skill-card-3d:hover .skill-icon-box {
    transform: translateZ(35px) scale(1.1);
    box-shadow: 0 0 15px currentColor;
}

.skill-card-3d h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    transform: translateZ(20px);
}

.skill-card-3d p {
    font-size: 1.4rem;
    color: var(--text-sub);
    line-height: 1.5;
    margin-bottom: 2.2rem;
    transform: translateZ(10px);
}

.skill-progress {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transform: translateZ(15px);
}

.progress-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan-neon), var(--purple-neon));
    border-radius: 10px;
    width: 0%; /* Dynamic fill via class / code */
    box-shadow: 0 0 8px var(--cyan-neon);
}

.skill-card-3d .percentage {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cyan-neon);
}

/* --- SECTION 5: PROJECTS --- */
.projects-wrapper {
    width: 100%;
    max-width: 1300px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 4rem;
}

.project-card-3d {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    overflow: hidden;
    backdrop-filter: blur(var(--glass-blur));
    transition: var(--transition-smooth);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
}

.project-card-3d:hover {
    border-color: var(--glass-border-hover);
    box-shadow: 0 20px 45px rgba(189, 0, 255, 0.15);
    transform: translateY(-8px);
}

.project-img-box {
    position: relative;
    width: 100%;
    height: 20rem;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    background: #040d1f;
}

.project-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card-3d:hover .project-img-box img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 8, 18, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 10;
}

.project-card-3d:hover .project-overlay {
    opacity: 1;
}

.project-action-btn {
    width: 5.6rem;
    height: 5.6rem;
    background: linear-gradient(135deg, var(--cyan-neon), var(--purple-neon));
    color: #030812;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 2.4rem;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    transform: scale(0.6);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.project-card-3d:hover .project-action-btn {
    transform: scale(1);
}

.project-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    font-family: 'Space Grotesk', sans-serif;
    transform: translateZ(20px);
}

.project-content p {
    font-size: 1.4rem;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    transform: translateZ(10px);
}

.project-tags {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    transform: translateZ(15px);
}

.project-tags span {
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-sub);
}

/* --- Dynamic Mesh Backgrounds for Mock Projects (Aesthetic CSS Cards) --- */
.abstract-mesh-1 {
    background: radial-gradient(circle at 10% 20%, rgba(224, 60, 60, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.1) 0%, transparent 60%);
    position: relative;
    flex-direction: column;
}

.abstract-mesh-2 {
    background: radial-gradient(circle at 80% 20%, rgba(189, 0, 255, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 20% 80%, rgba(0, 240, 255, 0.1) 0%, transparent 60%);
}

.abstract-mesh-3 {
    background: radial-gradient(circle at 50% 50%, rgba(255, 170, 0, 0.12) 0%, transparent 70%);
}

.abstract-mesh-4 {
    background: radial-gradient(circle at 30% 10%, rgba(0, 255, 136, 0.12) 0%, transparent 60%),
                radial-gradient(circle at 70% 90%, rgba(0, 102, 255, 0.15) 0%, transparent 60%);
}

/* Coding IDE Mockup inside Project 2 */
.mockup-code-header {
    width: 88%;
    height: 24px;
    background: rgba(8, 17, 37, 0.9);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 10px;
    transform: translateZ(15px);
}

.mockup-code-header span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: block;
}
.mockup-code-header span:nth-child(1) { background: #ff5f56; }
.mockup-code-header span:nth-child(2) { background: #ffbd2e; }
.mockup-code-header span:nth-child(3) { background: #27c93f; }

.mockup-code-body {
    width: 88%;
    height: 110px;
    background: rgba(4, 9, 20, 0.95);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: none;
    padding: 1.2rem;
    font-family: monospace;
    font-size: 1.1rem;
    line-height: 1.4;
    color: #a9b7c6;
    overflow: hidden;
    transform: translateZ(10px);
}

.mockup-code-body code {
    color: var(--cyan-neon);
}

/* Dashboard Mockup inside Project 3 */
.mockup-dashboard {
    width: 88%;
    height: 130px;
    background: rgba(4, 9, 20, 0.85);
    border-radius: 8px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    display: flex;
    overflow: hidden;
    transform: translateZ(15px);
}

.mockup-db-sidebar {
    width: 25%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-db-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.2rem;
}

.db-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.db-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--cyan-neon), var(--purple-neon));
    border-radius: 4px;
}

.fill-70::after { width: 70%; }
.fill-50::after { width: 50%; }
.fill-90::after { width: 90%; }

/* Gallery Mockup inside Project 4 */
.mockup-gallery {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 170, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: #ffaa00;
    animation: rotateAperture 8s linear infinite;
    transform: translateZ(15px);
}

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

/* Security Shield inside Project 5 */
.mockup-cyber {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #00ff88;
    transform: translateZ(15px);
}

.mockup-cyber i {
    font-size: 5rem;
    filter: drop-shadow(0 0 10px rgba(0,255,136,0.3));
}

.mockup-cyber span {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* --- SECTION 6: CONTACT --- */
.contact-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 8rem;
    margin-bottom: 6rem;
}

.contact-info {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 2.4rem;
    padding: 4rem;
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    transform-style: preserve-3d;
}

.contact-info h3 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    transform: translateZ(20px);
}

.contact-info p {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-sub);
    margin-bottom: 4rem;
    transform: translateZ(10px);
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    transform: translateZ(15px);
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.contact-detail-item i {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    border-radius: 1.2rem;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.15);
    font-size: 2.4rem;
    color: var(--cyan-neon);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.contact-detail-item h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.contact-detail-item p, .contact-detail-item a {
    font-size: 1.4rem;
    color: var(--text-sub);
    transition: var(--transition-smooth);
}

.contact-detail-item a:hover {
    color: var(--cyan-neon);
}

.contact-form-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 2.4rem;
    padding: 4rem;
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.form-row {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.form-group {
    flex: 1;
    position: relative;
}

.contact-form-box input, .contact-form-box textarea {
    width: 100%;
    padding: 1.6rem 2.2rem;
    font-size: 1.5rem;
    color: var(--text-main);
    background: rgba(3, 8, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.2rem;
    transition: var(--transition-smooth);
}

.contact-form-box input:focus, .contact-form-box textarea:focus {
    border-color: var(--cyan-neon);
    background: rgba(3, 8, 18, 0.8);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.btn-submit {
    border: none;
    font-family: inherit;
    width: 100%;
    justify-content: center;
    padding: 1.6rem;
    margin-top: 1rem;
}

/* Integrated Footer */
.footer-inline {
    width: 100%;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--text-sub);
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    color: var(--purple-neon);
    background: rgba(189, 0, 255, 0.05);
    border-color: var(--purple-neon);
    box-shadow: 0 0 12px rgba(189, 0, 255, 0.25);
    transform: translateY(-3px);
}

.copyright {
    font-size: 1.3rem;
    color: var(--text-muted);
}

/* --- Scroll Dots Indicator Navigation --- */
.scroll-dots {
    position: fixed;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 900;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.dot:hover {
    background: var(--cyan-neon);
}

.dot.active {
    background: var(--cyan-neon);
    box-shadow: 0 0 10px var(--cyan-neon);
}

.dot.active::before {
    border-color: var(--cyan-neon);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1300px) {
    .home-container, .about-grid, .contact-grid {
        gap: 4rem;
    }
}

@media (max-width: 1100px) {
    .section-3d {
        padding: 13rem 6% 4rem;
    }
    
    .home-container {
        gap: 3rem;
    }
    
    .home-content h1 {
        font-size: 5rem;
    }
    
    .home-3d-hero .hero-3d-card {
        width: 28rem;
        height: 33rem;
    }
    
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .about-visual {
        order: -1;
    }
    
    .journey-row {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .scroll-dots {
        right: 2rem;
    }
}

@media (max-width: 900px) {
    /* Show Hamburger icon, slide navbar in from side */
    #menu-icon {
        display: flex;
    }
    
    .navbar {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        height: auto;
        background: rgba(3, 8, 18, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: column;
        align-items: center;
        padding: 4rem 0;
        gap: 3rem;
        transition: var(--transition-smooth);
        visibility: hidden;
        opacity: 0;
    }
    
    .navbar.active {
        left: 0;
        visibility: visible;
        opacity: 1;
    }
    
    .navbar a {
        font-size: 2.2rem;
        width: 80%;
        text-align: center;
        transform: translateY(-20px);
        transition: var(--transition-smooth);
    }
    
    .navbar.active a {
        transform: translateY(0);
    }
    
    /* Disable aggressive 3D translation coordinates on mobile for fast processing */
    .section-3d.next-slide {
        transform: translateY(50%) translateZ(-500px);
    }
    
    .section-3d.prev-slide {
        transform: translateY(-50%) translateZ(-500px);
    }
    
    .home-container {
        flex-direction: column;
        text-align: center;
        gap: 6rem;
        padding-top: 5rem;
    }
    
    .home-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .home-3d-hero {
        order: -1;
    }
    
    .hero-badge {
        transform: translateZ(20px);
    }
    
    .badge-top { left: -2rem; }
    .badge-bottom { right: -2rem; }
}

@media (max-width: 600px) {
    .section-3d {
        padding: 11rem 4% 4rem;
        overflow-y: auto; /* Allow standard vertical scroll within section block if content exceeds height */
    }
    
    .home-content h1 {
        font-size: 4rem;
    }
    
    .typing-container {
        font-size: 2.4rem;
    }
    
    .heading {
        font-size: 3.8rem;
    }
    
    .about-details-card, .contact-info, .contact-form-box {
        padding: 2.5rem;
    }
    
    .about-info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .scroll-dots {
        display: none; /* Hide dots on small screens */
    }
}

/* ==========================================
   LEOVENOM Preloader & Brand Logo Styling
   ========================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #02060d;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1), visibility 0.8s;
    overflow: hidden;
}

.preloader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    height: 400px;
}

.spirit-container {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin-bottom: 4rem;
    transition: all 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    transform-style: preserve-3d;
}

.spirit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    color: var(--cyan-neon);
    filter: drop-shadow(0 0 15px var(--cyan-glow));
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
}

.spirit-svg {
    width: 110px;
    height: 110px;
}

.spirit-svg path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawOutline 3s ease forwards;
}

.lion-spirit {
    transform: translateX(120vw);
    opacity: 0;
    animation: slideSpiritIn 1.8s cubic-bezier(0.19, 1, 0.22, 1) 0.3s forwards, lionRoar 2s ease-in-out infinite 2s;
    color: #a1b0cb; /* Silver */
    filter: drop-shadow(0 0 15px rgba(161, 176, 203, 0.4));
}

.cobra-spirit {
    transform: translateX(-120vw);
    opacity: 0;
    animation: slideSpiritIn 1.8s cubic-bezier(0.19, 1, 0.22, 1) 0.3s forwards, cobraSway 3s ease-in-out infinite 2s;
    color: #00ff66; /* Neon Green */
}

.spirit-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
}

/* Merged Logo Reveal */
.merged-logo-container {
    position: absolute;
    top: 32%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 10;
}

.preloader-logo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    box-shadow: 0 0 35px rgba(0, 255, 102, 0.25);
    border: 2px solid rgba(0, 255, 102, 0.15);
}

.logo-spark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 80px 40px #00ff66, 0 0 120px 60px #fff;
    opacity: 0;
    pointer-events: none;
}

/* Status Bar */
.preloader-status {
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    margin-top: 2rem;
}

.status-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.status-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ff66, #a1b0cb);
    box-shadow: 0 0 10px #00ff66;
    animation: fillStatus 3.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.status-text {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
    animation: pulseText 1.5s infinite;
}

/* Animations Keyframes */
@keyframes drawOutline {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes slideSpiritIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fillStatus {
    0% { width: 0%; }
    30% { width: 45%; }
    70% { width: 85%; }
    100% { width: 100%; }
}

@keyframes pulseText {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes cobraSway {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    33% { transform: rotate(3deg) translateY(-4px) scale(1.02); }
    66% { transform: rotate(-3deg) translateY(2px) scale(0.98); }
}

@keyframes lionRoar {
    0%, 100% { transform: scale(1) rotate(0deg); }
    10%, 30%, 50% { transform: scale(1.06) rotate(1deg) translate(-2px, 2px); }
    20%, 40%, 60% { transform: scale(1.06) rotate(-1deg) translate(2px, -2px); }
    70%, 95% { transform: scale(1.02) rotate(0deg); }
}

/* Collision Phase Class Triggers (Controlled by JS) */
.spirit-container.collide .lion-spirit {
    transform: translateX(-150px) scale(0.4) rotate(-15deg);
    opacity: 0;
    filter: blur(10px);
    transition: transform 0.6s cubic-bezier(0.6, -0.28, 0.735, 0.045), opacity 0.5s ease;
}

.spirit-container.collide .cobra-spirit {
    transform: translateX(150px) scale(0.4) rotate(15deg);
    opacity: 0;
    filter: blur(10px);
    transition: transform 0.6s cubic-bezier(0.6, -0.28, 0.735, 0.045), opacity 0.5s ease;
}

.spirit-container.dissolve {
    opacity: 0;
    transform: scale(0.7) rotate(10deg);
    filter: blur(10px);
}

.merged-logo-container.reveal {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.merged-logo-container.reveal .logo-spark {
    animation: flashSpark 0.8s ease-out forwards;
}

@keyframes flashSpark {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.1);
    }
    15% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(4);
    }
}

/* Header logo inline formatting */
.header-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 0.8rem;
    border: 1px solid rgba(0, 255, 102, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.2);
    transition: var(--transition-smooth);
}

.logo:hover .header-logo-img {
    transform: rotate(360deg) scale(1.1);
    border-color: #00ff66;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.5);
}

