/* ========================================
   10x Portfolio — Manas
   ========================================
   Palette:
     --bg:       #06060e
     --surface:  #0e0f1a
     --border:   rgba(255,255,255,0.06)
     --text:     #c8ccd8
     --heading:  #eef0f6
     --muted:    #6b7084
     --accent-1: #8b5cf6  (violet)
     --accent-2: #06b6d4  (cyan)
     --accent-3: #f472b6  (pink)
   ======================================== */

:root {
    --bg: #06060e;
    --surface: #0e0f1a;
    --border: rgba(255, 255, 255, 0.06);
    --text: #c8ccd8;
    --heading: #eef0f6;
    --muted: #6b7084;
    --accent-1: #8b5cf6;
    --accent-2: #06b6d4;
    --accent-3: #f472b6;
    --font-body: 'Space Grotesk', -apple-system, sans-serif;
    --font-display: 'Syne', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: none;
}

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

button { cursor: none; }

::selection {
    background: rgba(139, 92, 246, 0.3);
    color: #fff;
}

/* ---- Loader ---- */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-text {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: 0.3em;
    display: flex;
    gap: 0.05em;
}

.loader-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: loader-char 0.5s forwards;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loader-text span:nth-child(1) { animation-delay: 0.0s; }
.loader-text span:nth-child(2) { animation-delay: 0.08s; }
.loader-text span:nth-child(3) { animation-delay: 0.16s; }
.loader-text span:nth-child(4) { animation-delay: 0.24s; }
.loader-text span:nth-child(5) { animation-delay: 0.32s; }

@keyframes loader-char {
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Custom Cursor ---- */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent-1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
    mix-blend-mode: difference;
}

.cursor.hover {
    width: 40px;
    height: 40px;
    background: #fff;
}

.cursor-follower {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.cursor-follower.hover {
    width: 60px;
    height: 60px;
    border-color: rgba(255, 255, 255, 0.2);
}

/* ---- Noise Overlay ---- */
.noise {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px;
}

/* ---- Aurora Blobs ---- */
.aurora {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    will-change: transform;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-1);
    top: -10%;
    left: -5%;
    animation: blob-float-1 20s ease-in-out infinite;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-2);
    top: 40%;
    right: -10%;
    animation: blob-float-2 25s ease-in-out infinite;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: var(--accent-3);
    bottom: -5%;
    left: 30%;
    animation: blob-float-3 22s ease-in-out infinite;
}

@keyframes blob-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, 80px) scale(1.1); }
    66% { transform: translate(-60px, 120px) scale(0.9); }
}

@keyframes blob-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-80px, -60px) scale(0.9); }
    66% { transform: translate(40px, 80px) scale(1.15); }
}

@keyframes blob-float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, -100px) scale(1.1); }
    66% { transform: translate(-100px, -40px) scale(0.95); }
}

/* ---- Side Nav Dots ---- */
.side-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.side-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.4s ease;
    position: relative;
}

.side-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid transparent;
    transition: border-color 0.4s ease;
}

.side-dot.active {
    background: var(--accent-1);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

.side-dot.active::before {
    border-color: rgba(139, 92, 246, 0.3);
}

.side-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* ---- Top Nav ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav.scrolled {
    padding: 1rem 3rem;
    background: rgba(6, 6, 14, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--heading);
    transition: color 0.3s ease;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

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

.nav-cta {
    color: var(--accent-1) !important;
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    transition: all 0.3s ease !important;
}

.nav-cta:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--accent-1);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    max-width: 800px;
    padding-top: 2rem;
}

.hero-greeting {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent-1);
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
    overflow: hidden;
}

/* Text reveal animation */
.reveal-text { overflow: hidden; }

.reveal-line {
    display: inline-block;
    overflow: hidden;
}

.reveal-inner {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.visible .reveal-inner {
    transform: translateY(0);
}

/* Character animation */
.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 7.5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.char-wrap {
    display: inline-block;
    overflow: hidden;
}

.char {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(135deg, var(--heading) 0%, var(--accent-1) 50%, var(--accent-2) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite;
}

.char.visible { transform: translateY(0); }

.char-wrap:nth-child(1) .char { transition-delay: 0.05s; }
.char-wrap:nth-child(2) .char { transition-delay: 0.1s; }
.char-wrap:nth-child(3) .char { transition-delay: 0.15s; }
.char-wrap:nth-child(4) .char { transition-delay: 0.2s; }
.char-wrap:nth-child(5) .char { transition-delay: 0.25s; }
.char-wrap:nth-child(6) .char { transition-delay: 0.3s; }

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    font-weight: 600;
    color: var(--muted);
    line-height: 1.2;
    margin-bottom: 2rem;
    overflow: hidden;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text);
    max-width: 540px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.highlight-link {
    color: var(--accent-1);
    position: relative;
}

.highlight-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-1);
    opacity: 0.3;
}

/* Buttons */
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    padding: 0.9rem 2rem;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-1);
    color: #fff;
}

.btn-primary:hover {
    background: #7c3aed;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

.btn-ghost {
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.06);
    transform: translateY(-2px);
}

.btn-large {
    font-size: 0.9rem;
    padding: 1.1rem 2.5rem;
    background: var(--accent-1);
    color: #fff;
}

.btn-large:hover {
    background: #7c3aed;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-scroll span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.hero-scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-1), transparent);
    animation: scroll-pulse 2.5s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.2; transform: scaleY(0.5); transform-origin: top; }
}

/* ---- Sections ---- */
.section {
    position: relative;
    z-index: 2;
    padding: 8rem 0;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 3rem;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.section-number {
    color: var(--accent-1);
    font-weight: 500;
}

.section-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(to right, var(--accent-1), transparent);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--heading);
    line-height: 1.15;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

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

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

.about-text p {
    color: var(--text);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    line-height: 1.85;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    perspective: 800px;
}

.stat-card:hover {
    border-color: rgba(139, 92, 246, 0.15);
    box-shadow: 0 8px 40px rgba(139, 92, 246, 0.08);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.5;
}

/* ---- Experience ---- */
.exp-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.exp-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.exp-card:hover {
    border-color: rgba(139, 92, 246, 0.15);
}

.exp-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(139, 92, 246, 0.06), transparent 40%);
    pointer-events: none;
}

.exp-card:hover .exp-card-glow { opacity: 1; }

.exp-card-content {
    position: relative;
    padding: 2.25rem;
    z-index: 1;
}

.exp-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.exp-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.02em;
    display: block;
    margin-bottom: 0.35rem;
}

.exp-role {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--heading);
    line-height: 1.3;
}

.exp-company {
    font-size: 1rem;
    color: var(--accent-1);
    font-weight: 500;
}

.exp-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--accent-2);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.exp-details {
    list-style: none;
    margin-bottom: 1.5rem;
}

.exp-details li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text);
    font-size: 0.92rem;
    margin-bottom: 0.6rem;
    line-height: 1.7;
}

.exp-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-1);
    opacity: 0.6;
}

.exp-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.exp-tech span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-1);
    background: rgba(139, 92, 246, 0.08);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

/* ---- Skills ---- */

/* Marquee */
.skills-marquee {
    overflow: hidden;
    margin-bottom: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-right: 2rem;
}

.marquee-item {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.marquee-item:hover { color: var(--heading); }

.marquee-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-1);
    opacity: 0.4;
    flex-shrink: 0;
}

/* Skill blocks */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.skill-block:hover {
    border-color: rgba(139, 92, 246, 0.15);
    box-shadow: 0 8px 40px rgba(139, 92, 246, 0.08);
}

.skill-icon {
    font-size: 1.5rem;
    color: var(--accent-1);
    margin-bottom: 1rem;
}

.skill-block h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 0.75rem;
}

.skill-block p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ---- Contact ---- */
.section-contact {
    text-align: center;
    padding-bottom: 4rem;
}

.section-contact .section-label {
    justify-content: center;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--heading);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--text);
    max-width: 480px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    padding: 0.65rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--heading);
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.06);
}

/* ---- Footer ---- */
.footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem 0 4rem;
}

.footer p {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.06em;
}

/* ---- Animations ---- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

@media (max-width: 768px) {
    body { cursor: auto; }
    .cursor, .cursor-follower { display: none; }
    .side-nav { display: none; }

    .nav {
        padding: 1rem 1.5rem;
    }

    .nav.scrolled {
        padding: 0.75rem 1.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.72rem;
    }

    .hero {
        padding: 0 1.5rem;
    }

    .hero-scroll { display: none; }

    .section-inner {
        padding: 0 1.5rem;
    }

    .skill-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.75rem;
    }

    .stat-card { padding: 1.25rem; }
    .stat-number { font-size: 2rem; }

    .exp-card-content { padding: 1.5rem; }

    .marquee-item { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .nav-links { gap: 0.6rem; }
    .nav-cta { display: none; }

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

    .about-stats { grid-template-columns: 1fr; }

    .exp-top { flex-direction: column; gap: 0.75rem; }
}
