@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    /* Base Colors */
    --bg-dark: #050505;
    /* User preferred dark */

    /* Frutiger Aero / Cyberprep Palette */
    --accent-cyan: #00f0ff;
    --accent-blue: #00baff;
    --accent-green: #39ff14;
    --accent-purple: #bd00ff;
    --accent-pink: #ff0055;

    /* Neomorphic Glass Defaults */
    --glass-bg: rgba(255, 255, 255, 0.01);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shine: rgba(255, 255, 255, 0.02);

    /* Text */
    --text-main: #ffffff;
    --text-muted: #a1a1aa;

    /* Glows */
    --neon-glow: 0 0 10px rgba(0, 240, 255, 0.5), 0 0 20px rgba(0, 240, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Background (Neural Network + 4-Corner Gradient) --- */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-color: #070B14;
    /* Primary Base: Very Dark Navy */
    background-image:
        radial-gradient(circle at 15% 15%, rgba(0, 240, 255, 0.15) 0%, transparent 45%),
        /* Upper Left: Cyan */
        radial-gradient(circle at 85% 15%, rgba(189, 0, 255, 0.15) 0%, transparent 45%),
        /* Upper Right: Dark Purple/Magenta */
        radial-gradient(circle at 15% 85%, rgba(0, 80, 90, 0.25) 0%, transparent 45%),
        /* Lower Left: Deep Teal */
        radial-gradient(circle at 85% 85%, rgba(57, 255, 20, 0.12) 0%, transparent 45%);
    /* Lower Right: Hacker Green */
    filter: contrast(1.1);
}

.busy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    /* This is where particles.js lives */
}

/* Cyber Grid - Subtler */
.cyber-grid {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -1;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(500px) rotateX(60deg) translateY(100px) translateZ(-200px);
    animation: grid-move 20s linear infinite;
    pointer-events: none;
    mask-image: radial-gradient(circle, black 30%, transparent 70%);
}

@keyframes grid-move {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(60px) translateZ(-200px);
    }
}

/* --- Advanced Glass & Neomorphism --- */
.glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

/* Shine Effect for Glass */
.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.5s;
    pointer-events: none;
}

.glass:hover::before {
    left: 100%;
}

.glass:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow:
        0 15px 50px -10px rgba(0, 240, 255, 0.15),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
    transform: translateY(-5px) scale(1.01) rotateX(5deg) rotateY(5deg);
}

.glass.neomorph {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.2));
    box-shadow:
        5px 5px 15px rgba(0, 0, 0, 0.5),
        -5px -5px 15px rgba(255, 255, 255, 0.02);
}

/* --- Typography --- */
section {
    padding: 80px 5%;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 0;
}

h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 5rem;
    line-height: 1.1;
    background: linear-gradient(180deg, #fff 0%, #bffffd 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.3));
    margin-bottom: 2rem;
}

h2 {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #fff;
    background: linear-gradient(to right, #fff, #a5b4fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Refined Glitch */
.glitch-effect:hover {
    text-shadow: 3px 0px var(--accent-blue), -3px 0px var(--accent-pink);
    animation: glitch-skew 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes glitch-skew {
    0% {
        transform: skew(0deg);
    }

    20% {
        transform: skew(-2deg);
    }

    40% {
        transform: skew(2deg);
    }

    60% {
        transform: skew(-1deg);
    }

    80% {
        transform: skew(1deg);
    }

    100% {
        transform: skew(0deg);
    }
}

/* --- Navbar (Floating Pill) --- */
.nav-wrapper {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    pointer-events: none;
    /* Let clicks pass through sides */
}

nav {
    pointer-events: auto;
    padding: 12px 40px;
    border-radius: 100px;
    display: flex;
    gap: 40px;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

nav:hover {
    background: rgba(10, 10, 15, 0.8);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s;
}

nav a:hover,
nav a.active {
    color: var(--text-main);
}

/* Dot Indicator */
nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent-cyan);
    transition: all 0.3s ease;
    border-radius: 2px;
    transform: translateX(-50%);
    box-shadow: 0 0 8px var(--accent-cyan);
}

nav a:hover::after {
    width: 20px;
}

/* --- Hero --- */
.hero {
    align-items: center;
    text-align: center;
    padding-top: 120px;
    min-height: 100vh;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
}

.hero .tagline {
    color: var(--accent-green);
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    min-height: 2em;
    /* Prevent Layout Shift */
}

/* Highlights */
.highlights-grid,
.trust-grid,
.skills-wrapper {
    display: grid;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0;
}

.highlights-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.trust-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.highlight-card,
.trust-item {
    padding: 40px;
    text-align: center;
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-cyan);
}

/* --- 3D Carousel Projects (Slider) --- */
.project-section-3d {
    perspective: 1500px;
    overflow: hidden;
    /* Keep hidden to avoid scrollbars, but we might need width adjustments */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    position: relative;
    height: 600px;
    /* Fix: Ensure 3D space is preserved for children clicks */
    transform-style: preserve-3d;
}

.scene-3d {
    width: 340px;
    height: 480px;
    position: relative;
    transform-style: preserve-3d;
    pointer-events: none;
    /* Let clicks pass through scene wrapper if it's huge, but cards need auto */
}

.carousel-3d {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
    /* Smooth rotation */
}

.project-card-3d {
    position: absolute;
    width: 320px;
    height: 480px;
    background: rgba(10, 20, 30, 0.95);
    border: 1px solid var(--accent-cyan);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.5s ease-out;
    /* Smooth slide */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    /* Hide texture backface */
    backface-visibility: hidden;
}

.project-card-3d.active {
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.3);
    border-color: #fff;
    z-index: 1000 !important;
}

.project-card-3d:hover {
    transform: rotateX(8deg) rotateY(8deg) translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 240, 255, 0.2);
}

.project-card-3d img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Nav Arrows */
.nav-arrow {
    background: rgba(5, 5, 5, 0.7);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2000;
    transition: 0.3s;
    backdrop-filter: blur(5px);
    margin: 0 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    /* Space from heading */
}

.nav-arrow:hover {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: 0 0 20px var(--accent-cyan);
    transform: scale(1.1);
}

/* Skills */
.skills-wrapper {
    grid-template-columns: 1fr 1fr;
}

.skill-category {
    padding: 40px;
}

.skill-bars {
    margin-top: 30px;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-item span {
    display: block;
    margin-bottom: 5px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    background: var(--accent-cyan);
    position: relative;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.skill-tags span {
    padding: 8px 16px;
    border: 1px solid var(--accent-purple);
    border-radius: 20px;
    font-size: 0.85rem;
    transition: 0.3s;
}

.skill-tags span:hover {
    background: var(--accent-purple);
    color: #fff;
}

/* Tech Marquee */
.tech-marquee {
    margin-top: 50px;
    overflow: visible;
    padding: 30px 0;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
    width: 100%;
}

.tech-marquee-header {
    text-align: center;
    margin-top: 60px;
}

.tech-marquee-header h3 {
    margin: 0;
}

.tech-marquee h3 {
    text-align: center;
    font-size: 1.2rem;
    margin: 0 auto 20px;
    opacity: 0.8;
    width: 100%;
    display: block;
}

.marquee-row {
    display: flex;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    align-items: center;
    justify-content: flex-start;
}

.track {
    display: flex;
    gap: 50px;
    padding: 10px 0;
    position: relative;
    width: max-content;
    /* Ensure track spans full width of children */
}

/* Animations */
.scroll-left .track {
    animation: scroll-left 30s linear infinite;
}

.scroll-right .track {
    animation: scroll-right 30s linear infinite;
}

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

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

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

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

/* Glow Effect for Tech Items */
.track span {
    font-family: 'Space Mono';
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-main);
    text-transform: uppercase;
    /* Neon Glow */
    text-shadow:
        0 0 5px rgba(0, 255, 157, 0.6),
        0 0 10px rgba(0, 255, 157, 0.3);
    transition: all 0.3s ease;
    cursor: default;
}

.track span:hover {
    color: var(--accent-cyan);
    text-shadow:
        0 0 10px var(--accent-cyan),
        0 0 20px var(--accent-cyan),
        0 0 40px var(--accent-cyan);
    transform: scale(1.1);
}

/* Contact Button Pulse */
/* --- Buttons (Neomorphic Glass) --- */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.btn-neo {
    padding: 15px 40px;
    border-radius: 50px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow:
        5px 5px 15px rgba(0, 0, 0, 0.2),
        -5px -5px 15px rgba(255, 255, 255, 0.02),
        inset 0 0 10px rgba(0, 240, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-neo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-neo:hover::before {
    left: 100%;
}

.btn-neo:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 30px rgba(0, 240, 255, 0.3),
        inset 0 0 20px rgba(0, 240, 255, 0.2);
    border-color: var(--accent-cyan);
    color: #fff;
}

.btn-icon-glass {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-icon-glass:hover {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
    transform: scale(1.1);
}

/* --- 3D Carousel Projects (Holographic Tablets) --- */
.project-section-3d {
    perspective: 2000px;
    overflow: visible;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 5%;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    position: relative;
    height: 600px;
    transform-style: preserve-3d;
    margin: 60px auto;
    padding: 0 100px;
}

.scene-3d {
    width: 340px;
    height: 500px;
    position: relative;
    transform-style: preserve-3d;
}

.carousel-3d {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card-3d {
    position: absolute;
    width: 320px;
    height: 480px;
    background: rgba(15, 15, 20, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    backface-visibility: hidden;
    overflow: hidden;
}

/* Shine on card */
.project-card-3d::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.project-card-3d.active {
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 240, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
    z-index: 1000 !important;
    background: rgba(20, 25, 35, 0.35);
}

.project-card-3d img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.card-3d-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.card-3d-content h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #fff;
}

.card-3d-content p {
    flex-grow: 1;
    margin-bottom: 20px;
}

.card-3d-content .btn-neo {
    align-self: flex-start;
    margin-top: auto;
    padding: 12px 32px;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Nav Arrows */
.nav-arrow {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2000;
    transition: 0.3s;
    backdrop-filter: blur(5px);
    margin: 0 30px;
    /* Proper spacing */
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.nav-arrow.left {
    left: -80px;
}

.nav-arrow.right {
    right: -80px;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Skills */
.skills-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.progress-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 10px var(--accent-blue);
}

.skill-tags span {
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50px;
    font-size: 0.85rem;
    transition: 0.3s;
    cursor: default;
}

.skill-tags span:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
}

/* Tech Marquee - FULL WIDTH FIX */
.tech-marquee {
    margin-top: 60px;
    padding: 40px 0;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.02) 50%, transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.track span {
    /* Aero Glass Text */
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    text-shadow: none;
    transition: all 0.3s;
}

.track span:hover {
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* --- Contact Hologram (Cyber Terminal) --- */
.contact-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    padding: 80px 5%;
}

.hologram-container {
    width: 100%;
    max-width: 1000px;
}

.holo-card {
    background: #020405;
    /* Deep void black */
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transform: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.holo-card:hover {
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.25);
    transform: translateY(-5px);
}

.holo-header {
    background: rgba(0, 240, 255, 0.1);
    padding: 12px 25px;
    border-bottom: 1px solid var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulse-dot 1s infinite;
}

.status-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent-cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.holo-body {
    padding: 40px 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Terminal Text */
.terminal-view {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    color: #a0a0a0;
    line-height: 1.8;
}

.term-line {
    margin-bottom: 15px;
}

.prompt {
    color: var(--accent-green);
    margin-right: 12px;
    text-shadow: 0 0 5px rgba(0, 255, 157, 0.5);
}

.typing-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: var(--accent-green);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Social Grid (Right Side) */
.social-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-item {
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid #333;
    padding: 18px 25px;
    border-radius: 8px;
    text-decoration: none;
    color: #e0e0e0;
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.social-item i {
    font-size: 1.6rem;
    width: 50px;
    color: var(--accent-cyan);
    transition: transform 0.3s;
}

/* Hover Effects matching reference vibe */
.social-item:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.05);
    /* Very subtle tint */
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
    transform: translateX(5px);
    color: #fff;
}

.social-item:hover i {
    transform: scale(1.1);
    text-shadow: 0 0 10px var(--accent-cyan);
}

.holo-tooltip {
    position: absolute;
    right: 25px;
    font-size: 0.8rem;
    color: var(--accent-green);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.social-item:hover .holo-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* ======= RESPONSIVE DESIGN ======= */

/* Large Screens (1440px+) */
@media (min-width: 1441px) {
    section {
        padding: 100px 8%;
    }

    .carousel-container {
        padding: 0 150px;
    }

    nav {
        gap: 50px;
    }
}

/* Desktop (1200px - 1440px) */
@media (max-width: 1440px) and (min-width: 1201px) {
    h1 {
        font-size: 4rem;
    }

    .carousel-container {
        padding: 0 100px;
    }
}

/* Laptop (1025px - 1200px) */
@media (max-width: 1200px) and (min-width: 1025px) {
    section {
        padding: 70px 5%;
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.8rem;
    }

    .carousel-container {
        padding: 0 60px;
        height: 550px;
    }

    .scene-3d {
        width: 300px;
        height: 450px;
    }

    .project-card-3d {
        width: 280px;
        height: 420px;
    }

    .nav {
        gap: 30px;
        padding: 12px 30px;
    }

    nav a {
        font-size: 0.85rem;
    }

    .hero {
        padding-left: 5%;
        padding-top: 100px;
    }
}

/* Tablet Large (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    section {
        padding: 60px 5%;
    }

    h1 {
        font-size: 2.8rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }

    .nav-wrapper {
        top: 15px;
    }

    nav {
        gap: 25px;
        padding: 10px 25px;
    }

    nav a {
        font-size: 0.8rem;
        padding: 6px 0;
    }

    .hero {
        padding-left: 5%;
        padding-top: 80px;
        min-height: auto;
    }

    .hero-buttons {
        flex-wrap: wrap;
        gap: 15px;
    }

    .carousel-container {
        padding: 0 40px;
        height: 500px;
        margin: 40px auto;
    }

    .scene-3d {
        width: 280px;
        height: 420px;
    }

    .project-card-3d {
        width: 260px;
        height: 390px;
    }

    .project-card-3d img {
        height: 160px;
    }

    .nav-arrow {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .nav-arrow.left {
        left: -40px;
    }

    .nav-arrow.right {
        right: -40px;
    }

    .skills-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .holo-body {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-section {
        padding: 60px 5%;
    }

    .highlights-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .highlight-card {
        padding: 30px;
    }

    .trust-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    .trust-item {
        padding: 30px;
    }

    .tech-marquee {
        padding: 30px 0;
        margin-top: 40px;
    }

    .track span {
        font-size: 1rem;
        gap: 40px;
    }

    .social-item {
        padding: 15px 20px;
        font-size: 0.95rem;
    }
}

/* Tablet Small (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    * {
        scroll-behavior: smooth;
    }

    section {
        padding: 50px 5%;
    }

    .nav-wrapper {
        top: 12px;
    }

    nav {
        gap: 15px;
        padding: 10px 15px;
    }

    nav a {
        font-size: 0.7rem;
        padding: 5px 0;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .hero {
        padding-left: 5%;
        padding-top: 80px;
        min-height: auto;
        align-items: flex-start;
    }

    .hero-content {
        width: 100%;
    }

    .hero p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        margin-top: 25px;
        width: 100%;
    }

    .btn-neo {
        width: 100%;
        text-align: center;
        padding: 12px 30px;
    }

    .btn-icon-glass {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .tagline {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .carousel-container {
        padding: 0 15px;
        height: 450px;
        margin: 30px auto;
    }

    .scene-3d {
        width: 240px;
        height: 360px;
    }

    .project-card-3d {
        width: 220px;
        height: 340px;
        padding: 15px;
    }

    .project-card-3d img {
        height: 140px;
        margin-bottom: 15px;
    }

    .card-3d-content h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .card-3d-content p {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .nav-arrow {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        margin: 0 10px;
    }

    .nav-arrow.left {
        left: -35px;
    }

    .nav-arrow.right {
        right: -35px;
    }

    .carousel-3d {
        height: 100%;
    }

    .skills-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .skill-category {
        padding: 25px;
    }

    .skill-category h3 {
        font-size: 1.1rem;
    }

    .skill-bars {
        margin-top: 20px;
    }

    .skill-item {
        margin-bottom: 15px;
    }

    .skill-item span {
        font-size: 0.9rem;
    }

    .progress-bar {
        height: 6px;
    }

    .skill-tags {
        gap: 8px;
    }

    .skill-tags span {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .tech-marquee {
        padding: 25px 0;
        margin-top: 30px;
    }

    .tech-marquee h3 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .track {
        gap: 30px;
    }

    .track span {
        font-size: 0.8rem;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .highlight-card {
        padding: 20px;
    }

    .highlight-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .highlight-card h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .highlight-card p {
        font-size: 0.85rem;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .trust-item {
        padding: 20px;
    }

    .trust-item h3 {
        font-size: 1rem;
    }

    .trust-item p {
        font-size: 0.85rem;
    }

    .holo-card {
        border-radius: 10px;
    }

    .holo-header {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .status-dot {
        width: 10px;
        height: 10px;
    }

    .holo-body {
        padding: 25px 20px;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .terminal-view {
        font-size: 0.85rem;
    }

    .term-line {
        margin-bottom: 10px;
    }

    .social-grid {
        gap: 15px;
    }

    .social-item {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .social-item i {
        font-size: 1.2rem;
        width: 40px;
    }

    .holo-tooltip {
        font-size: 0.7rem;
    }

    .contact-section {
        padding: 50px 5%;
    }
}

/* Mobile Large (361px - 480px) */
@media (max-width: 480px) and (min-width: 361px) {
    * {
        scroll-behavior: smooth;
    }

    section {
        padding: 40px 4%;
    }

    .background-container {
        background-attachment: fixed;
    }

    .nav-wrapper {
        top: 10px;
    }

    nav {
        gap: 10px;
        padding: 8px 10px;
    }

    nav a {
        font-size: 0.65rem;
        padding: 4px 0;
    }

    h1 {
        font-size: 1.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    h3 {
        font-size: 1rem;
    }

    .hero {
        padding: 70px 4% 40px;
        align-items: flex-start;
    }

    .hero p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 20px;
    }

    .btn-neo {
        width: 100%;
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .btn-icon-glass {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .carousel-container {
        padding: 0 10px;
        height: 400px;
        margin: 20px auto;
    }

    .scene-3d {
        width: 200px;
        height: 300px;
    }

    .project-card-3d {
        width: 180px;
        height: 280px;
        padding: 12px;
    }

    .project-card-3d img {
        height: 110px;
        margin-bottom: 12px;
    }

    .card-3d-content h3 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .card-3d-content p {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
        margin: 0 8px;
    }

    .nav-arrow.left {
        left: -30px;
    }

    .nav-arrow.right {
        right: -30px;
    }

    .skills-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skill-category {
        padding: 20px;
    }

    .skill-bars {
        margin-top: 15px;
    }

    .skill-item {
        margin-bottom: 12px;
    }

    .skill-item span {
        font-size: 0.85rem;
    }

    .progress-bar {
        height: 5px;
    }

    .skill-tags {
        gap: 6px;
    }

    .skill-tags span {
        padding: 5px 10px;
        font-size: 0.7rem;
    }

    .tech-marquee {
        padding: 20px 0;
        margin-top: 25px;
    }

    .tech-marquee h3 {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .track {
        gap: 25px;
    }

    .track span {
        font-size: 0.7rem;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .highlight-card {
        padding: 15px;
    }

    .highlight-icon {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .highlight-card h3 {
        font-size: 0.9rem;
    }

    .highlight-card p {
        font-size: 0.75rem;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .trust-item {
        padding: 15px;
    }

    .trust-item h3 {
        font-size: 0.95rem;
    }

    .trust-item p {
        font-size: 0.8rem;
    }

    .holo-card {
        border-radius: 10px;
    }

    .holo-header {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .status-dot {
        width: 10px;
        height: 10px;
    }

    .holo-body {
        padding: 25px 20px;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .terminal-view {
        font-size: 0.85rem;
    }

    .term-line {
        margin-bottom: 10px;
    }

    .social-grid {
        gap: 15px;
    }

    .social-item {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .social-item i {
        font-size: 1.2rem;
        width: 40px;
    }

    .holo-tooltip {
        font-size: 0.7rem;
    }

    .contact-section {
        padding: 50px 5%;
        min-height: auto;
    }
}

/* Mobile Small (320px - 360px) */
@media (max-width: 360px) {
    * {
        scroll-behavior: smooth;
    }

    section {
        padding: 35px 3%;
    }

    .nav-wrapper {
        top: 8px;
    }

    nav {
        gap: 8px;
        padding: 7px 8px;
    }

    nav a {
        font-size: 0.6rem;
        padding: 3px 0;
    }

    h1 {
        font-size: 1.2rem;
        line-height: 1.15;
        margin-bottom: 0.8rem;
    }

    h2 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    h3 {
        font-size: 0.9rem;
    }

    p {
        font-size: 0.8rem;
    }

    .hero {
        padding: 65px 3% 30px;
        align-items: flex-start;
    }

    .tagline {
        font-size: 0.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        margin-top: 15px;
    }

    .btn-neo {
        width: 100%;
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .btn-icon-glass {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .carousel-container {
        padding: 0 5px;
        height: 350px;
        margin: 15px auto;
    }

    .scene-3d {
        width: 160px;
        height: 250px;
    }

    .project-card-3d {
        width: 150px;
        height: 240px;
        padding: 10px;
    }

    .project-card-3d img {
        height: 90px;
        margin-bottom: 10px;
    }

    .card-3d-content h3 {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }

    .card-3d-content p {
        font-size: 0.7rem;
        margin-bottom: 5px;
    }

    .nav-arrow {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
        margin: 0 5px;
    }

    .nav-arrow.left {
        left: -25px;
    }

    .nav-arrow.right {
        right: -25px;
    }

    .skills-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .skill-category {
        padding: 15px;
    }

    .skill-bars {
        margin-top: 12px;
    }

    .skill-item {
        margin-bottom: 10px;
    }

    .skill-item span {
        font-size: 0.8rem;
    }

    .progress-bar {
        height: 4px;
    }

    .skill-tags {
        gap: 5px;
    }

    .skill-tags span {
        padding: 4px 8px;
        font-size: 0.65rem;
    }

    .tech-marquee {
        padding: 15px 0;
        margin-top: 20px;
    }

    .tech-marquee h3 {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .track {
        gap: 20px;
    }

    .track span {
        font-size: 0.65rem;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .highlight-card {
        padding: 12px;
    }

    .highlight-icon {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .highlight-card h3 {
        font-size: 0.9rem;
    }

    .highlight-card p {
        font-size: 0.75rem;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .trust-item {
        padding: 12px;
    }

    .trust-item h3 {
        font-size: 0.9rem;
    }

    .trust-item p {
        font-size: 0.75rem;
    }

    .holo-card {
        border-radius: 6px;
    }

    .holo-header {
        padding: 6px 12px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .status-text {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }

    .status-dot {
        width: 6px;
        height: 6px;
    }

    .holo-body {
        padding: 15px 12px;
        gap: 12px;
    }

    .terminal-view {
        font-size: 0.7rem;
        line-height: 1.5;
    }

    .term-line {
        margin-bottom: 6px;
    }

    .social-grid {
        gap: 10px;
    }

    .social-item {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .social-item i {
        font-size: 0.9rem;
        width: 30px;
    }

    .holo-tooltip {
        font-size: 0.6rem;
    }

    .contact-section {
        padding: 35px 3%;
    }

    .highlight-icon {
        font-size: 1.5rem;
    }
}