/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Varsayılan (Açık) Tema Değişkenleri */
    --bg-color: #fafafa;
    --second-bg-color: #ffffff;
    --text-color: #1a1a1a;
    --text-secondary: #6b6b6b;
    --main-color: #0a0a0a;
    --accent-color: #444444;
    --hover-color: #f0f0f0;
    --card-bg: rgba(0, 0, 0, 0.03);
    --border-color: rgba(0, 0, 0, 0.08);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --accent-blue: #188AEC;
}

/* Koyu Tema Sınıfı */
body.dark-mode {
    --bg-color: #0a0a0a;
    --second-bg-color: #111111;
    --text-color: #f0f0f0;
    --text-secondary: #888888;
    --main-color: #ffffff;
    --accent-color: #d4d4d4;
    --hover-color: #1a1a1a;
    --card-bg: rgba(255, 255, 255, 0.04);
    --border-color: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: var(--font-body);
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Grid Arka Plan */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black 30%, transparent 100%);
}

body.dark-mode .grid-bg {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* Navigasyon Barı */
.navbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 1200px;
    padding: 0.85rem 1.8rem;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 100px;
    transition: background 0.3s ease;
}

body.dark-mode .navbar {
    background: rgba(18, 18, 18, 0.8);
    border-color: rgba(255, 255, 255, 0.06);
}

.logo {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--text-secondary);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

@media (min-width: 769px) {
    .nav-links {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

@media (max-width: 1100px) and (min-width: 769px) {
    .nav-links {
        gap: 1.2rem;
    }
    .nav-links a {
        font-size: 0.85rem;
    }
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    transition: color .3s ease;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

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

.btn-contact {
    padding: 0.5rem 1.5rem;
    background: var(--text-color);
    border-radius: 2rem;
    color: var(--bg-color) !important;
    font-weight: 500 !important;
    transition: 0.3s ease;
    font-size: 0.85rem !important;
}

body.dark-mode .btn-contact {
    color: var(--bg-color) !important;
}

.btn-contact:hover {
    opacity: 0.85;
}

/* Hamburger Menü Stilleri */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 101;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-color);
    border-radius: 3px;
}

section {
    min-height: 100vh;
    padding: 10rem 9% 6rem;
}

.heading {
    text-align: center;
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Footer */
.status-iframe-dark {
    display: none;
}

body.dark-mode .status-iframe-dark {
    display: block;
}

body.dark-mode .status-iframe-light {
    display: none;
}

footer {
    background: var(--second-bg-color);
    padding: 4rem 9% 2rem;
    border-top: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col:nth-child(1) {
    flex: 2;
    min-width: 250px;
    padding-right: 2rem;
}

.footer-col:nth-child(2),
.footer-col:nth-child(3),
.footer-col:nth-child(4) {
    flex: 1;
    min-width: 150px;
}

.footer-col h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 800;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-col p {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.7;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--main-color);
    opacity: 1;
    padding-left: 5px;
}

.footer-social-links {
    display: flex;
    gap: 1rem;
}

.footer-social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: 0.3s ease;
}

body.dark-mode .footer-social-links a {
    background: rgba(255, 255, 255, 0.06);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Tema Değiştirici */
.theme-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
}

.theme-toggle-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.theme-toggle-btn:hover {
    background: var(--hover-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.theme-toggle-btn i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Light mode state (varsayılan): Sun visible, Moon hidden top */
.theme-toggle-btn .fa-sun {
    top: 50%;
    opacity: 1;
}
.theme-toggle-btn .fa-moon {
    top: -50%;
    opacity: 0;
}

/* Dark mode state: Moon visible, Sun hidden bottom */
body.dark-mode .theme-toggle-btn .fa-moon {
    top: 50%;
    opacity: 1;
}
body.dark-mode .theme-toggle-btn .fa-sun {
    top: 150%;
    opacity: 0;
}

/* Sosyal Medya İkonları Hover Animasyonları */
.social-icons a:hover,
.footer-social-links a:hover {
    transform: translateY(-3px) scale(1.05);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.social-icons a.social-github:hover,
.footer-social-links a.social-github:hover {
    background: #333;
    border-color: #333;
}

.social-icons a.social-linkedin:hover,
.footer-social-links a.social-linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.social-icons a.social-instagram:hover,
.footer-social-links a.social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
}

.social-icons a.social-mail:hover,
.footer-social-links a.social-mail:hover {
    background: #ea4335;
    border-color: #ea4335;
}

/* Animasyonlar */
.hidden-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.hidden-scroll-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease;
}

.hidden-scroll-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease;
}

.show-scroll {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* Modal Stilleri */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
    object-fit: contain;
}

iframe.modal-content {
    width: 80%;
    height: 80vh;
}

@keyframes zoomIn {
    from {transform: translate(-50%, -50%) scale(0.8); opacity: 0;}
    to {transform: translate(-50%, -50%) scale(1); opacity: 1;}
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.close-modal:hover,
.close-modal:focus {
    color: #ef5350;
    text-decoration: none;
    cursor: pointer;
}

/* Global Responsive */
@media (max-width: 991px) {
    .navbar {
        width: calc(100% - 2rem);
        padding: 0.8rem 1.5rem;
    }

    section {
        padding: 10rem 4% 4rem;
    }

    footer {
        padding: 4rem 4% 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(250, 250, 250, 0.97);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateY(-100%);
        transition: transform 0.4s ease-in-out;
        z-index: 99;
    }

    body.dark-mode .nav-links {
        background: rgba(10, 10, 10, 0.97);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.3rem;
        color: var(--text-color);
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) a {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) a {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) a {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) a {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) a {
        transition-delay: 0.5s;
    }

    .nav-links.active li:nth-child(6) a {
        transition-delay: 0.6s;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}