/* ========================================================
   VARIABLES & BASE
======================================================== */
:root {
    /* Base Colors */
    --bg-color: #faf7f2;
    --text-main: #2c2825;
    --text-muted: #6b635e;
    
    /* Brand Accents */
    --accent-red: #ff8a8a;
    --accent-blue: #8ac4ff;
    --accent-orange: #ffbe76;
    --accent-purple: #c5a3ff;
    
    /* UI Colors */
    --thread-color: #a89481;
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px rgba(139, 115, 85, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

/* Custom Webkit Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--thread-color);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ========================================================
   BACKGROUND BLOBS (GLASSMORPHISM BASE)
======================================================== */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    opacity: 0.6;
}
.blob-red { width: 400px; height: 400px; background: var(--accent-red); top: -100px; right: -50px; }
.blob-blue { width: 500px; height: 500px; background: var(--accent-blue); top: 30%; left: -100px; }
.blob-orange { width: 450px; height: 450px; background: var(--accent-orange); bottom: 5%; right: -100px; }
.blob-purple { width: 350px; height: 350px; background: var(--accent-purple); top: 60%; left: 30%; opacity: 0.4; }

/* ========================================================
   THREAD & LOGO FEATURE (MASSIVE LOGO UPDATE)
======================================================== */
.thread-container {
    position: fixed;
    top: 0;
    left: 2vw; /* Reduced side gap to stretch content */
    bottom: 0;
    width: 280px; /* MASSIVE LOGO CONTAINER */
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    pointer-events: none; /* Let clicks pass through the thread */
}

.logo-link {
    margin-top: 20px;
    pointer-events: auto; /* Make logo clickable */
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: rotate(15deg) scale(1.03);
}

.logo-button {
    width: 280px; /* 3X+ BIGGER LOGO */
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}

.thread-line {
    flex-grow: 1;
    width: 3px;
    margin-top: -15px; /* Sink deeper into the large button */
    /* Thread dash effect */
    background: repeating-linear-gradient(
        to bottom,
        var(--thread-color),
        var(--thread-color) 16px,
        transparent 16px,
        transparent 24px
    );
    opacity: 0.8;
}

/* ========================================================
   LAYOUT & MAIN COMPONENTS (STRETCHED)
======================================================== */
/* Adjusted left padding to accommodate the huge thread & logo */
.main-wrapper {
    padding-left: calc(2vw + 320px); /* 280px logo + 40px gap */
    padding-right: 2vw;
    max-width: 1600px; /* Stretched out maximum width */
    margin: 0 auto;
}

/* Header */
.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    margin-top: 15px; /* Less top space */
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    box-shadow: var(--glass-shadow);
    position: sticky;
    top: 15px;
    z-index: 100;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    margin-right: 25px;
    transition: color 0.3s ease;
}
.main-nav a:hover { color: var(--accent-purple); }

.lang-switcher a, .lang-switcher span {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.lang-switcher .active { color: var(--text-main); font-weight: 700; }
.lang-switcher a:hover { color: var(--accent-orange); }
.lang-switcher .separator { margin: 0 5px; font-weight: 300; }

/* Global Section Styling (Tighter Spacing) */
section {
    padding: 50px 0; /* Reduced from 100px */
}
h2 {
    font-size: 2.3rem;
    margin-bottom: 25px; /* Reduced from 40px */
    font-weight: 700;
}

/* ========================================================
   HERO SECTION
======================================================== */
.hero {
    min-height: 60vh; /* Reduced from 80vh to pull content up */
    display: flex;
    align-items: center;
}
.hero-content {
    max-width: 750px;
}
.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.badge-purple { background: var(--accent-purple); color: #fff; }

.hero h1 {
    font-size: 4.2rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -1px;
}
.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-primary {
    background: var(--text-main);
    color: #fff;
    box-shadow: 0 8px 16px rgba(44, 40, 37, 0.15);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(44, 40, 37, 0.25);
    background: #000;
}

/* ========================================================
   STORY / PHILOSOPHY SECTION
======================================================== */
.story-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px 45px; /* Tighter padding */
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    max-width: 100%; /* Use full available stretched width */
}
.story-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0; width: 6px;
    background: var(--accent-purple);
}
.story-card h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}
.story-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.6;
}
.story-content p:last-child {
    margin-bottom: 0;
}
.story-content strong {
    color: var(--text-main);
    font-weight: 700;
}

/* ========================================================
   SERVICES SECTION
======================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; /* Reduced from 30px */
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px 25px; /* Tighter padding */
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 5px;
}
.card-blue::before { background: var(--accent-blue); }
.card-purple::before { background: var(--accent-purple); }
.card-orange::before { background: var(--accent-orange); }
.card-red::before { background: var(--accent-red); }

.card-header {
    margin-bottom: 15px;
}
.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
    line-height: 1.2;
}
.price-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(0,0,0,0.06);
    padding: 4px 10px;
    border-radius: 8px;
}

/* ========================================================
   FAQ SECTION
======================================================== */
.accordion {
    max-width: 100%;
}
details {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}
details[open] {
    box-shadow: var(--glass-shadow);
}
summary {
    padding: 18px 24px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    position: relative;
    user-select: none;
}
summary::-webkit-details-marker {
    display: none; /* For older Safari */
}
summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent-orange);
    transition: transform 0.3s ease;
}
details[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(90deg);
}
.details-content {
    padding: 0 24px 18px 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========================================================
   CONTACT SECTION
======================================================== */
.contact {
    max-width: 800px;
}
.text-link {
    color: var(--accent-purple);
    font-weight: 600;
    text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

.contact-form {
    margin-top: 25px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--glass-shadow);
}
.input-group {
    margin-bottom: 20px;
}
.input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}
.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.7);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}
.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--accent-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(138, 196, 255, 0.2);
}
.btn-submit {
    width: 100%;
}

/* ========================================================
   FOOTER
======================================================== */
footer {
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--glass-border);
}

/* ========================================================
   MEDIA QUERIES (Handling the Massive Logo Responsively)
======================================================== */
@media (max-width: 1200px) {
    .thread-container { width: 180px; left: 1vw; }
    .logo-button { width: 180px; }
    .main-wrapper { padding-left: calc(1vw + 210px); padding-right: 2vw; }
}

@media (max-width: 900px) {
    .hero h1 { font-size: 3.2rem; }
    section { padding: 40px 0; }
    
    .thread-container { width: 120px; left: 15px; }
    .logo-button { width: 120px; }
    .main-wrapper { padding-left: 160px; padding-right: 15px; }
    
    .story-card { padding: 25px 30px; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2.4rem; margin-bottom: 15px; }
    .hero p { font-size: 1.05rem; }
    h2 { font-size: 1.8rem; margin-bottom: 20px; }
    section { padding: 35px 0; }
    
    .glass-header {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
        border-radius: 16px;
    }
    .main-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .main-nav a { margin-right: 0; font-size: 0.95rem; }
    
    .story-card h2 { font-size: 1.6rem; }
    .story-content p { font-size: 0.95rem; }

    .contact-form { padding: 20px; }
    
    /* Make thread and logo scale down for very small screens so content is readable */
    .thread-container { left: 10px; width: 70px; }
    .logo-button { width: 70px; }
    .main-wrapper { padding-left: 95px; padding-right: 10px; }
}