/* ===== CSS Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #8b7b6e;
    --color-primary-light: #c4b5a7;
    --color-primary-dark: #5e5349;
    --color-accent: #d4af8a;
    --color-text: #4a4a4a;
    --color-text-light: #7a7a7a;
    --color-text-dark: #2c2c2c;
    --color-bg: #ffffff;
    --color-bg-light: #faf8f6;
    --color-bg-cream: #f5f0eb;
    --color-border: #e8e0d8;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Raleway', 'Helvetica Neue', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    font-weight: 400;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.header.scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--color-text-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding: 5px 0;
}

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

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

.nav-link:hover {
    color: var(--color-primary);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-text-dark);
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 1;
    padding: 0 20px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 400;
    color: var(--color-text-dark);
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: 3px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 15px 40px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 123, 110, 0.3);
}

.btn-full {
    width: 100%;
}

/* ===== Section Styles ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    color: var(--color-text-dark);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.section-description {
    font-size: 1rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* ===== Collection Section ===== */
.collection {
    padding: 100px 0;
    background: var(--color-bg-light);
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.collection-card {
    background: var(--color-bg);
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.collection-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    height: 600px;
    position: relative;
    overflow: hidden;
    background: var(--color-bg-cream);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s ease;
}

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

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.08));
    pointer-events: none;
}

.dress-fitflare {
    border: 2px solid var(--color-primary-light);
    border-radius: 35% 35% 10% 5%;
    border-bottom: none;
}

.dress-fitflare::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 60px;
    border: 2px solid var(--color-primary-light);
    border-radius: 0 0 50% 50%;
    border-top: none;
}

.dress-mermaid {
    border: 2px solid var(--color-primary-light);
    border-radius: 35% 35% 5% 5%;
    border-bottom: none;
}

.dress-mermaid::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 100px;
    border: 2px solid var(--color-primary-light);
    border-radius: 0 0 30% 30%;
    border-top: none;
}

.dress-princess {
    border: 2px solid var(--color-primary-light);
    border-radius: 30% 30% 3% 3%;
    border-bottom: none;
}

.dress-princess::before {
    content: '';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 70px;
    border: 2px solid var(--color-primary-light);
    border-radius: 0 0 50% 50%;
    border-top: none;
}

/* ===== Features Section ===== */
.features {
    padding: 80px 0;
    background: var(--color-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.feature-item {
    padding: 40px 30px;
}

.feature-icon {
    margin-bottom: 25px;
    color: var(--color-primary);
}

.feature-item h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 300;
    line-height: 1.7;
}

/* ===== About Section ===== */
.about {
    padding: 100px 0;
    background: var(--color-bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    display: inline-block;
}

.about-image-placeholder {
    height: 500px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.about-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
}

.about-text {
    padding: 20px 0;
}

.about-text .section-tag {
    text-align: left;
    display: block;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 25px;
}

.about-description {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

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

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 5px;
}

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

/* ===== Contact Section ===== */
.contact {
    padding: 100px 0;
    background: var(--color-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.contact-details h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: 5px;
}

.contact-details p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 300;
    line-height: 1.6;
}

/* ===== Contact Form ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text);
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    background: var(--color-bg);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-light);
    font-weight: 300;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== Contact Map ===== */
.contact-map {
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}

.contact-map iframe {
    height: 100%;
    min-height: 400px;
    width: 100%;
}

/* ===== Book Appointment Section ===== */
.book-appointment {
    padding: 100px 0;
    background: var(--color-bg-cream);
    position: relative;
    overflow: hidden;
}

/* Butterfly background decoration */
.book-appointment .butterfly-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
}

.book-appointment .butterfly-bg img,
.book-appointment .butterfly-bg svg {
    width: 70%;
    height: auto;
    opacity: 0.1;
    transform: rotate(270deg);
}

.book-appointment .container {
    position: relative;
    z-index: 1;
}

.appointment-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-bg);
    padding: 60px 50px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.form-group-full {
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text);
    background: #ffffff;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    outline: none;
    border-radius: 5px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(139, 123, 110, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-light);
    font-weight: 300;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group-full {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .book-appointment .butterfly-bg img {
        width: 60%;
        opacity: 0.3;
    }
}

@media (max-width: 480px) {
    .book-appointment .butterfly-bg img {
        width: 40%;
        opacity: 0.2;
    }
}

/* ===== Footer ===== */
.footer {
    background: var(--color-text-dark);
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-map {
    border-radius: 10px;
    overflow: hidden;
}

.footer-map iframe {
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: 10px;
}

.footer-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.footer-contact-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.footer-social {
    grid-column: 1 / -1;
    padding-top: 25px;
}

.footer-contact-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-contact-item .contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border-radius: 50%;
}

.footer-contact-item .contact-icon svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.footer-contact-item .contact-details {
    flex: 1;
}

.footer-contact-item .contact-details p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    line-height: 1.6;
}

.footer-contact-item .contact-details a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-contact-item .contact-details a:hover {
    color: var(--color-accent);
}

.footer-social h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

/* ===== Scroll to Top Button ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    border: none;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .collection-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-image {
        height: 525px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-bg);
        padding: 80px 40px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 25px;
    }
    
    .nav-link {
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 4px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .collection-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-placeholder {
        height: 300px;
    }
    
    .card-image {
        height: 420px;
    }
    
    .about-text .section-tag,
    .about-text .section-title {
        text-align: center;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .appointment-form {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-map iframe {
        min-height: 250px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-contact-item {
        justify-content: center;
    }
    
    .footer-social {
        text-align: center;
    }
    
    .footer-contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 0.7rem;
        letter-spacing: 3px;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .collection {
        padding: 60px 0;
    }
    
    .card-image {
        height: 300px;
    }
    
    .about {
        padding: 60px 0;
    }
    
    .contact {
        padding: 60px 0;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .header-container {
        padding: 15px 20px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
}

/* ===== Instagram Feed Section ===== */
.instagram-section {
    padding: 100px 0;
    background: var(--color-bg-light);
}

.instagram-feed-container {
    margin-top: 50px;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.instagram-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.instagram-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.instagram-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.bento-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.bento-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-item:hover .bento-link img {
    transform: scale(1.08);
}

.instagram-footer {
    text-align: center;
    margin-top: 40px;
}

.instagram-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(193, 53, 132, 0.3);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.instagram-follow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.instagram-follow-btn:hover::before {
    left: 100%;
}

.instagram-follow-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(193, 53, 132, 0.45);
}

/* Loading State */
.instagram-loading {
    text-align: center;
    padding: 60px 20px;
}

.instagram-loading p {
    color: var(--color-text-light);
    margin-top: 15px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.instagram-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--color-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.instagram-empty p {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.instagram-btn {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.instagram-btn:hover {
    background: var(--color-primary-dark);
}

/* Error State */
.instagram-error {
    text-align: center;
    padding: 60px 20px;
    background: var(--color-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.instagram-error p {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .instagram-masonry {
        column-count: 3;
        column-gap: 15px;
    }
    
    .instagram-masonry-item {
        margin-bottom: 15px;
    }
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 220px;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .instagram-section {
        padding: 60px 0;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
        gap: 15px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
        gap: 15px;
    }
    
    .post-caption {
        font-size: 0.8rem;
    }
}

/* ===== Footer Responsive ===== */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-map iframe {
        height: 300px;
    }
}

/* ===== Dynamic Collection Section ===== */
.collection-dynamic {
    margin-bottom: 60px;
}

.collection-loading,
.collection-empty,
.collection-error {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.collection-error {
    color: #dc3545;
}

/* Designer Section */
.collection-designer-section {
    margin-bottom: 60px;
}

.designer-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-text-dark);
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-primary-light);
    display: inline-block;
    width: auto;
}

.designer-name::before {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: var(--color-primary-light);
    margin: 0 auto 15px;
}

/* Styles Grid */
.styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

/* Style Card */
.style-card {
    background: var(--color-bg);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.style-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.style-card-image {
    height: 400px;
    position: relative;
    overflow: hidden;
    background: var(--color-bg-cream);
}

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

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

.style-card-video-preview {
    display: flex;
    align-items: center;
    justify-content: center;
}

.style-card-video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.style-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: var(--color-bg-cream);
}

.style-card-placeholder span {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-primary);
}

/* Card Overlay */
.style-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.view-collection-btn {
    background: white;
    color: var(--color-text-dark);
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 30px;
}

/* Card Info */
.style-card-info {
    padding: 20px;
}

.style-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 5px;
}

.media-count {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* ===== Collection Modal ===== */
.collection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.collection-modal.active {
    opacity: 1;
    visibility: visible;
}

.collection-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

.collection-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--color-bg);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Modal Slider - Swiper.js */
.modal-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 100%;
    padding: 0;
    overflow: hidden;
    height: 100%;
    background: transparent;
}

.collection-swiper-container {
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
    position: relative;
}

.swiper-wrapper {
    display: flex;
    align-items: center;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    height: 100%;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}

.swiper-slide:active {
    cursor: grabbing;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.swiper-slide video {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    display: block;
    pointer-events: none;
}

/* Swiper Navigation Buttons */
.collection-swiper-container .swiper-button-prev,
.collection-swiper-container .swiper-button-next {
    color: white;
    transition: color 0.3s ease;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
}

.collection-swiper-container .swiper-button-prev:hover,
.collection-swiper-container .swiper-button-next:hover {
    color: var(--color-primary-light);
    background: rgba(0, 0, 0, 0.7);
}

.collection-swiper-container .swiper-button-prev::after,
.collection-swiper-container .swiper-button-next::after {
    font-size: 20px;
    font-weight: bold;
}

.collection-swiper-container .swiper-button-prev {
    left: 10px;
}

.collection-swiper-container .swiper-button-next {
    right: 10px;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    background: white;
    opacity: 0.4;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: white;
}

/* Modal Thumbnails */
.modal-thumbnails {
    padding: 15px 20px;
    border-top: 1px solid var(--color-border);
    max-height: 120px;
    overflow-y: auto;
}

.thumbnail-group {
    display: none;
    gap: 10px;
}

.thumbnail-group.active {
    display: flex;
}

.thumbnail {
    flex: 0 0 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.thumbnail:hover {
    opacity: 0.9;
}

.thumbnail.active {
    border-color: var(--color-primary);
    opacity: 1;
}

.thumbnail img,
.thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modal Counter */
.modal-counter {
    display: none;
}

/* Body scroll lock when modal is open */
body.modal-open {
    overflow: hidden;
}

/* ===== Collection Responsive ===== */
@media (max-width: 1024px) {
    .styles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-slider {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .styles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .style-card-image {
        height: 300px;
    }
    
    .designer-name {
        font-size: 1.5rem;
    }
    
    .collection-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-slider-container {
        min-height: 100%;
        padding: 0;
        background: transparent;
    }
    
    .collection-swiper-container {
        width: 100%;
        height: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .thumbnail {
        flex: 0 0 50px;
        height: 50px;
    }
}

/* Instagram Masonry Responsive */
@media (max-width: 1024px) {
    .instagram-masonry {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .instagram-masonry {
        column-count: 2;
        column-gap: 15px;
    }
    
    .instagram-masonry-item {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .instagram-masonry {
        column-count: 1;
    }
}
