/* ==========================================================================
   Portfolio Design System & Tokens
   Palette: monochrome (black / white) + a single optional accent (cyan)
   ========================================================================== */
:root {
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Color 1 — monochrome base (dark) */
    --bg-main: #08090d;
    --bg-dark: #040507;
    --bg-card: rgba(20, 22, 30, 0.55);
    --bg-card-hover: rgba(34, 38, 50, 0.75);

    /* Color 2 — monochrome base (light) */
    --text-main: #f8fafc;
    --text-muted: #98a2b3;
    --border-card: rgba(255, 255, 255, 0.10);
    --border-hover: rgba(0, 242, 254, 0.35);

    /* Color 3 — the single optional accent */
    --accent: #00f2fe;
    --accent-soft: rgba(0, 242, 254, 0.12);
    --accent-line: rgba(0, 242, 254, 0.30);

    /* Glossy helpers */
    --gloss-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 48%);
    --gloss-edge: inset 0 1px 0 rgba(255, 255, 255, 0.16);

    --gradient-primary: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
    --gradient-text: linear-gradient(180deg, #ffffff 25%, #cfeaf2 60%, var(--accent) 125%);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    background-image:
        radial-gradient(1100px 600px at 50% -10%, rgba(0, 242, 254, 0.10), transparent 60%),
        radial-gradient(900px 520px at 88% 8%, rgba(255, 255, 255, 0.05), transparent 55%),
        radial-gradient(900px 700px at 0% 100%, rgba(255, 255, 255, 0.035), transparent 60%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.14));
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(8, 9, 13, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--border-card);
    padding: 0.85rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-mark {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 10px rgba(0, 242, 254, 0.28));
}

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

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
    padding: 0.4rem 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    box-shadow: 0 0 8px var(--accent-line);
    transition: var(--transition);
    border-radius: var(--radius-full);
}

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

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    padding-top: 8rem;
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 50% 18%, rgba(0, 242, 254, 0.08) 0%, transparent 60%);
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)), var(--accent-soft);
    border: 1px solid var(--accent-line);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 1.25rem;
    box-shadow: var(--gloss-edge), 0 6px 18px rgba(0, 0, 0, 0.35);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Glossy shine sweep shared by buttons */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -130%;
    width: 55%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.btn:hover::after {
    left: 140%;
}

.btn-primary {
    background: linear-gradient(180deg, #eafcff 0%, var(--accent) 48%, #06b6c9 100%);
    color: #032027;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -2px 6px rgba(0, 0, 0, 0.18),
        0 8px 25px rgba(0, 242, 254, 0.30);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -2px 6px rgba(0, 0, 0, 0.18),
        0 14px 32px rgba(0, 242, 254, 0.45);
}

.btn-secondary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
    color: var(--text-main);
    border: 1px solid var(--border-card);
    box-shadow: var(--gloss-edge);
}

.btn-secondary:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.contact-quick {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Avatar Frame */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    background: var(--gradient-primary);
    filter: blur(70px);
    opacity: 0.28;
    border-radius: 50%;
}

.image-frame {
    position: relative;
    width: clamp(260px, 30vw, 340px);
    height: clamp(320px, 38vw, 420px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-card);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), var(--gloss-edge);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glossy top light on the portrait frame */
.image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gloss-sheen);
    z-index: 2;
    pointer-events: none;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.image-frame:hover img {
    transform: scale(1.04);
}

.avatar-fallback-text {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent);
    display: none;
}

.avatar-fallback .avatar-fallback-text {
    display: block;
}

/* Live Stats Banner */
.stats-banner {
    max-width: 1000px;
    width: calc(100% - 3rem);
    margin-top: 4rem;
    background: var(--gloss-sheen), var(--bg-card);
    border: 1px solid var(--border-card);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), var(--gloss-edge);
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-card);
}

/* ==========================================================================
   Section Containers & Headers
   ========================================================================== */
.section {
    padding: 6rem 0;
}

.section-dark {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-card);
    border-bottom: 1px solid var(--border-card);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

/* ==========================================================================
   About Grid
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--gloss-sheen), var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), var(--gloss-edge);
}

.info-card:hover {
    background: var(--gloss-sheen), var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), var(--gloss-edge);
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    color: var(--text-main);
}

.info-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

.skills-bio h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.skills-bio p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, var(--accent) 55%, #06b6c9 100%);
    border-radius: var(--radius-full);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 0 12px rgba(0, 242, 254, 0.35);
    transition: width 1s ease-in-out;
}

/* ==========================================================================
   Project Showcase Grid
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.video-card {
    background: var(--gloss-sheen), var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), var(--gloss-edge);
}

.video-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -130%;
    width: 55%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
    z-index: 3;
}

.video-card:hover::after {
    left: 140%;
}

.video-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), var(--gloss-edge);
}

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    overflow: hidden;
}

.thumbnail-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-card:hover .thumbnail-wrapper img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(180deg, #eafcff, var(--accent));
    color: #032027;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 20px rgba(0, 242, 254, 0.55);
}

.video-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.video-info h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

.video-link-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
}

.channel-cta {
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: var(--gloss-sheen), var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), var(--gloss-edge);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    background: rgba(4, 5, 7, 0.6);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45), 0 0 0 3px var(--accent-soft);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-block {
    width: 100%;
    margin-top: 0.5rem;
}

.form-status {
    font-size: 0.9rem;
    text-align: center;
    min-height: 1.2rem;
}

.form-status.success {
    color: var(--accent);
    font-weight: 600;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-card);
    background: var(--bg-main);
}

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

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.back-to-top {
    width: 40px;
    height: 40px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--gloss-edge);
}

.back-to-top:hover {
    background: linear-gradient(180deg, #eafcff, var(--accent));
    color: #032027;
    border-color: var(--accent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 18px rgba(0, 242, 254, 0.5);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin: 0 auto 2rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .contact-quick {
        justify-content: center;
    }

    .skills-wrapper {
        grid-template-columns: 1fr;
    }

    .stat-divider {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(8, 9, 13, 0.92);
        backdrop-filter: blur(20px) saturate(140%);
        -webkit-backdrop-filter: blur(20px) saturate(140%);
        padding: 2rem;
        border-bottom: 1px solid var(--border-card);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        transform: translateY(-150%);
        transition: var(--transition);
    }

    .nav-menu.open {
        transform: translateY(0);
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .stats-banner {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}
