/* ========================================
   HIMANSHU SHAKYA — PREMIUM PORTFOLIO
   Dark Theme · Glassmorphism · Animations
   ======================================== */

/* === IMPORTS & RESET === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Fira+Code:wght@400;500&display=swap');

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Palette */
    --accent: #6c63ff;
    --accent-light: #8b83ff;
    --accent-glow: rgba(108, 99, 255, 0.35);
    --accent-2: #00d4ff;
    --accent-3: #ff6b9d;

    /* Backgrounds */
    --bg-primary: #0a0a1a;
    --bg-secondary: #0f0f2a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(255, 255, 255, 0.06);
    --bg-glass-border: rgba(255, 255, 255, 0.1);

    /* Text */
    --text-primary: #e8e8f0;
    --text-secondary: #9999b3;
    --text-muted: #666680;

    /* Misc */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --shadow-xl: 0 25px 60px rgba(0, 0, 0, 0.5);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent);
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* === CANVAS PARTICLES === */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* === CUSTOM CURSOR === */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 2px solid var(--accent-light);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    opacity: 0.5;
}

/* === LAYOUT === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Fira Code', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.logo-bracket {
    color: var(--accent);
}

.logo-dot {
    color: var(--accent-2);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-toggle:hover {
    background: var(--bg-glass);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: 20%;
    right: -10%;
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    bottom: 10%;
    left: -5%;
    pointer-events: none;
    animation: heroGlow 10s ease-in-out infinite reverse;
}

@keyframes heroGlow {

    0%,
    100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.2) translate(20px, -20px);
        opacity: 1;
    }
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent-2);
    width: fit-content;
    animation: fadeInUp 0.8s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-greeting {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.hero-name {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 50%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.accent-dot {
    -webkit-text-fill-color: var(--accent);
}

.hero-role {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--accent-2);
    min-height: 1.6em;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.typed-cursor {
    color: var(--accent);
    animation: blink 1s step-end infinite;
    font-weight: 300;
    font-size: 1.4rem;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 520px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    font-size: 0.92rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-glass {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--bg-glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.btn-icon:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
}

/* === HERO STATS === */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 24px 30px;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    display: inline;
}

.stat-plus {
    font-size: 1.4rem;
    color: var(--accent-2);
    font-weight: 700;
}

.stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

/* === HERO VISUAL === */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.profile-wrapper {
    position: relative;
    width: 340px;
    height: 340px;
}

.profile-ring {
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0.3;
    animation: spinSlow 20s linear infinite;
}

.ring-2 {
    inset: -30px;
    border-color: var(--accent-2);
    opacity: 0.15;
    animation-direction: reverse;
    animation-duration: 30s;
}

@keyframes spinSlow {
    to {
        transform: rotate(360deg);
    }
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-glass-border);
    box-shadow: 0 0 60px var(--accent-glow), var(--shadow-xl);
    position: relative;
    z-index: 2;
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: 12px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    z-index: 3;
    animation: floatBadge 4s ease-in-out infinite;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.floating-badge i {
    font-size: 1.1rem;
}

.badge-python {
    top: 5%;
    right: -20%;
    color: #3b82f6;
    animation-delay: 0s;
}

.badge-python i {
    color: #3b82f6;
}

.badge-ai {
    bottom: 5%;
    right: -15%;
    color: var(--accent-3);
    animation-delay: 1.3s;
}

.badge-ai i {
    color: var(--accent-3);
}

.badge-db {
    bottom: 20%;
    left: -20%;
    color: var(--accent-2);
    animation-delay: 2.6s;
}

.badge-db i {
    color: var(--accent-2);
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* === SCROLL INDICATOR === */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    animation: fadeInUp 1s ease-out 1s backwards;
}

.scroll-indicator span {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-arrow {
    animation: bounceDown 2s ease-in-out infinite;
    color: var(--accent);
    font-size: 0.9rem;
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* === SECTIONS COMMON === */
section {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* === ABOUT / EXPERTISE === */
.about {
    padding: 120px 24px;
    background: var(--bg-secondary);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.expertise-card {
    position: relative;
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    transition: var(--transition);
    overflow: hidden;
    cursor: default;
}

.expertise-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(108, 99, 255, 0.12);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--accent-glow), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.expertise-card:hover .card-glow {
    opacity: 0.15;
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 14px;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 20px;
    transition: var(--transition);
}

.expertise-card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.expertise-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.expertise-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 18px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-tags span {
    padding: 4px 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.expertise-card:hover .card-tags span {
    color: var(--accent);
    border-color: rgba(108, 99, 255, 0.3);
}

/* === SKILLS SECTION === */
.skills-section {
    padding: 120px 24px;
    background: var(--bg-primary);
}

.skills-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 960px;
    margin: 0 auto;
}

.skills-col-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills-col-title i {
    color: var(--accent);
}

.skill-row {
    margin-bottom: 24px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-percent {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Fira Code', monospace;
}

.progress-track {
    height: 8px;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: var(--accent-2);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 10px var(--accent-glow);
    opacity: 0;
    transition: opacity 0.3s 1.5s;
}

.progress-fill.animated::after {
    opacity: 1;
}

/* === PORTFOLIO SECTION === */
.portfolio-section {
    padding: 120px 24px;
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(108, 99, 255, 0.15);
}

.project-image-wrapper {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(0, 212, 255, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-icon-bg {
    font-size: 4.5rem;
    color: rgba(255, 255, 255, 0.15);
    transition: var(--transition-slow);
}

.project-card:hover .project-icon-bg {
    transform: scale(1.2) rotate(5deg);
    color: rgba(255, 255, 255, 0.25);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 26, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.overlay-btn {
    padding: 12px 28px;
    background: var(--accent);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.project-card:hover .overlay-btn {
    transform: translateY(0);
}

.overlay-btn:hover {
    background: var(--accent-light);
}

.project-body {
    padding: 28px;
}

.project-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.project-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 18px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    padding: 4px 12px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-light);
}

/* === EDUCATION / TIMELINE === */
.education-section {
    padding: 120px 24px;
    background: var(--bg-primary);
}

.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
    padding-left: 30px;
}

.timeline-dot {
    position: absolute;
    left: -35px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 15px var(--accent-glow);
    z-index: 1;
}

.dot-cert {
    background: var(--accent-2);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateX(6px);
}

.timeline-date {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(108, 99, 255, 0.15);
    color: var(--accent);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: 'Fira Code', monospace;
}

.timeline-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.timeline-institution {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-institution i {
    color: var(--accent);
    font-size: 0.85rem;
}

.timeline-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.cert-list {
    list-style: none;
}

.cert-list li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.cert-list li:last-child {
    border-bottom: none;
}

.cert-list li i {
    color: var(--accent-2);
    font-size: 0.8rem;
}

/* === CONTACT SECTION === */
.contact-section {
    padding: 120px 24px;
    background: var(--bg-secondary);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.contact-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateX(8px);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 12px;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.contact-card-details h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.contact-card-details p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.social-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

/* === CONTACT FORM === */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
    background: var(--bg-card-hover);
}

.btn-submit {
    align-self: flex-start;
    padding: 16px 40px;
}

.btn-submit.sending {
    opacity: 0.7;
    pointer-events: none;
}

/* === FOOTER === */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    padding: 50px 24px 28px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    font-family: 'Fira Code', monospace;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-brand p {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 400;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-socials {
    display: flex;
    gap: 14px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-bottom i.fa-heart {
    color: var(--accent-3);
}

.footer-bottom i.fa-mug-hot {
    color: #f59e0b;
}

/* === BACK TO TOP === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-description {
        max-width: 600px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .profile-wrapper {
        width: 280px;
        height: 280px;
    }

    .floating-badge {
        display: none;
    }
}

@media (max-width: 768px) {

    /* Nav */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        border-bottom: 1px solid var(--border-subtle);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-link {
        padding: 14px 20px;
        text-align: center;
        font-size: 1rem;
    }

    /* Hero */
    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-name {
        font-size: 2.4rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .scroll-indicator {
        display: none;
    }

    /* Sections */
    .about,
    .skills-section,
    .portfolio-section,
    .education-section,
    .contact-section {
        padding: 80px 20px;
    }

    .expertise-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Cursor */
    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;
    }

    .hero-role {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .profile-wrapper {
        width: 220px;
        height: 220px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .btn-icon {
        width: 100%;
    }

    .social-row {
        justify-content: center;
    }

    .timeline {
        padding-left: 30px;
    }
}