/* =====================================================
   PORTFOLIO - DARK RED THEME
   ===================================================== */

/* CSS Variables */
:root {
    /* Colors - Negro profundo */
    --bg-dark: #0a0808;
    --bg-darker: #050404;
    --bg-card: rgba(20, 12, 12, 0.85);
    --bg-glass: rgba(25, 15, 15, 0.7);

    /* Accent Colors - Rojos */
    --red: #dc2626;
    --red-dark: #991b1b;
    --red-light: #ef4444;
    --crimson: #b91c1c;
    --dark-red: #7f1d1d;

    /* Text */
    --text-primary: #f5f5f5;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--red) 0%, var(--dark-red) 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(127, 29, 29, 0.1) 100%);
    --gradient-bg: radial-gradient(ellipse at 50% 0%, rgba(220, 38, 38, 0.12) 0%, transparent 50%);

    /* Effects */
    --glow-red: 0 0 30px rgba(220, 38, 38, 0.4);
    --glow-crimson: 0 0 30px rgba(185, 28, 28, 0.4);
    --glow-text: 0 0 10px rgba(220, 38, 38, 0.4);

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Spacing */
    --section-padding: 100px 0;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body {
    font-family: var(--font-display);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    /* Ocultar scrollbar pero mantener scroll funcional */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

body::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

::selection {
    background: var(--red);
    color: var(--bg-dark);
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* =====================================================
   NAVIGATION
   ===================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 15, 0.95);
}

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

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--transition);
}

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

.nav-logo:hover {
    text-shadow: var(--glow-text);
}

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

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

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

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

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

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

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

/* Language Selector */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
    font-family: var(--font-mono);
}

.lang-btn:hover {
    border-color: var(--red);
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: var(--bg-dark);
}

.lang-divider {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('./images/hero-bg.png') center center / cover no-repeat;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 8, 0.75);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(220, 38, 38, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(185, 28, 28, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(127, 29, 29, 0.08) 0%, transparent 60%);
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(220, 38, 38, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220, 38, 38, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--red);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--crimson);
    top: 50%;
    right: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--purple);
    bottom: -50px;
    left: 30%;
    animation-delay: -10s;
}

.shape-4 {
    width: 200px;
    height: 200px;
    background: var(--red);
    top: 30%;
    left: 60%;
    animation-delay: -15s;
}

@keyframes float {

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

    25% {
        transform: translate(30px, -30px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.greeting {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.greeting .line {
    width: 40px;
    height: 2px;
    background: var(--gradient-main);
}

.greeting .text {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--red);
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-title .highlight {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    min-height: 30px;
}

.typed-text {
    color: var(--red);
}

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

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

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

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--bg-dark);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-red);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--red);
    background: rgba(220, 38, 38, 0.1);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-container {
    position: relative;
    width: 320px;
    height: 320px;
}

.avatar-glow {
    position: absolute;
    inset: -20px;
    background: var(--gradient-main);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
    animation: pulse-glow 3s infinite ease-in-out;
}

@keyframes pulse-glow {

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

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

.avatar-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: var(--gradient-main);
    animation: spin 8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.avatar-ring::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--bg-dark);
    border-radius: 50%;
}

.avatar-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 1;
}

/* Music Playing Animation */
.avatar-container.music-playing {
    animation: music-pulse 0.5s ease-in-out infinite alternate;
}

.avatar-container.music-playing .avatar-glow {
    animation: music-glow 0.5s ease-in-out infinite alternate;
}

.avatar-container.music-playing .avatar-ring {
    animation: spin 2s linear infinite, ring-pulse 0.5s ease-in-out infinite alternate;
}

@keyframes music-pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.03);
    }
}

@keyframes music-glow {
    0% {
        opacity: 0.4;
        filter: blur(40px);
    }

    100% {
        opacity: 0.8;
        filter: blur(50px);
    }
}

@keyframes ring-pulse {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.3);
    }
}

.floating-icons {
    position: absolute;
    inset: 0;
}

.float-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y)));
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1.5rem;
    color: var(--red);
    animation: float-icon 4s infinite ease-in-out;
    animation-delay: var(--delay);
}

@keyframes float-icon {

    0%,
    100% {
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) translateY(0);
    }

    50% {
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) translateY(-15px);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    animation: bounce 2s infinite;
}

@keyframes bounce {

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

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

.scroll-arrow {
    font-size: 1rem;
    color: var(--red);
}

/* =====================================================
   GLASS CARD
   ===================================================== */

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(220, 38, 38, 0.3);
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.1);
}

/* =====================================================
   SECTION STYLES
   ===================================================== */

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--red);
    margin-bottom: 16px;
    opacity: 0.8;
}

.section-tag.closing {
    display: block;
    text-align: center;
    margin-top: 60px;
    opacity: 0.4;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */

.about {
    background: var(--bg-darker);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: stretch;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-terminal {
    display: flex;
    flex-direction: column;
}

.terminal-window {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-card {
    padding: 24px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.card-header i {
    font-size: 1.5rem;
    color: var(--red);
}

.card-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-card a {
    color: var(--red);
    transition: var(--transition);
}

.about-card a:hover {
    text-shadow: var(--glow-text);
}

/* Terminal Window */
.terminal-window {
    overflow: hidden;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

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

.btn-close {
    background: #ff5f57;
}

.btn-minimize {
    background: #febc2e;
}

.btn-maximize {
    background: #28c840;
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

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

.command {
    color: var(--text-primary);
}

.terminal-output {
    margin: 16px 0;
    padding-left: 10px;
}

.terminal-output pre {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.info-label {
    color: var(--crimson);
    font-weight: 600;
}

.debian-logo {
    color: var(--red);
}

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

.terminal-quote {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.terminal-quote .quote-icon {
    font-size: 2rem;
    color: var(--red);
    opacity: 0.5;
    line-height: 1;
}

.terminal-quote p {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 8px 0;
}

.terminal-quote .quote-author {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* =====================================================
   SKILLS SECTION
   ===================================================== */

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.skill-category {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 32px;
}

.skills-intro {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 28px;
    color: var(--text-primary);
}

.category-title i {
    color: var(--red);
}

/* Skill Grid with Progress */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.skill-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    transition: var(--transition);
}

.skill-card:hover {
    border-color: var(--red);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.1);
}

.skill-icon {
    font-size: 2rem;
    color: var(--red);
    margin-bottom: 12px;
}

.skill-name {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
}

.skill-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 3px;
    width: 0;
    transition: width 1.5s ease-out;
}

/* Tech Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.tech-tag:hover {
    background: rgba(220, 38, 38, 0.15);
    border-color: var(--red);
    transform: translateY(-3px);
    box-shadow: var(--glow-red);
}

.tech-tag i {
    color: var(--red);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: var(--transition);
}

.tool-item:hover {
    border-color: var(--red);
    transform: translateY(-5px);
}

.tool-item i {
    font-size: 2rem;
    color: var(--red);
}

.tool-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* =====================================================
   PROJECTS SECTION
   ===================================================== */

.projects {
    background: var(--bg-darker);
}

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

.project-card {
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.9) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.project-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-main);
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--bg-dark);
    transform: translateY(20px);
    transition: var(--transition);
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-content {
    padding: 24px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    padding: 4px 12px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--red);
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    transition: var(--transition);
}

.contact-link:hover {
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-main);
    border-radius: 12px;
    font-size: 1.25rem;
    color: var(--bg-dark);
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-value {
    font-weight: 500;
    color: var(--text-primary);
}

/* Contact Form */
.contact-form {
    padding: 32px;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

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

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
}

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

.footer-text {
    color: var(--text-secondary);
}

.footer-text .heart {
    color: var(--crimson);
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {

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

    50% {
        transform: scale(1.2);
    }
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-social a:hover {
    border-color: var(--red);
    color: var(--red);
    transform: translateY(-5px);
    box-shadow: var(--glow-red);
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 16px;
}

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

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-description {
        max-width: 100%;
    }

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

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

    .hero-visual {
        order: -1;
    }

    .avatar-container {
        width: 250px;
        height: 250px;
    }

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

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

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(5, 5, 8, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-link {
        display: block;
        padding: 16px 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat {
        text-align: center;
    }

    .floating-icons {
        display: none;
    }

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

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

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

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

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

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

    .btn {
        width: 100%;
        justify-content: center;
    }

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

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Terminal neofetch fix for mobile */
    .terminal-window {
        overflow: hidden;
    }

    .terminal-output {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .terminal-output pre {
        font-size: 0.55rem;
        white-space: pre;
        min-width: max-content;
    }

    .terminal-body {
        padding: 12px;
    }
}