/* ============================================
   ✦ MITHUN MALLYA - EXPERIMENTAL LANDING ✦
   Unique • Creative • Never Seen Before
   ============================================ */

/* --- Design System --- */
:root {
    /* Color - Warm cream with coral/peachy accents */
    --bg: #0f0f0f;
    --bg-alt: #1a1a1a;
    --text: #f5f0e8;
    --text-muted: #8a8580;
    --accent: #ff6b4a;
    --accent-alt: #ffd4a3;
    --accent-glow: rgba(255, 107, 74, 0.5);

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Cursor */
    --cursor-size: 12px;
    --cursor-trail-size: 40px;
}

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

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

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

/* ============================================
   CANVAS BACKGROUND
   ============================================ */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.7;
}

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

/* --- Vignette Effect --- */
.vignette {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 0%, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor {
    position: fixed;
    width: var(--cursor-size);
    height: var(--cursor-size);
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

.cursor-dot {
    width: 100%;
    height: 100%;
    background: var(--text);
    border-radius: 50%;
    transition: transform 0.2s ease, background 0.3s ease;
}

.cursor.hover .cursor-dot {
    transform: scale(3);
    background: var(--accent);
}

.cursor-trail {
    position: fixed;
    width: var(--cursor-trail-size);
    height: var(--cursor-trail-size);
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        width 0.3s ease,
        height 0.3s ease,
        opacity 0.3s ease;
}

.cursor-trail.hover {
    width: 80px;
    height: 80px;
    opacity: 1;
    border-width: 2px;
}

/* ============================================
   FLOATING ORBS (Blurred Background Elements)
   ============================================ */
.orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: orbFloat 25s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--accent), #ff9a6c);
    top: -15%;
    right: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    bottom: -10%;
    left: -10%;
    animation-delay: -8s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent-alt), #ffecd2);
    top: 50%;
    left: 40%;
    opacity: 0.2;
    animation-delay: -15s;
}

@keyframes orbFloat {

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

    25% {
        transform: translate(30px, -50px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 30px) scale(0.95);
    }

    75% {
        transform: translate(40px, 20px) scale(1.02);
    }
}

/* ============================================
   LAYOUT
   ============================================ */
.main {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* --- Corner Elements --- */
.corner {
    position: fixed;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    z-index: 100;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.corner-tl {
    top: 2rem;
    left: 2rem;
    animation-delay: 0.5s;
}

.corner-tr {
    top: 2rem;
    right: 2rem;
    animation-delay: 0.6s;
}

.corner-bl {
    bottom: 2rem;
    left: 2rem;
    animation-delay: 0.7s;
}

.corner-br {
    bottom: 2rem;
    right: 2rem;
    animation-delay: 0.8s;
    font-size: 1.2rem;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* --- Intro Line --- */
.intro {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: slideUp 0.8s ease forwards 0.3s;
}

.intro-line {
    width: 40px;
    height: 1px;
    background: var(--accent);
}

.intro-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* --- Name (Character Animation) --- */
.name {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 15vw, 11rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    gap: 0.1em;
}

.char-wrap {
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%) rotateX(-90deg);
    animation: charReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.3s ease, color 0.3s ease;
    transform-origin: bottom center;
    transform-style: preserve-3d;
}

.char:hover {
    color: var(--accent);
    transform: translateY(-5px) scale(1.1);
}

/* Staggered animation delays */
.char:nth-child(1) {
    animation-delay: 0.5s;
}

.char:nth-child(2) {
    animation-delay: 0.55s;
}

.char:nth-child(3) {
    animation-delay: 0.6s;
}

.char:nth-child(4) {
    animation-delay: 0.65s;
}

.char:nth-child(5) {
    animation-delay: 0.7s;
}

.char:nth-child(6) {
    animation-delay: 0.75s;
}

.last-name .char:nth-child(1) {
    animation-delay: 0.9s;
}

.last-name .char:nth-child(2) {
    animation-delay: 0.95s;
}

.last-name .char:nth-child(3) {
    animation-delay: 1s;
}

.last-name .char:nth-child(4) {
    animation-delay: 1.05s;
}

.last-name .char:nth-child(5) {
    animation-delay: 1.1s;
}

.last-name .char:nth-child(6) {
    animation-delay: 1.15s;
}

.last-name .char {
    color: transparent;
    -webkit-text-stroke: 2px var(--text);
}

.last-name .char:hover {
    color: transparent;
    -webkit-text-stroke: 2px var(--accent);
}

@keyframes charReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* --- Tagline --- */
.tagline {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: slideUp 0.8s ease forwards 1.3s;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.tag-dot {
    color: var(--accent);
    font-size: 0.5rem;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   MESSAGE SECTION
   ============================================ */
.message-section {
    opacity: 0;
    animation: slideUp 0.8s ease forwards 1.5s;
}

.message-box {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem 3rem;
    max-width: 500px;
    text-align: center;
}

/* Animated border */
.message-box::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    background-size: 200% 100%;
    z-index: -1;
    opacity: 0.5;
    animation: borderShine 3s linear infinite;
}

.message-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg);
    z-index: -1;
}

@keyframes borderShine {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* --- Status Bar --- */
.status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.status-light {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 15px var(--accent-glow);
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

@keyframes pulse {

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

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

/* --- Message Text --- */
.message {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.highlight {
    color: var(--text);
    font-weight: 400;
}

.italic {
    font-family: var(--font-serif);
    font-style: italic;
}

/* --- Loader Bar --- */
.loader-bar {
    position: relative;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.loader-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: loaderMove 2s ease-in-out infinite;
}

.loader-glow {
    position: absolute;
    top: -4px;
    width: 50px;
    height: 10px;
    background: var(--accent);
    filter: blur(8px);
    opacity: 0.8;
    animation: loaderMove 2s ease-in-out infinite;
}

@keyframes loaderMove {
    0% {
        left: -30%;
    }

    100% {
        left: 100%;
    }
}

/* --- Coming Soon --- */
.coming-text {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5em;
    color: var(--accent);
}

/* ============================================
   SOCIAL LINKS
   ============================================ */
.socials {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    z-index: 100;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.8s;
}

.social {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.social::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.social:hover {
    color: var(--text);
}

.social:hover::after {
    width: 100%;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor,
    .cursor-trail {
        display: none;
    }

    .name {
        font-size: clamp(2.5rem, 18vw, 6rem);
    }

    .last-name .char {
        -webkit-text-stroke: 1px var(--text);
    }

    .message-box {
        padding: 2rem;
        margin: 0 1rem;
    }

    .corner {
        display: none;
    }

    .socials {
        position: static;
        left: auto;
        bottom: auto;
        transform: none;
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        margin-top: 3rem;
        padding-bottom: 2rem;
        animation-delay: 0s;
        opacity: 1;
    }

    .orb-1,
    .orb-2,
    .orb-3 {
        filter: blur(80px);
    }

    .orb-1 {
        width: 300px;
        height: 300px;
    }

    .orb-2 {
        width: 250px;
        height: 250px;
    }

    .orb-3 {
        display: none;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 1.5rem;
    }

    .message {
        font-size: 1rem;
    }

    .socials {
        gap: 1.5rem;
    }
}

/* ============================================
   SELECTION & SCROLLBAR
   ============================================ */
::selection {
    background: var(--accent);
    color: var(--bg);
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}