/* ============================================================
   0. THEME VARIABLES  (change colors from here only)
   ============================================================ */

:root {
    --bg:        #07111f;   /* same background for EVERY section */
    --bg-footer: #050d1a;
    --card:      rgba(15, 29, 48, 0.72);
    --card-bd:   rgba(148, 163, 184, 0.14);
    --text:      #f1f5f9;
    --muted:     #94a3b8;
    --dim:       #64748b;
    --accent:    #38bdf8;
    --accent-2:  #6366f1;
    --grad:      linear-gradient(135deg, #0ea5e9, #6366f1);
    --line:      rgba(148, 163, 184, 0.10);
    --section-y: 90px;      /* vertical padding of every section */
}


/* ============================================================
   1. RESET & BASE
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(56, 189, 248, 0.3); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1e3a5f; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #2b5a8f; }

a:focus-visible,
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.section {
    padding: var(--section-y) 20px;
    text-align: center;
    background: var(--bg);
    border-top: 1px solid var(--line);
}

.section h2 { font-size: 32px; margin-bottom: 30px; }


/* ============================================================
   2. NAVBAR
   ============================================================ */

header { position: fixed; width: 100%; top: 0; z-index: 1000; }

.navbar {
    background: rgba(7, 17, 31, 0.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 80px;
}

.logo {
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 15px;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent);
    left: 0;
    bottom: -6px;
    border-radius: 2px;
    transition: width 0.3s;
}

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

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

.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; }

.hamburger span {
    height: 3px;
    width: 28px;
    background: var(--text);
    border-radius: 5px;
    transition: 0.3s;
}


/* ============================================================
   3. HERO
   ============================================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 110px 20px 70px;
    background:
        radial-gradient(circle at 78% 35%, rgba(56, 189, 248, 0.12), transparent 32%),
        radial-gradient(circle at 12% 80%, rgba(99, 102, 241, 0.10), transparent 32%),
        var(--bg);
    overflow: hidden;
    border-top: none;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 90%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 90%);
}

.hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 0 60px;
    text-align: left;
}

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

.hero-text h1 {
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 10px;
}

.hero-text h2 {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 18px;
}

.hero-text span { color: var(--accent); }

.hero-text p { color: var(--muted); line-height: 1.8; }

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--grad);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 10px 28px rgba(14, 165, 233, 0.22);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(14, 165, 233, 0.34); }

.btn-resume {
    background: transparent;
    color: var(--accent);
    border: 2px solid rgba(56, 189, 248, 0.5);
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-resume:hover {
    background: rgba(56, 189, 248, 0.12);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 8px 22px rgba(56, 189, 248, 0.2);
}

.btn-resume i { font-size: 14px; }

.social-icons { margin-top: 28px; display: flex; gap: 14px; }

.social-icons a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-bd);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.35s;
}

.social-icons a:hover {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.4);
    color: var(--accent);
    transform: translateY(-4px);
}

.social-icons a[href*="wa.me"]:hover {
    background: rgba(37, 211, 102, 0.14);
    border-color: rgba(37, 211, 102, 0.4);
    color: #25D366;
}

.hero-image img {
    display: block;
    width: 360px;
    height: 460px;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid var(--card-bd);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), 0 0 50px rgba(56, 189, 248, 0.10);
    transition: 0.5s;
}

.hero-image img:hover {
    transform: scale(1.04) rotate(-2deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(56, 189, 248, 0.16);
}

.typing {
    color: var(--accent);
    font-weight: 600;
    border-right: 3px solid var(--accent);
    padding-right: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%   { border-color: var(--accent); }
    50%  { border-color: transparent; }
    100% { border-color: var(--accent); }
}


/* ============================================================
   4. ABOUT
   ============================================================ */

.about {
    background:
        radial-gradient(circle at 10% 50%, rgba(99, 102, 241, 0.08), transparent 32%),
        var(--bg);
}

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

.about-text { flex: 1; text-align: left; }

.about-text h2 {
    position: relative;
    margin-bottom: 26px;
    font-size: 34px;
    color: var(--text);
    padding-bottom: 14px;
}

.about-text h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    border-radius: 3px;
    background: var(--grad);
}

.about-text p { margin-bottom: 18px; line-height: 1.8; color: var(--muted); }
.about-text strong { color: var(--text); }

.about-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 12px 28px;
    background: var(--grad);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 10px 28px rgba(14, 165, 233, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-btn:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(14, 165, 233, 0.32); }

.about-stats { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.stat-card {
    background: var(--card);
    border: 1px solid var(--card-bd);
    padding: 32px 22px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 30px rgba(56, 189, 248, 0.07);
}

.stat-card h3 { font-size: 28px; color: var(--accent); margin-bottom: 8px; }
.stat-card p  { font-size: 14px; color: var(--muted); }


/* ============================================================
   5. SKILLS
   ============================================================ */

.skills {
    position: relative;
    background:
        radial-gradient(circle at 85% 8%, rgba(99, 102, 241, 0.09), transparent 32%),
        var(--bg);
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}

.skills-bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

.skill-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    animation: skillOrbFloat 14s ease-in-out infinite;
}

.skill-orb-1 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(99,102,241,0.26) 0%, transparent 70%); top: -80px; right: -60px; }
.skill-orb-2 { width: 320px; height: 320px; background: radial-gradient(circle, rgba(6,182,212,0.20) 0%, transparent 70%); bottom: -60px; left: -40px; animation-delay: -5s; }
.skill-orb-3 { width: 260px; height: 260px; background: radial-gradient(circle, rgba(168,85,247,0.16) 0%, transparent 70%); top: 45%; left: 42%; animation-delay: -9s; }

@keyframes skillOrbFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    40%      { transform: translateY(-35px) scale(1.06); }
    70%      { transform: translateY(20px) scale(0.96); }
}

.skills-header { position: relative; z-index: 2; margin-bottom: 50px; }

.skills-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #a78bfa;
    margin-bottom: 12px;
}

.skills-header h2 {
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 700;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.skills-title-accent {
    background: linear-gradient(135deg, #a78bfa 0%, #38bdf8 60%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skills-subtitle { color: var(--dim); font-size: 15px; }

.skills-container {
    position: relative;
    z-index: 2;
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.skill-card { perspective: 1000px; cursor: default; }

.skill-card-inner {
    position: relative;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    padding: 34px 24px 26px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform-style: preserve-3d;
    transition: transform 0.12s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    will-change: transform;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.skill-card:hover .skill-card-inner {
    border-color: rgba(167, 139, 250, 0.3);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.5), 0 0 35px rgba(167, 139, 250, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.skill-card-shine {
    position: absolute;
    inset: 0;
    z-index: 10;
    border-radius: 24px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-card:hover .skill-card-shine { opacity: 1; }

.skill-card-glow {
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: 26px;
    background: linear-gradient(135deg, #a78bfa, #38bdf8, #34d399);
    opacity: 0;
    filter: blur(14px);
    transition: opacity 0.4s ease;
}

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

.skill-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
    z-index: 5;
}

.skill-badge-pro    { background: rgba(245,158,11,0.12); color: #fbbf24; border-color: rgba(245,158,11,0.25); }
.skill-badge-expert { background: rgba(34,197,94,0.12);  color: #4ade80; border-color: rgba(34,197,94,0.25); }
.skill-badge-adv    { background: rgba(168,85,247,0.12); color: #c084fc; border-color: rgba(168,85,247,0.25); }

.circle-wrap { position: relative; width: 160px; height: 160px; flex-shrink: 0; margin-bottom: 2px; }
.circle-svg  { width: 100%; height: 100%; transform: rotate(-90deg); }
.circle-track { fill: none; stroke: rgba(255, 255, 255, 0.06); stroke-width: 8; }

.circle-fill {
    fill: none;
    stroke: var(--stroke-color, #3b82f6);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 326.7;
    stroke-dashoffset: 326.7;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    filter: drop-shadow(0 0 6px var(--stroke-color));
}

.circle-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.skill-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-card:hover .skill-icon-wrap { transform: scale(1.1) rotate(-5deg); }
.skill-svg { width: 28px; height: 28px; }

.skill-icon-blue   { background: rgba(59,130,246,0.18); border: 1px solid rgba(59,130,246,0.3); }
.skill-icon-orange { background: rgba(245,158,11,0.18); border: 1px solid rgba(245,158,11,0.3); }
.skill-icon-yellow { background: rgba(234,179,8,0.18);  border: 1px solid rgba(234,179,8,0.3); }
.skill-icon-green  { background: rgba(34,197,94,0.18);  border: 1px solid rgba(34,197,94,0.3); }
.skill-icon-purple { background: rgba(168,85,247,0.18); border: 1px solid rgba(168,85,247,0.3); }
.skill-icon-cyan   { background: rgba(6,182,212,0.18);  border: 1px solid rgba(6,182,212,0.3); }

.circle-percent {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.skill-card:hover .circle-percent { color: #a78bfa; }

.skill-name { font-size: 18px; font-weight: 700; color: var(--text); margin: 0; transition: color 0.3s ease; }
.skill-card:hover .skill-name { color: #a78bfa; }

.skill-desc { font-size: 12.5px; color: var(--dim); line-height: 1.6; margin: 0; transition: color 0.3s ease; }
.skill-card:hover .skill-desc { color: var(--muted); }


/* ============================================================
   6. PROJECTS
   ============================================================ */

.projects {
    position: relative;
    background:
        radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.07), transparent 28%),
        radial-gradient(circle at 88% 85%, rgba(99, 102, 241, 0.08), transparent 30%),
        var(--bg);
    overflow: hidden;
    isolation: isolate;
}

.projects-bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: orbFloat 12s ease-in-out infinite;
}

.orb-1 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(37,99,235,0.32) 0%, transparent 70%); top: -100px; left: -80px; }
.orb-2 { width: 350px; height: 350px; background: radial-gradient(circle, rgba(99,102,241,0.28) 0%, transparent 70%); top: 40%; right: -100px; animation-delay: -4s; }
.orb-3 { width: 280px; height: 280px; background: radial-gradient(circle, rgba(6,182,212,0.22) 0%, transparent 70%); bottom: -60px; left: 35%; animation-delay: -8s; }

@keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    33%      { transform: translateY(-40px) scale(1.05); }
    66%      { transform: translateY(25px) scale(0.97); }
}

.projects-header { position: relative; z-index: 2; text-align: center; margin-bottom: 50px; }

.projects-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.projects-header h2 {
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 700;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.projects-title-accent {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-subtitle { color: var(--dim); font-size: 15px; letter-spacing: 0.3px; }

.projects-container {
    position: relative;
    z-index: 2;
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-card { perspective: 1200px; cursor: pointer; }

.card-inner {
    position: relative;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform-style: preserve-3d;
    transition: transform 0.12s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    will-change: transform;
}

.project-card:hover .card-inner {
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(56, 189, 248, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-shine {
    position: absolute;
    inset: 0;
    z-index: 10;
    border-radius: 24px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.card-glow {
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: 26px;
    background: linear-gradient(135deg, #38bdf8, #818cf8, #c084fc);
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(16px);
}

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

.project-img-wrap { position: relative; overflow: hidden; height: 210px; background: linear-gradient(135deg, #0f2744, #1e1b4b); }

.project-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
    filter: brightness(0.85) saturate(0.9);
}

.project-card:hover .project-img-wrap img { transform: scale(1.08); filter: brightness(0.65) saturate(1.1); }

.img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(5, 13, 26, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

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

.overlay-icons { display: flex; gap: 14px; transform: translateY(12px); transition: transform 0.35s ease 0.05s; }
.project-card:hover .overlay-icons { transform: translateY(0); }

.overlay-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.overlay-btn:hover { background: rgba(56, 189, 248, 0.35); transform: scale(1.15); }

.card-number {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    padding: 4px 9px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-content { padding: 22px 26px 24px; display: flex; flex-direction: column; gap: 12px; text-align: left; }

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

.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.tag i { font-size: 10px; }

.tag-blue   { background: rgba(37,99,235,0.18);   color: #60a5fa; border: 1px solid rgba(37,99,235,0.3); }
.tag-purple { background: rgba(129,140,248,0.15); color: #a5b4fc; border: 1px solid rgba(129,140,248,0.25); }
.tag-green  { background: rgba(16,185,129,0.15);  color: #6ee7b7; border: 1px solid rgba(16,185,129,0.25); }
.tag-orange { background: rgba(245,158,11,0.15);  color: #fcd34d; border: 1px solid rgba(245,158,11,0.25); }
.tag-cyan   { background: rgba(6,182,212,0.15);   color: #67e8f9; border: 1px solid rgba(6,182,212,0.25); }
.tag-pink   { background: rgba(236,72,153,0.15);  color: #f9a8d4; border: 1px solid rgba(236,72,153,0.25); }
.tag-gold   { background: rgba(251,191,36,0.15);  color: #fde68a; border: 1px solid rgba(251,191,36,0.25); }
.tag-red    { background: rgba(239,68,68,0.15);   color: #fca5a5; border: 1px solid rgba(239,68,68,0.25); }

.project-title { font-size: 19px; font-weight: 700; color: var(--text); line-height: 1.35; margin: 0; transition: color 0.3s ease; }
.project-card:hover .project-title { color: var(--accent); }

.project-desc { color: var(--muted); font-size: 13.5px; line-height: 1.7; margin: 0; }

.tech-stack { display: flex; flex-wrap: wrap; gap: 7px; }

.tech-pill {
    font-size: 11px;
    font-weight: 500;
    color: var(--dim);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 3px 10px;
    border-radius: 6px;
    transition: all 0.25s ease;
    letter-spacing: 0.2px;
}

.project-card:hover .tech-pill { color: var(--muted); border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); }

.card-actions { display: flex; gap: 10px; margin-top: 4px; }

.action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.action-demo {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 4px 18px rgba(14, 165, 233, 0.25);
}

.action-demo:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 28px rgba(14, 165, 233, 0.4); }

.action-github {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-github:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
    transform: translateY(-3px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.2);
}

.action-disabled {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #475569 !important;
    box-shadow: none !important;
    cursor: not-allowed;
    transform: none !important;
}

.project-card--coming .card-inner { border-color: rgba(251, 191, 36, 0.12); }

.coming-soon-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50%      { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}


/* ============================================================
   7. CONTACT
   ============================================================ */

.contact,
.contact.section {
    position: relative;
    background:
        radial-gradient(circle at 20% 25%, rgba(56, 189, 248, 0.08), transparent 30%),
        radial-gradient(circle at 80% 75%, rgba(99, 102, 241, 0.08), transparent 32%),
        var(--bg);
    padding: var(--section-y) 20px;
    overflow: hidden;
    isolation: isolate;
}

#contactBgCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.contact-aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    animation: auroraFloat 18s ease-in-out infinite;
}

.contact-aurora-1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(37,99,235,0.20) 0%, transparent 70%); top: -150px; left: -100px; }
.contact-aurora-2 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(99,102,241,0.16) 0%, transparent 70%); bottom: -120px; right: -80px; animation-delay: -6s; }
.contact-aurora-3 { width: 350px; height: 350px; background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%); top: 40%; left: 50%; margin-left: -175px; animation-delay: -12s; }

@keyframes auroraFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    33%      { transform: translateY(-40px) scale(1.08); }
    66%      { transform: translateY(25px) scale(0.95); }
}

.contact-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 75%);
}

.section-title {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 44px;
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text);
}

.contact-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 46px;
    align-items: center;
    text-align: left;
}

.contact-info h3 { font-size: 24px; margin-bottom: 14px; color: var(--text); }
.contact-info > p { color: var(--muted); margin-bottom: 16px; line-height: 1.7; }

.contact-details { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }

.contact-detail-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
    width: fit-content;
}

.contact-detail-link:hover { color: var(--accent); transform: translateX(4px); }
.contact-detail-link.no-link { pointer-events: none; }
.contact-detail-link i { color: var(--accent); flex-shrink: 0; width: 16px; text-align: center; }
.contact-detail-link.whatsapp-link:hover { color: #25D366; }
.contact-detail-link.whatsapp-link i { color: #25D366; }

.contact-social { margin-top: 22px; display: flex; gap: 12px; }

.contact-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-bd);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 16px;
}

.contact-social a:hover {
    background: rgba(56, 189, 248, 0.14);
    color: var(--accent);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.2);
    transform: translateY(-5px);
}

.contact-social a.whatsapp-social { color: #25D366; background: rgba(37,211,102,0.10); border-color: rgba(37,211,102,0.2); }
.contact-social a.whatsapp-social:hover { background: #25D366; color: #fff; border-color: #25D366; box-shadow: 0 8px 20px rgba(37,211,102,0.35); }

.contact-form-card {
    background: var(--card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-bd);
    padding: 38px;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.input-group { position: relative; margin-bottom: 24px; }

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 10px;
    border: none;
    border-bottom: 2px solid rgba(148, 163, 184, 0.2);
    background: transparent;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    transition: border-color 0.3s;
}

.input-group textarea { resize: vertical; }

.input-group label {
    position: absolute;
    left: 10px;
    top: 12px;
    color: var(--dim);
    font-size: 14px;
    transition: 0.3s;
    pointer-events: none;
}

.input-group input:focus + label,
.input-group input:valid + label,
.input-group textarea:focus + label,
.input-group textarea:valid + label {
    top: -10px;
    font-size: 12px;
    color: var(--accent);
}

.input-group input:focus,
.input-group textarea:focus { border-bottom-color: var(--accent); }

.contact-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 30px;
    background: var(--grad);
    color: white;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
    letter-spacing: 0.5px;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(14, 165, 233, 0.45);
}

.contact-btn:disabled { opacity: 0.85; cursor: default; transform: none; }


/* ============================================================
   8. FOOTER
   ============================================================ */

.footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--line);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-left { display: flex; flex-direction: column; gap: 4px; }

.footer-name {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #f1f5f9 0%, #38bdf8 60%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-role { font-size: 12px; color: var(--dim); letter-spacing: 0.3px; }

.footer-center { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }

.footer-center a {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.25s ease;
    position: relative;
}

.footer-center a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.footer-center a:hover { color: var(--text); }
.footer-center a:hover::after { width: 100%; }

.footer-right { display: flex; gap: 12px; }

.footer-right a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.footer-right a:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(56, 189, 248, 0.15);
}

.footer-right a[href*="wa.me"]:hover {
    background: rgba(37, 211, 102, 0.12);
    border-color: rgba(37, 211, 102, 0.3);
    color: #25D366;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.15);
}

.footer-bottom-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.footer-bottom-bar p { font-size: 12px; color: #475569; }

.back-top {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 30px;
    color: var(--accent);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-top:hover {
    background: rgba(56, 189, 248, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(56, 189, 248, 0.2);
}


/* ============================================================
   9. SCROLL ANIMATIONS
   ============================================================ */

.scroll-animate { opacity: 0; transform: translateY(50px); transition: all 0.8s ease; }
.scroll-animate.active { opacity: 1; transform: translateY(0); }


/* ============================================================
   10. RESPONSIVE
   ============================================================ */

@media (max-width: 992px) {
    :root { --section-y: 80px; }
    .skills-container   { grid-template-columns: repeat(2, 1fr); max-width: 640px; gap: 22px; }
    .projects-container { gap: 24px; }
    .about-container    { flex-direction: column; padding: 0 30px; gap: 44px; }
    .about-text         { text-align: center; }
    .about-text h2::after { left: 50%; margin-left: -28px; }
    .about-stats        { width: 100%; }
    .footer-inner       { flex-direction: column; align-items: center; text-align: center; padding: 30px 40px; }
    .footer-bottom-bar  { padding: 16px 40px; }
}

@media (max-width: 768px) {
    :root { --section-y: 70px; }

    .navbar { padding: 14px 24px; }

    .hero { min-height: auto; padding: 110px 20px 60px; }
    .hero-container { flex-direction: column-reverse; text-align: center; gap: 36px; padding: 0 10px; }
    .hero-image img { width: 100%; max-width: 300px; height: auto; aspect-ratio: 360 / 460; }
    .hero-btns      { justify-content: center; }
    .social-icons   { justify-content: center; }

    .projects-container { grid-template-columns: 1fr; max-width: 480px; gap: 22px; }
    .project-img-wrap   { height: 190px; }

    .contact-wrapper     { grid-template-columns: 1fr; text-align: center; gap: 36px; }
    .contact-details     { align-items: center; }
    .contact-detail-link { width: auto; justify-content: center; }
    .contact-social      { justify-content: center; }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        cursor: pointer;
        transition: 0.3s ease;
    }

    .hamburger:hover { background: rgba(255, 255, 255, 0.16); }

    .hamburger span {
        width: 22px;
        height: 3px;
        background: var(--text);
        border-radius: 5px;
        transition: all 0.4s cubic-bezier(.68, -0.55, .27, 1.55);
    }

    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

    .nav-links {
        position: fixed;
        top: 72px;
        right: -100%;
        width: 240px;
        height: calc(100vh - 72px);
        background: linear-gradient(180deg, #07111f, #0b1728);
        border-left: 1px solid var(--line);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 34px;
        border-radius: 20px 0 0 20px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
        transition: right 0.5s cubic-bezier(.77, 0, .18, 1);
    }

    .nav-links.active { right: 0; }
    .nav-links li     { list-style: none; }
    .nav-links a      { color: #e2e8f0; font-size: 18px; font-weight: 500; }
    .nav-links a:hover { color: var(--accent); }

    .footer-inner      { padding: 26px 24px; }
    .footer-center     { gap: 18px; }
    .footer-bottom-bar { padding: 14px 24px; flex-direction: column; text-align: center; gap: 10px; }
}

@media (max-width: 600px) {
    :root { --section-y: 64px; }
    .skills-container { grid-template-columns: 1fr; max-width: 360px; gap: 18px; }
    .circle-wrap      { width: 140px; height: 140px; }
    .about-stats      { grid-template-columns: 1fr; }
    .footer-center    { gap: 14px; }
    .hero-btns        { flex-direction: column; align-items: center; }
    .contact-form-card { padding: 28px 22px; }
}

@media (max-width: 480px) {
    .card-actions    { flex-direction: column; }
    .project-content { padding: 20px 20px 22px; }
    .footer-right    { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
