@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap");

:root {
    --bg: #0e0f13;
    --bg-soft: #171922;
    --bg-soft-2: #111520;
    --card: rgba(255, 255, 255, 0.06);
    --card-border: rgba(255, 255, 255, 0.12);
    --text: #f4f5f8;
    --muted: #b6bac8;
    --brand: #f4a949;
    --brand-2: #ffcc80;
    --success: #7fe2b5;
    --shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
    --shadow-soft: 0 30px 80px rgba(0, 0, 0, 0.34);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 10%, rgba(244, 169, 73, 0.2), transparent 32%),
        radial-gradient(circle at 80% 0%, rgba(127, 226, 181, 0.15), transparent 28%),
        linear-gradient(135deg, var(--bg), var(--bg-soft-2) 45%, var(--bg-soft));
    background-size: 120% 120%;
    min-height: 100vh;
    cursor: none;
    opacity: 1;
    transition: opacity 0.35s ease;
    animation: ambientGradient 18s ease-in-out infinite;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 0.7px, transparent 0.7px);
    background-size: 3px 3px;
    opacity: 0.25;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    z-index: 2000;
    background: linear-gradient(90deg, var(--brand), var(--brand-2), #ffffff);
    box-shadow: 0 0 24px rgba(244, 169, 73, 0.65);
    transform-origin: left center;
}

::selection {
    background: rgb(109, 67, 0);
    color: #ffffff;
}

::-moz-selection {
    background: rgb(109, 67, 0);
    color: #ffffff;
}

body.is-transitioning {
    opacity: 0;
}

a, button, .btn, .card, .nav-links a, .logo, input, textarea {
    cursor: none;
}

/* Custom cursor */
.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-120px, -120px);
}

.cursor-dot {
    width: 10px;
    height: 10px;
    margin-left: -5px;
    margin-top: -5px;
    background: var(--brand);
    box-shadow: 0 0 16px rgba(244, 169, 73, 0.7);
}

.cursor-ring {
    width: 34px;
    height: 34px;
    margin-left: -17px;
    margin-top: -17px;
    border: 1.8px solid rgba(244, 169, 73, 0.65);
    background: rgba(255, 204, 128, 0.06);
    transition: 0.2s ease;
}

.cursor-ring.active {
    width: 50px;
    height: 50px;
    margin-left: -25px;
    margin-top: -25px;
    background: rgba(244, 169, 73, 0.12);
    border-color: rgba(255, 204, 128, 0.95);
}

.cursor-dot.active {
    background: #fff;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(14, 15, 19, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.top-nav.scrolled {
    background: rgba(10, 12, 18, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.top-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
}

.logo {
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #fff;
    font-size: 1.5rem;
    transition: transform 0.25s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo span {
    color: var(--brand);
    text-shadow: 0 0 16px rgba(244, 169, 73, 0.6);
}

.nav-links {
    display: flex;
    gap: 22px;
    list-style: none;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
}

.nav-cta {
    text-decoration: none;
    border: 1px solid rgba(244, 169, 73, 0.6);
    color: var(--brand-2);
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.25s ease, background-color 0.2s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    background: rgba(244, 169, 73, 0.15);
}

.nav-cta.active {
    background: rgba(244, 169, 73, 0.2);
    border-color: rgba(255, 204, 128, 0.9);
}

.hero {
    padding: 90px 0 70px;
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(45px);
    z-index: -1;
}

.hero::before {
    width: 320px;
    height: 320px;
    background: rgba(244, 169, 73, 0.18);
    top: -80px;
    right: -40px;
    animation: blobFloat 8s ease-in-out infinite;
}

.hero::after {
    width: 260px;
    height: 260px;
    background: rgba(127, 226, 181, 0.14);
    bottom: -90px;
    left: -40px;
    animation: blobFloat 10s ease-in-out infinite reverse;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 28px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--brand-2);
    border: 1px solid rgba(255, 204, 128, 0.35);
    border-radius: 999px;
    padding: 8px 12px;
    margin-bottom: 16px;
}

.hero h1 {
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.015em;
}

.hero h1 span {
    color: var(--brand);
}

.hero p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 26px;
    max-width: 58ch;
}

.identity-strip {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0 24px;
}

.identity-pill {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #eceef5;
    font-size: 0.85rem;
}

.btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    border: none;
    text-decoration: none;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 600;
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), #ffbe70);
    color: #1b1207;
}

.btn-secondary {
    border: 1px solid var(--card-border);
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    filter: saturate(1.1);
}

.hero-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--shadow-soft);
    transform-style: preserve-3d;
}

.hero-card h3 {
    margin: 14px 0 8px;
}

.hero-mini {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 12px;
}

.hero-image {
    width: 100%;
    border-radius: 14px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid,
.feature-grid,
.skills-grid,
.projects-grid {
    display: grid;
    gap: 16px;
}

.stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 22px;
}

.card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
    transition: transform 0.28s ease, border-color 0.25s ease, box-shadow 0.28s ease;
    will-change: transform;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(244, 169, 73, 0.6);
    box-shadow: var(--shadow-soft);
}

.stat-number {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--brand-2);
}

.stat-label {
    color: var(--muted);
    font-size: 0.92rem;
}

.section {
    padding: 36px 0;
}

.section-title {
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-size: clamp(1.4rem, 3vw, 2.3rem);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    color: var(--muted);
    margin-bottom: 22px;
}

.feature-grid,
.projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skill-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    margin: 4px 6px 0 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e9ebf2;
    font-size: 0.88rem;
}

.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(var(--brand), transparent);
}

.timeline-item {
    margin-bottom: 14px;
}

.timeline-item h4 {
    margin-bottom: 3px;
    color: var(--brand-2);
}

.timeline-item p {
    color: var(--muted);
    line-height: 1.65;
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    padding: 12px 14px;
    margin-bottom: 12px;
    outline: none;
    cursor: text;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(244, 169, 73, 0.7);
}

.footer {
    padding: 34px 0 44px;
    color: var(--muted);
    text-align: center;
}

.social-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    border-radius: 50%;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.25s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-link:hover {
    transform: translateY(-4px);
    border-color: rgba(244, 169, 73, 0.7);
    color: var(--brand-2);
}

.preloader {
    position: fixed;
    inset: 0;
    background: #0e0f13;
    display: grid;
    place-items: center;
    z-index: 9998;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-box {
    width: min(420px, 88%);
    text-align: center;
}

.loader-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 6px;
}

.loader-title span {
    color: var(--brand);
}

.loader-subtitle {
    color: var(--muted);
    margin-bottom: 18px;
}

.loader-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.loader-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    transition: width 0.18s ease;
}

.loader-percent {
    margin-top: 10px;
    color: var(--brand-2);
    font-weight: 600;
}

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

@keyframes blobFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-12px) translateX(8px);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(5px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.65, 0.2, 1), filter 0.8s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.reveal[data-reveal="left"] {
    transform: translateX(-26px);
}

.reveal[data-reveal="right"] {
    transform: translateX(26px);
}

.reveal[data-reveal="zoom"] {
    transform: scale(0.92);
}

.reveal.show[data-reveal] {
    transform: none;
}

@keyframes ambientGradient {
    0%,
    100% {
        background-position: 0% 10%;
    }
    50% {
        background-position: 100% 90%;
    }
}

@media (pointer: coarse), (max-width: 780px) {
    body,
    a,
    button,
    .btn,
    .card,
    .nav-links a,
    .logo,
    input,
    textarea {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@media (max-width: 900px) {
    .hero-grid,
    .feature-grid,
    .projects-grid,
    .skills-grid,
    .contact-wrap,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .top-nav .container {
        gap: 12px;
        flex-wrap: wrap;
        height: auto;
        padding: 12px 0;
    }

    .nav-links {
        gap: 14px;
    }
}
