/* ==========================================================================
   THE GEST - Luxury Tailoring Website Styles
   ========================================================================== */

/* --- CSS Variables --- */
:root {
    --bg-color: #050505;
    --section-bg: #0a0a0a;
    --gold: #D4AF37;
    --gold-light: #F3E5AB;
    --gold-dark: #997A15;
    --text-primary: #F5F5F5;
    --text-secondary: #A0A0A0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --glass-bg: rgba(25, 25, 25, 0.4);
    --glass-border: rgba(212, 175, 55, 0.2);
    --container-width: 1200px;
}

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

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

.dark-section {
    background-color: var(--section-bg);
}

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

.mt-4 {
    margin-top: 2rem;
}

.relative {
    position: relative;
}

.gold-text {
    color: var(--gold);
}

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

.section-subtitle {
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #000;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    transition: var(--transition);
    z-index: -1;
}

.btn-gold:hover::before {
    left: 0;
}

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

.btn-outline:hover {
    background: var(--text-primary);
    color: #000;
}

.full-width {
    width: 100%;
    text-align: center;
}

/* --- Loader --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

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

.loader-logo {
    font-size: 3rem;
    letter-spacing: 8px;
    color: var(--gold);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInLogo 2s forwards;
}

.loader-line {
    width: 0;
    height: 1px;
    background-color: var(--gold);
    margin: 0 auto;
    animation: drawLine 2s forwards 0.5s;
}

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

@keyframes drawLine {
    to { width: 100px; }
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
}

.nav-links a:not(.nav-btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: var(--transition);
}

.nav-links a:not(.nav-btn):hover::after {
    width: 100%;
}

.nav-btn {
    border: 1px solid var(--gold);
    padding: 0.6rem 1.5rem;
    color: var(--gold);
}

.nav-btn:hover {
    background: var(--gold);
    color: #000;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .bar {
    width: 25px;
    height: 2px;
    background-color: #fff;
    margin: 5px 0;
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transform: scale(1.05);
    transition: transform 0.5s ease-out;
}

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

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 0 1rem;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: var(--gold);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 5rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid #fff;
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 6px;
    background-color: var(--gold);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 18px; opacity: 0; }
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* --- Glassmorphism Utils --- */
.glass-box {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.glass-border {
    position: relative;
}
.glass-border::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid var(--glass-border);
    z-index: -1;
    pointer-events: none;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-list {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-list li {
    position: relative;
    padding-left: 20px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--gold-light);
}

.about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 1px;
    background-color: var(--gold);
}

.about-image img {
    width: 100%;
    height: auto;
    filter: brightness(0.9) contrast(1.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* --- Collection Section --- */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.collection-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    group: collection;
}

.card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.card-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.8rem 2rem;
    transform: translateY(20px);
    transition: var(--transition);
}

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

.collection-card:hover .card-overlay {
    opacity: 1;
}

.collection-card:hover .card-link {
    transform: translateY(0);
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
}

.card-info {
    padding: 1.5rem 0;
    text-align: center;
}

.card-info h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Experience Timeline --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
    padding-right: 0;
    padding-left: 3rem;
}

.timeline-dot {
    position: absolute;
    top: 20px;
    right: -6px;
    width: 12px;
    height: 12px;
    background-color: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold);
}

.timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -6px;
}

.timeline-content {
    padding: 2rem;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.timeline-content h4 {
    font-size: 1.3rem;
    color: var(--gold-light);
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- Fabrics Section --- */
.fabric-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.fabric-card {
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.fabric-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

.fabric-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.fabric-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.fabric-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- Gallery Section --- */
.masonry-gallery {
    column-count: 2;
    column-gap: 1.5rem;
    margin-top: 3rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.masonry-item img {
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
}

.masonry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: var(--transition);
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
}

/* --- Testimonials Section --- */
.testimonial-slider {
    max-width: 800px;
    margin: 3rem auto 0;
}

.test-card {
    padding: 3rem;
    text-align: center;
    position: relative;
}

.quote-icon {
    font-size: 4rem;
    font-family: var(--font-heading);
    color: var(--gold);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.test-card p {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.8;
}

/* --- Booking Section --- */
.booking {
    position: relative;
}

.booking-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('614450257_855100587280136_3014115716325375227_n.jpg') no-repeat center center/cover;
    opacity: 0.15;
    z-index: -1;
}

.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    gap: 4rem;
}

.contact-item {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.phone-link {
    display: inline-block;
    margin-left: 10px;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.phone-link:hover {
    color: var(--gold);
}

.luxury-form .input-group {
    margin-bottom: 1.5rem;
}

.luxury-form input,
.luxury-form select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.luxury-form input:focus,
.luxury-form select:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
}

/* --- Footer Section --- */
.footer {
    background-color: #000;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h2 {
    color: var(--gold);
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-icon:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.designer {
    letter-spacing: 2px;
    color: var(--gold-dark);
}

/* --- Animations --- */
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-up {
    transform: translateY(40px);
}

.fade-in-left {
    transform: translateX(-40px);
}

.fade-in-right {
    transform: translateX(40px);
}

.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .fabric-carousel {
        grid-template-columns: repeat(2, 1fr);
    }
    .booking-wrapper {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: rgba(5,5,5,0.98);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
        border-left: 1px solid var(--glass-border);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .about-grid,
    .booking-wrapper {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 2rem;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 2rem;
    }
    
    .timeline-dot {
        left: -6px;
        right: auto;
    }
    
    .timeline-item:nth-child(even) .timeline-dot {
        left: -6px;
    }
    
    .masonry-gallery {
        column-count: 1;
    }

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

@media (max-width: 480px) {
    .collection-grid,
    .fabric-carousel {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .booking-wrapper {
        padding: 2rem 1.5rem;
    }
}
