:root {
    --black: #000000;
    --white: #ffffff;
    --gray-100: #f7f7f7;
    --gray-200: #e8e8e8;
    --gray-400: #999999;
    --gray-600: #555555;
    --gray-800: #1a1a1a;
    --accent: #000000;

    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-italic: 'Playfair Display', serif;
    --ease-smooth: cubic-bezier(0.76, 0, 0.24, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

    --font-heading: 'Bebas Neue', sans-serif;
    --font-accent: 'Playfair Display', serif;
    --ease-custom: cubic-bezier(0.76, 0, 0.24, 1);
    --transition-fast: 0.3s var(--ease-smooth);
}

/* -------------------------------------
   RESET & GLOBAL
------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background: #ffffff;
    color: #000000;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
    position: relative;
}

a,
button,
.work-card,
.contact-card,
.tool-chip,
.nav-link,
.btn,
.mobile-nav-link {
    cursor: pointer;
}

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

::-webkit-scrollbar-track {
    background: #ffffff;
}

::-webkit-scrollbar-thumb {
    background: #000000;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    z-index: 1;
}

.section-padding {
    padding: 8rem 0;
}

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

.section-title {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    color: #000000;
}

.italic-accent {
    font-family: var(--font-italic);
    font-style: italic;
    font-weight: 400;
    text-transform: lowercase;
    color: #000000;
}

/* -------------------------------------
   PRELOADER
------------------------------------- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-family: var(--font-display);
    transition: opacity 0.8s var(--ease-smooth), visibility 0.8s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-text {
    font-size: 5rem;
    overflow: hidden;
    display: flex;
    color: #ffffff;
}

.loader-text span {
    transform: translateY(100%);
    opacity: 0;
    display: inline-block;
}

.loader-progress-wrap {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.loader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #ffffff;
}

/* -------------------------------------
   NAVIGATION
------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: all 0.4s var(--ease-smooth);
    background: transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e8e8e8;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 2px;
    color: #000000;
}

.desktop-nav a {
    margin-left: 3rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
    color: #000000;
    transition: color var(--transition-fast);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #000000;
    transition: width var(--transition-fast);
}

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

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger .line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #000000;
    transition: var(--transition-fast);
}

.hamburger .line:nth-child(1) {
    top: 0;
}

.hamburger .line:nth-child(2) {
    bottom: 0;
}

.hamburger.active .line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .line:nth-child(2) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000000;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    clip-path: circle(0% at 100% 0);
    transition: clip-path 0.8s var(--ease-smooth);
}

.mobile-nav.active {
    clip-path: circle(150% at 100% 0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 2rem;
}

.mobile-link {
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s var(--ease-smooth);
}

.mobile-nav.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav.active .mobile-link:nth-child(1) {
    transition-delay: 0.2s;
}

.mobile-nav.active .mobile-link:nth-child(2) {
    transition-delay: 0.3s;
}

.mobile-nav.active .mobile-link:nth-child(3) {
    transition-delay: 0.4s;
}

.mobile-nav.active .mobile-link:nth-child(4) {
    transition-delay: 0.5s;
}

/* -------------------------------------
   HERO SECTION
------------------------------------- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
    position: relative;
    border: none;
}

.hero::after,
.hero::before {
    display: none;
}

body::after {
    display: none;
}

.hero-bg-text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    pointer-events: none;
    z-index: 0;
    display: flex;
    justify-content: center;
}

.hero-bg-text {
    font-family: var(--font-display);
    font-size: 25vw;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px #e8e8e8;
    white-space: nowrap;
    animation: floatHorizontal 20s linear infinite alternate;
}

@keyframes floatHorizontal {
    0% {
        transform: translateX(5%);
    }

    100% {
        transform: translateX(-5%);
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 5%;
    position: relative;
}

.pill {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 1px solid #e8e8e8;
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    font-weight: 500;
    color: #555555;
    background: transparent;
}

.hero-heading-small {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: -1rem;
    color: #555555;
}

.hero-heading-main {
    font-family: var(--font-display);
    font-size: clamp(5rem, 12vw, 10rem);
    line-height: 1;
    letter-spacing: 2px;
    color: #000000;
}

.hero-heading-sub {
    font-family: var(--font-italic);
    font-style: italic;
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: #555555;
    margin-top: -1rem;
    font-weight: 400;
}

.hero-subtext {
    margin: 2rem auto;
    font-size: 1.1rem;
    max-width: 500px;
    color: #555555;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-filled {
    background: #000000;
    color: #ffffff;
    border: 2px solid #000000;
}

.btn-filled:hover {
    background: #ffffff;
    color: #000000;
    border-color: #000000;
}

.btn-outlined {
    background: transparent;
    color: #000000;
    border: 2px solid #000000;
}

.btn-outlined:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.hero-bottom-left {
    position: absolute;
    bottom: 3rem;
    left: 5%;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
}

.scroll-indicator {
    width: 40px;
    height: 1px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.scroll-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #999999;
    animation: scrollPulse 2s cubic-bezier(0.76, 0, 0.24, 1) infinite;
    transform-origin: left;
}

@keyframes scrollPulse {
    0% {
        transform: scaleX(0);
        transform-origin: left;
    }

    50% {
        transform: scaleX(1);
        transform-origin: left;
    }

    50.1% {
        transform: scaleX(1);
        transform-origin: right;
    }

    100% {
        transform: scaleX(0);
        transform-origin: right;
    }
}

.scroll-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #999999;
}

.hero-socials {
    position: absolute;
    bottom: 3rem;
    right: 5%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 2;
}

.hero-socials a {
    font-size: 0.8rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition-fast);
    color: #999999;
}

.hero-socials a:hover {
    color: #000000;
}

/* -------------------------------------
   MARQUEE STRIP
------------------------------------- */
.marquee-wrapper {
    background: #000000;
    border-top: 1px solid #000000;
    border-bottom: 1px solid #000000;
    padding: 1.5rem 0;
    overflow: hidden;
    position: relative;
}

.marquee {
    width: 100%;
    display: flex;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marqueeScroll 20s linear infinite;
    position: relative;
    z-index: 1;
}

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

.marquee-content span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 2px;
    padding-right: 1rem;
    color: #ffffff;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* -------------------------------------
   ABOUT SECTION
------------------------------------- */
.about {
    background: #f7f7f7;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/5;
    margin: 0 auto;
}

.about-image-border {
    position: absolute;
    top: 2rem;
    left: -2rem;
    width: 100%;
    height: 100%;
    border: 2px solid #000000;
    z-index: 1;
}

.about-image.placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    background: #e8e8e8;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.location-tag {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    background: #f7f7f7;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 3;
    font-size: 0.875rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #555555;
    border: 1px solid #e8e8e8;
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    background: #000000;
    border-radius: 50%;
    position: relative;
}

.pulsing-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid #000000;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

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

.about-bio {
    margin-bottom: 3rem;
}

.about-bio p {
    margin-bottom: 1rem;
    color: #555555;
}

.about-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid #e8e8e8;
    padding-top: 2rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1;
    color: #000000;
}

.stat-label {
    font-size: 0.875rem;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* -------------------------------------
   WORK SECTION
------------------------------------- */
.work {
    background: #ffffff;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    border-color: #e8e8e8;
}

.work-card {
    position: relative;
    background: #ffffff;
    padding: 3rem 2rem;
    overflow: hidden;
    cursor: none;
    transform-style: preserve-3d;
    border: 1px solid #e8e8e8;
    transition: border-color 0.5s var(--ease-smooth);
    color: #000000;
}

.work-card:hover {
    color: #ffffff;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    transform: translateY(100%);
    transition: transform 0.5s var(--ease-smooth);
    z-index: 1;
}

.work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    transform: translateY(100%);
    transition: transform 0.5s var(--ease-smooth);
    z-index: 1;
}

.work-card:hover::before {
    transform: translateY(0);
}

.card-content {
    position: relative;
    z-index: 2;
    transition: color 0.5s var(--ease-smooth);
    transform: translateZ(30px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.card-icon svg {
    transition: filter 0.4s var(--ease-smooth);
}

.work-card:hover .card-icon svg {
    filter: invert(1);
}

.card-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #e8e8e8;
    display: block;
    transition: color 0.5s var(--ease-smooth);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #000000;
    transition: color 0.5s var(--ease-smooth);
}

.card-desc {
    font-size: 0.9rem;
    color: #555555;
    margin-bottom: 2rem;
    transition: color 0.5s var(--ease-smooth);
}

.work-card:hover h3,
.work-card:hover .card-title {
    color: #ffffff;
}

.work-card:hover p,
.work-card:hover .card-desc {
    color: rgba(255, 255, 255, 0.7);
}

.work-card:hover .card-num {
    color: rgba(255, 255, 255, 0.15);
}

.card-tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border: 1px solid transparent;
    background: #f7f7f7;
    color: #555555;
    border-radius: 4px;
    transition: all 0.5s var(--ease-smooth);
}

.work-card:hover .tag {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    border-color: transparent;
}

/* -------------------------------------
   SKILLS SECTION
------------------------------------- */
.skills {
    background: #000000;
}

.skills .section-title {
    color: #ffffff;
}

.skills-text p {
    color: rgba(255, 255, 255, 0.5);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.tool-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.chip {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    font-size: 0.8rem;
    transition: all var(--transition-fast);
}

.chip:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.skills-bars {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-name {
    color: rgba(255, 255, 255, 0.7);
}

.skill-pct {
    color: rgba(255, 255, 255, 0.5);
}

.skill-bar-bg {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.skill-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    /* Handled by JS */
    background: #ffffff;
    transition: width 1.5s var(--ease-smooth);
}

/* -------------------------------------
   QUOTE SECTION
------------------------------------- */
.quote {
    background: #ffffff;
}

.quote-mark {
    font-family: var(--font-italic);
    font-size: 8rem;
    line-height: 0.5;
    color: #e8e8e8;
    display: block;
    margin-bottom: 1rem;
}

.main-quote {
    font-family: var(--font-italic);
    font-style: italic;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.3;
    max-width: 900px;
    margin: 0 auto 2rem;
    color: #000000;
}

.quote-author {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-style: normal;
    color: #999999;
}

/* -------------------------------------
   CONTACT SECTION
------------------------------------- */
.contact {
    background: #f7f7f7;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-card {
    position: relative;
    padding: 3rem;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    display: block;
    color: #000000;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #000000;
    transition: left 0.5s var(--ease-smooth);
    z-index: 1;
}

.contact-card:hover::before {
    left: 0;
}

.contact-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.5s var(--ease-smooth);
}

.contact-card:hover {
    color: #ffffff;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999999;
    margin-bottom: 0.5rem;
    transition: color 0.5s var(--ease-smooth);
}

.contact-card:hover .contact-label {
    color: rgba(255, 255, 255, 0.5);
}

.contact-value {
    font-size: 1.25rem;
    font-weight: 500;
    color: #000000;
    transition: color 0.5s var(--ease-smooth);
}

.contact-card:hover .contact-value {
    color: #ffffff;
}

.contact-arrow {
    font-size: 1.5rem;
    transition: transform 0.5s var(--ease-smooth), color 0.5s var(--ease-smooth);
    color: #999999;
}

.contact-card:hover .contact-arrow {
    transform: translateX(10px);
    color: #ffffff;
}

/* -------------------------------------
   FOOTER
------------------------------------- */
.footer {
    background: #000000;
    padding: 4rem 0 2rem;
    border: none;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.logo.footer-logo {
    color: #ffffff;
}

.footer-links a {
    margin-left: 2rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* -------------------------------------
   ANIMATION CLASSES (JS Triggers)
------------------------------------- */
/* Reveals */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s var(--ease-smooth), transform 1s var(--ease-smooth);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 1s var(--ease-smooth), transform 1s var(--ease-smooth);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 1s var(--ease-smooth), transform 1s var(--ease-smooth);
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* -------------------------------------
   MEDIA QUERIES
------------------------------------- */
@media (max-width: 1024px) {
    .section-title {
        font-size: 3.5rem;
    }

    .about-grid,
    .skills-grid {
        gap: 3rem;
    }

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

    .about-image-wrapper {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 5rem 0;
    }

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

    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-heading-main {
        font-size: 15vw;
    }

    .hero-bg-text {
        font-size: 30vw;
    }

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

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

    .about-image-wrapper {
        margin-bottom: 2rem;
    }

    .about-stats {
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: center;
        text-align: center;
    }

    .contact-card {
        padding: 2rem;
    }

    .footer-top {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links a {
        margin: 0 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .hero-bottom-left {
        display: none;
    }

    .hero-socials {
        display: none;
    }
}

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-box {
    background: #ffffff;
    border-radius: 16px;
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 48px;
    position: relative;
    transform: scale(0.92) translateY(24px);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.35s ease;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.1);
}

.modal-overlay.active .modal-box {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-overlay.closing .modal-box {
    transform: scale(0.94) translateY(12px);
    opacity: 0;
    transition: transform 0.28s ease-in, opacity 0.25s ease-in;
}

.modal-overlay.closing {
    opacity: 0;
    transition: opacity 0.3s ease-in, visibility 0.3s ease-in;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    opacity: 0.4;
    transition: opacity 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: #e8e8e8;
    line-height: 1;
    margin-bottom: 8px;
}

.modal-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.4rem;
    letter-spacing: 0.03em;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1;
}

.modal-divider {
    width: 100%;
    height: 1px;
    background: #e8e8e8;
    margin-bottom: 28px;
}

.modal-body p {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 18px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

/* Scrollbar inside modal */
.modal-box::-webkit-scrollbar {
    width: 3px;
}

.modal-box::-webkit-scrollbar-thumb {
    background: #000;
    border-radius: 2px;
}

.modal-box::-webkit-scrollbar-track {
    background: transparent;
}

@media (max-width: 768px) {
    .modal-box {
        padding: 32px 24px;
    }

    .modal-title {
        font-size: 1.8rem;
    }
}

.fog-dot {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
    animation: fogFade 1.2s ease-out forwards;
}

@keyframes fogFade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.5);
    }
}