/* ==================== CSS VARIABLES ==================== */
:root {
    --blood-red: #8B0000;
    --crimson: #DC143C;
    --black: #0a0a0a;
    --dark-gray: #1a1a1a;
    --darker-gray: #141414;
    --white: #f5f5f5;
    --light-gray: #cccccc;
    --glass-bg: rgba(139, 0, 0, 0.08);
    --glass-border: rgba(220, 20, 60, 0.2);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ==================== GLOBAL RESET ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-snap-type: y proximity;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

::selection {
    background: var(--blood-red);
    color: var(--white);
}

/* ==================== PRELOADER ==================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-ring {
    position: absolute;
    border: 3px solid transparent;
    border-radius: 50%;
    border-top-color: var(--blood-red);
}

.preloader-ring:nth-child(1) {
    width: 150px;
    height: 150px;
    animation: preloader-spin 1.5s linear infinite;
}

.preloader-ring:nth-child(2) {
    width: 120px;
    height: 120px;
    animation: preloader-spin 2s linear infinite reverse;
    border-top-color: var(--crimson);
}

.preloader-ring:nth-child(3) {
    width: 90px;
    height: 90px;
    animation: preloader-spin 1s linear infinite;
}

.preloader-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    z-index: 1;
    animation: preloader-pulse 1.5s ease-in-out infinite;
}

@keyframes preloader-spin {
    0% {
        transform: rotate(0deg);
    }

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

@keyframes preloader-pulse {

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

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* ==================== FLOATING PARTICLES ==================== */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--blood-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--blood-red);
}

/* ==================== SCROLL PROGRESS INDICATOR ==================== */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blood-red), var(--crimson));
    z-index: 10001;
    transition: width 0.1s linear;
    box-shadow: 0 0 20px var(--blood-red);
}

#scroll-progress::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
    animation: progress-shimmer 1.5s infinite;
}

@keyframes progress-shimmer {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* ==================== ANIMATED BACKGROUND BLOBS ==================== */
#background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
}

.morph-blob {
    filter: blur(60px);
    will-change: d;
}

/* ==================== NAVBAR ==================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: transparent;
    z-index: 1000;
    transition: var(--transition-smooth);
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 5px 30px rgba(139, 0, 0, 0.15);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.nav-logo:hover {
    color: var(--blood-red);
}

.logo-bracket {
    color: var(--blood-red);
    margin: 0 0.2rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blood-red);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blood-red);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ==================== HERO SECTION ==================== */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(139, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 20, 60, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, var(--black) 0%, var(--darker-gray) 100%);
    background-size: cover;
    background-position: center;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 0, 0, 0.03) 2px, rgba(139, 0, 0, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(139, 0, 0, 0.03) 2px, rgba(139, 0, 0, 0.03) 4px);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(10, 10, 10, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.name-line.accent {
    color: var(--blood-red);
    text-shadow: 0 0 40px rgba(139, 0, 0, 0.5);
}

.hero-title {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--light-gray);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.title-bracket {
    color: var(--blood-red);
    font-size: 1.8rem;
}

.typewriter {
    color: var(--white);
}

.cursor {
    color: var(--blood-red);
    animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--blood-red);
    color: var(--white);
    border: 2px solid var(--blood-red);
}

.btn-primary:hover {
    background: var(--crimson);
    border-color: var(--crimson);
    box-shadow: 0 10px 40px rgba(139, 0, 0, 0.4);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--black);
    transform: translateY(-3px);
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn i {
    position: relative;
    z-index: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: var(--light-gray);
    font-size: 0.85rem;
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {

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

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

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--blood-red);
    border-radius: 13px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 10px;
    background: var(--blood-red);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: mouse-scroll 1.5s ease-in-out infinite;
}

@keyframes mouse-scroll {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* ==================== SECTIONS ==================== */
.section {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
    scroll-snap-align: start;
    perspective: 1000px;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--blood-red), transparent);
    opacity: 0.1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--blood-red);
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.section-line {
    width: 100px;
    height: 4px;
    background: var(--blood-red);
    margin: 0 auto;
}

.section-close {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--blood-red);
    display: block;
    text-align: center;
    margin-top: 4rem;
    opacity: 0.7;
}

/* ==================== ABOUT SECTION ==================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-intro {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--light-gray);
    line-height: 1.8;
}

.highlight {
    color: var(--blood-red);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--blood-red);
    display: block;
    line-height: 1;
}

.stat-plus {
    color: var(--blood-red);
    font-size: 2rem;
}

.stat-label {
    display: block;
    margin-top: 0.5rem;
    color: var(--light-gray);
    font-size: 0.9rem;
}

.code-window {
    background: var(--dark-gray);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.code-header {
    background: var(--darker-gray);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.code-title {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--light-gray);
}

.code-body {
    padding: 2rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
    overflow-x: auto;
}

.code-keyword {
    color: #ff79c6;
}

.code-var {
    color: #8be9fd;
}

.code-key {
    color: #50fa7b;
}

.code-string {
    color: #f1fa8c;
}

.code-boolean {
    color: #bd93f9;
}

.code-method {
    color: #50fa7b;
}

/* ==================== SKILLS SECTION ==================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.skill-category {
    background: var(--dark-gray);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(139, 0, 0, 0.2);
    border-color: var(--blood-red);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.skill-category-header i {
    font-size: 2rem;
    color: var(--blood-red);
}

.skill-category-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    position: relative;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.skill-name {
    color: var(--white);
    font-weight: 500;
}

.skill-percent {
    color: var(--blood-red);
    font-weight: 600;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blood-red), var(--crimson));
    border-radius: 4px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
    animation: skill-shimmer 2s infinite;
}

@keyframes skill-shimmer {
    0% {
        transform: translateX(-100px);
    }

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

/* ==================== PROJECTS SECTION ==================== */
#projects .container {
    max-width: 100%;
    padding: 0;
}

.projects-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 2rem;
}

.projects-scroll-container {
    display: flex;
    gap: 2.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 2rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--blood-red) rgba(255, 255, 255, 0.05);
}

.projects-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.projects-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.projects-scroll-container::-webkit-scrollbar-thumb {
    background: var(--blood-red);
    border-radius: 4px;
}

.projects-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--crimson);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.project-card {
    background: var(--dark-gray);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.8rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(139, 0, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--blood-red), transparent);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.project-card:hover .card-glow {
    opacity: 0.15;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--blood-red);
    box-shadow: 0 30px 80px rgba(139, 0, 0, 0.3);
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.card-icon i {
    font-size: 2rem;
    color: var(--blood-red);
}

.project-card:hover .card-icon {
    background: var(--blood-red);
    transform: scale(1.1) rotate(5deg);
}

.project-card:hover .card-icon i {
    color: var(--white);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.card-desc {
    color: var(--light-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.card-tags {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    background: rgba(139, 0, 0, 0.15);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--blood-red);
    font-weight: 500;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--blood-red);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.card-link:hover {
    gap: 1.2rem;
    color: var(--crimson);
}

/* ==================== CONTACT SECTION ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-desc {
    color: var(--light-gray);
    margin-bottom: 3rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--blood-red);
    font-size: 1.3rem;
}

.contact-label {
    display: block;
    font-size: 0.85rem;
    color: var(--light-gray);
    margin-bottom: 0.3rem;
}

.contact-value {
    color: var(--white);
    font-weight: 500;
    font-size: 1.05rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

a.contact-value:hover {
    color: var(--blood-red);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--blood-red);
    border-color: var(--blood-red);
    transform: translateY(-5px);
}

.contact-form {
    background: var(--dark-gray);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blood-red);
    background: rgba(139, 0, 0, 0.05);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1.2rem;
    color: var(--light-gray);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -10px;
    left: 10px;
    background: var(--dark-gray);
    padding: 0 0.5rem;
    font-size: 0.85rem;
    color: var(--blood-red);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blood-red);
    transition: width 0.3s ease;
}

.form-group input:focus~.form-highlight,
.form-group textarea:focus~.form-highlight {
    width: 100%;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

/* ==================== FOOTER ==================== */
#footer {
    background: var(--darker-gray);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-logo:hover {
    color: var(--blood-red);
}

.footer-text {
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* ==================== ANIMATIONS ==================== */
.anim-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.anim-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transition: right 0.4s ease;
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.7);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .section {
        padding: 5rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skills-grid,
    .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-name {
        font-size: 3rem;
    }

    .project-card,
    .skill-category,
    .contact-form {
        padding: 2rem;
    }
}
/* SVG Logo Styling */
.logo-svg { display: block; transition: transform 0.3s ease; }
.logo-svg:hover { transform: scale(1.05); }
.logo-path { stroke-dasharray: 1000; stroke-dashoffset: 1000; will-change: stroke-dashoffset; }
.logo-path.bracket { filter: drop-shadow(0 0 5px var(--blood-red)); }
.logo-path.letter { filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3)); }
.logo-path.dot { opacity: 0; transform-origin: center; }

/* ==================== SCROLL CENTER STAGE ==================== */
.scroll-stage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-stage.active {
    opacity: 1;
}

.stage-content {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 40px var(--blood-red));
    will-change: transform, d;
}

.stage-text {
    position: absolute;
    text-align: center;
    z-index: 2;
}

.stage-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0;
    text-shadow: 0 0 20px rgba(220, 20, 60, 0.8);
    letter-spacing: 0.2em;
}

.stage-subtitle {
    font-size: 1.2rem;
    color: var(--crimson);
    margin: 0.5rem 0 0;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .stage-content {
        width: 300px;
        height: 300px;
    }
    
    .stage-title {
        font-size: 2.5rem;
    }
    
    .stage-subtitle {
        font-size: 1rem;
    }
}

/* ==================== MONITOR DISPLAY SECTION ==================== */
.monitor-display-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem;
    background: linear-gradient(180deg, var(--bg-primary) 0%, #050505 100%);
}

.monitor-setup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    perspective: 1000px;
}

/* Monitor */
.monitor {
    position: relative;
    animation: monitorFloat 3s ease-in-out infinite;
}

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

.monitor-frame {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(139, 0, 0, 0.3);
}

.monitor-screen {
    width: 700px;
    height: 400px;
    background: #0a0a0a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.9);
    position: relative;
}

.screen-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f0f 0%, #050505 100%);
    padding: 1.5rem;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(139, 0, 0, 0.3);
}

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

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

.terminal-title {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

.terminal-body {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    line-height: 1.8;
}

.code-line {
    margin: 0.5rem 0;
    opacity: 0.9;
}

.code-line .keyword {
    color: #C792EA;
}

.code-line .var {
    color: #82AAFF;
}

.code-line .string {
    color: #C3E88D;
}

.screen-text {
    color: var(--crimson);
    font-size: 1.3rem !important;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
    transition: all 0.5s ease;
}

.monitor-stand {
    width: 150px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    clip-path: polygon(30% 0%, 70% 0%, 100% 100%, 0% 100%);
    border-radius: 0 0 8px 8px;
}

/* Keyboard */
.keyboard {
    width: 750px;
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.keyboard-row {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.key {
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 4px;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.key.wide {
    width: 80px;
}

.key.wider {
    width: 100px;
}

.key.spacebar {
    width: 300px;
}

.key:hover {
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    box-shadow: 
        0 2px 8px rgba(139, 0, 0, 0.5),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 1024px) {
    .monitor-screen {
        width: 600px;
        height: 350px;
    }
    
    .keyboard {
        width: 650px;
    }
}

@media (max-width: 768px) {
    .monitor-screen {
        width: 500px;
        height: 300px;
    }
    
    .terminal-body {
        font-size: 0.9rem;
    }
    
    .screen-text {
        font-size: 1.1rem !important;
    }
    
    .keyboard {
        width: 550px;
        padding: 15px;
    }
    
    .key {
        width: 32px;
        height: 32px;
    }
    
    .key.wide {
        width: 65px;
    }
    
    .key.wider {
        width: 80px;
    }
    
    .key.spacebar {
        width: 240px;
    }
}

@media (max-width: 480px) {
    .monitor-screen {
        width: 350px;
        height: 220px;
    }
    
    .terminal-body {
        font-size: 0.7rem;
    }
    
    .screen-text {
        font-size: 0.9rem !important;
    }
    
    .keyboard {
        width: 380px;
        padding: 10px;
    }
    
    .key {
        width: 22px;
        height: 22px;
    }
    
    .key.wide {
        width: 45px;
    }
    
    .key.wider {
        width: 55px;
    }
    
    .key.spacebar {
        width: 160px;
    }
}


/* Projects Grid Responsive */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        padding: 1.8rem;
    }
}

/* ==================== ENHANCED FOOTER STYLES ==================== */
#footer {
    background: linear-gradient(180deg, var(--darker-gray) 0%, #000000 100%);
    border-top: 2px solid var(--blood-red);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

#footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blood-red), transparent);
    box-shadow: 0 0 20px var(--blood-red);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-heading {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.footer-heading .bracket {
    color: var(--blood-red);
    font-weight: bold;
}

.footer-bio {
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
    font-size: 0.95rem;
}

.footer-logo-section {
    margin-top: auto;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-logo:hover {
    color: var(--blood-red);
    transform: scale(1.1);
}

.footer-logo .logo-bracket {
    color: var(--blood-red);
}

.footer-quotes {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-quotes li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    padding-left: 0.5rem;
    border-left: 2px solid var(--blood-red);
    transition: all 0.3s ease;
}

.footer-quotes li:hover {
    border-left-width: 4px;
    color: var(--text-primary);
    padding-left: 1rem;
}

.footer-quotes i {
    color: var(--blood-red);
    margin-right: 0.5rem;
    font-size: 0.7rem;
}

.footer-tech {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.tech-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.tech-label {
    color: var(--crimson);
    font-weight: 600;
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

.tech-value {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-code {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem 0;
}

.footer-code code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.footer-code .code-keyword {
    color: #C792EA;
    font-weight: 600;
}

.footer-code .code-var {
    color: #82AAFF;
}

.footer-motto {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 1rem;
}

.footer-motto i {
    color: var(--blood-red);
    margin-right: 0.5rem;
}

.footer-truth {
    background: rgba(139, 0, 0, 0.1);
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.truth-line {
    text-align: center;
}

.truth-item {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-copyright i {
    color: var(--blood-red);
    margin-right: 0.5rem;
}

.code-comment {
    color: var(--dark-gray);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.footer-warning {
    color: var(--crimson);
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-warning i {
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .truth-item {
        font-size: 0.8rem;
    }
}
