/* Base Styles & Variables */
:root {
    --bg-dark: #0f1115;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #9da3af;
    --accent-1: #6366f1; /* Indigo */
    --accent-2: #ec4899; /* Pink */
    --accent-3: #10b981; /* Emerald */
    --nav-glass: rgba(15, 17, 21, 0.7);
    
    font-family: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Outfit', sans-serif;
}

::selection {
    background: var(--accent-1);
    color: #fff;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title span {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

section {
    padding: 6rem 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-1);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.admin-nav-link {
    opacity: 0.4;
    font-size: 1.1rem;
    transition: opacity 0.3s ease !important;
}

.admin-nav-link:hover {
    opacity: 1 !important;
    color: var(--accent-1) !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 5%;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.dynamic-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    min-height: 110px; /* Prevents layout jump when typing */
}

.cursor {
    animation: blink 1s step-start infinite;
    color: var(--accent-1);
    font-weight: 300;
}

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

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 1rem;
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* Hero Socials */
.hero-socials {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.hero-socials .social-icon {
    width: 28px;
    height: 28px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInSlideUp 0.6s ease forwards;
}

.hero-socials .social-icon:nth-child(1) { animation-delay: 0.8s; }
.hero-socials .social-icon:nth-child(2) { animation-delay: 1.0s; }
.hero-socials .social-icon:nth-child(3) { animation-delay: 1.2s; }
.hero-socials .social-icon:nth-child(4) { animation-delay: 1.4s; }

@keyframes fadeInSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Resume Button */
.btn-resume {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.btn-resume:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--accent-1);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Profile Photo Frame */
.hero-photo-wrap {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 320px;
    z-index: 2;
    pointer-events: auto; /* Allow hover on badges and photo */
}

.photo-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    box-shadow: 0 0 40px rgba(99,102,241,0.3), 0 0 80px rgba(236,72,153,0.15);
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 40px rgba(99,102,241,0.3), 0 0 80px rgba(236,72,153,0.15); }
    50%       { box-shadow: 0 0 60px rgba(99,102,241,0.5), 0 0 100px rgba(236,72,153,0.25); }
}

.photo-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-dark);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(99,102,241,0.08);
}

.photo-emoji {
    font-size: 5rem;
    line-height: 1;
}

/* Floating Badges */
.badge {
    position: absolute;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    pointer-events: none;
    animation: float-badge 6s ease-in-out infinite;
    white-space: nowrap;
}

.badge-1 { top: 5%;  left: -5%;  animation-delay: 0s; }
.badge-2 { bottom: 10%; left: -8%;  animation-delay: -2s; }
.badge-3 { top: 18%; right: -10%; animation-delay: -4s; }

@keyframes float-badge {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}



/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.skill-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 16px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.skill-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.skill-card p {
    color: var(--accent-1);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-img-placeholder {
    width: 100%;
    height: 200px;
}

.gradient-1 { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }
.gradient-2 { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }
.gradient-3 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.gradient-4 { background: linear-gradient(135deg, #fccb90 0%, #d57eeb 100%); }
.gradient-5 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.view-link {
    color: var(--accent-1);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: margin-left 0.3s ease;
}

.view-link:hover {
    margin-left: 5px;
}

/* Contact Section */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.submit-btn {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Form Loading State */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .spinner {
    display: block;
}

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

.form-message {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    min-height: 20px;
}

.msg-success { color: var(--accent-3); }
.msg-error { color: var(--accent-2); }

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Resume & Timeline ──────────────────── */
.resume-section {
    padding: 100px 0;
    background: rgba(10, 15, 25, 0.5);
    position: relative;
    overflow: hidden;
}
.resume-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at right top, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
                radial-gradient(circle at left bottom, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    pointer-events: none;
}
.resume-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}
@media (max-width: 900px) {
    .resume-grid { grid-template-columns: 1fr; gap: 4rem; }
}

.timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-1), var(--accent-2));
    opacity: 0.5;
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-dot {
    position: absolute;
    left: -2.35rem; /* align dot to center of 2px line based on 2rem left-padding */
    top: 1.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--accent-1);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    z-index: 2;
    transition: all 0.3s ease;
}
.timeline-item:hover .timeline-dot {
    background: var(--accent-1);
    border-color: var(--accent-2);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.8), 0 0 30px rgba(236, 72, 153, 0.5);
    transform: scale(1.2);
}
.timeline-content {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}
.timeline-content .duration {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--accent-1);
    font-weight: 600;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}
.timeline-content h3 {
    color: var(--text-primary);
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
}
.timeline-content .institution,
.timeline-content .company {
    font-weight: 500;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 1rem;
}
.timeline-content .institution::after,
.timeline-content .company::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-1);
    opacity: 0.5;
}
.timeline-content .description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ── Hero Refinements ───────────────────── */
.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.1;
}
.hero-subtitle {
    font-size: 2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}
#typewriter {
    color: var(--primary-color);
    font-weight: 700;
}
@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.5rem; }
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    color: var(--text-secondary);
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Section Spacing & Transitions */
section {
    padding: 8rem 0;
    transition: background 0.5s ease;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
}

/* Projects Refinements */
.project-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.08);
}

.project-card:hover {
    border-color: var(--accent-1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Skills Refinements */
.skill-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.skill-card h3 {
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #fff, #9da3af);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}



.social-icon:hover {
    color: var(--accent-1);
    transform: translateY(-3px) scale(1.1);
}


.social-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Responsive */
@media (max-width: 768px) {
    .dynamic-title { font-size: 3rem; min-height: 80px; }
    .about-content { grid-template-columns: 1fr; gap: 2rem; }
    .hero-photo-wrap { position: relative; right: auto; top: auto; transform: none; margin: 2rem auto 0 auto; width: 250px; height: 250px; display: flex; align-items: center; justify-content: center; }
    .photo-inner .photo-emoji { font-size: 3.5rem; }
    .hero { text-align: center; justify-content: center; padding-top: 80px; }
    .hero-description { margin: 0 auto 2.5rem auto; }
    .hero-cta { justify-content: center; }
    .btn-secondary { margin-left: 0; }
    .nav-links { display: none; }
    .contact-wrapper { padding: 2rem 1.5rem; }
}

.no-projects {
    color: var(--text-secondary);
    text-align: center;
    width: 100%;
    padding: 2rem;
    opacity: 0.7;
}

/* ── Navbar Scrolled ─────────────────────── */
.navbar.scrolled {
    background: rgba(15, 17, 21, 0.95);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

/* ── Hamburger ───────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 200;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: rgba(13, 15, 19, 0.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 100;
    }
    .nav-links.open { display: flex; }
    .nav-links .nav-link { font-size: 1.5rem; }
}

/* ── Hero Greeting ───────────────────────── */
.hero-greeting {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-1);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    animation: fadeInSlideUp 0.6s ease forwards;
}

/* ── Section Subtitle ────────────────────── */
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: -2.5rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Stats Bar ───────────────────────────── */
.stats-bar {
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(236,72,153,0.04));
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.stats-live-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #10b981;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0.85;
}
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16,185,129,0.4);
    animation: live-pulse 2s infinite;
    flex-shrink: 0;
}
@keyframes live-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
    70%  { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.stats-error {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    opacity: 0.6;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-number {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}
@media (max-width: 800px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 500px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-number { font-size: 2.2rem; }
}

/* ── GitHub Link Row ─────────────────────── */
.github-link-row {
    text-align: center;
    margin-bottom: 3rem;
}
.btn-github {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.75rem;
    border-radius: 30px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.btn-github:hover {
    border-color: var(--accent-1);
    background: rgba(99,102,241,0.1);
    transform: translateY(-2px);
}
.btn-github svg { flex-shrink: 0; }

/* ── Language Badge on Project Cards ─────── */
.project-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}
.project-header-row h3 { margin-bottom: 0; flex: 1; }
.lang-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Project Card Overlay ────────────────── */
.project-img-placeholder {
    position: relative;
    overflow: hidden;
}
.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay-btn {
    padding: 0.6rem 1.4rem;
    background: rgba(255,255,255,0.9);
    color: #0d0f13;
    border-radius: 20px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: transform 0.2s;
}
.project-overlay-btn:hover { transform: scale(1.05); }

/* ── Skill Card Icon ─────────────────────── */
.skill-icon { font-size: 2rem; margin-bottom: 0.75rem; line-height: 1; }

/* ── GitHub Stats Section ────────────────── */
.github-stats-section {
    padding: 6rem 0;
    background: rgba(10,12,18,0.3);
}
.github-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.github-stat-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-height: 140px;
}
.github-stat-card img, .github-streak-card img {
    max-width: 100%;
    border-radius: 8px;
    height: auto;
}
.github-streak-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
@media (max-width: 700px) {
    .github-stats-grid { grid-template-columns: 1fr; }
}

/* ── About Meta ──────────────────────────── */
.about-meta {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.meta-item span { color: var(--text-primary); font-weight: 500; }

/* ── Contact Layout ──────────────────────── */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
}
.contact-icon { font-size: 1.75rem; }
.contact-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.contact-card a {
    color: var(--accent-1);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    word-break: break-all;
}
.contact-card a:hover { text-decoration: underline; }
.contact-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.contact-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.25s ease;
}
.contact-social-link svg { width: 16px; height: 16px; fill: currentColor; }
.contact-social-link:hover { border-color: var(--accent-1); color: var(--text-primary); background: rgba(99,102,241,0.08); transform: translateY(-2px); }
@media (max-width: 800px) {
    .contact-wrapper { grid-template-columns: 1fr; }
}

/* ── Nav Active ──────────────────────────── */
.nav-link.active { color: var(--accent-1) !important; }
.nav-link { transition: color 0.3s ease; }

/* ── Scroll-to-top ───────────────────────── */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(99,102,241,0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
    line-height: 1;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(99,102,241,0.5); }

/* ── Footer Extra ────────────────────────── */
.footer-built {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.2);
    margin-top: 0.5rem;
}

