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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f0f2f5;
}

/* -------------------- */
/* HERO */
.hero {
    height: 100vh;
    background: url('img/hero.jpg') center/cover no-repeat fixed;
    position: relative;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 5%;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hero-content-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 40px; /* resim ve yazı arası boşluk */
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap; /* taşarsa alt satıra geçebilir */
    justify-content: flex-start; /* soldan başla */
}

.hero-photo img {
    height: 70vh;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.hero-photo img:hover {
    transform: scale(1.02);
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
    flex: 1; /* boş alanı kaplasın */
}


.hero-text h1 {
    font-size: 55px;
    font-weight: 700;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.hero-text p {
    font-size: 22px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* -------------------- */
/* NAVBAR */
.nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.25);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-container.shrink {
    padding: 10px 40px;
    background: rgba(255,255,255,0.65);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.logo img {
    height: 80px;
    transition: transform 0.25s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.logo span {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 6px #000;
}

/* NAV */
nav {
    display: flex;
    flex-grow: 1;
    justify-content: flex-end;
}

nav ul {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    list-style: none;
}

nav a {
    color: white;
    font-weight: 500;
    font-size: 17px;
    text-decoration: none;
    padding: 8px 14px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    color: #00d9ff;
}

nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg,#00d9ff,#00ffa5);
    transition: all 0.35s ease;
    border-radius: 3px;
}

nav a:hover::after {
    width: 70%;
    left: 15%;
}

nav a.active {
    color: #00ffa5;
}

nav a.active::after {
    width: 80%;
    left: 10%;
}

/* -------------------- */
/* SECTIONS */
.section {
    padding: 100px 12%;
}

h2 {
    font-size: 32px;
    margin-bottom: 25px;
    font-weight: 600;
    color: #222;
    border-left: 6px solid #007bff;
    padding-left: 12px;
}

p {
    font-size: 18px;
    line-height: 1.75;
    color: #333;
}

/* -------------------- */
/* PROJELER */
.projects {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.project-card {
    background: white;
    padding: 25px;
    width: 320px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}



#iletisim {
    text-align: center;
    padding: 40px 20px;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    font-size: 18px;
}

.contact-container a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
}

.contact-container a:hover {
    text-decoration: underline;
}

.social-links {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/* -------------------- */
/* FOOTER */
footer {
    padding: 30px;
    text-align: center;
    background: #111;
    color: #aaa;
    margin-top: 50px;
}



/* -------------------- */
/* GALERİ */

.gallery .gallery-item {
    display: none;
}


.load-more {
    margin: 20px auto;
    display: block;
    padding: 12px 20px;
    background: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-size: 16px;
}

.load-more:hover {
    background: #555;
}



.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item img {
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* -------------------- */
/* SERGİ AFİŞİ */
.sergi-afis {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 40px auto;
    border-radius: 12px;
    overflow: hidden;
}

.sergi-afis img {
    width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.sergi-afis img:hover {
    transform: scale(1.03);
}

.afis-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    padding: 25px 30px;
}

.afis-overlay h3 {
    font-size: 32px;
    margin-bottom: 10px;
}

.afis-overlay p {
    font-size: 18px;
}

.afis-aciklama {
    max-width: 700px;
    margin: 20px auto 40px auto;
    text-align: center;
}

.afis-aciklama h3 {
    font-size: 32px;
}

.afis-aciklama p {
    font-size: 18px;
    color: #333;
}

/* -------------------- */
/* ANİMASYON */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.7s ease forwards;
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* -------------------- */
/* MOBİL & TABLET */
@media (max-width: 1024px) {
    .hero-content-wrapper {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .hero-photo img {
        height: 50vh;
        width: 70%;
    }

    .hero-text h1 {
        font-size: 36px;
        white-space: normal;
    }

    .hero-text p {
        font-size: 16px;
    }

   /* NAVBAR MOBİLDE DE YATAY KALSIN */
@media (max-width: 1024px) {
    .nav-container {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: auto !important;
    }

    nav ul {
      
        flex-wrap: nowrap !important;
        width: auto !important;
        gap: 20px !important;
        margin-top: 0 !important;
    }

    nav a {
        font-size: 16px !important;
    }
}


    .section {
        padding: 80px 8%;
    }
}

@media (max-width: 480px) {
    nav a {
        font-size: 14px !important;
        padding: 6px 10px;
    }
}


@media (max-width: 768px) {

     .hero-content-wrapper {
        flex-direction: column; /* çok küçük ekranlarda alt alta */
        align-items: center;
        text-align: center;
    }

    .hero-text {
        flex: unset;
    }

    .hero-text span {
        font-size: 16px;
        white-space: normal; /* satır kırılabilir */
    }

    .hero-photo img {
        width: 90%;
        height: 40vh;
    }

    .logo span {
        font-size: 18px;
    }

    nav a {
        font-size: 18px;
    }

    .sergi-afis {
        max-width: 90%;
    }

    .afis-overlay h3 {
        font-size: 22px;
    }

    .afis-overlay p {
        font-size: 14px;
    }
}


/* LIGHTBOX */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none; /* başlangıçta gizli */
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.lightbox .close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s;
}

.lightbox .close:hover {
    color: #00d9ff;
}

/* Mobil uyumlu */
@media (max-width: 768px) {
    .lightbox .close {
        font-size: 32px;
        top: 20px;
        right: 25px;
    }
    .lightbox-img {
        max-width: 95%;
        max-height: 80%;
    }
}
