/* ============================================
   RESET & CSS VARIABLES (DARK MODE THEME)
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: #0F172A;
    --color-bg-alt: #111C33;
    --color-surface: #1E293B;
    --color-surface-2: #273449;
    --color-border: rgba(148, 163, 184, 0.12);
    --color-border-strong: rgba(148, 163, 184, 0.22);

    --color-primary: #3B82F6;
    --color-secondary: #8B5CF6;
    --color-accent: #22D3EE;
    --gradient-main: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    --gradient-soft: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);

    --color-text: #E2E8F0;
    --color-text-soft: #94A3B8;
    --color-text-muted: #64748B;
    --color-text-white: #F8FAFC;

    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 28px;
    --radius-full: 999px;

    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.25);

    --container: 1200px;
    --gap: 24px;
    --section-pad: 120px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul { list-style: none; }
button { cursor: pointer; background: none; border: none; color: inherit; font-family: inherit; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gap);
    width: 100%;
}

/* ============================================
   BACKGROUND EFFECTS: BLOBS & GRAIN
   ============================================ */
.grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.bg-blobs {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    animation: blobFloat 20s ease-in-out infinite;
}

.blob-1 {
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    top: -200px;
    left: -200px;
}

.blob-2 {
    background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
    bottom: -250px;
    right: -200px;
    animation-delay: -10s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.08); }
    66% { transform: translate(-30px, 40px) scale(0.95); }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: all 0.4s var(--ease);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom-color: var(--color-border);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gap);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    letter-spacing: -0.02em;
}

.logo-bracket {
    color: var(--color-primary);
    font-weight: 500;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-soft);
    transition: color 0.25s var(--ease);
    position: relative;
    padding: 6px 0;
}

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

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

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

.nav-cta {
    padding: 10px 20px !important;
    border-radius: var(--radius-full);
    background: var(--gradient-main);
    color: var(--color-text-white) !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
    transition: all 0.3s var(--ease) !important;
}

.nav-cta::after { display: none; }

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: background 0.2s var(--ease);
}

.nav-toggle:hover { background: var(--color-surface); }

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

.hamburger { position: relative; }
.hamburger::before { content: ''; position: absolute; top: -7px; }
.hamburger::after  { content: ''; position: absolute; top: 7px; }

.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active .hamburger::after  { top: 0; transform: rotate(-45deg); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.hero-greeting {
    font-size: 17px;
    color: var(--color-text-soft);
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease) 0.1s forwards;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 14px;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease) 0.2s forwards;
}

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

.hero-role {
    font-family: var(--font-display);
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease) 0.3s forwards;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cursor {
    color: var(--color-primary);
    font-weight: 400;
    animation: blink 1s step-end infinite;
}

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

.hero-tagline {
    font-size: 17px;
    color: var(--color-text-soft);
    max-width: 520px;
    margin-bottom: 36px;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease) 0.4s forwards;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 36px;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease) 0.5s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all 0.3s var(--ease);
    white-space: nowrap;
}

.btn i,
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
    background: var(--gradient-main);
    color: var(--color-text-white);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    position: relative;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border-strong);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-text-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.btn-lg { padding: 18px 30px; font-size: 16px; }

.hero-socials {
    display: flex;
    gap: 12px;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease) 0.6s forwards;
}

.hero-socials a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-soft);
    transition: all 0.3s var(--ease);
}

.hero-socials a i,
.hero-socials a svg { width: 20px; height: 20px; }

.hero-socials a:hover {
    color: var(--color-text-white);
    border-color: var(--color-primary);
    background: var(--gradient-soft);
    transform: translateY(-3px);
}

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

.avatar-wrap {
    position: relative;
    width: 360px;
    height: 360px;
    opacity: 0;
    animation: fadeInScale 0.9s var(--ease) 0.4s forwards;
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.06); }
}

.avatar {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gradient-main);
    padding: 3px;
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-surface);
}

.avatar-initials {
    display: none;
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--color-surface);
    font-family: var(--font-display);
    font-size: 90px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    background: var(--gradient-soft);
    color: var(--color-text-white);
}

.avatar.avatar-placeholder .avatar-initials {
    display: flex;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    opacity: 0;
    animation: fadeInScale 0.7s var(--ease) 0.8s forwards;
}

.floating-card i,
.floating-card svg {
    width: 34px;
    height: 34px;
    padding: 7px;
    border-radius: var(--radius-md);
    background: var(--gradient-main);
    color: white;
}

.card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-white);
    font-family: var(--font-display);
}

.card-sub {
    font-size: 12px;
    color: var(--color-text-soft);
}

.card-1 {
    top: 40px;
    left: -20px;
    animation-delay: 0.85s;
}

.card-2 {
    bottom: 50px;
    right: -10px;
    animation-delay: 1s;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 44px;
    border: 2px solid var(--color-border-strong);
    border-radius: 14px;
    display: inline-flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-down span {
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 2px;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0% { transform: translateY(0); opacity: 1; }
    80% { transform: translateY(14px); opacity: 0; }
    100% { opacity: 0; }
}

/* ============================================
   SHARED: SECTION, REVEAL ANIMATION
   ============================================ */
.section {
    position: relative;
    z-index: 2;
    padding: var(--section-pad) 0;
}

.section-alt {
    background: linear-gradient(180deg, transparent 0%, rgba(30, 41, 59, 0.4) 50%, transparent 100%);
}

.section-head {
    text-align: center;
    margin-bottom: 72px;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: var(--gradient-soft);
    border: 1px solid var(--color-border-strong);
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-text-white);
}

.section-sub {
    margin-top: 18px;
    color: var(--color-text-soft);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

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

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: var(--gradient-main);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.4;
    pointer-events: none;
}

.about-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--color-surface);
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.about-content p {
    color: var(--color-text-soft);
    margin-bottom: 16px;
    font-size: 15px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 32px 0;
    padding: 24px;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.stat h4 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

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

.about-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--color-text-soft);
    transition: all 0.3s var(--ease);
}

.badge i,
.badge svg { width: 15px; height: 15px; color: var(--color-primary); }

.badge:hover {
    border-color: var(--color-primary);
    color: var(--color-text-white);
    background: var(--gradient-soft);
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.skill-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all 0.4s var(--ease);
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: var(--shadow-glow);
}

.skill-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.skill-card-head i,
.skill-card-head svg {
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: var(--radius-md);
    background: var(--gradient-main);
    color: white;
}

.skill-card-head h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-white);
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.skill-label span:first-child {
    color: var(--color-text);
    font-weight: 500;
}

.skill-pct {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-primary);
    font-size: 13px;
}

.skill-bar {
    position: relative;
    height: 8px;
    background: var(--color-bg);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--gradient-main);
    border-radius: var(--radius-full);
    transition: width 1.4s var(--ease);
    position: relative;
}

.skill-bar span::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

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

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
}

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

.project-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s var(--ease);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 24px 60px rgba(139, 92, 246, 0.18);
}

.project-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--gradient-soft);
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.project-card:hover .project-thumb img {
    transform: scale(1.06);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-white);
    transition: all 0.3s var(--ease);
    transform: translateY(12px);
}

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

.project-link:hover {
    background: var(--gradient-main);
    border-color: transparent;
}

.project-link i,
.project-link svg { width: 16px; height: 16px; }

.project-body {
    padding: 28px;
}

.project-body h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.project-body p {
    font-size: 14.5px;
    color: var(--color-text-soft);
    margin-bottom: 20px;
}

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

.tag {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--gradient-soft);
    color: var(--color-primary);
    border: 1px solid var(--color-border-strong);
    letter-spacing: 0.02em;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.35s var(--ease);
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(39, 52, 73, 0.6);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--gradient-main);
    color: white;
}

.contact-icon i,
.contact-icon svg { width: 24px; height: 24px; }

.contact-card h4 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 2px;
}

.contact-card p {
    font-size: 13px;
    color: var(--color-text-soft);
    word-break: break-all;
}

.contact-cta {
    position: sticky;
    top: 100px;
}

.cta-card {
    position: relative;
    padding: 40px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: var(--gradient-main);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
}

.cta-card h3 {
    position: relative;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.cta-card > p {
    position: relative;
    color: var(--color-text-soft);
    margin-bottom: 30px;
    font-size: 15px;
}

.cta-card .btn {
    position: relative;
    width: 100%;
    justify-content: center;
    margin-bottom: 24px;
}

.cta-footer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    font-size: 13.5px;
    color: var(--color-text-soft);
}

.cta-footer i,
.cta-footer svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
    flex-shrink: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    z-index: 2;
    padding: 32px 0;
    border-top: 1px solid var(--color-border);
    background: rgba(15, 23, 42, 0.5);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer p {
    font-size: 14px;
    color: var(--color-text-muted);
}

.heart {
    color: #EF4444;
    display: inline-block;
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.15); }
    50% { transform: scale(1); }
    75% { transform: scale(1.15); }
}

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

.footer-socials a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-soft);
    transition: all 0.3s var(--ease);
}

.footer-socials a i,
.footer-socials a svg { width: 18px; height: 18px; }

.footer-socials a:hover {
    color: var(--color-text-white);
    background: var(--gradient-main);
    border-color: transparent;
    transform: translateY(-2px);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 99;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.35s var(--ease);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.45);
}

.scroll-top i,
.scroll-top svg { width: 20px; height: 20px; }

/* ============================================
   RESPONSIVE: TABLET & MOBILE
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-pad: 96px;
    }

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

    .hero-tagline { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-socials { justify-content: center; }

    .hero-visual { min-height: 400px; }
    .avatar-wrap { width: 300px; height: 300px; }

    .about-card {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 32px;
    }

    .about-photo {
        max-width: 380px;
        margin: 0 auto;
        aspect-ratio: 4/3;
    }

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

    .contact-grid { grid-template-columns: 1fr; }
    .contact-cta { position: static; }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 80px;
        --gap: 20px;
    }

    .nav-menu {
        position: fixed;
        inset: 0 0 auto 0;
        top: 72px;
        flex-direction: column;
        gap: 0;
        padding: 16px var(--gap) 24px;
        background: rgba(15, 23, 42, 0.97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s var(--ease);
    }

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

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu li:last-child {
        border-bottom: none;
        padding-top: 16px;
    }

    .nav-link {
        display: block;
        padding: 16px 4px !important;
        font-size: 15px;
    }

    .nav-link::after { display: none; }
    .nav-cta { text-align: center; }

    .nav-toggle { display: inline-flex; }

    .hero { padding: 110px 0 60px; }
    .hero-visual { min-height: 360px; }

    .avatar-wrap { width: 260px; height: 260px; }

    .floating-card {
        padding: 10px 14px;
        gap: 10px;
    }

    .floating-card i,
    .floating-card svg { width: 30px; height: 30px; padding: 6px; }
    .card-title { font-size: 12.5px; }
    .card-sub { font-size: 11px; }

    .card-1 { left: 0; top: 10px; }
    .card-2 { right: 0; bottom: 20px; }

    .about-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px; }
    .stat h4 { font-size: 26px; }
    .stat p { font-size: 10.5px; }

    .skills-grid { grid-template-columns: 1fr; gap: 20px; }
    .skill-card { padding: 24px; }

    .projects-grid { grid-template-columns: 1fr; gap: 24px; }
    .project-body { padding: 22px; }

    .contact-info { grid-template-columns: 1fr; }
    .cta-card { padding: 28px; }
    .cta-card h3 { font-size: 24px; }

    .section-head { margin-bottom: 48px; }

    .scroll-top {
        right: 18px;
        bottom: 18px;
        width: 44px;
        height: 44px;
    }

    .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
    .btn { padding: 12px 20px; font-size: 14px; }
    .about-card { padding: 22px; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .avatar-wrap { width: 220px; height: 220px; }
    .card-1, .card-2 { position: static; margin: 12px auto 0; }
    .hero-visual { min-height: auto; flex-direction: column; }
}
