/* 
   Ariz Azadli - Editorial Portfolio
   Theme: Minimalist, High Contrast, Typography-Focused
*/

:root {
    /* Moody Blue-Grey Palette */
    --bg-color: #CCD0CF;
    /* Platinum - Light BG */
    --text-color: #06141B;
    /* Deep Black/Blue - Main Text */
    --accent-color: #4A5C6A;
    /* Grey Blue - Accent */
    --secondary-text: #596e79;

    --section-bg-dark: #06141B;
    /* Deep Black/Blue - Dark Sections */
    --text-on-dark: #9BA8AB;
    /* Silver - Text on Dark */
    --accent-on-dark: #CCD0CF;
    /* Platinum - Highlights on Dark */

    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-padding: 5vw;
}

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

html.lenis {
    height: auto;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Navigation - Minimal */
.editorial-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    /* Matches light theme by default */
    transition: all 0.3s ease;
}

.editorial-nav.scrolled .nav-left span,
.editorial-nav.scrolled .nav-center a {
    color: var(--accent-on-dark);
}

.nav-center {
    display: flex;
    gap: 3rem;
}

.nav-link:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero-editorial {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Full viewport height */
    min-height: 800px;
    background-color: var(--bg-color);
    /* Slightly darker grey than white */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 var(--container-padding) 4rem;
    padding-top: 15vh;
    overflow: hidden;
}

.hero-text-large {
    position: relative;
    z-index: 10;
    width: 60%;
    /* Limit width to avoid overlap with right-aligned image */
}

.hero-text-large h1 {
    font-size: 14vw;
    /* Massive responsive text */
    line-height: 0.85;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--text-color);
    text-transform: uppercase;
    margin-left: -0.5vw;
    /* Visual alignment */
}

.hero-image-container {
    position: absolute;
    top: 15%;
    right: 5vw;
    /* Right aligned */
    left: auto;
    /* Reset left */
    transform: none;
    /* Reset transform */
    width: 35vw;
    height: 65vh;
    z-index: 5;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%) sepia(10%) contrast(1.1);
    /* Slight mood adjustments */
}

.hero-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 10;
}

.socials {
    display: flex;
    flex-direction: row;
    /* Changed to row for icons */
    gap: 1.5rem;
    font-size: 1.8rem;
    /* Larger icons */
    color: var(--text-color);
}

.socials a:hover {
    color: var(--secondary-text);
    transform: scale(1.1);
}

.hero-role {
    text-align: right;
    color: var(--text-color);
}

.hero-role h2 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Intro Section - Dark */
.intro-editorial {
    background-color: var(--section-bg-dark);
    color: var(--text-on-dark);
    padding: 10rem var(--container-padding);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-content {
    max-width: 1000px;
    width: 100%;
}

.intro-label {
    color: var(--accent-on-dark);
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.intro-statement p {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #e0e0e0;
}

.highlight-red {
    color: var(--accent-on-dark);
    /* Changed from Red to Platinum/Silver accent */
    font-weight: 600;
}

.bio-details {
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.bio-layout-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: start;
}

.bio-text {
    font-size: 1.15rem;
    color: #a3b3bc;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.bio-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

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

.stat-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 500;
}

.skills-container {
    margin-top: 3rem;
}

.skills-container .stat-label {
    display: block;
    margin-bottom: 1rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    color: #ccc;
    background-color: transparent;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    border-color: #fff;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.intro-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.small-desc {
    max-width: 400px;
    font-size: 0.95rem;
    color: #888;
    line-height: 1.6;
}

.btn-oval {
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-oval:hover {
    background-color: #fff;
    color: #000;
}

/* Services Section - Dark */
.services-editorial {
    background-color: var(--section-bg-dark);
    color: var(--text-on-dark);
    padding: 0 var(--container-padding) 10rem;
}

.services-header {
    margin-bottom: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.red-accent {
    color: var(--accent-on-dark);
    /* Replaces Red Accent */
    font-weight: 600;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease, box-shadow 0.4s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--accent-on-dark);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(204, 208, 207, 0.1);
}

.project-image-wrapper {
    width: 100%;
    /* Let the image define its own height to show fully without cropping */
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image-wrapper img {
    transform: scale(1.03);
}

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

.project-number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--secondary-text);
}

.project-content p {
    color: #a3b3bc;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.project-tags span {
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    color: var(--accent-on-dark);
    font-weight: 500;
}

/* Footer */
.footer-editorial {
    background-color: var(--section-bg-dark);
    /* Keep dark */
    color: var(--text-on-dark);
    padding: 5rem var(--container-padding) 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-top h2 {
    font-size: 4vw;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.email-link {
    font-size: 1.5rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-text-large h1 {
        font-size: 18vw;
    }

    .hero-image-container {
        width: 80vw;
        height: 50vh;
        top: 25%;
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-details {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 2rem;
    }

    .socials {
        align-self: flex-start;
    }

    .hero-role {
        text-align: right;
        align-self: flex-end;
    }

    .hero-role h2 {
        font-size: 2rem;
    }

    .intro-statement p {
        font-size: 2rem;
    }

    .bio-layout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-number-large {
        font-size: 5rem;
        margin-bottom: 1rem;
    }

    .editorial-nav {
        flex-direction: column;
        align-items: center;
        padding: 1rem var(--container-padding) 0.5rem;
        background: transparent;
        pointer-events: none;
    }

    .editorial-nav.scrolled .nav-center a {
        color: #fff;
        background-color: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .editorial-nav.scrolled .nav-center a.active,
    .editorial-nav.scrolled .nav-center a:active {
        background-color: #fff;
        color: #000;
    }

    .nav-left {
        display: none;
    }

    .nav-center,
    .nav-right {
        display: flex;
        pointer-events: auto;
        flex-wrap: nowrap;
        gap: 0.8rem;
        margin-top: 0;
        font-size: 0.95rem;
        width: 100vw;
        margin-left: calc(var(--container-padding) * -1);
        padding: 0.5rem var(--container-padding) 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav-center::-webkit-scrollbar,
    .nav-right::-webkit-scrollbar {
        display: none;
    }

    .nav-center a,
    .nav-right a {
        flex-shrink: 0;
        padding: 0.6rem 1.4rem;
        border: none;
        background-color: rgba(0, 0, 0, 0.06);
        border-radius: 50px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-weight: 500;
        letter-spacing: 0.02em;
    }

    .nav-center a.active,
    .nav-right a.active,
    .nav-center a:active,
    .nav-right a:active {
        background-color: var(--text-color);
        color: var(--bg-color);
        transform: scale(0.95);
    }

    .nav-center a:hover,
    .nav-right a:hover {
        background-color: rgba(0, 0, 0, 0.1);
        text-decoration: none;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .footer-top h2 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .footer-top div {
        text-align: left !important;
    }

    .email-link {
        font-size: 1.1rem;
        word-break: break-all;
    }

    /* Mobile Projects Carousel */
    .projects-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 1.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 2rem;
        /* Pull grid out to edges to allow full scroll */
        margin-left: calc(var(--container-padding) * -1);
        margin-right: calc(var(--container-padding) * -1);
        padding-left: var(--container-padding);
        padding-right: var(--container-padding);
        scrollbar-width: none;
        /* Firefox */
    }

    .projects-grid::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .project-card {
        flex: 0 0 calc(90vw - var(--container-padding));
        scroll-snap-align: center;
        /* Remove floating animation on mobile to prevent scroll gliching */
        animation: none;
    }
}

/* Travel / Gallery Section */
.travel-editorial {
    background-color: var(--section-bg-dark);
    color: var(--text-on-dark);
    padding: 8rem var(--container-padding) 10rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.travel-header {
    margin-bottom: 3rem;
    text-align: left;
}

.travel-title {
    font-size: 3rem;
    font-weight: 600;
    margin-top: 1rem;
    color: #fff;
    letter-spacing: -0.03em;
}

.countries-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 5rem;
    font-size: 1.2rem;
    color: #888;
    align-items: center;
}

.country-item {
    color: #ccc;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.country-item:hover {
    color: #fff;
    transform: translateY(-5px);
}

/* Optional: Add a small underline animation */
.country-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

.country-item:hover::after {
    width: 100%;
}

.country-separator {
    color: #444;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

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

.gallery-item:hover img {
    transform: scale(1.05);
    /* Smooth zoom effect */
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments for gallery */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

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

    .socials {
        font-size: 1.5rem;
    }
}

/* ARIZ Custom Graph Card */
.ariz-art-card {
    background-color: #000;
    border: 6px solid #fff;
    border-radius: 16px;
    padding: 1.5rem 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    display: inline-flex;
    flex-direction: column;
}

.ariz-art-months {
    display: flex;
    justify-content: space-between;
    padding-left: 2rem;
    color: #a3b3bc;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.ariz-art-body {
    display: flex;
    gap: 0.8rem;
}

.ariz-art-weekdays {
    display: grid;
    grid-template-rows: repeat(7, 1fr);
    gap: 4px;
    font-size: 0.75rem;
    color: #a3b3bc;
    text-align: right;
    align-items: center;
}

.ariz-art-grid {
    display: grid;
    grid-template-rows: repeat(7, 1fr);
    grid-auto-flow: column;
    gap: 4px;
}

.cal-block {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    transition: transform 0.2s ease;
}

.cal-block:hover {
    transform: scale(1.2);
}

@media (max-width: 600px) {
    .ariz-art-card {
        padding: 1rem;
        border-width: 4px;
        border-radius: 12px;
    }

    .ariz-art-months {
        font-size: 0.65rem;
        padding-left: 1rem;
    }

    .cal-block {
        width: 10px;
        height: 10px;
        border-radius: 2px;
    }

    .ariz-art-weekdays {
        font-size: 0.65rem;
    }
}

/* ----------------------------------
   Standalone Contact Page Layout
---------------------------------- */
.contact-page-wrapper {
    background-color: var(--section-bg-dark);
    color: var(--text-on-dark);
    min-height: 100vh;
    padding: 8rem var(--container-padding) 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: #a3b3bc;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
}

.back-home-btn:hover {
    color: #fff;
    transform: translateX(-5px);
}

.contact-heading {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    color: #fff;
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    width: 100%;
    margin-bottom: 5rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.contact-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2rem;
}

/* Contact Form Elements */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.form-group input,
.form-group textarea {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    color: #e6edf3;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-on-dark);
    box-shadow: 0 0 0 2px rgba(204, 208, 207, 0.2);
}

.btn-submit {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--accent-on-dark);
    color: var(--section-bg-dark);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-submit:hover {
    background-color: #fff;
    transform: scale(1.02);
}

/* Right Column Cards */
.contact-right-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    flex: 1;
}

.contact-desc {
    color: #a3b3bc;
    line-height: 1.6;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.services-minilist {
    list-style: none;
    color: #a3b3bc;
    line-height: 1.8;
}

.contact-social-icons {
    display: flex;
    gap: 0.5rem;
    font-size: 1.8rem;
    color: var(--accent-on-dark);
}

.contact-social-icons a {
    transition: transform 0.2s ease, color 0.2s ease;
}

.contact-social-icons a:hover {
    color: #fff;
    transform: scale(1.1);
}

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

    .contact-card {
        padding: 2rem;
    }
}