/* Google Fonts loaded via <link> in HTML for non-blocking load */

/* ── UTILITY REPLACEMENTS (replacing TailwindCSS CDN) ── */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.5rem;
    background: #06b6d4;
    margin-left: 0.25rem;
    vertical-align: middle;
    animation: cursor-blink 1s ease-in-out infinite;
}

@keyframes cursor-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-sub {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 32rem;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}

.about-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.5rem;
    position: relative;
}

.text-accent-purple {
    color: #a78bfa;
    font-weight: 600;
}

.text-accent-cyan {
    color: #22d3ee;
    font-weight: 600;
}

.text-accent-orange {
    color: #fb923c;
    font-weight: 600;
}

.contact-desc {
    color: var(--text-secondary);
    max-width: 28rem;
    margin: 0 auto;
    position: relative;
}

.btn-center {
    margin: 0 auto;
}

.social-links-bottom {
    margin-bottom: 2.5rem;
}

.text-center {
    text-align: center;
}

/* Loading spinner (replaces Font Awesome spinner) */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --accent-1: #7c3aed;
    --accent-2: #06b6d4;
    --accent-3: #f43f5e;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

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

/* ── SCROLL CONTAINER ── */
.snap-container {
    height: 100vh;
    overflow-y: auto;
    scroll-behavior: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.snap-container::-webkit-scrollbar {
    display: none;
}

#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}


/* ── NAV ── */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 15, 0.7);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

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

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

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

.nav-links a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ── SLIDE INDICATOR ── */
.slide-indicators {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.4s ease;
}

.slide-dot.active {
    background: var(--accent-1);
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.6);
    transform: scale(1.3);
}

.slide-dot:hover {
    background: var(--accent-2);
    transform: scale(1.2);
}

/* ── SECTIONS (SLIDES) ── */
section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    overflow: hidden;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--accent-2);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* ── HERO ── */
#hero {
    text-align: center;
    flex-direction: column;
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--accent-2);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

.hero-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

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

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-custom {
    padding: 0.85rem 2rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--accent-1), #5b21b6);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.4);
}

.btn-outline-custom {
    padding: 0.85rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-custom:hover {
    border-color: var(--accent-1);
    background: rgba(124, 58, 237, 0.1);
}

/* ── SCROLL DOWN HINT ── */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    animation: bounce 2s infinite;
}

.scroll-hint i {
    font-size: 1.2rem;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* ── ABOUT ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1100px;
    align-items: center;
}

.about-image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-image {
    width: 280px;
    height: 280px;
    border-radius: 24px;
    object-fit: cover;
    border: 2px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.2);
}

.about-image-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 24px;
    top: 10px;
    left: calc(50% - 130px);
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    opacity: 0.15;
    filter: blur(30px);
    z-index: -1;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

/* ── SKILLS ── */
.skills-container {
    max-width: 1100px;
    width: 100%;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.skill-card {
    padding: 1.2rem 0.8rem;
    text-align: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.4s ease;
    cursor: default;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-1);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.15);
}

.skill-icon {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
    display: block;
}

.skill-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-level {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── EXPERIENCE ── */
.experience-container {
    max-width: 900px;
    width: 100%;
    overflow-y: auto;
    max-height: 80vh;
    padding-right: 12px;
}

/* Custom scrollbar for experience */
.experience-container::-webkit-scrollbar {
    width: 6px;
}

.experience-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.experience-container::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--accent-1), var(--accent-2));
    border-radius: 10px;
}

.experience-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #9333ea, #22d3ee);
}

.experience-container {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-1) rgba(255, 255, 255, 0.03);
}

.timeline {
    position: relative;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-1), var(--accent-2), transparent);
}

.timeline-item {
    padding-left: 60px;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: 12px;
    top: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.timeline-card {
    padding: 1.8rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.timeline-card:hover {
    border-color: var(--accent-1);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.1);
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--accent-2);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.timeline-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.timeline-subtitle {
    color: var(--accent-1);
    font-weight: 500;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.timeline-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.85rem;
}

/* ── CONTACT ── */
.contact-container {
    max-width: 700px;
    width: 100%;
    text-align: center;
}

.contact-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    text-align: left;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1.1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
}

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

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--accent-1);
    border-color: var(--accent-1);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
}

/* ── FOOTER (inside last slide) ── */
.footer-inline {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 0.75rem;
    white-space: nowrap;
}

/* ── SLIDE TRANSITIONS ── */
.slide-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {

    /* ── NAV ── */
    .nav-container {
        padding: 0.8rem 1rem;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.97);
        padding: 1.5rem 2rem;
        gap: 1.2rem;
        border-bottom: 1px solid var(--glass-border);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .nav-links.active a {
        font-size: 1rem;
        padding: 0.4rem 0;
    }

    .mobile-toggle {
        display: block;
    }

    /* ── SECTIONS ── */
    section {
        padding: 4.5rem 1rem 2rem;
        min-height: 100vh;
        height: auto;
    }

    /* ── HERO ── */
    #hero {
        padding-top: 5rem;
        padding-bottom: 3rem;
        min-height: 100vh;
        height: 100vh;
    }

    .hero-name {
        font-size: clamp(2.2rem, 12vw, 3.5rem);
        margin-bottom: 1rem;
    }

    .hero-desc {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.9rem;
        margin-bottom: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .hero-buttons .btn-primary-custom,
    .hero-buttons .btn-outline-custom {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }

    .scroll-hint {
        bottom: 1rem;
        font-size: 0.65rem;
    }

    /* ── ABOUT ── */
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 0.5rem;
    }

    .about-image {
        width: 200px;
        height: 200px;
        border-radius: 20px;
    }

    .about-image-glow {
        width: 200px;
        height: 200px;
        left: calc(50% - 100px);
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
        margin-top: 1.5rem;
    }

    .stat-card {
        padding: 0.8rem 0.5rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

    .section-subtitle {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    /* ── SKILLS ── */
    .skills-container {
        padding: 0 0.5rem;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
        margin-top: 1.2rem;
    }

    .skill-card {
        padding: 0.8rem 0.4rem;
        border-radius: 12px;
    }

    .skill-card:hover {
        transform: translateY(-4px);
    }

    .skill-icon {
        font-size: 1.6rem;
        margin-bottom: 0.3rem;
    }

    .skill-name {
        font-size: 0.7rem;
    }

    .skill-level {
        font-size: 0.55rem;
    }

    /* ── EXPERIENCE ── */
    #experience {
        align-items: flex-start;
        padding-top: 5rem;
    }

    .experience-container {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }

    .timeline-item {
        padding-left: 45px;
        margin-bottom: 1.5rem;
    }

    .timeline::before {
        left: 14px;
    }

    .timeline-dot {
        left: 7px;
        top: 6px;
        width: 14px;
        height: 14px;
    }

    .timeline-card {
        padding: 1.2rem;
        border-radius: 12px;
    }

    .timeline-title {
        font-size: 1rem;
    }

    .timeline-subtitle {
        font-size: 0.8rem;
    }

    .timeline-desc {
        font-size: 0.78rem;
    }

    .timeline-date {
        font-size: 0.72rem;
    }

    /* ── CONTACT ── */
    #contact {
        padding-bottom: 4rem;
    }

    .contact-container {
        padding: 0 0.5rem;
    }

    .contact-form {
        gap: 0.8rem;
        margin-top: 1.2rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .form-group textarea {
        min-height: 80px;
    }

    .form-group label {
        font-size: 0.78rem;
    }

    .btn-primary-custom {
        padding: 0.75rem 1.5rem;
        font-size: 0.88rem;
    }

    .social-links {
        margin-top: 1rem;
        gap: 0.8rem;
    }

    .social-link {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 1.1rem;
    }

    .footer-inline {
        font-size: 0.65rem;
        bottom: 0.8rem;
    }

    /* ── INDICATORS ── */
    .slide-indicators {
        right: 0.5rem;
        gap: 0.6rem;
    }

    .slide-dot {
        width: 8px;
        height: 8px;
    }
}

/* ── VERY SMALL SCREENS ── */
@media (max-width: 400px) {
    section {
        padding: 4rem 0.8rem 1.5rem;
    }

    .hero-name {
        font-size: clamp(1.8rem, 11vw, 2.8rem);
    }

    .hero-desc {
        font-size: 0.9rem;
    }

    .about-image {
        width: 160px;
        height: 160px;
    }

    .about-image-glow {
        width: 160px;
        height: 160px;
        left: calc(50% - 80px);
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .stat-number {
        font-size: 1.2rem;
    }

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

    .timeline-item {
        padding-left: 38px;
        margin-bottom: 1.2rem;
    }

    .timeline-card {
        padding: 0.9rem;
    }

    .timeline-title {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: clamp(1.3rem, 5.5vw, 1.8rem);
    }

    .footer-inline {
        font-size: 0.6rem;
        white-space: normal;
        text-align: center;
        padding: 0 1rem;
    }
}

/* ── LANDSCAPE MOBILE FIX ── */
@media (max-height: 500px) and (orientation: landscape) {
    section {
        min-height: auto;
        height: auto;
        padding: 3rem 1.5rem;
    }

    #hero {
        height: auto;
        min-height: auto;
    }

    .hero-name {
        font-size: 2rem;
    }

    .scroll-hint {
        display: none;
    }
}