/* ============================================
   Satyasheel Gautam — Portfolio Stylesheet
   ============================================ */

/* ─── CSS VARIABLES ─── */
:root {
    --bg: #080c14;
    --bg-card: rgba(15, 23, 42, 0.75);
    --primary: #10b981;
    --primary-glow: rgba(16, 185, 129, 0.25);
    --secondary: #8b5cf6;
    --secondary-glow: rgba(139, 92, 246, 0.2);
    --amber: #f59e0b;
    --text: #f0f4ff;
    --muted: #7a8ba8;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(16, 185, 129, 0.4);
}

/* ─── BASE ─── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
}

/* Grid background overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Syne', sans-serif;
    letter-spacing: -0.03em;
}

/* Three.js canvas */
#bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

/* ─── NAVBAR ─── */
#navbar {
    position: fixed;
    top: 0; width: 100%;
    z-index: 50;
    padding: 0;
    transition: all 0.4s ease;
}
#navbar.scrolled {
    background: rgba(8, 12, 20, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.05em;
}
.nav-logo span { color: var(--primary); }
.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0; padding: 0;
}
.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
    letter-spacing: 0.02em;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1.5px;
    background: var(--primary);
    transition: width 0.3s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

/* Mobile menu */
#mobile-menu-btn { background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }
#mobile-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    width: 100%;
    background: rgba(8, 12, 20, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
#mobile-menu.open { display: block; }
#mobile-menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
}
#mobile-menu a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.2s;
}
#mobile-menu a:hover { color: var(--primary); }

/* ─── HERO / PROFILE BANNER ─── */
#profile-banner {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 80px;
    overflow: hidden;
    z-index: 1;
}

/* Ambient glow blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}
.blob-1 { width: 500px; height: 500px; background: var(--primary-glow); top: -100px; right: 10%; opacity: 0.6; }
.blob-2 { width: 400px; height: 400px; background: var(--secondary-glow); bottom: -50px; left: 5%; opacity: 0.5; }
.blob-3 { width: 300px; height: 300px; background: rgba(245, 158, 11, 0.1); top: 50%; left: 50%; transform: translate(-50%, -50%); }

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    width: 100%;
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-image-col { order: -1; display: flex; justify-content: center; }
    .hero-ctas { justify-content: center !important; }
    .hero-socials { justify-content: center !important; }
}

/* Profile image card */
.profile-image-wrapper {
    position: relative;
    width: 380px;
    height: 460px;
}
@media (max-width: 900px) {
    .profile-image-wrapper { width: 260px; height: 320px; }
}

.profile-ring-mask {
    position: absolute;
    inset: -14px;
    border-radius: 2rem;
    background: conic-gradient(from 0deg, var(--primary), var(--secondary), var(--amber), var(--primary));
    animation: spinRing 6s linear infinite;
    opacity: 0.7;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 3px;
}
@keyframes spinRing {
    to { transform: rotate(360deg); }
}

.profile-card {
    position: relative;
    width: 100%; height: 100%;
    border-radius: 1.75rem;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(160deg, rgba(16, 185, 129, 0.1), rgba(139, 92, 246, 0.1));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 40px 80px -20px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(16, 185, 129, 0.15);
    z-index: 1;
}
.profile-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.profile-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(8, 12, 20, 0.95) 0%, transparent 100%);
}
.profile-name-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 100px;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6ee7b7;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Floating stat cards */
.stat-float {
    position: absolute;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 0.75rem 1.1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 3;
}
.stat-float .num { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800; }
.stat-float .lbl { font-size: 0.7rem; color: var(--muted); }
.stat-float-1 { top: -20px; left: -30px; }
.stat-float-2 { bottom: 80px; right: -30px; }
@media (max-width: 900px) { .stat-float { display: none; } }

/* Hero text */
.availability-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.08);
    font-size: 0.78rem;
    font-weight: 600;
    color: #6ee7b7;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.availability-pill .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s ease infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
}
.hero-title .name-gradient {
    background: linear-gradient(135deg, #10b981 0%, #8b5cf6 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typewriter-line {
    font-size: 1.25rem;
    color: var(--muted);
    font-weight: 300;
    margin-bottom: 1.5rem;
    min-height: 2rem;
}
.typewriter-line span { color: #10b981; font-weight: 600; }
.typing-cursor::after { content: '|'; animation: blink 1s step-end infinite; color: #10b981; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: #94a3b8;
    max-width: 520px;
    margin-bottom: 2.5rem;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    border-radius: 100px;
    font-family: 'Syne', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #10b981, #8b5cf6);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px -4px rgba(16, 185, 129, 0.4);
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px -4px rgba(139, 92, 246, 0.5);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    border-radius: 100px;
    font-family: 'Syne', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(16, 185, 129, 0.07);
    transform: translateY(-2px);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }

/* Social icons */
.hero-socials { display: flex; gap: 1rem; }
.social-icon {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--border);
    color: var(--muted);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
}
.social-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-3px);
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 2.5rem; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    color: var(--muted); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
    z-index: 2;
}
.scroll-hint .arrow { animation: bounce 2s ease infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ─── GLASS CARDS ─── */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 20px 50px -10px rgba(16, 185, 129, 0.15);
    transform: translateY(-6px);
}

/* ─── SECTION STYLES ─── */
.section-label {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--primary);
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 1rem;
}
.section-label::before, .section-label::after {
    content: ''; flex: 1; max-width: 40px; height: 1px;
    background: linear-gradient(to right, var(--primary), transparent);
}
.section-label::before { background: linear-gradient(to left, var(--primary), transparent); }

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
}

.gradient-divider {
    width: 80px; height: 3px; border-radius: 100px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 1.25rem auto 0;
}

/* ─── SKILL TAGS ─── */
.skill-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: #cbd5e1;
    padding: 0.45rem 1.1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.25s ease;
    cursor: default;
}
.skill-tag:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: var(--primary);
    color: #10b981;
    transform: scale(1.05);
}

/* ─── TECH SCROLLER ─── */
.scroller {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.scroller__inner {
    display: flex; gap: 14px; list-style: none; padding: 6px 0; margin: 0;
    width: max-content;
    animation: scrollLeft 28s linear infinite;
}
.scroller[data-direction="right"] .scroller__inner { animation: scrollRight 32s linear infinite; }
.scroller:hover .scroller__inner { animation-play-state: paused; }

.tag {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0; font-size: 13px; font-weight: 500;
    white-space: nowrap; cursor: default;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
    backdrop-filter: blur(4px);
}
.tag:hover { border-color: rgba(16, 185, 129, 0.5); background: rgba(16, 185, 129, 0.08); transform: translateY(-2px); }
.mt-8 { margin-top: 18px; }

@keyframes scrollLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scrollRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ─── PROJECT CARDS ─── */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: all 0.4s ease;
    display: flex; flex-direction: column;
}
.project-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(139, 92, 246, 0.2);
}
.project-img { height: 200px; overflow: hidden; position: relative; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-img img { transform: scale(1.08); }
.project-img-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(8, 12, 20, 0.9)); }

/* ─── TIMELINE ─── */
.timeline-item { display: flex; gap: 1.5rem; align-items: flex-start; }
.timeline-icon {
    width: 56px; height: 56px;
    border-radius: 1rem; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}

/* ─── CONTACT CARD ─── */
.contact-info-card {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.75rem; padding: 1.5rem 1rem;
    border-radius: 1.25rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    text-decoration: none;
}
.contact-info-card:hover { border-color: var(--primary); background: rgba(16, 185, 129, 0.07); transform: translateY(-4px); }
.contact-info-card i { font-size: 1.75rem; }

/* ─── FORM ─── */
.form-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 0.875rem;
    padding: 0.9rem 1.25rem;
    color: white;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
.form-input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
    background: rgba(15, 23, 42, 0.9);
}
.form-input::placeholder { color: #4a5568; }

/* ─── REVEAL ANIMATION ─── */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ─── FOOTER ─── */
footer { border-top: 1px solid var(--border); }

/* ============================================
   MOBILE RESPONSIVE FIXES
   ============================================ */

/* ── Small tablets & large phones (max 768px) ── */
@media (max-width: 768px) {

    /* Navbar */
    .nav-inner {
        padding: 1rem 1.25rem;
    }
    .nav-logo {
        font-size: 1.25rem;
    }

    /* Hero Section */
    #profile-banner {
        padding: 100px 1.25rem 60px;
        min-height: 100svh;
    }
    .hero-grid {
        gap: 2rem;
    }
    .hero-title {
        font-size: clamp(2.2rem, 9vw, 3.2rem);
        margin-bottom: 1rem;
    }
    .hero-desc {
        font-size: 0.9rem;
        line-height: 1.7;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    .typewriter-line {
        font-size: 1.05rem;
        margin-bottom: 1.25rem;
    }
    .availability-pill {
        font-size: 0.7rem;
        margin-bottom: 1.25rem;
    }
    .hero-ctas {
        gap: 0.75rem;
        margin-bottom: 2rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .btn-primary, .btn-outline {
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
    }
    .hero-socials {
        gap: 0.75rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Profile Image */
    .profile-image-wrapper {
        width: 220px;
        height: 270px;
        margin: 0 auto;
    }
    .profile-ring-mask {
        inset: -10px;
    }

    /* Blobs — smaller on mobile */
    .blob-1 { width: 280px; height: 280px; }
    .blob-2 { width: 220px; height: 220px; }
    .blob-3 { width: 180px; height: 180px; }

    /* Sections general padding */
    section.py-28 { padding-top: 4rem; padding-bottom: 4rem; }
    section.py-24 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .container { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }

    /* Section titles */
    .section-title {
        font-size: clamp(1.6rem, 7vw, 2.5rem);
    }

    /* Glass cards padding */
    .glass-card.p-8,
    .glass-card.p-10 {
        padding: 1.5rem !important;
    }

    /* Timeline items */
    .timeline-item {
        flex-direction: column;
        gap: 1rem;
    }
    .timeline-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    /* Project cards */
    .project-img { height: 170px; }

    /* Contact section */
    #contact .glass-card {
        padding: 1.75rem 1.25rem !important;
    }
    #contact .grid-cols-2 {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem;
    }
    .contact-info-card {
        padding: 1rem 0.6rem;
        gap: 0.5rem;
    }
    .contact-info-card i {
        font-size: 1.4rem;
    }
    .contact-info-card .text-white {
        font-size: 0.75rem !important;
    }
    .contact-info-card .text-xs {
        font-size: 0.65rem !important;
    }

    /* Form */
    .form-input {
        font-size: 0.875rem;
        padding: 0.8rem 1rem;
    }
    #submit-btn {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 2rem !important;
    }

    /* Scroll hint hidden on mobile */
    .scroll-hint { display: none; }

    /* Footer */
    footer { padding: 1.5rem 1rem; }
    footer p { font-size: 0.8rem; }
}

/* ── Very small phones (max 400px) ── */
@media (max-width: 400px) {

    .nav-inner { padding: 0.9rem 1rem; }
    .nav-logo { font-size: 1.1rem; }

    #profile-banner { padding: 90px 1rem 50px; }

    .hero-title {
        font-size: clamp(1.9rem, 10vw, 2.5rem);
    }
    .profile-image-wrapper {
        width: 180px;
        height: 220px;
    }
    .btn-primary, .btn-outline {
        font-size: 0.78rem;
        padding: 0.7rem 1.25rem;
    }
    .section-title {
        font-size: clamp(1.4rem, 8vw, 2rem);
    }
    #contact .grid-cols-2 {
        grid-template-columns: 1fr 1fr !important;
    }
    .contact-info-card {
        padding: 0.75rem 0.4rem;
    }
    .glass-card.p-8,
    .glass-card.p-10 {
        padding: 1.25rem 1rem !important;
    }
    .skill-tag {
        font-size: 0.72rem;
        padding: 0.35rem 0.85rem;
    }
    .tag {
        padding: 8px 14px;
        font-size: 12px;
    }
}