/* ============================================
   UpaMedya — Dark Modern Landing Page
   Colors: Black (#0a0a0a), Anthracite (#141414), Orange (#FF6B2C), White (#FFF)
   ============================================ */

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

:root {
    --black: #0a0a0a;
    --anthracite: #141414;
    --anthracite-2: #1c1c1c;
    --orange: #FF6B2C;
    --orange-hover: #ff7d45;
    --white: #ffffff;
    --gray-100: #e5e5e5;
    --gray-300: #a3a3a3;
    --gray-500: #737373;
    --gray-700: #2a2a2a;
    --gray-800: #1f1f1f;
    --border: rgba(255, 255, 255, 0.08);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Yatay kaymayı tamamen kapat: body'de tek başına yeterli olmuyor,
       html elementi kaymaya devam ediyor. */
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--white);
    background-color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
    /* Yatay lastik/esneme efektini engelle */
    overscroll-behavior-x: none;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 1px 0 var(--border);
}

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

.nav-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

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

.nav-links a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--orange);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

/* ---- HERO (Banner) ---- */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    overflow: hidden;
}

.hero-banner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 38px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 44, 0.35);
}

.btn-instagram {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--border);
}

.btn-instagram svg {
    width: 20px;
    height: 20px;
}

.btn-instagram:hover {
    background: #E1306C;
    border-color: #E1306C;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(225, 48, 108, 0.35);
}

/* ---- SECTIONS ---- */
.section {
    padding: 120px 0;
}

.section-title {
    font-family: var(--font-sans);
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--white);
}

.section-desc {
    font-size: 17px;
    color: var(--gray-300);
    font-weight: 300;
    margin-bottom: 60px;
    max-width: 640px;
}

/* ---- HAKKIMIZDA ---- */
.about {
    background: var(--anthracite);
}

.about .section-title {
    text-align: center;
}

.about-lead {
    max-width: 800px;
    margin: 0 auto 56px;
    text-align: center;
    font-size: clamp(19px, 2.2vw, 25px);
    font-weight: 300;
    line-height: 1.55;
    letter-spacing: -0.3px;
    color: var(--gray-100);
}

/* Uc paragraf iki sutuna akiyor; paragraflar sutun ortasindan bolunmuyor. */
.about-text {
    max-width: 940px;
    margin: 0 auto;
    columns: 2;
    column-gap: 52px;
}

.about-text p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.85;
    color: var(--gray-300);
    margin-bottom: 22px;
    break-inside: avoid;
}

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

.about-closing {
    max-width: 800px;
    margin: 52px auto 0;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--white);
}

/* ---- SERVICES ---- */
.services {
    background: var(--anthracite);
}

.services .section-title,
.services .section-desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--anthracite-2);
    padding: 48px 32px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    border-color: var(--orange);
    transform: translateY(-6px);
    background: #232323;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.service-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 28px;
    color: var(--orange);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--white);
    letter-spacing: -0.3px;
}

.service-card p {
    font-size: 14.5px;
    color: var(--gray-300);
    line-height: 1.7;
    font-weight: 300;
}

/* ---- PORTFOLIO (Pinterest Grid) ---- */
.portfolio {
    background: var(--black);
}

.portfolio .section-title,
.portfolio .section-desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-grid {
    columns: 3;
    column-gap: 20px;
}

.portfolio-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--anthracite);
}

.portfolio-video {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s;
    filter: brightness(0.92);
    background: var(--anthracite);
}

.portfolio-item.tall .portfolio-video {
    height: 460px;
}

.portfolio-img {
    width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    filter: brightness(0.9);
}

.portfolio-item.tall .portfolio-img {
    height: 460px;
}

.portfolio-play {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0.85;
    transition: all 0.3s;
    z-index: 2;
    pointer-events: none;
}

.portfolio-play svg {
    width: 16px;
    height: 16px;
    margin-left: 2px;
}

.portfolio-item:hover .portfolio-play {
    background: var(--orange);
    opacity: 1;
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-video,
.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.portfolio-overlay h3 {
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.portfolio-overlay p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

/* ---- VIDEO MODAL ---- */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.video-modal.open {
    display: flex;
    animation: modalFade 0.3s ease-out;
}

@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.video-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 3;
}

.video-modal-close:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: rotate(90deg);
}

.video-modal-close svg {
    width: 22px;
    height: 22px;
}

.video-modal-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-player {
    width: 100%;
    max-height: 85vh;
    display: block;
    background: #000;
    outline: none;
}

body.modal-open {
    overflow: hidden;
}

/* ---- CLIENTS ---- */
.clients {
    background: var(--anthracite);
    padding: 100px 0;
}

.clients .section-title {
    text-align: center;
    margin-bottom: 60px;
    margin-left: auto;
    margin-right: auto;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    align-items: center;
}

/* Logolar orijinal marka renkleriyle gosteriliyor. Cogu koyu renkli oldugu
   icin kartlarin zemini beyaz; koyu zeminde bu logolarin yarisi kaybolurdu. */
.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    background: var(--white);
    transition: all 0.4s;
}

.client-logo:hover {
    border-color: var(--orange);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.client-logo img {
    width: 100%;
    max-width: 140px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.4s;
}

.client-logo:hover img {
    transform: scale(1.06);
}

/* Tek renk beyaz cizilmis logolar beyaz kartta gorunmez; siyaha cevriliyor. */
.client-logo.invert img {
    filter: invert(1);
}

/* Beyaz + renkli birlikte kullanilan logo ters cevrilemez (renkler bozulur),
   bu yuzden kendi karti koyu kaliyor. */
.client-logo.on-dark {
    background: var(--black);
    border-color: rgba(255, 255, 255, 0.14);
}

/* ---- EKIP ---- */
.team {
    background: var(--black);
}

.team .section-title,
.team .section-desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.team .section-desc {
    margin-bottom: 60px;
}

/* 5 uye satira 3+2 olarak diziliyor. Grid kullanilsa son satirdaki iki kart
   sola yaslanip sagda bos hucre birakirdi; flex + center ile ortalaniyor. */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
}

.team-member {
    flex: 0 1 calc((100% - 56px) / 3);
    max-width: calc((100% - 56px) / 3);
}

.team-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 12px;
    background: var(--anthracite-2);
    border: 1px solid var(--border);
    transition: border-color 0.4s;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-member:hover .team-photo {
    border-color: var(--orange);
}

.team-member:hover .team-photo img {
    transform: scale(1.05);
}

/* ---- CONTACT ---- */
.contact {
    background: var(--black);
}

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

.contact-info .section-title {
    margin-bottom: 20px;
}

.contact-info .section-desc {
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
    color: var(--gray-300);
}

.contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--orange);
    flex-shrink: 0;
}

a.contact-item {
    text-decoration: none;
    transition: color 0.3s;
}

a.contact-item:hover {
    color: var(--white);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px 22px;
    font-family: var(--font-sans);
    font-size: 15px;
    border: 1px solid var(--border);
    background: var(--anthracite-2);
    color: var(--white);
    outline: none;
    transition: all 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--gray-500);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--orange);
    background: var(--anthracite);
}

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

.contact-form .btn {
    align-self: flex-start;
}

/* Bot tuzağı — ekranda ve ekran okuyucuda görünmez, ama botlar doldurur */
.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    font-size: 14px;
    line-height: 1.5;
    min-height: 21px;
    margin: 0;
}

.form-status.success {
    color: #22c55e;
}

.form-status.error {
    color: #ef4444;
}

/* ---- FOOTER ---- */
.footer {
    background: var(--anthracite);
    padding: 60px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-logo img {
    height: 36px;
    filter: brightness(0) invert(1);
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: var(--gray-300);
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--orange);
}

.footer-social svg {
    width: 22px;
    height: 22px;
}

.footer-copy {
    font-size: 13px;
    color: var(--gray-500);
    letter-spacing: 0.3px;
}

/* ---- ANIMATIONS (Scroll Reveal) ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ---- SABIT ILETISIM BUTONLARI ---- */
/* z-index 900: mobil menunun (999) ve video modalin (2000) altinda kalir,
   boylece onlar acikken butonlar ustlerine binmez. */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.fc-btn svg {
    width: 26px;
    height: 26px;
}

.fc-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

.fc-whatsapp {
    background: #25D366;
}

.fc-phone {
    background: var(--orange);
}

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

    .about-text {
        columns: 1;
    }

    .about-lead {
        margin-bottom: 40px;
    }

    .about-closing {
        margin-top: 40px;
        padding-top: 32px;
        font-size: 17px;
    }

    .portfolio-grid {
        columns: 2;
    }

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

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    /* Mobilde banner yüksekliği görselin en-boy oranından gelir, ekran
       yüksekliğinden değil. Adres çubuğu gizlenip açıldıkça dvh değişiyor
       ve contain'li görsel her seferinde yeniden ölçekleniyordu. */
    .hero {
        height: auto;
        min-height: 0;
        padding-top: 70px;
        background: var(--black);
    }

    .hero-banner {
        height: auto;
        width: 100%;
        display: block;
    }

    .hero-banner picture {
        display: block;
        width: 100%;
        height: auto;
    }

    .hero-banner img {
        width: 100%;
        height: auto;
        aspect-ratio: 9 / 16;
        object-fit: contain;
        object-position: center;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--black);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links.open a {
        color: var(--white) !important;
        font-size: 20px;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .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);
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-card {
        padding: 36px 28px;
    }

    .portfolio-grid {
        columns: 1;
    }

    .portfolio-img,
    .portfolio-video {
        height: 280px;
    }

    .portfolio-item.tall .portfolio-img,
    .portfolio-item.tall .portfolio-video {
        height: 380px;
    }

    .video-modal {
        padding: 16px;
    }

    .video-modal-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }

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

    .team-grid {
        gap: 20px;
    }

    .team-member {
        flex: 0 1 calc((100% - 20px) / 2);
        max-width: calc((100% - 20px) / 2);
    }

    .floating-contact {
        right: 16px;
        bottom: 16px;
        gap: 10px;
    }

    .fc-btn {
        width: 48px;
        height: 48px;
    }

    .fc-btn svg {
        width: 23px;
        height: 23px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-form .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 30px;
    }
}
