/* =======================================================
   FUENTES
   ======================================================= */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Syne:wght@400;500;600;700;800&display=swap');

/* =======================================================
   VARIABLES & RESET
   ======================================================= */
:root {
    --accent: #667eea;
    --accent-2: #764ba2;
    --bg: #0a0a0a;
    --bg-2: #050505;
    --card: #111111;
    --border: rgba(255,255,255,0.08);
    --text: #ffffff;
    --muted: #888888;
    --glow: rgba(102,126,234,0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Cursor: gestionado 100% por JS con estilos inline */

/* =======================================================
   SCROLL PROGRESS BAR
   ======================================================= */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    z-index: 2000;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--glow);
}

/* =======================================================
   NOISE OVERLAY (textura de fondo)
   ======================================================= */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

/* =======================================================
   NAVEGACIÓN
   ======================================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 18px 5%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s, padding 0.3s;
}

.navbar.scrolled {
    padding: 12px 5%;
    background: rgba(5, 5, 5, 0.95);
}

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

.logo {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    letter-spacing: 0.02em;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdowns */
.dropdown { position: relative; }

/* Puente invisible que cubre el hueco entre el link y el menú,
   evitando que el hover se pierda al cruzar ese espacio */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 16px; /* cubre el gap */
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 16px); /* separación visual del link */
    left: 0;
    background: rgba(12, 12, 12, 0.98);
    backdrop-filter: blur(20px);
    list-style: none;
    padding: 12px 0;
    border-radius: 14px;
    border: 1px solid var(--border);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
}

.dropdown-menu a::after { display: none; }

.dropdown-menu a:hover {
    background: rgba(102,126,234,0.1);
    color: var(--accent);
    padding-left: 26px;
}

/* =======================================================
   ANIMACIONES KEYFRAMES
   ======================================================= */
@keyframes orbFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    33%  { transform: translate(30px,-30px) scale(1.05); }
    66%  { transform: translate(-20px,20px) scale(0.97); }
}

@keyframes glitch {
    0%   { transform: translate(0); clip-path: inset(0 0 100% 0); }
    20%  { transform: translate(-3px, 1px); clip-path: inset(20% 0 50% 0); }
    40%  { transform: translate(3px, -1px); clip-path: inset(60% 0 10% 0); }
    60%  { transform: translate(-2px, 2px); clip-path: inset(40% 0 30% 0); }
    80%  { transform: translate(2px, -2px); clip-path: inset(10% 0 70% 0); }
    100% { transform: translate(0); clip-path: inset(0 0 0 0); }
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(102,126,234,0.5); }
    50%       { box-shadow: 0 0 0 8px rgba(102,126,234,0); }
}

@keyframes cursorBlink {
    0%, 100% { border-right-color: rgba(102,126,234,0.8); }
    50%       { border-right-color: transparent; }
}

/* =======================================================
   REVEAL ON SCROLL
   ======================================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* stagger delay helpers */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }
.delay-6 { transition-delay: 0.6s !important; }

/* =======================================================
   HERO SECTION
   ======================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5% 50px;
    position: relative;
    overflow: hidden;
    background-image: url(Images/hacker1.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* parallax suave */
}

/* Overlay oscuro del hero */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.88);
    z-index: 1;
}

/* Orb animado de fondo */
.hero::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(102,126,234,0.12) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: orbFloat 10s ease-in-out infinite;
    z-index: 0;
}

/* Segundo orb */
.hero-orb-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(118,75,162,0.1) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: orbFloat 14s ease-in-out infinite reverse;
    z-index: 0;
    pointer-events: none;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(30px,-30px) scale(1.05); }
    66% { transform: translate(-20px,20px) scale(0.97); }
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Animación de entrada del hero */
.hero-text {
    animation: heroSlideIn 1s cubic-bezier(0.4,0,0.2,1) both;
}

.hero-image {
    animation: heroSlideIn 1s 0.2s cubic-bezier(0.4,0,0.2,1) both;
}

@keyframes heroSlideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-text h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(42px, 5.5vw, 72px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.05;
    letter-spacing: -2px;
}

.hero-text .highlight {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Typing cursor effect */
.hero-text h1 .highlight::after {
    content: '|';
    -webkit-text-fill-color: var(--accent);
    animation: blink 1s step-end infinite;
}

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

.hero-text p {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 35px;
    line-height: 1.7;
    max-width: 500px;
}

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

.btn {
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(102,126,234,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102,126,234,0.5);
}

.btn-secondary {
    border: 1.5px solid rgba(102,126,234,0.5);
    color: var(--accent);
    background: rgba(102,126,234,0.05);
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(102,126,234,0.12);
    transform: translateY(-3px);
}

/* Profile card */
.profile-card {
    background: linear-gradient(135deg, rgba(26,26,26,0.9) 0%, rgba(30,30,40,0.9) 100%);
    padding: 45px 40px;
    border-radius: 28px;
    border: 1px solid var(--border);
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: cardGlow 4s ease-in-out infinite;
}

.profile-card:hover {
    transform: translateY(-5px) rotate(0.5deg);
}

@keyframes cardGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(102,126,234,0.05); }
    50% { box-shadow: 0 0 60px rgba(102,126,234,0.15); }
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(102,126,234,0.05), transparent 30%);
    animation: spin 8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.profile-pic {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 40px rgba(102,126,234,0.3);
}

.profile-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.profile-card p {
    position: relative;
    z-index: 1;
}

/* =======================================================
   SECCIONES GENERALES
   ======================================================= */
.section {
    padding: 110px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 800;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -1.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    font-size: 17px;
    margin-bottom: 70px;
}

/* =======================================================
   ABOUT ME
   ======================================================= */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 70px;
    align-items: center;
    margin-bottom: 70px;
}

.about-text {
    font-size: 17px;
    line-height: 1.85;
    color: #ccc;
}

.about-text p { margin-bottom: 20px; }

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Marco decorativo detrás de la foto */
.about-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(102,126,234,0.3);
    border-radius: 22px;
    transform: translate(12px, 12px);
    transition: transform 0.3s;
}

.about-image:hover::before {
    transform: translate(6px, 6px);
}

.about-image img {
    width: 100%;
    max-width: 380px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.about-image:hover img {
    transform: scale(1.02) rotate(-0.5deg);
}

/* Stats */
.about-stats {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--card);
    padding: 32px 24px;
    width: 220px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(102,126,234,0.4);
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card:hover::after {
    transform: scaleX(1);
}

.stat-number {
    font-family: 'Syne', sans-serif;
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =======================================================
   SKILLS
   ======================================================= */
.skills-container { margin-top: 10px; }

.skills-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.skill-card {
    background: var(--card);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid var(--border);
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: rgba(102,126,234,0.3);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.skill-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(102,126,234,0.2), rgba(118,75,162,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent);
    border: 1px solid rgba(102,126,234,0.2);
    flex-shrink: 0;
}

.skill-title {
    font-family: 'Syne', sans-serif;
    font-size: 17px;
    font-weight: 700;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-item-new {
    background: rgba(102,126,234,0.08);
    color: rgba(255,255,255,0.75);
    padding: 5px 13px;
    border-radius: 8px;
    font-size: 13px;
    border: 1px solid rgba(102,126,234,0.15);
    transition: all 0.2s;
}

.skill-item-new:hover {
    background: rgba(102,126,234,0.18);
    color: #fff;
    border-color: rgba(102,126,234,0.4);
}

.skill-note {
    font-size: 11px;
    color: var(--muted);
    margin-left: 2px;
}

/* =======================================================
   PROJECTS SECTION
   ======================================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.project-card {
    background: var(--card);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 24px 50px rgba(0,0,0,0.5);
    border-color: rgba(102,126,234,0.35);
}

.project-image {
    height: 240px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.4) 100%);
}

/* project image classes */
.img1 { background-image: url(Images/hand.jpg); }
.img2 { background-image: url(Images/wand_port.jpg); }
.img3 { background-image: url(Images/robot.jpg); }
.img4 { background-image: url(Images/game.jpg); }

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5,5,20,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    backdrop-filter: blur(4px);
}

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

.project-link {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.3s;
    box-shadow: 0 4px 20px rgba(102,126,234,0.4);
}

.project-link:hover { transform: scale(1.15) rotate(5deg); }

.project-info { padding: 28px; }

.project-title {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.project-description {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 20px;
}

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

.tag {
    background: rgba(102,126,234,0.1);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(102,126,234,0.2);
    transition: all 0.2s;
}

.tag:hover {
    background: rgba(102,126,234,0.2);
}

/* =======================================================
   TIMELINE (EXPERIENCE)
   ======================================================= */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
    opacity: 0.4;
}

.timeline-item {
    display: flex;
    margin-bottom: 60px;
    position: relative;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* JS añade .anim-ready antes de observar para evitar flash invisible */
.timeline-item.anim-ready {
    opacity: 0;
    transform: translateY(30px);
}

.timeline-item.anim-ready.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
    justify-content: flex-start;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.timeline-content {
    width: 45%;
    background: var(--card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    position: relative;
}

.timeline-content:hover {
    border-color: rgba(102,126,234,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translateY(-3px);
}

/* Conector a la línea */
.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    right: -24px;
    top: 28px;
    border: 12px solid transparent;
    border-left-color: var(--card);
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    left: -24px;
    top: 28px;
    border: 12px solid transparent;
    border-right-color: var(--card);
}

.timeline-date {
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.timeline-title {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-description {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 28px;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 50%;
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 0 rgba(102,126,234,0.5);
    animation: pulseDot 2.5s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(102,126,234,0.5); }
    50% { box-shadow: 0 0 0 8px rgba(102,126,234,0); }
}

/* =======================================================
   CONTACT
   ======================================================= */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.contact-card {
    background: var(--card);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102,126,234,0.05), rgba(118,75,162,0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: rgba(102,126,234,0.35);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.contact-card:hover::after { opacity: 1; }

.contact-icon {
    font-size: 44px;
    margin-bottom: 18px;
    color: var(--accent);
    display: block;
    transition: transform 0.3s;
}

.contact-card:hover .contact-icon {
    transform: scale(1.15) rotate(-5deg);
}

.contact-label {
    color: var(--muted);
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-value a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

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

/* =======================================================
   FOOTER
   ======================================================= */
footer {
    background: var(--bg-2);
    padding: 50px 5%;
    text-align: center;
    border-top: 1px solid var(--border);
}

footer p {
    color: #444;
    font-size: 14px;
    letter-spacing: 0.02em;
}

/* =======================================================
   RESPONSIVE
   ======================================================= */
.menu-toggle {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 968px) {
    .cursor, .cursor-follower { display: none; }
    body { cursor: auto; }

    .menu-toggle { display: block; }

    .nav-content {
        margin-right: 20px;
        margin-left: 20px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(8,8,8,0.98);
        padding: 20px 5% 30px;
        border-bottom: 1px solid var(--border);
        gap: 0;
        max-height: 85vh;
        overflow-y: auto;
    }

    .nav-links.active { display: flex !important; }

    .nav-links li { width: 100%; position: relative; }

    .nav-links a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }

    .nav-links a::after { display: none; }

    .dropdown-menu {
        position: relative;
        top: 0; left: 0;
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255,255,255,0.04);
        border: none;
        border-left: 2px solid var(--accent);
        margin: 5px 0 10px 15px;
        padding: 5px 0;
        min-width: auto;
        box-shadow: none;
    }

    .dropdown-menu a {
        padding: 10px 20px !important;
        font-size: 13px !important;
        border: none;
    }

    .hero {
        padding: 120px 5% 60px;
        background-attachment: scroll;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-text p { max-width: 100%; }
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
        padding: 0 40px;
    }

    .profile-card { max-width: 300px; margin: 0 auto; }
    .profile-pic { width: 100px; height: 100px; font-size: 40px; }

    .about-content { grid-template-columns: 1fr; text-align: center; }
    .about-image::before { display: none; }
    .about-image img { max-width: 260px; }

    .about-stats { flex-direction: column; align-items: center; gap: 20px; }
    .stat-card { width: 100%; max-width: 300px; }

    .skills-grid-new, .projects-grid { grid-template-columns: 1fr; }
    .project-card { max-width: 500px; margin: 0 auto; }

    .timeline::before { left: 20px; }
    .timeline-item {
        flex-direction: row !important;
        margin-bottom: 40px;
    }
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }
    .timeline-content::after { display: none; }
    .timeline-dot { left: 20px; }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 36px; }
    .section-title { font-size: 32px; }
    .hero-text .highlight::after { display: none; }
}
