/* --- 1. DEĞİŞKENLER VE TEMEL AYARLAR --- */
:root {
    --gold: #c5a059;
    --dark: #111111;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- 2. NAVBAR --- */
nav {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 8%;
    z-index: 9999;
    transition: opacity 0.4s ease;
    background: transparent;
}

nav.scrolled {
    opacity: 0;
    pointer-events: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none !important;
    white-space: nowrap;
    transition: 0.5s;
}

.nav-logo-img {
    height: 10.5rem;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff !important;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--gold) !important;
}

/* Hamburger İkonu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 10002;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.3s;
}

/* --- 3. HERO VE BÖLÜMLER --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin: 20px 0;
}

.subtitle {
    letter-spacing: 8px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.cta-button {
    padding: 15px 40px;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cta-button:hover {
    background: white;
    color: var(--dark);
}

.portfolio-section {
    padding: 100px 8%;
}

.section-intro {
    text-align: center;
    margin-bottom: 60px;
}

.section-intro h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
}

.line {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 20px auto;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-card {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #222;
}

.card-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
}

.card-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease;
    display: block;
}

.card-slide.active {
    opacity: 1;
}

.project-card:hover .card-slide.active {
    transform: scale(1.05);
}

.card-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.project-card:hover .card-arrow {
    opacity: 1;
}

.card-arrow:hover {
    background: var(--gold);
    border-color: var(--gold);
}

.card-prev {
    left: 20px;
}

.card-next {
    right: 20px;
}

/* Overlay */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: white;
    transition: 0.4s;
    z-index: 2;
}

.project-card:hover .overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
}

.about-section {
    padding: 120px 8%;
    background: #fff;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-image {
    flex: 1;
    position: relative;
    height: 600px;
}

.about-image:hover .about-arrow {
    opacity: 1;
}

.about-image img,
.about-image .card-slider {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--gold);
    color: white;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text h1,
.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 30px;
    line-height: 1.2;
}

.about-signature {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.about-signature p {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: var(--dark);
    margin-bottom: 5px;
}

.services-section {
    display: flex;
    padding: 100px 8%;
    background: #111;
    color: white;
}

.service-item {
    flex: 1;
    padding: 0 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-section {
    padding: 120px 8%;
    background: #f9f9f9;
    text-align: center;
}

.contact-form {
    max-width: 700px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 20px;
    border: 1px solid #ddd;
    outline: none;
}

.send-button {
    background: #111;
    color: white;
    padding: 20px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

/* --- 4. FOOTER --- */
.main-footer {
    background: #0f0f0f;
    color: #ffffff;
    padding: 80px 8% 30px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

.footer-box {
    flex: 1;
    min-width: 250px;
}

.footer-box h4 {
    color: var(--gold);
    margin-bottom: 25px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icons img {
    width: 24px;
    filter: invert(1);
    opacity: 0.6;
}

/* --- 5. LİNK RENKLERİ --- */
.footer-box ul li a,
.links-box ul li a,
.nav-links a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.footer-box ul li a:visited,
.links-box ul li a:visited,
.nav-links a:visited {
    color: #ffffff !important;
}

.footer-box ul li a:hover,
.links-box ul li a:hover,
.nav-links a:hover {
    color: #c5a059 !important;
}

/* --- 6. FOOTER BOTTOM VE WHATSAPP --- */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    width: 100%;
    background: #0f0f0f;
}

.credits {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.ercu-signature {
    color: var(--gold) !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(197, 160, 89, 0.3);
}

.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #25d366;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

.floating-whatsapp img {
    width: 28px;
}

/* --- 7. MOBİL UYUMLULUK --- */
@media (max-width: 768px) {
    nav {
        padding: 15px 5%;
    }

    .logo {
        font-size: 0.9rem;
        gap: 6px;
        white-space: normal;
        max-width: 75vw;
    }

    .nav-logo-img {
        height: 2.5rem;
    }

    /* Hamburger sadece mobilde görünür */
    .menu-toggle {
        display: flex !important;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(15, 15, 15, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 10000;
        gap: 30px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        transition: right 0.4s ease-in-out;
    }

    /* Hamburger açıldığında */
    .nav-links.active {
        display: flex;
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        color: #fff !important;
    }

    .hero-content .subtitle {
        font-size: 0.65rem !important;
        white-space: nowrap !important;
        letter-spacing: 2px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .about-text h1,
    .about-text h2 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .about-container,
    .services-section {
        flex-direction: column;
        gap: 40px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        width: 100%;
        height: 400px;
        flex: none;
    }

    .about-text {
        flex: none;
    }

    .about-image img,
    .about-image .card-slider {
        height: 400px;
    }

    .experience-badge {
        right: 0;
        bottom: -20px;
    }
}

/* --- GALERI MODAL --- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.modal-images {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.modal-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.modal-slide.active {
    display: block;
}

.modal-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    text-align: center;
    color: white;
}

.modal-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.modal-info p {
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--gold);
}

/* Noktalar */
.modal-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: 0.3s;
    border: none;
}

.modal-dot.active {
    background: var(--gold);
    transform: scale(1.3);
}

/* Oklar */
.modal-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-arrow:hover {
    background: var(--gold);
    border-color: var(--gold);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* Kapat butonu */
.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #e74c3c;
    border-color: #e74c3c;
}

/* Mobilde okları küçült */
@media (max-width: 768px) {
    .modal-arrow {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .modal-prev {
        left: 8px;
    }

    .modal-next {
        right: 8px;
    }

    .modal-info h3 {
        font-size: 1.3rem;
    }
}