/* 
========================================
   ONES - PREMIUM PORTFOLIO
   Style Sheet
========================================
*/

/* --- VARIABLES & THEME --- */
:root {
    /* Colors */
    --bg-dark: #020617;
    --bg-card: #0b1020;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-indigo: #4f46e5;
    --accent-indigo-rgb: 79, 70, 229;
    --accent-cyan: #22d3ee;
    --accent-cyan-rgb: 34, 211, 238;
    --accent-pink: #ec4899;
    --accent-orange: #f97316;

    /* Navbar */
    --nav-bg: rgba(2, 6, 23, 0.8);
    --nav-bg-scrolled: rgba(2, 6, 23, 0.95);
    
    /* Gradients */
    --grad-main: linear-gradient(135deg, var(--accent-indigo), var(--accent-pink));
    --grad-glow: radial-gradient(circle, rgba(var(--accent-indigo-rgb), 0.15) 0%, rgba(2, 6, 23, 0) 70%);
    --glass-bg: rgba(11, 16, 32, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Sora', monospace;

    /* Spacing */
    --container-width: 1200px;
    --section-spacing: 120px;
}

body.light-mode {
    --bg-dark: #f5f5f7;
    --bg-card: #ffffff;
    --text-main: #1d1d1f;
    --text-muted: #475569;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    
    /* Updated Theme Colors */
    --accent-indigo: #7434f3;
    --accent-indigo-rgb: 116, 52, 243;
    --accent-pink: #b494e6;
    --accent-cyan: #bc91f7;
    --accent-cyan-rgb: 188, 145, 247;

    /* Navbar Light Mode */
    --nav-bg: rgba(255, 255, 255, 0.7);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.95);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    margin-left: 15px;
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

body.light-mode .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Cursor Styles - Only for devices with hover capability */
@media (hover: hover) and (pointer: fine) {
    * {
        cursor: none !important; /* Hide default cursor */
    }

    .custom-cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 12px;
        height: 12px;
        background-color: white;
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        box-shadow: 0 0 15px 5px rgba(147, 51, 234, 0.8), /* Neon Purple Glow */
                    0 0 30px 10px rgba(147, 51, 234, 0.4); 
        transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
        mix-blend-mode: difference; /* Optional: makes it visible on white backgrounds */
    }

    .custom-cursor.hovered {
        width: 24px;
        height: 24px;
        background-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0 0 25px 10px rgba(147, 51, 234, 0.9),
                    0 0 40px 15px rgba(147, 51, 234, 0.5);
    }

    /* Light Mode Cursor Overrides */
    body.light-mode .custom-cursor {
        background-color: var(--accent-indigo);
        mix-blend-mode: normal; /* Remove difference mode to keep color true */
        box-shadow: 0 0 12px 4px rgba(116, 52, 243, 0.4); /* Softer, less shiny glow */
    }

    body.light-mode .custom-cursor.hovered {
        background-color: rgba(116, 52, 243, 0.9);
        box-shadow: 0 0 20px 6px rgba(116, 52, 243, 0.5);
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

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

/* --- UTILITIES --- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-spacing) 0;
    position: relative;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--accent-indigo);
    color: var(--text-main);
    border: 1px solid transparent;
    background-image: linear-gradient(var(--bg-dark), var(--bg-dark)), linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 0 15px rgba(var(--accent-indigo-rgb), 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(var(--accent-indigo-rgb), 0.5);
    transform: translateY(-2px);
    color: var(--text-main);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(var(--accent-cyan-rgb), 0.05);
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: 0.3s ease;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    background: var(--nav-bg-scrolled);
    padding: 15px 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-dot {
    color: var(--accent-cyan);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: white;
}

.btn-nav {
    padding: 8px 20px;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    transition: 0.3s;
}

.btn-nav:hover {
    border-color: var(--accent-pink);
    color: var(--accent-pink) !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    z-index: 0; /* create stacking context for bg layers */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden; /* clip bg video like the grid layer */
}

.hero-bg-video {
    position: absolute;
    inset: 0; /* match .grid-overlay sizing */
    z-index: 0;
    pointer-events: none;
}

.hero-bg-video__media {
    width: 100%;
    height: 100%;
    object-fit: cover; /* match "background cover" behavior */
    object-position: center;
    opacity: 0.2;
    filter: saturate(1.05) contrast(1.05);
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--accent-indigo);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--accent-cyan);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3; /* keep grid lines above the video */
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

body.light-mode .grid-overlay {
    background-image: linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden; /* keep background video clipped to this div */
    min-height: calc(100vh - 80px); /* stretch like the hero background/grid */
}

.hero-text,
.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 600px;
}

.badge-pill {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(var(--accent-indigo-rgb), 0.8);
    border: 1px solid rgba(var(--accent-pink), 0.5);
    border-radius: 50px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(var(--accent-indigo-rgb), 0.4);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 80px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .hero-title {
    background: linear-gradient(to right, var(--accent-indigo), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--accent-indigo);
    margin-bottom: 20px;
    font-weight: 500;
}

.separator {
    color: var(--text-muted);
    margin: 0 5px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* --- VOXEL VISUAL --- */
.hero-visual {
    position: relative;
    width: 400px;
    height: 400px;
    perspective: 1000px;
}

.voxel-cluster {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

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

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

.cube {
    position: absolute;
    width: 80px;
    height: 80px;
    transform-style: preserve-3d;
}

.face {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(var(--accent-indigo-rgb), 0.3) inset;
    background: rgba(var(--accent-indigo-rgb), 0.1);
}

.face.front {
    transform: translateZ(40px);
}

.face.right {
    transform: rotateY(90deg) translateZ(40px);
}

.face.top {
    transform: rotateX(90deg) translateZ(40px);
}

/* Positioning Cubes */
.c1 {
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
}

.c2 {
    top: 30%;
    left: 60%;
    transform: translate3d(0, 0, -40px) scale(0.8);
    opacity: 0.8;
}

.c3 {
    top: 60%;
    left: 30%;
    transform: translate3d(0, 0, 40px) scale(0.6);
    opacity: 0.7;
}

/* --- ABOUT SECTION --- */
.about-container {
    display: flex;
    justify-content: center;
}

.about-card {
    width: 100%;
    padding: 40px;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: block;
}

.about-body {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-image-container {
    flex-shrink: 0;
    width: 300px;
}

.profile-photo {
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.about-info {
    flex: 1;
}

.about-body h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 20px;
}

.about-bio p {
    color: var(--text-muted);
    margin-bottom: 15px;
    max-width: 800px;
}

.about-stats {
    display: flex;
    gap: 60px;
    margin: 40px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 30px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    font-size: 12px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--text-muted);
    transition: 0.2s;
}

.tech-tag:hover {
    background: var(--accent-indigo);
    color: white;
}

/* --- PORTFOLIO GRID --- */
.section-header {
    margin-bottom: 60px;
    text-align: left;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 42px;
    margin-bottom: 10px;
}

.section-desc {
    color: var(--text-muted);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-indigo);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.card-image {
    height: 180px;
    background-color: #1e293b;
    position: relative;
}

/* Placeholders for thumbnails */
.placeholder-gradient-1 {
    background: linear-gradient(45deg, #2e1065, #4f46e5);
}

.placeholder-gradient-2 {
    background: linear-gradient(45deg, #0f172a, #0ea5e9);
}

.placeholder-gradient-3 {
    background: linear-gradient(45deg, #4a044e, #ec4899);
}

.placeholder-gradient-4 {
    background: linear-gradient(45deg, #1c1917, #f97316);
}

.card-content {
    padding: 20px;
}

.card-category {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 12px;
}

.card-link {
    font-size: 14px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.project-card:hover .card-link {
    color: var(--accent-indigo);
}

.arrow {
    transition: 0.2s;
}

.project-card:hover .arrow {
    transform: translateX(5px);
}

/* --- SERVICES --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.service-card {
    padding: 30px;
    text-align: center;
    transition: 0.3s;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-pink);
}

.service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(var(--accent-indigo-rgb), 0.1);
    border-radius: 12px;
    color: var(--accent-cyan);
    transition: 0.3s;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

.service-card:hover .service-icon {
    background: var(--accent-indigo);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- CLIENTS --- */
.clients {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.clients-label {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 30px;
    opacity: 0.6;
}

.clients-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.clients-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: scroll 60s linear infinite;
}

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

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

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

.client-item {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 20px;
    color: var(--text-main);
    white-space: nowrap;
    opacity: 0.5;
    transition: 0.3s;
    margin-right: 80px;
}

.client-item:hover {
    opacity: 1;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(var(--accent-cyan-rgb), 0.5);
}

/* --- GAMIFIED STATS --- */
.stats-wrapper {
    display: flex;
    align-items: center;
    padding: 50px;
    gap: 60px;
}

.profile-level {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 300px;
}

.level-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--accent-indigo);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(var(--accent-indigo-rgb), 0.1);
    box-shadow: 0 0 20px rgba(var(--accent-indigo-rgb), 0.3);
}

.level-circle span:first-child {
    font-size: 10px;
    font-weight: 700;
}

.level-number {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.level-info h3 {
    margin-bottom: 8px;
}

.xp-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 5px;
    overflow: hidden;
}

.xp-bar {
    height: 100%;
    background: var(--accent-pink);
    box-shadow: 0 0 10px var(--accent-pink);
}

.xp-text {
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.skills-bars {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-row {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 5px;
    font-family: var(--font-mono);
}

.progress-bg {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.progress-fill {
    height: 100%;
    border-radius: 2px;
    position: relative;
}

.fill-1 {
    background: var(--accent-indigo);
    width: 92%;
}

.fill-2 {
    background: var(--accent-pink);
    width: 95%;
}

.fill-3 {
    background: #d946ef; /* Fuchsia/Purple instead of orange */
    width: 88%;
}

/* --- CONTACT --- */
.contact-container {
    display: flex;
    gap: 60px;
}

.contact-content {
    flex: 1;
}

.contact-form-wrapper {
    flex: 1;
    padding: 40px;
}

.contact-text {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 16px;
}

.contact-label {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 60px;
}

.contact-value {
    color: var(--text-main);
    font-weight: 500;
    transition: 0.3s;
}

.contact-value:hover {
    color: var(--accent-pink);
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-btn {
    padding: 10px 24px;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 14px;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

body.light-mode .social-icon {
    filter: none;
}

.social-btn:hover {
    background: rgba(var(--accent-indigo-rgb), 0.1);
    border-color: var(--accent-indigo);
    color: var(--accent-indigo);
    transform: translateY(-2px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 12px;
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-indigo);
    box-shadow: 0 0 10px rgba(var(--accent-indigo-rgb), 0.2);
}

.btn-block {
    width: 100%;
    text-align: center;
}

.hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
    min-height: 18px; /* prevents layout jump */
}

.form-status.success {
    color: var(--accent-cyan);
}

.form-status.error {
    color: var(--accent-pink);
}

.recaptcha-wrap {
    display: flex;
    justify-content: center;
}

/* --- FOOTER --- */
.footer {
    padding-bottom: 40px;
}

.footer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-indigo), transparent);
    margin-bottom: 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links a {
    margin-left: 20px;
    color: var(--text-muted);
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--accent-indigo);
}

body.light-mode .footer-links a:hover {
    color: var(--accent-indigo);
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

body.light-mode .modal {
    background-color: rgba(255, 255, 255, 0.8);
}

.modal-content {
    margin: auto;
    padding: 0;
    width: 80%;
    max-width: 800px;
    position: relative;
    animation: modalUp 0.4s ease;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
}

@keyframes modalUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

.close-modal {
    font-family: inherit;
    color: var(--text-main);
    font-size: 28px;
    font-weight: 700;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 20;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.close-modal:hover {
    background: rgba(var(--accent-indigo-rgb), 0.15);
    border-color: rgba(var(--accent-indigo-rgb), 0.55);
    color: var(--accent-cyan);
    transform: scale(1.05);
}

.close-modal:active {
    transform: scale(0.98);
}

.close-modal:focus-visible {
    outline: 2px solid rgba(var(--accent-cyan-rgb), 0.85);
    outline-offset: 2px;
}

body.light-mode .close-modal {
    background: rgba(255, 255, 255, 0.75);
    color: var(--text-main);
}

body.light-mode .close-modal:hover {
    background: rgba(var(--accent-indigo-rgb), 0.12);
    border-color: rgba(var(--accent-indigo-rgb), 0.55);
    color: var(--accent-indigo);
}

.modal-body {
    padding: 30px;
}

.modal-image-wrapper {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    position: relative;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.modal-image-placeholder {
    width: 100%;
    height: 400px;
    background: #1e293b;
    display: none;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 5;
    border-radius: 4px;
    transition: 0.3s;
}

body.light-mode .slider-btn {
    background: rgba(255, 255, 255, 0.7);
    color: var(--accent-indigo);
    border: 1px solid var(--glass-border);
}

body.light-mode .slider-btn:hover {
    background: var(--accent-indigo);
    color: white;
    border-color: var(--accent-indigo);
}

.slider-btn:hover {
    background: rgba(var(--accent-indigo-rgb), 0.8);
    color: white;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.slider-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.slider-dot.active {
    background: var(--accent-cyan);
    transform: scale(1.2);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 5px;
    color: var(--text-main);
}

.modal-category {
    display: block;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.modal-desc {
    color: var(--text-muted);
    line-height: 1.7;
    white-space: pre-wrap;
    margin-bottom: 30px;
}

.modal-video-gallery {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-indigo) transparent;
}

.modal-video-gallery::-webkit-scrollbar {
    height: 8px;
}

.modal-video-gallery::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.modal-video-gallery::-webkit-scrollbar-thumb {
    background-color: var(--accent-indigo);
    border-radius: 4px;
}

.modal-video-item {
    flex: 0 0 300px;
    aspect-ratio: 16/9;
    background: black;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.modal-video-item iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 30px;
        border-bottom: 1px solid var(--glass-border);
        gap: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 40px;
    }

    .hero-visual {
        margin-bottom: 40px;
        height: 300px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-title {
        font-size: 48px;
    }

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

    .about-image-container {
        width: 200px;
        margin-bottom: 30px;
    }

    .about-stats {
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
    }

    .tech-stack {
        justify-content: center;
    }

    .stats-wrapper {
        flex-direction: column;
        padding: 30px;
        text-align: center;
    }

    .profile-level {
        flex-direction: column;
    }

    .contact-container {
        flex-direction: column;
    }

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

    .modal-video-gallery {
        flex-direction: column;
        overflow-x: visible;
    }

    .modal-video-item {
        flex: none;
        width: 100%;
    }
}

/* --- VOXEL REVEAL ANIMATION --- */
.voxel-reveal-target {
    opacity: 0;
    position: relative;
}

.voxel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: grid;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
}

.voxel-block {
    background-color: var(--bg-card);
    width: 100%;
    height: 100%;
    transform: scale(1);
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform-origin: center;
}

@keyframes voxel-dissolve {
    0% {
        transform: scale(1);
        opacity: 1;
    }

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