/* DESIGN SYSTEM VARIABLES */
:root {
    --cream: #FAF8F5;
    --ink: #1a1a1a;
    --accent: #E8572A;
    --accent-light: #FDF0EB;
    --muted: #6B6B6B;
    --border: #E5E2DD;
}

/* GLOBAL STYLES */
* {
    /* cursor: none !important; */
    /* Default cursor restored */
}

@media (max-width: 768px) {
    * {
        cursor: auto !important;
    }

}

body {
    background-color: var(--cream);
    color: var(--ink);
    overflow-x: hidden;
}

/* DOT GRID PATTERN */
.dot-grid {
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* OUTLINE TEXT */
.outline-text {
    -webkit-text-stroke: 2px var(--ink);
}

.outline-text-light {
    -webkit-text-stroke: 1.5px white;
    color: transparent;
}

/* HERO ANIMATIONS */
.blob-animation {
    animation: morph 15s ease-in-out infinite;
}

@keyframes morph {
    0%,
    100% {
        border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
    }

    34% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    }

    67% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
    }

}

.animate-spin-slow {
    animation: spin 20s linear infinite;
}

.animate-spin-slow-reverse {
    animation: spin-reverse 25s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

@keyframes spin-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }

}

/* FLOATING BADGES */
.animate-float-1 {
    animation: float 6s ease-in-out infinite;
}

.animate-float-2 {
    animation: float 7s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-float-3 {
    animation: float 8s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

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

}

/* NAVIGATION */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

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

/* SKILLS SECTION - BRAND LOGO BLUR REVEAL */
#skills {
    background-color: var(--cream);
    overflow: hidden;
}

/* Each skill item starts blurred and fades in clearly */
.skill-logo-item {
    filter: blur(10px);
    opacity: 0.3;
    transform: translateY(10px);
    transition: filter 0.7s ease, opacity 0.7s ease, transform 0.7s ease;
    will-change: filter, opacity, transform;
}

.skill-logo-item.revealed {
    filter: blur(0px);
    opacity: 1;
    transform: translateY(0px);
}

.skill-logo-item:hover {
    transform: translateY(-4px) scale(1.05);
}

.tool-bubble {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* PROJECTS SECTION */
/* PERFORMANCE OPTIMIZATIONS */
#skills-pin-container,
.project-card,
.skill-visual-column img,
.hero-line,
.profile-image-container,
.skill-badge {
    will-change: transform;
}

.mockup-visual {
    transition: transform 0.5s ease-out;
    will-change: transform;
}

/* CURSOR STYLES */
#cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

#cursor-ring {
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--accent);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-hover #cursor-ring {
    width: 70px;
    height: 70px;
    background-color: rgba(232, 87, 42, 0.1);
    border-color: transparent;
}

/* EMAIL LINK HOVER */
.email-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent);
    transition: width 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.email-link:hover::after {
    width: 100%;
}

/* SUCCESS STATE BUTTON */
.btn-success {
    background-color: #10B981 !important;
    /* Green-500 */
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3) !important;
}

/* HIDE SCROLLBAR */
::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

html {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

/* TYPOGRAPHY POLISH */
h1,
h2,
h3 {
    letter-spacing: -0.05em;
}

/* LOADER */
#loader-bar {
    transition: width 0.5s ease-out;
}

/* ============================================
   JOURNEY SECTION â€” DARK CINEMATIC REDESIGN
   ============================================ */
.journey-section {
    background: #0d0d0f;
    color: #fff;
    padding: 0;
    min-height: 100vh;
    overflow: visible;
}

/* Ambient Blobs */
.journey-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.journey-blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 87, 42, 0.18) 0%, transparent 70%);
    top: -100px;
    left: -150px;
}

.journey-blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, transparent 70%);
    top: 40%;
    right: -100px;
}

.journey-blob-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.10) 0%, transparent 70%);
    bottom: 10%;
    left: 20%;
}

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

/* Header */
.journey-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.5rem;
}

.journey-eyebrow-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.journey-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: 1rem;
}

.journey-title em {
    font-style: italic;
    font-family: 'Syne', sans-serif;
    background: linear-gradient(90deg, var(--accent) 0%, #f7c59f 50%, var(--accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    will-change: background-position;
}

.journey-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.38);
    max-width: 380px;
    margin: 0 auto;
    line-height: 1.7;
}

/* â”€â”€ Timeline Layout â”€â”€ */
.journey-timeline-wrap {
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Central spine */
.journey-spine {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
    z-index: 2;
}

.journey-spine-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--accent) 0%, #f7c59f 60%, transparent 100%);
    border-radius: 2px;
    box-shadow: 0 0 16px rgba(232, 87, 42, 0.6);
    will-change: height;
    transition: height 0.1s linear;
}

/* â”€â”€ Each journey row â€” 3-col grid â”€â”€ */
.journey-item {
    display: grid;
    grid-template-columns: 1fr 72px 1fr;
    align-items: center;
    column-gap: 0;
    margin-bottom: 72px;
    position: relative;
    z-index: 3;
    opacity: 0;
    will-change: transform, opacity;
}

/* ── Node base styles ── */
.journey-node {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 4;
}

.journey-node-core.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 0 25px var(--accent);
}

.journey-node-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(232, 87, 42, 0.25);
    opacity: 0.3;
    transition: all 0.5s ease;
    animation: pulse-ring 3s ease-in-out infinite;
}

.journey-node-ring.active {
    opacity: 1;
    inset: -12px;
    border-color: var(--accent);
}

@keyframes pulse-ring {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.journey-node-core {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
    position: relative;
    z-index: 2;
}

.journey-node-core:hover {
    transform: scale(1.1);
}

/* Left item: card â†’ col 1, node â†’ col 2, col 3 empty */
.journey-item--left .journey-card {
    grid-column: 1;
    grid-row: 1;
    margin-right: 20px;
    margin-left: 0;
    text-align: left;
}

.journey-item--left .journey-node {
    grid-column: 2;
    grid-row: 1;
}

/* Right item: col 1 empty, node â†’ col 2, card â†’ col 3 */
.journey-item--right .journey-card {
    grid-column: 3;
    grid-row: 1;
    margin-left: 20px;
    margin-right: 0;
    text-align: left;
}

.journey-item--right .journey-node {
    grid-column: 2;
    grid-row: 1;
}

.journey-node-core--gold {
    border-color: rgba(234, 179, 8, 0.5);
    color: #eab308;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.journey-node-core--blue {
    border-color: rgba(99, 102, 241, 0.5);
    color: #6366f1;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.journey-node-core--accent {
    border-color: rgba(232, 87, 42, 0.7);
    color: var(--accent);
    box-shadow: 0 0 28px rgba(232, 87, 42, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* â”€â”€ Cards â”€â”€ */
.journey-card {
    background: rgba(255, 255, 255, 0.033);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    padding: 32px 36px;
    position: relative;
    overflow: hidden;
    cursor: default;
    min-width: 0;
    /* prevent grid blowout */
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.3s;
}

.journey-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(232, 87, 42, 0.22);
}

.journey-card--gold:hover {
    border-color: rgba(234, 179, 8, 0.3);
}

.journey-card--blue:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.journey-card--accent:hover {
    border-color: rgba(232, 87, 42, 0.4);
}

/* card inner glow */
.journey-card-glow {
    position: absolute;
    top: -40px;
    left: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 87, 42, 0.12) 0%, transparent 70%);
    pointer-events: none;
    transition: opacity 0.4s;
}

.journey-card-glow--gold {
    background: radial-gradient(circle, rgba(234, 179, 8, 0.12) 0%, transparent 70%);
}

.journey-card-glow--blue {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
}

.journey-card-glow--accent {
    background: radial-gradient(circle, rgba(232, 87, 42, 0.18) 0%, transparent 70%);
}

.journey-card-year {
    font-size: 5rem;
    font-weight: 900;
    font-family: 'Syne', sans-serif;
    line-height: 1;
    color: rgba(255, 255, 255, 0.04);
    letter-spacing: -0.04em;
    position: absolute;
    top: 16px;
    right: 24px;
    pointer-events: none;
    user-select: none;
}

.journey-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.journey-tag--edu {
    background: rgba(232, 87, 42, 0.15);
    color: var(--accent);
    border: 1px solid rgba(232, 87, 42, 0.25);
}

.journey-tag--cert {
    background: rgba(234, 179, 8, 0.12);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.25);
}

.journey-card-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 6px;
}

.journey-card-title span {
    color: rgba(255, 255, 255, 0.45);
}

.journey-card-sub {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0;
    line-height: 1.5;
}

.journey-card-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 18px 0;
}

.journey-card-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
    margin-bottom: 18px;
}

.journey-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.journey-score-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(232, 87, 42, 0.12);
    color: var(--accent);
    border: 1px solid rgba(232, 87, 42, 0.22);
}

.journey-score-pill--gold {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
    border-color: rgba(234, 179, 8, 0.22);
}

.journey-score-pill--blue {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    border-color: rgba(99, 102, 241, 0.22);
}

.journey-score-pill--accent {
    background: rgba(232, 87, 42, 0.15);
    color: var(--accent);
    border-color: rgba(232, 87, 42, 0.3);
    box-shadow: 0 0 16px rgba(232, 87, 42, 0.2);
}

.journey-score-icon {
    font-size: 1rem;
}

.journey-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
}

/* â”€â”€ Mobile â”€â”€ */
@media (max-width: 768px) {
    .journey-spine {
        display: none;
    }

    /* Collapse 3-col grid to single column stack */
    .journey-item,
    .journey-item--left,
    .journey-item--right {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Reset grid placements so they stack naturally */
    .journey-item--left .journey-card,
    .journey-item--right .journey-card {
        grid-column: unset;
        grid-row: unset;
        margin: 0;
        width: 100%;
        order: 2;
    }

    .journey-item--left .journey-node,
    .journey-item--right .journey-node {
        grid-column: unset;
        grid-row: unset;
        order: 1;
    }

    /* Hide connector arms on mobile */
    .journey-item--left .journey-node::after,
    .journey-item--right .journey-node::after {
        display: none;
    }

    .journey-card-year {
        font-size: 3.5rem;
    }

}

/* =============================================
   RESPONSIVE OVERRIDES — MOBILE COMPREHENSIVE
   ============================================= */
@media (max-width: 768px) {

    /* --- Prevent global horizontal overflow --- */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* --- Hero Text --- */
    .hero-line {
        font-size: 2.6rem !important;
    }

    /* --- Hide floating skill badges that overflow the hero card --- */
    .skill-badge {
        display: none !important;
    }

    /* --- Hero profile image: shrink on mobile --- */
    #home .relative.w-\[300px\] {
        width: 220px !important;
        height: 220px !important;
    }

    /* --- PROJECT CARDS --- */
    /* Kill sticky / full-height behaviour */
    .project-card {
        height: auto !important;
        min-height: unset !important;
        position: relative !important;
        top: 0 !important;
        padding-bottom: 1rem !important;
        margin-bottom: 1.5rem;
    }

    /* Card inner wrapper: stack vertically, auto height */
    .project-card > div {
        flex-direction: column !important;
        height: auto !important;
        border-radius: 24px !important;
    }

    /* Content pane: reduce the huge p-12 */
    .project-card > div > div:first-child {
        padding: 1.5rem 1.25rem !important;
        width: 100% !important;
    }

    /* Image pane: fixed height */
    .project-card > div > div:last-child {
        width: 100% !important;
        height: 180px !important;
        padding: 0.75rem !important;
    }

    /* Large number watermark: shrink so it doesn't overflow */
    .project-card span.absolute {
        font-size: 5rem !important;
        top: 0.25rem !important;
        left: 0.5rem !important;
    }

    /* Tech icon row in project cards */
    .project-card .flex.items-center.gap-6 {
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
    }

    /* CTA button row: wrap nicely, no overflow */
    .project-card .flex.gap-4 {
        flex-wrap: wrap;
        gap: 0.6rem !important;
    }

    .project-card .flex.gap-4 a {
        flex: 1 1 auto;
        min-width: 0;
        text-align: center;
        padding: 0.6rem 1rem !important;
        font-size: 0.78rem !important;
        white-space: nowrap;
    }

    /* Project card headings */
    .project-card h3 {
        font-size: 2rem !important;
        margin-bottom: 0.75rem !important;
    }

    /* Project card description */
    .project-card p.text-muted {
        font-size: 0.88rem !important;
        margin-bottom: 1rem !important;
    }

    /* Remove sticky stacking gap from projects container */
    #projects-container {
        display: flex;
        flex-direction: column;
    }

    /* --- CONTACT SECTION --- */
    #contact h2 {
        font-size: 2.25rem !important;
        line-height: 1.15 !important;
    }

    #contact h3 {
        font-size: 1.75rem !important;
    }

    #contact .text-xl {
        font-size: 1rem !important;
    }

    /* Contact details wrap properly */
    #contact .flex.flex-wrap.gap-8 {
        flex-direction: column;
        gap: 0.75rem !important;
    }

    /* --- LANGUAGES SECTION --- */
    #languages h2 {
        font-size: 2rem !important;
    }

    /* --- SKILLS SECTION --- */
    #skills h2 {
        font-size: 2.25rem !important;
    }

    /* --- FOOTER SOCIAL ICONS — single horizontal row --- */
    #footer-socials {
        flex-wrap: nowrap !important;
        gap: 1.25rem !important;
        justify-content: center !important;
    }

    #footer-socials a {
        font-size: 1.4rem !important;
    }

}

/* Languages Section — Creative Overhaul */
.language-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.language-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.lang-floating-words {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.05;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    filter: blur(0.5px);
}

.lang-floating-words span {
    display: inline-block;
    white-space: nowrap;
    animation: floating-text 10s linear infinite alternate;
}

@keyframes floating-text {
    from { transform: translate(0, 0) rotate(0deg); }

    to   { transform: translate(15px, 10px) rotate(3deg); }

}

.language-card .lang-content {
    position: relative;
    z-index: 2;
}

/* Proficiency Pills */
.proficiency-badge {
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-fluent {
    background: #fff1f0;
    color: #e8572a;
}

.badge-basic {
    background: #f5f5f5;
    color: #737373;
}

/* ── Contact Section — New Dark UI ── */
.contact-icon-box {
    width: 64px;
    height: 64px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #3b82f6;
    /* Subtle blue like the image */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(59, 130, 246, 0.1);
}

.contact-form-card {
    background: #0d0d0f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

/* Subtle grid background for the form */
.contact-form-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.contact-input {
    width: 100%;
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.contact-input:focus {
    outline: none;
    border-color: var(--accent);
    background: #212124;
    box-shadow: 0 0 0 4px rgba(232, 87, 42, 0.1);
}

.contact-submit-btn {
    width: 100%;
    padding: 1rem;
    background: #f4f4f5;
    color: #09090b;
    border-radius: 0.75rem;
    font-weight: 700;
    transition: all 0.3s;
    margin-top: 1rem;
}

.contact-submit-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Map Marker Styles */
.contact-map-wrap {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
}

.contact-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #3b82f6;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.contact-marker-ping {
    position: absolute;
    inset: -10px;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    animation: contact-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes contact-ping {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

.contact-marker-label {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #18181b;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    animation: contact-float 3s ease-in-out infinite;
}

@keyframes contact-float {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -8px); }
}

}

}

/* MOBILE RESPONSIVE TWEAKS */
@media (max-width: 768px) {
    .lang-floating-words {
        display: none;
    }

    .contact-form-card {
        padding: 1.5rem;
    }

    .journey-title {
        font-size: 3rem !important;
    }

    .project-card h3 {
        font-size: 2.5rem !important;
    }

}

/* KIRA CHAT WINDOW */
#chat-window.open {
    transform: scale(1);
    opacity: 1;
}

.animate-gradient {
    animation: gradient 3s linear infinite;
}

@keyframes gradient {
    0% { background-position: 0% center; }

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

}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    max-width: 85%;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.chat-bubble.bot {
    background: rgba(255, 255, 255, 0.1);
    color: var(--ink);
    backdrop-filter: blur(5px);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-bubble.user {
    background: var(--accent);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(232, 87, 42, 0.2);
}

.chat-contact-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 12px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--ink);
    text-decoration: none;
    transition: color 0.3s;
}

.chat-contact-item:hover {
    color: var(--accent);
}

.chat-option-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

.chat-option-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 87, 42, 0.2);
}

.chat-option-btn:active {
    transform: scale(0.95);
}

#chat-messages::-webkit-scrollbar {
    width: 4px;
}

#chat-messages::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

/* --- LANDING PAGE --- */
#landing {
    background-color: var(--cream);
    z-index: 100;
}

.gateway-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.gateway-card:hover {
    transform: translateY(-15px) scale(1.02);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 40px 80px rgba(232, 87, 42, 0.1);
    border-color: var(--accent);
}

/* PORTFOLIO BUTTON STYLE (Fill Up) */
.btn-modern-portfolio {
    position: relative;
    padding: 1.2rem 3rem;
    background: var(--ink);
    color: white;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    border-radius: 100px;
    overflow: hidden;
    border: none;
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn-modern-portfolio span {
    position: relative;
    z-index: 2;
}

.btn-modern-portfolio::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}

.btn-modern-portfolio:hover {
    transform: scale(1.05);
}

.btn-modern-portfolio:hover::before {
    top: 0;
}

/* SERVICES BUTTON STYLE (Slide Right) */
.btn-modern-services {
    position: relative;
    padding: 1.2rem 3rem;
    background: transparent;
    color: var(--ink);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    border-radius: 100px;
    border: 2px solid var(--ink);
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn-modern-services span {
    position: relative;
    z-index: 2;
}

.btn-modern-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--ink);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}

.btn-modern-services:hover {
    color: white;
    transform: scale(1.05);
}

.btn-modern-services:hover::before {
    left: 0;
}

@media (max-width: 768px) {
    .gateway-card {
        padding: 1.5rem;
    }

    .card-animation {
        height: 140px !important;
    }

}

/* PREMIUM NOISE OVERLAY */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 99;
    opacity: 0.04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* FOOTER STYLES */
footer {
    border-top: none;
    background: transparent;
}

.footer-link {
    color: var(--muted);
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--accent);
    transform: translateY(-2px);
}
