/* =========================================
   ATELÍER - Designer Clothing Store Styles
   ========================================= */

:root {
    /* Color Palette */
    --clr-bg: #050505;
    --clr-surface: #0f0f0f;
    --clr-surface-light: #181818;

    --clr-gold: #c9a96e;
    --clr-gold-dim: rgba(201, 169, 110, 0.4);
    --clr-gold-light: #e6cb98;

    --clr-text: #f5f0eb;
    --clr-text-muted: #a39d98;

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;

    /* Variables */
    --nav-height: 80px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* For custom cursor */
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--clr-gold);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--clr-gold-dim);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Particle Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

.text-gold {
    color: var(--clr-gold);
    font-style: italic;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--clr-gold);
    margin-bottom: 16px;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.section-desc {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--clr-gold);
    color: var(--clr-bg);
}

.btn-primary:hover {
    background-color: var(--clr-gold-light);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--clr-text);
    border: 1px solid var(--clr-gold-dim);
}

.btn-outline:hover {
    border-color: var(--clr-gold);
    background: rgba(201, 169, 110, 0.05);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
}

.text-link {
    display: inline-block;
    color: var(--clr-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    border-bottom: 1px solid transparent;
    padding-bottom: 4px;
    margin-top: 24px;
}

.text-link:hover {
    border-color: var(--clr-gold);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: transparent;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 4px;
    color: var(--clr-text);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 48px;
}

.nav-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-text-muted);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--clr-text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--clr-gold);
    transition: var(--transition);
}

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

.nav-cta {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-gold);
    border: 1px solid var(--clr-gold-dim);
    padding: 10px 24px;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--clr-gold);
    color: var(--clr-bg);
}

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

.mobile-menu-btn span {
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: var(--clr-text);
    transition: var(--transition);
    left: 0;
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-btn span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-btn.active span:nth-child(1) {
    top: 50%;
    transform: rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    top: 50%;
    transform: rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100vw;
    height: 100vh;
    background-color: var(--clr-bg);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    padding: 2rem;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    margin-bottom: 40px;
}

.mobile-nav-links li {
    margin: 24px 0;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--clr-text-muted);
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--clr-gold);
    font-style: italic;
}

.mobile-cta {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-bg);
    background: var(--clr-gold);
    padding: 16px 40px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0.4) 50%, rgba(5, 5, 5, 0.8) 100%),
        linear-gradient(to top, var(--clr-bg) 0%, transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-left: max(40px, calc((100vw - 1280px) / 2));
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 32px;
    backdrop-filter: blur(5px);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--clr-gold);
}

.hero-title {
    font-size: clamp(4rem, 8vw, 7rem);
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.title-gold {
    color: var(--clr-gold);
    font-style: italic;
    transform: translateX(10%);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--clr-text-muted);
    max-width: 500px;
    margin-bottom: 48px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--clr-gold), transparent);
    animation: scrollFade 2s infinite;
}

.scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--clr-gold);
}

@keyframes scrollFade {
    0% {
        transform: scaleY(0);
        transform-origin: top;
        opacity: 1;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
        opacity: 1;
    }

    50.1% {
        transform: scaleY(1);
        transform-origin: bottom;
        opacity: 1;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
        opacity: 0;
    }
}

/* Brand Story */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-image-wrap {
    position: relative;
    padding: 20px 20px 0 0;
}

.story-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    position: relative;
    z-index: 2;
    filter: grayscale(20%) contrast(1.1);
}

.img-border {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--clr-gold-dim);
    z-index: 1;
    transform: translate(20px, -20px);
}

.story-content {
    max-width: 500px;
}

.story-content .section-title {
    font-size: 4rem;
    margin-bottom: 32px;
}

.story-content .section-desc {
    margin-bottom: 24px;
}

/* Collections section */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.collection-card {
    position: relative;
    overflow: hidden;
    cursor: none;
    border: 1px solid transparent;
    transition: var(--transition);
}

.collection-card:hover {
    border-color: var(--clr-gold-dim);
}

.card-img-wrap {
    height: 600px;
    overflow: hidden;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.9) 0%, transparent 60%);
}

.collection-card:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 40px;
    width: 100%;
    z-index: 2;
}

.card-title {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.card-desc {
    color: var(--clr-text-muted);
    margin-bottom: 24px;
    max-width: 80%;
}

.card-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-gold);
    display: inline-flex;
    align-items: center;
}

/* Stats section */
.stats-section {
    background-color: var(--clr-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0;
}

.stats-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

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

.stat-num {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--clr-gold);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-num::after {
    content: '+';
    font-family: var(--font-body);
    font-size: 2rem;
    vertical-align: top;
    font-weight: 300;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

.stat-divider {
    width: 1px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Atelier Process */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.process-step {
    padding: 40px 32px;
    background-color: var(--clr-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: var(--transition);
}

.process-step:hover {
    background-color: var(--clr-surface-light);
    border-color: var(--clr-gold-dim);
    transform: translateY(-5px);
}

.step-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--clr-gold-dim);
    margin-bottom: 24px;
    font-style: italic;
}

.process-step:hover .step-num {
    color: var(--clr-gold);
}

.step-title {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.step-desc {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

/* Testimonials */
.testimonials-section {
    padding: 160px 0;
    background: radial-gradient(circle at center, var(--clr-surface) 0%, var(--clr-bg) 70%);
}

.testimonials-slider {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.quote-icon {
    font-family: var(--font-heading);
    font-size: 8rem;
    color: var(--clr-gold-dim);
    line-height: 0.5;
    margin-bottom: -20px;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 40px;
}

.author-name {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    color: var(--clr-gold);
}

/* Appointment Section */
.appointment-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--clr-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.appointment-info {
    padding: 80px 60px;
    background: linear-gradient(135deg, rgba(20, 20, 20, 1) 0%, rgba(10, 10, 10, 1) 100%);
}

.appointment-desc {
    margin-bottom: 48px;
    color: var(--clr-text-muted);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    flex-direction: column;
}

.contact-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--clr-gold);
    margin-bottom: 4px;
}

.contact-val {
    font-size: 1.1rem;
}

.appointment-form-wrap {
    padding: 80px 60px;
    position: relative;
}

.form-group {
    position: relative;
    margin-bottom: 40px;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 10px 0;
    color: var(--clr-text);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
}

.form-input:focus {
    outline: none;
}

.form-label {
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--clr-text-muted);
    transition: var(--transition);
    pointer-events: none;
}

.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--clr-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

.form-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--clr-gold);
    transition: var(--transition);
}

.form-input:focus~.form-line::after {
    width: 100%;
}

select.form-input {
    appearance: none;
    cursor: pointer;
}

/* Success State */
.form-success {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--clr-surface);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 10;
}

.form-success.show {
    opacity: 1;
    visibility: visible;
}

.form-success h3 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 100px 0 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand h2 {
    font-size: 2.5rem;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--clr-text-muted);
}

.footer-links {
    display: flex;
    gap: 80px;
}

.link-col h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-gold);
    margin-bottom: 24px;
}

.link-col a {
    display: block;
    color: var(--clr-text-muted);
    margin-bottom: 12px;
    transition: var(--transition);
}

.link-col a:hover {
    color: var(--clr-text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a:hover {
    color: var(--clr-text);
}

/* Animations */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

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

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

    .story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .story-image-wrap {
        margin-right: 20px;
    }

    .img-border {
        transform: translate(10px, -10px);
    }

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

    .appointment-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

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

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

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

    .card-img-wrap {
        height: 400px;
    }

    .stats-content {
        flex-direction: column;
        gap: 40px;
    }

    .stat-divider {
        width: 80px;
        height: 1px;
    }

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

    .footer-top {
        flex-direction: column;
        gap: 60px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    body {
        cursor: auto;
    }
}