/* ============================================================
   ISMAIL VISUALS — Portfolio Stylesheet
   Dark-themed, ultra-minimalist, premium aesthetic
   ============================================================ */

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

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

body {
    font-family: 'Inter', sans-serif;
    background: #000;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ---------- TYPOGRAPHY ---------- */
.section-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 4rem;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.nav-cta {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.7rem 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    color: #fff;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 0.02em;
}

.nav-cta:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: scale(1.04);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #000;
    overflow: hidden;
    padding: 0 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-headline {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(4.4rem, 12.9vw, 13.8rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    color: #fff;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

/* Portrait image behind the hero text */
.hero-portrait {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(260px, 30vw, 420px);
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 50%;
    opacity: 0;
    z-index: 1;
    mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, #000 40%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, #000 40%, transparent 72%);
    pointer-events: none;
}

.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(60px);
    cursor: pointer;
    transition: color 0.35s ease, transform 0.35s ease, text-shadow 0.35s ease;
    transform-origin: center center;
}

.hero-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-line.visible:hover {
    color: #FFDF00;
    transform: scale(1.06);
    text-shadow: 0 0 40px rgba(255, 223, 0, 0.15);
}

.hero-sub {
    margin-top: 1.8rem;
    font-size: clamp(0.9rem, 1.2vw, 1.15rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    opacity: 0;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(14px);
        opacity: 0.2;
    }
}

.scroll-text {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

/* ---------- ABOUT ---------- */
.about {
    padding: 10rem 4rem;
    background: #000;
}

.about-inner {
    max-width: 900px;
}

.about-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    letter-spacing: 0.02em;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(50px);
}

.about-text {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.6);
    max-width: 680px;
    opacity: 0;
    transform: translateY(30px);
}

/* ---------- WORK — HORIZONTAL SCROLL ---------- */
.work {
    position: relative;
    background: #000;
    overflow: hidden;
}

.work-wrapper {
    overflow: hidden;
}

.work-track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 0 5vw;
    height: 100vh;
    /* width set dynamically by GSAP */
}

.work-heading-panel {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40vw;
    min-width: 320px;
}

.work-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.work-card {
    flex-shrink: 0;
    position: relative;
    width: 25vw;
    min-width: 350px;
    height: 65vh;
    max-height: 500px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.work-card:last-child {
    margin-right: 8vw;
}

.work-card:last-child img {
    object-position: 30% center;
}

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

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

.work-label {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* ---------- LIGHTBOX MODAL ---------- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        visibility 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    padding: 40px 20px;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-modal {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 50px auto;
    transform: translateY(30px) scale(0.96);
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox-overlay.active .lightbox-modal {
    transform: translateY(0) scale(1);
}

.lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2001;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 223, 0, 0.12);
    border-color: rgba(255, 223, 0, 0.3);
    color: #FFDF00;
    transform: rotate(90deg) scale(1.08);
}

.lightbox-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #fff;
    letter-spacing: 0.03em;
    text-align: center;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s 0.15s ease, transform 0.4s 0.15s ease;
}

.lightbox-overlay.active .lightbox-title {
    opacity: 1;
    transform: translateY(0);
}

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

.lightbox-grid-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.lightbox-overlay.active .lightbox-grid-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger delays for each grid item */
.lightbox-overlay.active .lightbox-grid-item:nth-child(1) {
    transition-delay: 0.1s;
}

.lightbox-overlay.active .lightbox-grid-item:nth-child(2) {
    transition-delay: 0.15s;
}

.lightbox-overlay.active .lightbox-grid-item:nth-child(3) {
    transition-delay: 0.2s;
}

.lightbox-overlay.active .lightbox-grid-item:nth-child(4) {
    transition-delay: 0.25s;
}

.lightbox-overlay.active .lightbox-grid-item:nth-child(5) {
    transition-delay: 0.3s;
}

.lightbox-overlay.active .lightbox-grid-item:nth-child(6) {
    transition-delay: 0.35s;
}

.lightbox-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox-grid-item:hover img {
    transform: scale(1.08);
}

/* Landscape mode for Events gallery */
.landscape-mode .lightbox-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.landscape-mode .lightbox-grid-item {
    aspect-ratio: 3 / 2;
}

.landscape-mode .lightbox-grid-item img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: 50% 25%;
}

.lightbox-grid-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-grid-item:hover::after {
    opacity: 1;
}

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

/* ---------- TESTIMONIALS ---------- */
.testimonials {
    padding: 10rem 4rem;
    background: #000;
}

.testimonials-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.testimonials-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 0.02em;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(40px);
}

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

.testimonial-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    opacity: 0;
    transform: translateY(40px);
    transition: border-color 0.35s ease;
}

.testimonial-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #333, #555);
    flex-shrink: 0;
}

.testimonial-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}

.testimonial-role {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 0.15rem;
}

/* ---------- CONTACT ---------- */
.contact {
    padding: 10rem 4rem;
    background: #000;
}

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

.contact-massive {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(4.5rem, 12vw, 11rem);
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(50px);
    cursor: pointer;
    transition: color 0.35s ease, transform 0.35s ease, text-shadow 0.35s ease;
    display: inline-block;
}

.contact-massive:hover {
    color: #FFDF00;
    transform: translateY(50px) scale(1.05);
    text-shadow: 0 0 50px rgba(255, 223, 0, 0.15);
}

.contact-massive.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-massive.visible:hover {
    color: #FFDF00;
    transform: scale(1.05);
    text-shadow: 0 0 50px rgba(255, 223, 0, 0.15);
}

.contact-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.4);
    max-width: 500px;
    margin: 0 auto 4rem;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
}

/* Form */
.contact-form {
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.6rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: #fff;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

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

.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.1rem 2.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
    background: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-submit:hover {
    background: #ddd;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.08);
}

.form-submit.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Form success message */
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    animation: successFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.form-success.show {
    display: flex;
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.form-success-icon {
    margin-bottom: 1.5rem;
    animation: checkPop 0.5s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes checkPop {
    from {
        opacity: 0;
        transform: scale(0.3);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.form-success-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.form-success-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.45);
    max-width: 400px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.form-success-btn {
    padding: 0.85rem 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-success-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: scale(1.04);
}

/* Contact social links */
.contact-links {
    margin-top: 3.5rem;
    text-align: center;
}

.contact-links-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.2rem;
}

.contact-links-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #FFDF00;
}

.contact-link svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

/* ---------- FOOTER ---------- */
.footer {
    padding: 3rem 4rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FFDF00;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .work-card {
        width: 400px;
        height: 55vh;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.2rem 1.5rem;
    }

    .nav-logo {
        font-size: 1.15rem;
    }

    .nav-cta {
        font-size: 0.78rem;
        padding: 0.55rem 1.2rem;
    }

    .hero {
        padding: 0 1.5rem;
    }

    .about,
    .testimonials,
    .contact {
        padding: 6rem 1.5rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .work-heading-panel {
        width: 80vw;
        min-width: 200px;
    }

    .work-card {
        width: 60vw;
        min-width: 260px;
        height: 55vh;
        max-height: 420px;
    }

    .work-track {
        padding: 0 1.5rem;
        gap: 1.5rem;
    }

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

    .lightbox-overlay {
        padding: 1.5rem;
    }

    .lightbox-close {
        width: 44px;
        height: 44px;
        top: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: clamp(3rem, 18vw, 5rem);
    }

    .about-heading,
    .work-title {
        font-size: 2.5rem;
    }

    .contact-massive {
        font-size: 3.5rem;
    }

    .work-card {
        width: 70vw;
        min-width: 240px;
        height: 50vh;
        max-height: 380px;
    }

    .lightbox-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}