/* =============================================
   ROOT – RENK PALETİ
   ============================================= */
:root {
    --bg:           #f0f4ff;
    --text:         #1e293b;
    --muted:        #475569;
    --primary:      #3b82f6;
    --secondary:    #7c3aed;
    --white:        #ffffff;
    --card-bg:      rgba(255,255,255,0.80);
    --card-border:  rgba(59,130,246,0.15);
    --card-shadow:  0 8px 32px rgba(59,130,246,0.10);
    --nav-bg:       rgba(255,255,255,0.97);
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    background-image:
        radial-gradient(ellipse at 15% 20%, rgba(59,130,246,.12) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(124,58,237,.10) 0%, transparent 55%);
    background-attachment: fixed;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

/* =============================================
   TYPOGRAPHY & UTILITIES
   ============================================= */
.section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform .3s, box-shadow .3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 18px rgba(59,130,246,.35);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59,130,246,.5);
}

.btn-instagram {
    background: linear-gradient(45deg,#f09433,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888);
    color: #fff;
    font-size: 1.1rem;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(220,39,67,.35);
}
.btn-instagram:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(220,39,67,.55);
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 2px solid rgba(59,130,246,.12);
    box-shadow: 0 2px 24px rgba(59,130,246,.10);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: .9rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Logo */
.logo {
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity .2s;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

/* Menü açıkken navbar logosu gizlenir */
.navbar.menu-open .nav-logo { opacity: 0; pointer-events: none; }

/* Desktop nav links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links li a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: color .3s;
}
.nav-links li a:hover { color: var(--primary); }

/* Mobil menü içindeki logo — masaüstünde gizli */
.mobile-logo-item { display: none; }

/* Mobil menüdeki büyük logo */
.logo-img-menu {
    height: 60px;
}

/* Dil seçici */
.lang-switcher a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
}
.lang-switcher a.active { color: var(--primary); }

/* Hamburger */
#hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text);
    z-index: 1100;   /* her zaman en üstte */
    padding: 4px 8px;
    border-radius: 6px;
    transition: background .2s;
}
#hamburger-btn:hover { background: rgba(59,130,246,.08); }

/* =============================================
   SECTIONS (genel)
   ============================================= */
section {
    padding: 6rem 1.5rem 3rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* =============================================
   HERO
   ============================================= */
.hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-content { flex: 1; }

.hero-content h2 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--secondary);
    font-weight: 400;
    margin-bottom: .5rem;
}
.hero-content h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.typing-text {
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(.9rem, 2vw, 1.1rem);
    color: var(--muted);
    margin-bottom: 2rem;
    min-height: 28px;
}

.hero-image { flex: 1; display: flex; justify-content: flex-end; }

/* ── 3D Tilt Card ── */
.tilt-card {
    perspective: 1000px;
    display: inline-block;
}

.tilt-card .image-wrapper {
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.tilt-card:hover .image-wrapper {
    transform: rotateY(-15deg) rotateX(5deg) scale(1.03);
    box-shadow: 25px 25px 60px rgba(59,130,246,.20), -5px -5px 30px rgba(124,58,237,.10);
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.15);
    animation: float 6s ease-in-out infinite;
}
.image-wrapper img { width: 350px; height: auto; display: block; }

.glass-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.15), transparent);
    transition: opacity .5s;
}
.tilt-card:hover .glass-overlay {
    opacity: .6;
    background: linear-gradient(135deg, rgba(255,255,255,.25), rgba(59,130,246,.08));
}

@keyframes float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-18px); }
}
.tilt-card:hover .image-wrapper {
    animation: none; /* hover esnasında float durur */
}

/* =============================================
   ABOUT
   ============================================= */
.about-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--muted);
    margin-bottom: 1rem;
}

/* Hakkımda bölümü fotoğrafları */
.about-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.about-photo {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(59,130,246,.12);
    transition: transform .4s, box-shadow .4s;
}

.about-photo:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 30px rgba(59,130,246,.22);
}

.about-photo img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.interests h3 { margin-bottom: 1rem; color: var(--primary); }

.interests-list { list-style: none; }
.interests-list li {
    padding: 10px 14px;
    margin-bottom: 10px;
    background: rgba(59,130,246,.06);
    border-radius: 8px;
    font-size: 1rem;
    transition: transform .3s, background .3s, color .3s;
}
.interests-list li:hover {
    transform: translateX(10px);
    background: rgba(59,130,246,.15);
    color: var(--primary);
}

/* =============================================
   GALLERY – SLIDER
   ============================================= */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    height: 440px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.slider { width: 100%; height: 100%; }

.slide {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
}
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

.slider-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.45);
    color: #fff;
    border: none;
    width: 48px; height: 48px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background .3s;
    z-index: 10;
    display: flex; align-items: center; justify-content: center;
}
.slider-btn:hover { background: var(--primary); }
.prev-btn { left: 14px; }
.next-btn { right: 14px; }

.slider-dots {
    position: absolute;
    bottom: 16px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 10;
}
.dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: background .3s;
}
.dot.active { background: var(--primary); }

/* =============================================
   ACTIVITIES
   ============================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    padding: 0; overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(59,130,246,.18);
    border-color: var(--primary);
}

.project-img { width: 100%; height: 200px; overflow: hidden; }
.project-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.project-card:hover .project-img img { transform: scale(1.08); }

.project-content { padding: 1.4rem; }
.project-content h3 { margin-bottom: .7rem; font-size: 1.2rem; }
.project-content p { color: var(--muted); line-height: 1.6; font-size: .97rem; }

/* =============================================
   CONTACT
   ============================================= */
.contact-container {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}
.contact-info p {
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    text-align: center;
    padding: 2rem 1rem;
    border-top: 2px solid rgba(59,130,246,.10);
    margin-top: 3rem;
    color: var(--muted);
    font-size: .9rem;
}

/* =============================================
   RESPONSIVE – Tablet ≤ 900px
   ============================================= */
@media (max-width: 900px) {
    .hero { flex-direction: column; text-align: center; gap: 2rem; padding-top: 7rem; }
    .hero-image { justify-content: center; }
    .image-wrapper img { width: 300px; }
    .about-container { grid-template-columns: 1fr; }
    .slider-container { height: 360px; }
}

/* =============================================
   RESPONSIVE – Mobil ≤ 768px
   ============================================= */
@media (max-width: 768px) {

    /* Hamburger göster */
    #hamburger-btn { display: flex; align-items: center; justify-content: center; }

    /* Desktop nav gizle */
    .nav-links {
        /* Başlangıçta gizli — tam ekran overlay */
        display: none;
        position: fixed;
        inset: 0;              /* top:0 left:0 right:0 bottom:0 */
        width: 100vw;
        height: 100vh;
        background: rgba(255,255,255,.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.4rem;
        z-index: 1050;
        padding: 2rem 1rem;
        overflow-y: auto;
    }
    .nav-links.active { display: flex; }

    /* Menü içi logo */
    .mobile-logo-item {
        display: block;
        margin-bottom: 1rem;
        border-bottom: 2px solid rgba(59,130,246,.15);
        padding-bottom: 1rem;
        width: 100%;
        text-align: center;
    }
    .logo-in-menu { font-size: 2rem; letter-spacing: 3px; }

    /* Menü linkleri */
    .nav-links li a {
        font-size: 1.3rem;
        font-weight: 600;
        color: var(--text);
    }
    .nav-links li a:hover { color: var(--primary); }

    /* Navbar logosu menü açıkken gizle */
    .navbar.menu-open .nav-logo {
        opacity: 0;
        pointer-events: none;
    }

    /* Hamburger üstte kalsın */
    #hamburger-btn { position: relative; z-index: 1100; }

    /* Hero */
    .hero {
        flex-direction: column-reverse;
        padding-top: 6.5rem;
        padding-bottom: 2rem;
        gap: 1.5rem;
        min-height: auto;
    }
    .image-wrapper img { width: 132px; }
    .hero-buttons { display: flex; justify-content: center; }

    /* Section titles */
    .section-title { font-size: 1.8rem; margin-bottom: 2rem; }

    /* About */
    .about-container { grid-template-columns: 1fr; gap: 1.5rem; }
    .about-photos { grid-template-columns: 1fr 1fr; gap: .8rem; }
    .about-photo img { height: 140px; }

    /* Slider */
    .slider-container { height: 240px; }
    .slider-btn { width: 38px; height: 38px; font-size: 1rem; }

    /* Activities */
    .projects-grid { grid-template-columns: 1fr; }
    .project-img { height: 180px; }

    /* Glass cards */
    .glass-card { padding: 1.3rem; }
}

/* =============================================
   RESPONSIVE – Küçük Telefon ≤ 480px
   ============================================= */
@media (max-width: 480px) {
    section { padding: 5.5rem 1rem 1.5rem; }
    .hero-content h1 { font-size: 1.8rem; }
    .logo-img { height: 32px; }
    .logo-img-menu { height: 48px; }
    .slider-container { height: 190px; }
    .slider-btn { width: 32px; height: 32px; font-size: .85rem; }
    .project-img { height: 150px; }
    .btn { padding: 10px 20px; font-size: .95rem; }
}
