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

html {
    height: 100%;
    overflow: hidden;
}

body {
    height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    background: #FDF8F0;
    display: block;
    perspective: 600px;
    perspective-origin: center center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    color: #c8956c;
    line-height: 1.6;
    position: relative;
}

/* Hide scrollbar */
::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


.box {
    background: linear-gradient(to right, white 70%, #b9b0b0);
    width: 100vw;
    height: 300px;
    transform-style: preserve-3d;
    transform: translateX(-50%) rotateY(65deg);
    transform-origin: right center;
    position: relative;
    z-index: 1;
}

.box2 {
    background: linear-gradient(to left, white 70%, #b9b0b0);
    width: 100vw;
    height: 300px;
    transform-style: preserve-3d;
    transform: translateX(50%) rotateY(-65deg);
    transform-origin: left center;
    position: relative;
    z-index: 1;
}

/* ANIMATED DOTS BACKGROUND */
.dots-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background-color: #0a0a0a;
    overflow: hidden;
    pointer-events: none;
}

.dot {
    position: fixed;
    width: 4px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-30px) translateX(20px);
    }
    50% {
        transform: translateY(-50px) translateX(-20px);
    }
    75% {
        transform: translateY(-20px) translateX(30px);
    }
}

/* LOADER */
.loader {
    display: none;
}

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

.loader-text {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    animation: zoomIn 0.8s ease-out;
}

.loader-subtitle {
    font-size: 1rem;
    color: #c8956c;
    margin-top: 1rem;
    animation: textFadeIn 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

@keyframes zoomIn {
    from {
        transform: scale(0.3);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes textFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes loaderFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        pointer-events: none;
    }
}

/* CONTENT WRAPPER */
.content-wrapper {
    position: relative;
    z-index: 5;
    width: 100%;
    background: transparent;
    margin-top: -7200px;
}

/* NAVIGATION */
.navigation {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.navigation a {
    color: #c8956c;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    opacity: 0.7;
}

.navigation a:hover {
    opacity: 1;
    color: #c8956c;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

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

.hero-title {
    font-size: clamp(3.5rem, 11vw, 9rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #c8956c;
    text-shadow: 0 0 6px rgba(200, 149, 108, 0.3);
    margin-bottom: 1rem;
}

.hero-subtitle .highlight {
    color: #c8956c;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(200, 149, 108, 0.3);
}

.hero-secondary {
    font-size: 1rem;
    color: #c8956c;
    margin-bottom: 1rem;
    text-shadow: 0 0 6px rgba(200, 149, 108, 0.3);
}

.hero-description {
    font-size: 1.2rem;
    color: #c8956c;
    margin-bottom: 2rem;
    font-weight: 500;
    text-shadow: 0 0 6px rgba(200, 149, 108, 0.3);
}

.hero-cta {
    margin-top: 3rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    border: 2px solid #c8956c;
    color: #c8956c;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn:hover {
    background-color: #c8956c;
    color: #0a0a0a;
}

/* SECTIONS */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
}

.section-container {
    width: 100%;
}

.section-title {
    font-size: clamp(3rem, 9vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 3rem;
    line-height: 1.1;
    color: #c8956c;
    text-shadow: 0 0 8px rgba(200, 149, 108, 0.35);
}

/* SCROLL ZOOM EFFECT */
.scroll-zoom {
    perspective: 1000px;
}

/* ABOUT SECTION */
.about-content {
    display: grid;
    gap: 1.5rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #c8956c;
    text-shadow: 0 0 6px rgba(200, 149, 108, 0.3);
    transition: all 0.3s ease;
}

.about-text.emphasis {
    font-weight: 600;
    color: #c8956c;
    margin-top: 1rem;
}

/* SKILLS SECTION */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.skill-category {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: rgba(200, 149, 108, 0.3);
    background: rgba(200, 149, 108, 0.05);
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #c8956c;
    font-weight: 600;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    color: #c8956c;
    text-shadow: 0 0 6px rgba(200, 149, 108, 0.3);
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-category li:last-child {
    border-bottom: none;
}

/* PROJECTS SECTION */
.projects-list {
    display: grid;
    gap: 3rem;
}

.project-card {
    border-left: 3px solid #c8956c;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.project-card:hover {
    background: rgba(200, 149, 108, 0.08);
    transform: translateX(10px);
}

.project-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #c8956c;
}

.project-card p {
    color: #c8956c;
    text-shadow: 0 0 6px rgba(200, 149, 108, 0.3);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.project-details {
    margin-top: 1.5rem;
    padding-left: 1.5rem;
    border-left: 2px solid rgba(200, 149, 108, 0.3);
}

.project-details p {
    color: #c8956c;
    text-shadow: 0 0 6px rgba(200, 149, 108, 0.3);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.project-details ul {
    list-style: none;
    margin: 1rem 0;
}

.project-details li {
    padding: 0.5rem 0;
    color: #c8956c;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
}

.project-details li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #c8956c;
}

/* EXPERIENCE SECTION */
.experience-list {
    display: grid;
    gap: 2.5rem;
}

.experience-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2.5rem;
}

.experience-item:last-child {
    border-bottom: none;
}

.experience-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #c8956c;
}

.experience-item .role {
    font-size: 0.95rem;
    color: #c8956c;
    font-weight: 500;
    margin-bottom: 1rem;
}

.experience-item p {
    color: #c8956c;
    text-shadow: 0 0 6px rgba(200, 149, 108, 0.3);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.experience-item ul {
    list-style: none;
    margin: 1rem 0 1rem 1.5rem;
}

.experience-item li {
    color: #c8956c;
    text-shadow: 0 0 6px rgba(200, 149, 108, 0.3);
    margin: 0.5rem 0;
    position: relative;
    padding-left: 1rem;
}

.experience-item li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #c8956c;
}

/* MINDSET SECTION */
.mindset-content {
    display: grid;
    gap: 2.5rem;
}

.mindset-item {
    padding: 1.5rem;
    border-radius: 8px;
    background: rgba(200, 149, 108, 0.05);
    border: 1px solid rgba(200, 149, 108, 0.2);
    transition: all 0.3s ease;
}

.mindset-item:hover {
    background: rgba(200, 149, 108, 0.1);
    border-color: rgba(200, 149, 108, 0.4);
}

.highlight-text {
    font-weight: 600;
    color: #c8956c;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.mindset-item p {
    color: #c8956c;
    text-shadow: 0 0 6px rgba(200, 149, 108, 0.3);
    line-height: 1.8;
}

.work-style-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #c8956c;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.details-list {
    list-style: none;
    columns: 2;
    gap: 2rem;
    margin: 1rem 0;
}

.details-list li {
    padding: 0.3rem 0;
    color: #c8956c;
    text-shadow: 0 0 6px rgba(200, 149, 108, 0.3);
    position: relative;
    padding-left: 1.5rem;
}

.details-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #c8956c;
}

/* CONTACT SECTION */
.contact-content {
    text-align: center;
}

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #c8956c;
    text-shadow: 0 0 6px rgba(200, 149, 108, 0.3);
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.contact-email {
    font-size: 1.3rem;
    font-weight: 500;
    color: #c8956c;
    letter-spacing: 0.02em;
}

.contact-link {
    padding: 0.8rem 2rem;
    border: 2px solid #c8956c;
    color: #c8956c;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background-color: #c8956c;
    color: #0a0a0a;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #c8956c;
    font-size: 0.9rem;
}

.footer p {
    margin: 0.5rem 0;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .navigation {
        padding: 0.8rem 1.5rem;
        top: 1rem;
    }

    .navigation ul {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .details-list {
        columns: 1;
    }

    .contact-info {
        flex-direction: column;
    }

    .contact-link {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .navigation {
        display: none;
    }
}

/* ── BLOOM ENHANCEMENT ── */
/* Global bloom on all colored text */
body {
    text-shadow: 0 0 5px rgba(200, 149, 108, 0.2);
}

.navigation a {
    text-shadow: 0 0 5px rgba(200, 149, 108, 0.25);
}

.hero-title {
    color: #c8956c;
    text-shadow: 0 0 8px rgba(200, 149, 108, 0.4);
}

.loader-text {
    color: #c8956c;
    text-shadow: 0 0 6px rgba(200, 149, 108, 0.35);
}

.loader-subtitle {
    text-shadow: 0 0 6px rgba(200, 149, 108, 0.3);
}

.btn {
    box-shadow: 0 0 8px rgba(200, 149, 108, 0.2);
    text-shadow: 0 0 5px rgba(200, 149, 108, 0.25);
}

.btn:hover {
    box-shadow: 0 0 12px rgba(200, 149, 108, 0.35);
}

.project-card {
    box-shadow: -3px 0 10px rgba(200, 149, 108, 0.1);
}

.project-card:hover {
    box-shadow: -3px 0 12px rgba(200, 149, 108, 0.2);
}

.contact-link {
    box-shadow: 0 0 8px rgba(200, 149, 108, 0.15);
}

.contact-link:hover {
    box-shadow: 0 0 12px rgba(200, 149, 108, 0.3);
}

.about-text.emphasis {
    text-shadow: 0 0 6px rgba(200, 149, 108, 0.3);
}

.highlight-text {
    text-shadow: 0 0 6px rgba(200, 149, 108, 0.3);
}


/* ══════════════════════════════════════════
   SCROLL ANIMATIONS
   ② Curtain Wipe  — headings & text
   ⑤ Glitch Snap   — cards & tags
══════════════════════════════════════════ */

/* -- Base: reveal elements — hidden until triggered -- */
.reveal {
    opacity: 0;
}
/* Safety fallback: if JS fails or observer misses, show after 2s */
@keyframes reveal-fallback {
    to { opacity: 1; clip-path: inset(0 0% 0 0); transform: none; filter: none; }
}
.reveal {
    animation: reveal-fallback 0.01s linear 2.5s forwards;
}

/* ② CURTAIN WIPE — for headings, text, quotes */
.reveal-curtain {
    clip-path: inset(0 100% 0 0);
    opacity: 1;
    transition: clip-path 0.9s cubic-bezier(0.77, 0, 0.18, 1);
}
.reveal-curtain.visible {
    clip-path: inset(0 0% 0 0);
}
.reveal-curtain:nth-child(2) { transition-delay: 0.10s; }
.reveal-curtain:nth-child(3) { transition-delay: 0.20s; }
.reveal-curtain:nth-child(4) { transition-delay: 0.30s; }
.reveal-curtain:nth-child(5) { transition-delay: 0.40s; }
.reveal-curtain:nth-child(6) { transition-delay: 0.50s; }

/* ⑤ GLITCH SNAP — for cards, skill items, tags */
@keyframes glitch-in {
    0%   { opacity: 0; transform: translateX(12px) skewX(10deg); filter: hue-rotate(90deg); }
    20%  { opacity: 1; transform: translateX(-6px) skewX(-4deg); filter: hue-rotate(0deg); }
    40%  { transform: translateX(4px) skewX(2deg); }
    60%  { transform: translateX(-2px); }
    100% { opacity: 1; transform: translateX(0) skewX(0); }
}
.reveal-glitch {
    opacity: 0;
}
.reveal-glitch.visible {
    animation: glitch-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.reveal-glitch:nth-child(2).visible { animation-delay: 0.08s; }
.reveal-glitch:nth-child(3).visible { animation-delay: 0.16s; }
.reveal-glitch:nth-child(4).visible { animation-delay: 0.24s; }
.reveal-glitch:nth-child(5).visible { animation-delay: 0.32s; }
.reveal-glitch:nth-child(6).visible { animation-delay: 0.40s; }
.reveal-glitch:nth-child(7).visible { animation-delay: 0.48s; }
.reveal-glitch:nth-child(8).visible { animation-delay: 0.56s; }

/* ── Adjust text colors for cream background ── */
/* Section titles & headings need to be dark on cream */
.section-title {
    color: #1a1209 !important;
    text-shadow:
        0 0 10px rgba(200, 149, 108, 0.5),
        0 0 25px rgba(200, 149, 108, 0.25) !important;
}

.hero-title {
    color: #1a1209 !important;
    text-shadow:
        0 0 10px rgba(200, 149, 108, 0.6),
        0 0 30px rgba(200, 149, 108, 0.3),
        0 0 60px rgba(200, 149, 108, 0.15) !important;
}

.loader-text {
    color: #f5f0e8 !important;
    text-shadow: 0 0 8px rgba(200, 149, 108, 0.5), 0 0 20px rgba(200, 149, 108, 0.25) !important;
}

.about-text {
    color: #3a2e20 !important;
    text-shadow: none !important;
}

.about-text.emphasis {
    color: #c8956c !important;
    text-shadow: 0 0 8px rgba(200, 149, 108, 0.6) !important;
}

.experience-item h3,
.project-card h3,
.skill-category h3,
.work-style-title,
.highlight-text {
    color: #1a1209 !important;
    text-shadow: 0 0 8px rgba(200, 149, 108, 0.35) !important;
}

.experience-item p,
.experience-item li,
.project-card p,
.project-details li,
.project-details p,
.skill-category li,
.mindset-item p,
.details-list li,
.contact-content p {
    color: #4a3828 !important;
    text-shadow: none !important;
}

.experience-item .role {
    color: #c8956c !important;
}

.footer {
    color: #9a7a5a !important;
    border-top: 1px solid rgba(200, 149, 108, 0.2) !important;
}

/* Navigation on cream bg */
.navigation {
    background: rgba(253, 248, 240, 0.85) !important;
    border: 1px solid rgba(200, 149, 108, 0.2) !important;
}

/* Skill/mindset card borders on cream */
.skill-category {
    border: 1px solid rgba(200, 149, 108, 0.2) !important;
    background: rgba(200, 149, 108, 0.03) !important;
}

.mindset-item {
    background: rgba(200, 149, 108, 0.05) !important;
    border: 1px solid rgba(200, 149, 108, 0.2) !important;
}

.dots-container {
    background-color: transparent !important;
}


/* ══════════════════════════════════════════
   FEATURE ADDITIONS
   1. Custom Cursor
   2. Magnetic Buttons
   3. Scroll Progress Bar
   4. Section Number Watermarks
══════════════════════════════════════════ */

/* 1. CUSTOM CURSOR */
* { cursor: none !important; }
html, html * { cursor: none !important; }

.cursor-dot {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #c8956c;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2147483647;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
    box-shadow: 0 0 12px rgba(200, 149, 108, 1), 0 0 24px rgba(200, 149, 108, 0.5);
    isolation: isolate;
    will-change: left, top;
}

.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(200, 149, 108, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2147483646;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease,
                border-color 0.3s ease, transform 0.08s linear;
    will-change: left, top;
}

.cursor-dot.hovering {
    width: 14px;
    height: 14px;
    background: #c8956c;
    box-shadow: 0 0 14px rgba(200, 149, 108, 1), 0 0 30px rgba(200, 149, 108, 0.5);
}

.cursor-ring.hovering {
    width: 52px;
    height: 52px;
    border-color: rgba(200, 149, 108, 0.8);
}

/* 2. MAGNETIC BUTTONS — handled in JS, just add transition */
.btn, .contact-link {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.3s ease,
                background-color 0.3s ease !important;
    will-change: transform;
}

/* 3. SCROLL PROGRESS BAR */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2.5px;
    width: 0%;
    background: linear-gradient(to right, #c8956c, #e8b98a, #c8956c);
    z-index: 99999;
    transition: width 0.05s linear;
    box-shadow: 0 0 8px rgba(200, 149, 108, 0.6);
}

/* 4. SECTION NUMBER WATERMARKS */
.section {
    position: relative;
}

.section::before {
    content: attr(data-number);
    position: absolute;
    top: 3rem;
    right: -1rem;
    font-size: clamp(6rem, 14vw, 11rem);
    font-weight: 800;
    color: rgba(200, 149, 108, 0.06);
    line-height: 1;
    pointer-events: none;
    z-index: 0;
    letter-spacing: -0.05em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    user-select: none;
}

.section-container {
    position: relative;
    z-index: 1;
}

/* Typewriter cursor blink */
.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #c8956c;
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 0.8s step-end infinite;
    box-shadow: 0 0 6px rgba(200, 149, 108, 0.8);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}


/* ══════════════════════════════════════════
   PREMIUM ADDITIONS v4
   1. Page Transition Wipe
   2. Smooth Scroll Inertia (JS-driven)
   3. Ambient Glow Orb
   4. Availability Status
   5. Noise Texture Overlay
   6. Tilt Cards
   7. Text Scramble
   8. Nav scroll polish
══════════════════════════════════════════ */

/* 1. PAGE TRANSITION WIPE */
.wipe-overlay {
    position: fixed;
    inset: 0;
    z-index: 99990;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}
.wipe-panel {
    flex: 1;
    background: #c8956c;
    transform: translateY(0);
    transform-origin: top center;
    transition: transform 0.75s cubic-bezier(0.77, 0, 0.18, 1);
}
.wipe-panel:nth-child(1) { transition-delay: 0.00s; }
.wipe-panel:nth-child(2) { transition-delay: 0.09s; }
.wipe-panel:nth-child(3) { transition-delay: 0.18s; }
.wipe-panel:nth-child(4) { transition-delay: 0.27s; }
.wipe-panel:nth-child(5) { transition-delay: 0.36s; }
.wipe-overlay.wipe-out .wipe-panel {
    transform: translateY(105vh);
}

/* 2. AMBIENT GLOW ORB */
.ambient-orb {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,149,108,0.09) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: left 1.2s cubic-bezier(0.23, 1, 0.32, 1),
                top  1.2s cubic-bezier(0.23, 1, 0.32, 1);
    filter: blur(20px);
}

/* 3. NOISE TEXTURE */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.032;
    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: 180px 180px;
}

/* 4. AVAILABILITY STATUS */
.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(200, 149, 108, 0.08);
    border: 1px solid rgba(200, 149, 108, 0.2);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #c8956c;
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.availability-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.8);
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulse-dot {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%       { transform: scale(1.4); opacity: 0.7; }
}

/* 5. TILT CARDS */
.project-card, .skill-category, .mindset-item {
    transform-style: preserve-3d;
    will-change: transform;
}

/* 6. NAV SCROLL POLISH */
.navigation.scrolled {
    background: rgba(253, 248, 240, 0.95) !important;
    border-color: rgba(200, 149, 108, 0.3) !important;
    box-shadow: 0 4px 24px rgba(200, 149, 108, 0.08);
}
.navigation.scrolled::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(200,149,108,0.4), transparent);
}
.navigation { transition: all 0.4s ease; }

/* 7. TEXT SCRAMBLE — no extra CSS needed, JS handles it */

/* 8. FOOTER POLISH */
.footer {
    position: relative;
}
.footer-availability {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1rem;
}

/* Sound toggle button */
.sound-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(253, 248, 240, 0.9);
    border: 1px solid rgba(200, 149, 108, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(200,149,108,0.15);
    font-size: 0.9rem;
}
.sound-toggle:hover {
    border-color: rgba(200,149,108,0.6);
    box-shadow: 0 0 12px rgba(200,149,108,0.25);
}


/* ══════════════════════════════════════════
   MOBILE FIXES — Performance & Layout
   Disable heavy effects on small screens
══════════════════════════════════════════ */

@media (max-width: 768px) {

    /* Kill custom cursor on mobile — no mouse anyway */
    * { cursor: auto !important; }
    html, html * { cursor: auto !important; }
    .cursor-dot, .cursor-ring { display: none !important; }

    /* Kill noise overlay — expensive on mobile */
    body::after { display: none !important; }

    /* Kill ambient orb */
    .ambient-orb { display: none !important; }

    /* Kill canvas particle web */
    canvas#sk-canvas { display: none !important; }

    /* Kill 3D transforms on cards — kills scroll performance */
    .project-card,
    .skill-category,
    .mindset-item {
        transform: none !important;
        transform-style: flat !important;
        will-change: auto !important;
        perspective: none !important;
    }

    /* On mobile — hide boxes completely, they cause the 7200px gap */
    .box, .box2 {
        display: none !important;
    }

    .dots-container {
        display: none !important;
    }

    /* Reset content-wrapper — margin-top: -7200px breaks mobile */
    .content-wrapper {
        margin-top: 0 !important;
        position: relative !important;
        z-index: 10 !important;
        background: #FDF8F0 !important;
    }

    /* Body perspective also messes up mobile layout */
    body {
        perspective: none !important;
        height: auto !important;
        overflow-y: auto !important;
    }

    html {
        height: auto !important;
        overflow: auto !important;
    }

    /* Fix sections padding */
    .section {
        padding: 4rem 1.2rem !important;
    }

    /* Fix hero */
    .hero {
        padding: 6rem 1.2rem 4rem !important;
        min-height: 100svh !important;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem) !important;
        transform: none !important;
    }

    /* Fix navigation on mobile */
    .navigation {
        padding: 0.8rem 1.2rem !important;
        display: none !important; /* hamburger takes over */
    }

    /* Fix skills grid */
    .skills-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Fix projects */
    .projects-list {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Fix experience */
    .experience-list {
        gap: 1.5rem !important;
    }

    /* Fix mindset */
    .mindset-content {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }

    /* Fix section watermark — too big on mobile */
    .section::before {
        font-size: 5rem !important;
        opacity: 0.04 !important;
        right: 0 !important;
    }

    /* Fix wipe overlay panels */
    .wipe-panel {
        transition-delay: 0s !important;
    }

    /* Fix command palette */
    #cmd-palette {
        padding-top: 10vh !important;
    }

    /* Fix sound toggle position */
    .sound-toggle {
        bottom: 1rem !important;
        right: 1rem !important;
    }

    /* Reduce reveal animation complexity */
    .reveal-curtain {
        clip-path: none !important;
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.5s ease, transform 0.5s ease !important;
    }
    .reveal-curtain.visible {
        opacity: 1 !important;
        transform: translateY(0) !important;
        clip-path: none !important;
    }

    .reveal-glitch {
        animation: none !important;
    }
    .reveal-glitch.visible {
        opacity: 1 !important;
        animation: none !important;
        transform: none !important;
    }

    /* Scroll progress bar thinner on mobile */
    .scroll-progress {
        height: 2px !important;
    }

    /* Fix footer */
    .footer {
        padding: 2rem 1.2rem !important;
        text-align: center !important;
    }

    .footer-availability {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
}

/* Extra small phones */
@media (max-width: 380px) {
    .hero-title {
        font-size: 2.2rem !important;
    }
    .section-title {
        font-size: 1.8rem !important;
    }
}

/* ── MOBILE REVEAL OVERRIDE — force everything visible ── */
@media (max-width: 768px) {
    .reveal,
    .reveal-curtain,
    .reveal-glitch {
        opacity: 1 !important;
        clip-path: none !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
        transition: opacity 0.4s ease !important;
        visibility: visible !important;
    }

    .reveal.visible,
    .reveal-curtain.visible,
    .reveal-glitch.visible {
        opacity: 1 !important;
        clip-path: none !important;
        transform: none !important;
    }

    /* Hero title specifically — never hide it */
    .hero-title {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
        clip-path: none !important;
    }

    /* Section title always visible */
    .section-title {
        opacity: 1 !important;
        clip-path: none !important;
        transform: none !important;
    }

    /* All text always visible */
    .about-text,
    .hero-subtitle,
    .hero-description,
    .hero-secondary,
    .highlight-text,
    .work-style-title,
    .loader-text,
    .loader-subtitle {
        opacity: 1 !important;
        clip-path: none !important;
        transform: none !important;
    }
}
