/* ============================================
   Roshanak Marefat — Fashion Designer Portfolio
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Raleway:wght@300;400;500;600&display=swap');

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Raleway', 'Helvetica Neue', sans-serif;
    background-color: #fff;
    color: #1a1a1a;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

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

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

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 4vw;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}

.header--transparent {
    background: transparent;
}

.header--solid {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    height: 80px;
    transition: height 0.3s ease;
}

.header--solid .header-inner {
    height: 65px;
}

.site-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.header--transparent .site-title {
    color: #fff;
}

.header--solid .site-title {
    color: #1a1a1a;
}

.site-title:hover {
    opacity: 0.7;
}

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.header--transparent .nav-link {
    color: #fff;
}

.header--solid .nav-link {
    color: #1a1a1a;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

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

/* Hamburger (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    transition: all 0.3s ease;
}

.header--transparent .hamburger span {
    background: #fff;
}

.header--solid .hamburger span {
    background: #1a1a1a;
}

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

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

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

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 35px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
    pointer-events: all;
}

.mobile-menu .nav-link {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: none;
    color: #1a1a1a;
}

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

.hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.02);
    transition: transform 8s ease-out;
}

.hero:hover .hero-background {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.45) 50%,
        rgba(0, 0, 0, 0.55) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 720px;
    padding: 0 40px;
    text-align: center;
}

.hero-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    font-weight: 300;
    line-height: 1.9;
    color: #fff;
    letter-spacing: 0.01em;
}

/* --- Page Header (Portfolio, etc.) --- */
.page-section {
    padding: 140px 4vw 80px;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: 0.04em;
}

/* --- Portfolio Grid --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
}

.portfolio-item-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-item-image {
    transform: scale(1.04);
    opacity: 0.88;
}

.portfolio-item-info {
    padding: 18px 0 8px;
    text-align: center;
}

.portfolio-item-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* --- Collection Page --- */
.collection-hero {
    padding: 160px 4vw 50px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.collection-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.6rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
}

.collection-description {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.8;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

.collection-gallery {
    display: grid;
    gap: 12px;
    padding: 40px 4vw 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.collection-gallery--two-col {
    grid-template-columns: repeat(2, 1fr);
}

.collection-gallery--three-col {
    grid-template-columns: repeat(3, 1fr);
}

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

.gallery-item {
    overflow: hidden;
    cursor: pointer;
    line-height: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
    opacity: 0.92;
}

.gallery-item--tall {
    grid-row: span 2;
}

.gallery-item--wide {
    grid-column: span 2;
}

/* Collection Navigation */
.collection-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 4vw 80px;
    border-top: 1px solid #e8e4e0;
}

.collection-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.collection-nav-link:hover {
    opacity: 0.6;
}

.collection-nav-link--disabled {
    opacity: 0.25;
    pointer-events: none;
}

.collection-nav-link svg {
    width: 18px;
    height: 18px;
}

/* --- About Page --- */
.about-section {
    padding: 140px 4vw 80px;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.about-image-wrapper {
    position: sticky;
    top: 120px;
}

.about-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.about-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    margin-bottom: 35px;
}

.about-bio p {
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.95;
    color: #333;
    margin-bottom: 22px;
}

.about-bio p:last-child {
    margin-bottom: 0;
}

/* --- Contact Section --- */
.contact-section {
    padding: 80px 4vw 100px;
    background: #f9f8f6;
}

.contact-container {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    margin-bottom: 40px;
}

.contact-form {
    text-align: left;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    padding: 14px 0;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    color: #1a1a1a;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #1a1a1a;
}

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

.form-submit {
    display: inline-block;
    font-family: 'Raleway', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 16px 48px;
    border: 1px solid #1a1a1a;
    background: #1a1a1a;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    margin-top: 10px;
}

.form-submit:hover {
    background: transparent;
    color: #1a1a1a;
}

.form-success {
    display: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #333;
    padding: 40px 0;
}

.form-success.visible {
    display: block;
}

.form-error {
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    color: #c0392b;
    margin-top: 12px;
    min-height: 1.2em;
}

/* Hide reCAPTCHA v3 badge — attribution text shown near form instead */
.grecaptcha-badge {
    visibility: hidden !important;
}

.recaptcha-notice {
    font-family: 'Raleway', sans-serif;
    font-size: 0.7rem;
    color: #999;
    margin-top: 16px;
    line-height: 1.5;
}

.recaptcha-notice a {
    color: #777;
    text-decoration: underline;
}

/* --- Footer --- */
.footer {
    padding: 40px 4vw;
    text-align: center;
    border-top: 1px solid #e8e4e0;
}

.footer p {
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: #999;
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-image {
    max-width: 88vw;
    max-height: 88vh;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 30px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 0.6;
}

.lightbox-close svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    stroke-width: 1.5;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.lightbox-nav:hover {
    opacity: 0.6;
}

.lightbox-nav svg {
    width: 28px;
    height: 28px;
    stroke: #fff;
    stroke-width: 1.5;
    fill: none;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* --- Fade-in Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Back to Portfolio Link --- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 30px;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 0.6;
}

.back-link svg {
    width: 16px;
    height: 16px;
}

/* ============================
   Responsive Design
   ============================ */

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .collection-gallery--three-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container {
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .header-inner {
        height: 65px;
    }

    .hero-content {
        max-width: 90%;
        padding: 0 20px;
    }

    .hero-text {
        font-size: 1.2rem;
        line-height: 1.8;
    }

    .page-section {
        padding: 110px 4vw 60px;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .portfolio-item-title {
        font-size: 1rem;
    }

    .collection-hero {
        padding: 120px 4vw 30px;
    }

    .collection-title {
        font-size: 2rem;
    }

    .collection-gallery--two-col,
    .collection-gallery--three-col,
    .collection-gallery--masonry {
        grid-template-columns: 1fr;
    }

    .gallery-item--tall {
        grid-row: span 1;
    }

    .gallery-item--wide {
        grid-column: span 1;
    }

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

    .about-image-wrapper {
        position: static;
        max-width: 500px;
        margin: 0 auto;
    }

    .about-name {
        font-size: 1.8rem;
        text-align: center;
    }

    .collection-nav {
        padding: 30px 4vw 60px;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .hero-text {
        font-size: 1.05rem;
    }

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

    .collection-title {
        font-size: 1.6rem;
    }

    .collection-description {
        font-size: 1rem;
    }

    .about-bio p {
        font-size: 0.9rem;
    }
}
