/* ==========================================================================
   CSS Variables & Theme Setup
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-primary: #050505;
    --bg-secondary: #0f0f13;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;

    /* Accents (Blue Gradient) */
    --accent-primary: #00c6ff;
    --accent-secondary: #0096ff;
    --accent-tertiary: #0072ff;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Typography */
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-code: 'Fira Code', monospace;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Resets & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* For custom cursor */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    /* font-size: 56px; */
}

.section-padding {
    padding: 100px 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: left;
}

.section-subtitle {
    font-family: var(--font-code);
    color: var(--accent-primary);
    font-size: 1.2rem;
    font-weight: 560;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
}

/* Custom Selection */
::selection {
    background-color: var(--accent-primary);
    color: #000;
}

/* ==========================================================================
   Custom Cursor
   ========================================================================== */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border: 1px solid var(--accent-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
}

.custom-cursor.hover {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 198, 255, 0.1);
    border-color: transparent;
}

/* ==========================================================================
   Preloader
   ========================================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000312;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(0, 198, 255, 0.03), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(0, 114, 255, 0.04), transparent 50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    /* Transition for slide up */
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1), visibility 0.8s;
    will-change: transform;
}

#preloader.fade-out {
    transform: translateY(-100%);
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.preloader-diamond {
    width: 3rem;
    height: 3rem;
    background-color: var(--text-primary);
    border-radius: 8px;
    animation: diamond-drop 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    will-change: transform, opacity;
}

@keyframes diamond-drop {
    0% {
        transform: translateY(-100vh) rotate(45deg);
        opacity: 0;
    }

    100% {
        transform: translateY(0) rotate(405deg);
        opacity: 1;
    }
}

/* #preloader.fade-out .preloader-diamond {
    animation: diamond-back 0.8s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes diamond-back {
    0% {
        transform: translateY(0) rotate(405deg);
    }
    100% {
        transform: translateY(0) rotate(45deg);
    }
} */

.loader-text {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 2px;
    animation: pulse 1.5s infinite alternate;
    will-change: transform, opacity;
}

.loader-text span {
    color: var(--accent-primary);
}

@keyframes pulse {
    0% {
        opacity: 0.6;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 5%;
    background-color: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    /* !important digunakan agar tidak tertimpa oleh transisi dari class .load-anim-top */
    transition: all 0.5s ease, opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

header.scrolled {
    padding: 15px 5%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width var(--transition-fast);
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-primary);
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

/* ==========================================================================
   Components (Buttons, Cards)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    border: none;
    cursor: none;
    white-space: nowrap;
    /* Inherits custom cursor */
}

.btn-primary {
    background: linear-gradient(135deg, #0055ff, #001188);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 85, 255, 0.4);
    /* Biru senada, bukan cyan */
    border: 1px solid rgba(0, 85, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #0066ff, #0022aa);
    box-shadow: 0 6px 20px rgba(0, 85, 255, 0.6);
    border-color: rgba(0, 85, 255, 0.8);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.btn-outline:hover {
    background: rgba(0, 198, 255, 0.1);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-custom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000312;
    /* Deep dark base */
    z-index: 0;
    overflow: hidden;
}

.hero-bg-custom::before,
.hero-bg-custom::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    animation: pulseGlow 8s infinite alternate ease-in-out;
}

.hero-bg-custom::before {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0, 198, 255, 0.15), transparent 70%);
}

.hero-bg-custom::after {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 114, 255, 0.1), transparent 70%);
    animation-delay: -4s;
}

.hero-mobile-glow {
    display: none;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.2) translate(5%, 5%);
        opacity: 0.6;
    }
}

.hero-center-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: screen;
    transform: translateZ(0);
    will-change: transform, opacity;
}

.video-desktop {
    display: block;
}

.video-mobile {
    display: none;
}

.hero-cta-wrapper {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.btn-glass {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-glass:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    width: 100%;
}

.hero-content {
    z-index: 2;
}

.hero-sub {
    font-family: var(--font-code);
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 30px;
}

.social-links-hero {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-icon:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.hero-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glow-shape {
    position: absolute;
    opacity: 0.5;
    z-index: 1;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    top: 10%;
    right: 20%;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent-tertiary) 0%, transparent 70%);
    bottom: 10%;
    left: 20%;
    animation-delay: -3s;
}

.mockup-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

.mac-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--glass-border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.code-block {
    padding: 20px;
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: #e5e7eb;
}

.keyword {
    color: #ff7b72;
}

.variable {
    color: #79c0ff;
}

.string {
    color: #a5d6ff;
}

.property {
    color: #d2a8ff;
}

/* Playful Hero Typography Update */
.hero-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.portfolio-playful-fullscreen {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-primary);
    /* Ensures background is solid */
    overflow: hidden;
}

.portfolio-playful {
    font-size: clamp(3rem, 12vw, 150px);
    font-weight: 800;
    display: flex;
    color: var(--text-primary);
    z-index: 2;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.04em;
}

.portfolio-playful .letter {
    display: inline-block;
    transform: translateY(var(--offset));
    margin: 0 -3px;
    /* Extra tight kerning */
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.i-group {
    position: relative;
    display: inline-flex;
    justify-content: center;
}

.hollow-dot {
    position: absolute;
    top: 38px;
    left: 12px;
    width: 20px;
    height: 20px;
    border: 5px solid var(--text-primary);
    border-radius: 50%;
    /* Keep it centered above the I */
}


.hero-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 700px;
    z-index: 2;
}

.justify-center {
    justify-content: center;
}

/* Decorative Shapes for Playful Hero */
/* NOTE: left/top intentionally 0 â€” JS (figma-motion.js) drives position via
   composite transform: translate() rotate() scale()                          */
.playful-shape {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    opacity: 0.85;
    transform-origin: center center;
    will-change: transform;
}

/* Ellipse â€” filled circle, Figma color #00c6ff */
.shape-ellipse {
    width: 36.73px;
    height: 36.73px;
    background-color: #00c6ff;
    border-radius: 50%;
}

/* Rounded Rectangle â€” Figma color #00c6ff */
.shape-dot {
    width: 36.73px;
    height: 36.73px;
    background-color: #00c6ff;
    border-radius: 8px;
}

/* Star icon wrapper */
.shape-star {
    font-size: 48px;
    color: var(--accent-tertiary);
    line-height: 1;
}

@keyframes spin-float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(180deg);
    }

    100% {
        transform: translateY(0) rotate(360deg);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    background-color: #000000;
    position: relative;
    overflow: hidden;
}

.about-section .container {
    position: relative;
    z-index: 2;
}

.about-bg-custom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.about-bg-custom::before,
.about-bg-custom::after,
.about-bg-custom .orb-3 {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    animation: pulseGlow 10s infinite alternate ease-in-out;
}

.about-bg-custom::before {
    top: 20%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgb(0, 22, 49), transparent 70%);
}

.about-bg-custom::after {
    bottom: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgb(0, 22, 49), transparent 70%);
    animation-delay: -5s;
}

.about-bg-custom .orb-3 {
    top: 0.1%;
    right: 20%;
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, rgb(0, 22, 49), transparent 70%);
    animation-delay: -2s;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.skills-wrapper {
    margin-top: 40px;
}

/* ==========================================================================
   Load Animations
   ========================================================================== */
.load-anim-top {
    opacity: 0;
    transform: translateY(-50px) translateZ(0);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.load-anim-top.loaded {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

.load-anim-bottom {
    opacity: 0;
    transform: translateY(50px) translateZ(0);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.load-anim-bottom.loaded {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

.skills-wrapper h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-tag {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: var(--font-code);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.skill-tag:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   3D Nametag Card (About Section)
   ========================================================================== */
.perspective-container {
    perspective: 1000px;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: top center;
    /* Optional swinging animation */
    animation: swing 6s ease-in-out infinite alternate;
}

@keyframes swing {
    0% {
        transform: rotateZ(-2deg);
    }

    100% {
        transform: rotateZ(2deg);
    }
}

.nametag-clip {
    width: 60px;
    height: 25px;
    background: linear-gradient(180deg, #222, #111);
    border-radius: 10px 10px 0 0;
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%) translateZ(1px);
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--glass-border);
    border-bottom: none;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.1);
}

.clip-hole {
    width: 30px;
    height: 8px;
    background: #000;
    border-radius: 10px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

.nametag-card {
    position: relative;
    z-index: 2;
    width: 100%;
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    /* Smooth transition when mouse moves */
}

/* Layering 3D elements inside card */
.nametag-photo-container {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    transform: translateZ(40px);
    /* Pop out */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    scale: 1.2;
}

.nametag-info {
    text-align: center;
    transform: translateZ(30px);
    /* Pop out slightly less than image */
    width: 100%;
}

.nametag-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.nametag-info p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-family: var(--font-code);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nametag-barcode {
    font-size: 2.5rem;
    color: var(--text-secondary);
    opacity: 0.5;
    margin-top: 10px;
    transform: translateZ(20px);
}

.nametag-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.3s;
    opacity: 0;
    mix-blend-mode: overlay;
    border-radius: 20px;
    /* Match card radius to avoid clipping */
}

.perspective-container:hover .nametag-glare {
    opacity: 1;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.portfolio-section {
    background-color: #000312;
    position: relative;
    overflow: hidden;
}

.portfolio-section .container {
    position: relative;
    z-index: 2;
}

.portfolio-bg-custom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.portfolio-bg-custom::before,
.portfolio-bg-custom::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: pulseGlow 12s infinite alternate ease-in-out;
}

.portfolio-bg-custom::before {
    top: 20%;
    left: -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(0, 114, 255, 0.12), transparent 70%);
}

.portfolio-bg-custom::after {
    bottom: 20%;
    right: -10%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(0, 198, 255, 0.1), transparent 70%);
    animation-delay: -4s;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    transition: var(--transition-medium);
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 198, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.project-img-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.project-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-medium);
}

.project-links-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: var(--transition-medium);
}

.project-card:hover .project-links-overlay {
    opacity: 1;
}

.project-card:hover .project-img-placeholder {
    transform: scale(1.1);
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: var(--transition-medium);
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    gap: 10px;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--accent-primary);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    background-color: #000000;
    position: relative;
    overflow: hidden;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-container {
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info>p {
    color: var(--text-secondary);
    margin: 20px 0 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-primary);
    background: rgba(0, 198, 255, 0.1);
    padding: 15px;
    border-radius: 50%;
}

.contact-item h4 {
    margin-bottom: 5px;
}

.contact-item p,
.contact-item a {
    color: var(--text-secondary);
    margin: 0;
    display: inline-block;
}

.contact-item a:hover {
    color: var(--accent-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-main);
    transition: var(--transition-fast);
}

.contact-form textarea {
    resize: vertical;
    width: 100%;
    max-width: 100%;
    min-height: 120px;
    max-height: 350px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.2);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.form-status {
    margin-top: 10px;
    font-size: 0.9rem;
    text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: #000312;
    padding: 60px 5% 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.footer-socials a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Typing Effect Cursor */
/* .typing-text {
    white-space: nowrap;
    display: inline-block;
    min-width: 18ch;
    text-align: left;
} */

.typing-text::after {
    content: "|";
    animation: blink 1s step-start infinite;
    color: var(--primary-color);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 992px) {

    .hero-container,
    .about-container {
        grid-template-columns: 1fr;
    }

    .hero-container {
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-sub {
        justify-content: center;
    }

    .social-links-hero,
    .hero-cta {
        justify-content: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
        padding: 30px 15px;
    }

    .about-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .video-desktop {
        display: none;
    }

    .video-mobile {
        display: block;
        object-fit: contain;
    }

    .hero-mobile-glow {
        display: block;
        position: absolute;
        width: 80vw;
        height: 80vw;
        top: calc(50% - 40vw);
        left: calc(50% - 40vw);
        background: radial-gradient(circle, rgba(0, 198, 255, 0.25), transparent 70%);
        border-radius: 50%;
        animation: pulseGlow 6s infinite alternate ease-in-out;
        pointer-events: none;
    }

    .hero-center-wrapper {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0 5%;
    }

    .hero-video-overlay.video-mobile {
        position: relative;
        height: auto;
        margin-bottom: 30px;
        max-width: 900px;
    }

    .hero-cta-wrapper {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
    }

    .hero-section {
        min-height: 100vh;
    }

    .contact-form {
        max-width: 100%;
        /* overflow-x: hidden; */
        padding-bottom: 5px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 5%;
        left: auto;
        width: 50%;
        min-width: 200px;
        padding: 25px 0;
        border-radius: 15px;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        transition: 0.4s ease-in-out;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        border: 1px solid var(--glass-border);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .hamburger.active .bar {
        background-color: var(--accent-primary);
    }

    .section-title {
        font-size: 2rem;
    }

    .custom-cursor,
    .custom-cursor-dot {
        display: none;
    }

    body {
        cursor: auto;
    }

    .cf-turnstile {
        transform: scale(0.85);
        transform-origin: left center;
    }

    /* Fix background orbs on mobile */
    .about-bg-custom::before,
    .about-bg-custom::after,
    .about-bg-custom .orb-3,
    .portfolio-bg-custom::before,
    .portfolio-bg-custom::after {
        width: 120vw;
        height: 120vw;
    }

    .about-bg-custom::before {
        top: 2%;
        right: -40%;
    }

    .about-bg-custom::after {
        bottom: 2%;
        left: -40%;
    }

    .about-bg-custom .orb-3 {
        top: 50%;
        right: -30%;
    }

    .portfolio-bg-custom::before {
        top: 5%;
        left: -40%;
    }

    .portfolio-bg-custom::after {
        bottom: 5%;
        right: -40%;
    }
}

/* ==========================================================================
   Honeypot (Anti-spam)
   ========================================================================== */
/* Hidden from real users but visible to bots in the DOM */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    tab-size: 0;
}