@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --bg-main: #050505;
    --bg-secondary: #0a0a0a;
    --text-main: #ffffff;
    --text-muted: #9ca3af;

    /* Premium Accents - Amber Gold */
    --accent: #d4af37;
    --accent-glow: rgba(212, 175, 55, 0.5);
    --accent-dim: #8a7018;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);

    /* Spacing & Layout */
    --nav-height: 90px;
    --container-width: 1400px;

    /* Cursor */
    --cursor-size: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hide default cursor */
}

::selection {
    background: var(--accent);
    color: var(--bg-main);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-main);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline {
    width: var(--cursor-size);
    height: var(--cursor-size);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: width 0.2s, height 0.2s, background-color 0.2s, top 0.1s, left 0.1s;
}

body:hover .cursor-outline {
    width: 40px;
    height: 40px;
    border-color: var(--accent);
    background-color: rgba(212, 175, 55, 0.1);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(3.5rem, 5vw, 6rem);
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, #b3b3b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.75rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
}

/* Button - Magnetic Effect style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    background: transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
    text-decoration: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-main);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn:hover {
    color: var(--bg-main);
    border-color: var(--text-main);
}

.btn-primary {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-primary::before {
    background: var(--accent);
}

.btn-primary:hover {
    color: #000;
    box-shadow: 0 0 30px var(--accent-glow);
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 160px 0;
    position: relative;
}

.section-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0 auto 4rem auto;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
}

header.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    height: 80px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px;
    z-index: 1010;
}

.logo span {
    color: var(--accent);
    font-style: italic;
}

.desktop-nav ul {
    display: flex;
    gap: 3rem;
    list-style: none;
    /* Removed default bullets */
}

.desktop-nav a {
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    position: relative;
    transition: color 0.3s ease;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--text-main);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    animation: kenBurns 20s infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.3) 0%, rgba(5, 5, 5, 0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: block;
}

/* --- SERVICES SECTION --- */
.services-wrapper {
    position: relative;
    padding: 2rem 0;
}

.services-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    padding: 3rem 2rem;
    border-radius: 4px;
    /* Premium Sharpness */
    width: 350px;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-top: 1.5rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.service-card:hover .service-image {
    opacity: 1;
}

/* Services Grid (Inner Page) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* --- PORTFOLIO SECTION --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 0;
    /* Seamless grid */
}

.portfolio-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: block;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-title {
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    color: var(--text-main);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-category {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.portfolio-item:hover .portfolio-title,
.portfolio-item:hover .portfolio-category {
    transform: translateY(0);
}

/* --- CONTACT SECTION --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    border-radius: 4px;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    color: var(--text-main);
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

/* --- MOBILE MENU --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-main);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
}

.mobile-menu li {
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-menu.active li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-link {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--text-main);
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--text-main);
    cursor: pointer;
}

/* --- LIGHTBOX --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border: 1px solid var(--glass-border);
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
}

/* Animations */
[data-scroll] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

[data-scroll].scrolled-in {
    opacity: 1;
    transform: translateY(0);
}

/* Page Header (Inner Pages) */
.page-header {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.7) 0%, var(--bg-main) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 0.5rem;
    /* Override gradient text for better visibility on images */
    background: none;
    -webkit-text-fill-color: initial;
    color: #ffffff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.page-header p {
    position: relative;
    z-index: 2;
    text-align: center;
    font-size: 1.3rem;
    color: var(--accent);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 1;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    z-index: 1010;
}

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .section {
        padding: 100px 0;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

/* Contact Info Styles */
.contact-info h2,
.contact-form-container h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-right: 1.5rem;
    margin-top: 0.3rem;
    width: 25px;
    text-align: center;
}

.info-item strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 0.2rem;
    font-family: 'Playfair Display', serif;
}

.info-item p,
.info-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.info-item a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-main);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--accent);
    color: var(--bg-main);
    border-color: var(--accent);
}

/* --- MOBİL İÇİN DÜZELTMELER (Final) --- */
@media (max-width: 768px) {

    /* İMLEÇ GİZLEME (Dokunmatik ekranlarda ve mobilde kesin çözüm) */
    @media (pointer: coarse),
    (hover: none),
    (max-width: 768px) {

        .cursor-dot,
        .cursor-outline {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }

        * {
            cursor: auto !important;
        }
    }

    /* Genel Taşmaları Engelle */
    html,
    body {
        overflow-x: hidden !important;
        width: 100%;
        position: relative;
    }

    /* Hero Bölümü: Düğmeleri Alt Alta Al */
    .hero-content {
        padding: 0 1rem;
        /* Ekran kenarına yapışmasın */
        width: 100%;
    }

    .hero-content>div {
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100%;
        max-width: 320px;
        /* Mobilde taşmasın */
        margin: 0 auto;
    }

    .hero-content .btn {
        width: 100%;
        /* Tam genişlik */
        display: flex;
        justify-content: center;
        margin: 0;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        /* Başlığı mobilde küçült */
        line-height: 1.2;
        word-wrap: break-word;
        /* Uzun kelimeler taşmasın */
    }

    .hero-content p {
        font-size: 1rem !important;
        padding: 0 10px;
    }

    /* Kenar Boşluklarını Ayarla */
    .container {
        padding: 0 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
        /* İçerik taşmasını kes */
    }

    .section {
        padding: 60px 0;
        /* Boşlukları azalt */
    }

    /* Header (Menü) */
    .logo {
        font-size: 1.5rem;
        /* Logoyu biraz küçült */
    }

    /* Hizmetleri ve Portfolyoyu Tek Sıraya Diz */
    .services-grid,
    .portfolio-grid,
    .services-carousel {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        width: 100%;
        margin-bottom: 2rem;
    }

    /* İletişim Formunu Rahatlat */
    .form-group input,
    .form-group textarea {
        padding: 1.2rem 0;
        /* Parmakla basmak kolay olsun */
        font-size: 1.1rem;
    }

    .contact-wrapper {
        padding: 2rem 1rem;
        /* Daha dar padding */
        grid-template-columns: 1fr;
    }

    /* Menü Üstüne Binmeyi Engelle */
    section[id] {
        scroll-margin-top: 100px;
    }
}