/* ============================================================
   Allan G. Acosta Portfolio — Enhanced Stylesheet
   ============================================================ */

/* --- Custom Properties --- */
:root {
    --primary:    #3b82f6;
    --secondary:  #06b6d4;
    --accent:     #8b5cf6;
    --success:    #22c55e;
    --warning:    #f59e0b;
    --bg-dark:    #0f172a;
    --bg-card:    #1e293b;
    --bg-alt:     #0d1424;
    --text-light: #f8fafc;
    --text-muted: #cbd5e1;
    --text-dim:   #94a3b8;
    --glow-blue:  rgba(59, 130, 246, 0.5);
    --glow-cyan:  rgba(6, 182, 212, 0.4);
    --border:     rgba(255, 255, 255, 0.08);
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Space Grotesk', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    cursor: none;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary); }

/* --- Global Typography --- */
h1, h2, h3, h4, h5, h6 { color: #ffffff; }

.text-muted   { color: var(--text-muted) !important; }
.text-secondary-custom { color: var(--text-dim); }
.letter-spacing-2 { letter-spacing: 0.12em; }

/* --- Scroll Progress Bar --- */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    z-index: 9999;
    transition: width 0.1s linear;
}

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

/* Custom cursor dot */
body::after {
    content: '';
    position: fixed;
    width: 10px; height: 10px;
    background: var(--secondary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.2s, height 0.2s;
    box-shadow: 0 0 8px var(--secondary);
    display: none; /* JS will position via #cursor-dot */
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.navbar.scrolled {
    background: rgba(13, 20, 36, 0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    font-size: 0.9rem;
    margin-left: 1.2rem;
    padding: 0.4rem 0 !important;
    position: relative;
    transition: color 0.3s;
    letter-spacing: 0.02em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s;
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active { color: var(--secondary) !important; }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.85rem;
    transition: all 0.3s;
    text-decoration: none;
}

.nav-social-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    background: radial-gradient(ellipse at 70% 30%, #1e293b 0%, #0f172a 50%, #080d1a 100%);
    overflow: hidden;
}

/* Particle Canvas */
#particle-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Gradient Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: orbFloat 12s ease-in-out infinite alternate;
}

.hero-orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,0.25), transparent 70%);
    top: -150px; right: -100px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(139,92,246,0.2), transparent 70%);
    bottom: 0; left: -80px;
    animation-delay: 4s;
}

.hero-orb-3 {
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(6,182,212,0.2), transparent 70%);
    top: 40%; right: 15%;
    animation-delay: 8s;
}

@keyframes orbFloat {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(20px, 30px) scale(1.1); }
}

/* Hero Content */
.hero-content { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.3);
    color: #4ade80;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
}

.hero-badge-dot {
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-family: 'Space Mono', monospace, sans-serif;
    min-height: 2rem;
}

.cursor-blink {
    animation: blink 0.8s step-end infinite;
    color: var(--secondary);
}

@keyframes blink { 50% { opacity: 0; } }

/* Buttons */
.btn-custom {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(59,130,246,0.35);
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59,130,246,0.55);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary) !important;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-outline-custom:hover {
    background: var(--secondary);
    color: var(--bg-dark) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--glow-cyan);
}

.btn-ghost-custom {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-muted) !important;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-ghost-custom:hover {
    background: rgba(255,255,255,0.12);
    color: white !important;
    transform: translateY(-3px);
}

/* Hero Socials */
.hero-socials {
    display: flex;
    gap: 12px;
    margin-top: 0.5rem;
}

.hero-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 1rem;
    transition: all 0.3s;
    text-decoration: none;
}

.hero-socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(59,130,246,0.4);
}

/* Profile Image */
.profile-img-wrapper {
    position: relative;
    display: inline-block;
    z-index: 2;
}

.profile-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 390px; height: 390px;
    border-color: rgba(6,182,212,0.3);
    animation: ringPulse 4s ease-in-out infinite;
}

.ring-2 {
    width: 430px; height: 430px;
    border-color: rgba(59,130,246,0.15);
    animation: ringPulse 4s ease-in-out infinite 2s;
}

@keyframes ringPulse {
    0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 0.6; }
    50%       { transform: translate(-50%,-50%) scale(1.04); opacity: 1; }
}

.profile-img {
    width: 340px; height: 340px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--secondary);
    box-shadow: 0 0 40px rgba(6,182,212,0.3), 0 0 0 8px rgba(6,182,212,0.05);
    transition: transform 0.5s, box-shadow 0.5s;
    display: block;
}

.profile-img:hover {
    transform: scale(1.04);
    box-shadow: 0 0 60px rgba(6,182,212,0.5), 0 0 0 12px rgba(6,182,212,0.08);
}

.profile-badge {
    position: absolute;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    animation: badgeFloat 4s ease-in-out infinite alternate;
}

.profile-badge-azure {
    background: rgba(59,130,246,0.25);
    border-color: rgba(59,130,246,0.4);
    bottom: 30px; left: -20px;
    animation-delay: 0s;
}

.profile-badge-dotnet {
    background: rgba(139,92,246,0.25);
    border-color: rgba(139,92,246,0.4);
    top: 40px; right: -10px;
    animation-delay: 2s;
}

.profile-badge-php {
    background: rgba(99,102,241,0.25);
    border-color: rgba(99,102,241,0.4);
    bottom: 90px; right: -15px;
    animation-delay: 1s;
}

.profile-badge-csharp {
    background: rgba(6,182,212,0.25);
    border-color: rgba(6,182,212,0.4);
    top: 110px; left: -15px;
    animation-delay: 3s;
}

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

/* Hero Scroll Hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    animation: fadeInUp 2s ease 1.5s both;
}

.hero-scroll-hint span {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.scroll-mouse {
    width: 22px; height: 36px;
    border: 2px solid var(--text-dim);
    border-radius: 12px;
    margin: 0 auto;
    position: relative;
}

.scroll-wheel {
    width: 4px; height: 8px;
    background: var(--secondary);
    border-radius: 2px;
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.8s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
    background: rgba(30,41,59,0.6);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    padding: 2.5rem 0;
    position: relative;
    z-index: 3;
}

.stat-item {
    padding: 1rem;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0; top: 20%; bottom: 20%;
    width: 1px;
    background: var(--border);
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
    line-height: 1;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    vertical-align: super;
    font-size: 1rem;
}

.stat-item p {
    margin: 4px 0 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

/* ============================================================
   SECTIONS — GENERAL
   ============================================================ */
section { padding: 100px 0; }

.section-alt { background: rgba(255,255,255,0.015); }

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--secondary);
    background: rgba(6,182,212,0.08);
    border: 1px solid rgba(6,182,212,0.2);
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    color: white;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin-top: 10px;
    border-radius: 2px;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-highlights { display: flex; flex-direction: column; gap: 10px; }

.about-highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.about-highlight-item i { font-size: 1rem; flex-shrink: 0; }

.about-icon-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px; height: 90px;
    border-radius: 50%;
    background: rgba(6,182,212,0.08);
    border: 2px solid rgba(6,182,212,0.25);
    margin: 0 auto;
}

.tech-icons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 260px;
    margin: 0 auto;
}

.tech-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 1.4rem;
    transition: all 0.3s;
    cursor: default;
}

.tech-icon-item span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
}

.tech-icon-item:hover {
    background: rgba(6,182,212,0.1);
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-3px);
}

.tech-icon-item:hover span { color: var(--secondary); }

/* ============================================================
   GLASS CARDS
   ============================================================ */
.glass-card {
    background: rgba(30,41,59,0.55);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), border-color 0.3s, box-shadow 0.35s;
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(6,182,212,0.35);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(6,182,212,0.1);
}

.card-body { padding: 1.75rem; }

/* ============================================================
   SKILL ICONS & BARS
   ============================================================ */
.skill-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.skill-icon-info    { background: rgba(6,182,212,0.12);   color: var(--secondary) !important; }
.skill-icon-warning { background: rgba(245,158,11,0.12);  color: var(--warning)   !important; }
.skill-icon-primary { background: rgba(59,130,246,0.12);  color: var(--primary)   !important; }
.skill-icon-success { background: rgba(34,197,94,0.12);   color: var(--success)   !important; }

.skill-badge {
    background: rgba(6,182,212,0.1);
    color: #22d3ee;
    padding: 5px 12px;
    border-radius: 6px;
    margin: 0 6px 8px 0;
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(6,182,212,0.2);
    transition: all 0.25s;
}

.skill-badge:hover {
    background: rgba(6,182,212,0.2);
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.skill-bars { display: flex; flex-direction: column; gap: 10px; }

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

.skill-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-bar-fill.warning { background: linear-gradient(90deg, #d97706, var(--warning)); }
.skill-bar-fill.primary { background: linear-gradient(90deg, #1d4ed8, var(--primary)); }
.skill-bar-fill.success { background: linear-gradient(90deg, #15803d, var(--success)); }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; max-width: 1100px; margin: 0 auto; }

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--secondary), transparent);
    top: 0; bottom: 0; left: 50%;
    margin-left: -1px;
}

.timeline-container {
    padding: 10px 50px;
    position: relative;
    width: 50%;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    right: -8px;
    background: var(--secondary);
    border: 3px solid var(--bg-dark);
    top: 28px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 12px var(--glow-cyan);
}

.left { left: 0; }
.right { left: 50%; }
.right::after { left: -8px; }

.timeline-content {
    padding: 24px;
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.timeline-content:hover {
    transform: scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* Badge variants */
.badge-active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-past {
    background: rgba(148,163,184,0.15);
    color: var(--text-dim);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border);
}

/* Tech Tags */
.tech-tag {
    display: inline-block;
    background: rgba(59,130,246,0.1);
    color: #93c5fd;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    margin: 2px 3px 2px 0;
    border: 1px solid rgba(59,130,246,0.2);
    letter-spacing: 0.03em;
}

/* ============================================================
   PROJECT CARDS
   ============================================================ */
.project-card { position: relative; overflow: hidden; }

.project-img-wrap { position: relative; overflow: hidden; }

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s, filter 0.5s;
    width: 100%;
    filter: brightness(0.85) saturate(0.8);
}

.project-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(6,182,212,0.75), rgba(59,130,246,0.75));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s;
}

.project-card:hover .card-img-top {
    transform: scale(1.08);
    filter: brightness(0.5) saturate(0.5);
}

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

/* ============================================================
   EDUCATION CARDS
   ============================================================ */
.edu-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.edu-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(6,182,212,0.2);
}

.edu-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    margin: 0 auto;
    box-shadow: 0 6px 20px rgba(59,130,246,0.4);
}

.edu-badge {
    display: inline-block;
    background: rgba(6,182,212,0.1);
    color: var(--secondary);
    border: 1px solid rgba(6,182,212,0.25);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 8px;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-info-card {
    background: rgba(30,41,59,0.4);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2.5rem;
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 1.5rem;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 10px;
    background: rgba(6,182,212,0.1);
    border: 1px solid rgba(6,182,212,0.2);
    color: var(--secondary);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-item a { text-decoration: none; transition: color 0.2s; }
.contact-item a:hover { color: var(--secondary) !important; }

.contact-socials { display: flex; gap: 10px; }

.contact-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.95rem;
    transition: all 0.3s;
    text-decoration: none;
}

.contact-social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(59,130,246,0.4);
}

/* Form Dark */
.form-control-dark {
    background: rgba(15,23,42,0.6) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-light) !important;
    border-radius: 10px !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.9rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control-dark::placeholder { color: var(--text-dim); }

.form-control-dark:focus {
    outline: none !important;
    border-color: var(--secondary) !important;
    box-shadow: 0 0 0 3px rgba(6,182,212,0.15) !important;
    background: rgba(15,23,42,0.8) !important;
}

.form-control-dark option {
    background: var(--bg-card);
    color: var(--text-light);
}

/* reCAPTCHA wrapper */
.recaptcha-wrap {
    display: flex;
    justify-content: center;
    padding: 4px 0;
}

.recaptcha-wrap .g-recaptcha {
    transform-origin: left center;
}

@media (max-width: 400px) {
    .recaptcha-wrap .g-recaptcha {
        transform: scale(0.87);
        transform-origin: left center;
    }
}

.alert-success-custom {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.3);
    color: #4ade80;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: #080d1a;
    padding: 60px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 1rem;
    transition: all 0.3s;
    text-decoration: none;
}

.footer-socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(59,130,246,0.4);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

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

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(59,130,246,0.4);
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#back-to-top:hover {
    box-shadow: 0 8px 25px rgba(59,130,246,0.6);
    transform: translateY(-3px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .profile-img { width: 260px; height: 260px; }
    .ring-1 { width: 300px; height: 300px; }
    .ring-2 { width: 340px; height: 340px; }
    .profile-badge-azure { left: -5px; }
    .profile-badge-dotnet { right: -5px; }
}

@media (max-width: 768px) {
    body { cursor: auto; }
    #cursor-glow { display: none; }

    section { padding: 70px 0; }

    .timeline::after { left: 31px; }
    .timeline-container { width: 100%; padding-left: 65px; padding-right: 20px; }
    .timeline-container::after { right: auto; left: 23px; }
    .right { left: 0%; }
    .left::before, .right::before { display: none; }

    .stat-item:not(:last-child)::after { display: none; }
    .stats-bar .row { gap: 1rem 0; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .profile-img { width: 220px; height: 220px; }
    .ring-1 { width: 250px; height: 250px; }
    .ring-2 { width: 290px; height: 290px; }
}
