/* ==========================================================================
   MAXICODE CORE - STYLE.CSS (GLOBAL ONLY)
   ========================================================================== */

:root {
    --bg: #ffffff;
    --card-bg: rgba(245, 245, 247, 0.6);
    --text: #1d1d1f;
    --text-dim: #6e6e73;
    --primary: #0066cc;
    --primary-hover: #0077ed;
    --border: rgba(0, 0, 0, 0.08);
    --header-bg: rgba(255, 255, 255, 0.7);
    --radius: 24px;
    --shadow: 0 8px 30px rgba(0,0,0,0.04);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-theme="dark"] {
    --bg: #000000;
    --card-bg: rgba(28, 28, 30, 0.6);
    --text: #f5f5f7;
    --text-dim: #a1a1a6;
    --primary: #0071e3;
    --primary-hover: #0077ed;
    --border: rgba(255, 255, 255, 0.1);
    --header-bg: rgba(28, 28, 30, 0.7);
    --shadow: 0 8px 40px rgba(0,0,0,0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-main); -webkit-font-smoothing: antialiased; }

html { 
    scroll-behavior: smooth; 
    overflow-x: hidden;
    width: 100%;
}

body { 
    background-color: var(--bg); 
    color: var(--text); 
    line-height: 1.5; 
    transition: background-color 0.4s ease; 
    position: relative; 
    width: 100%;
    min-height: 100vh;
}

/* Ensure background glow is visible through body if needed */
[data-theme="light"] body { background-color: rgba(255, 255, 255, 0.92); }
[data-theme="dark"] body { background-color: rgba(0, 0, 0, 0.92); }

/* REVEAL ANIMATION SYSTEM */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.reveal {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

.reveal.active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.reveal-left {
    opacity: 0;
    transform: translate3d(-40px, 0, 0);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

.reveal-left.active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.reveal-right {
    opacity: 0;
    transform: translate3d(40px, 0, 0);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

.reveal-right.active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.reveal-scale {
    opacity: 0;
    transform: scale3d(0.96, 0.96, 1);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale3d(1, 1, 1);
}

/* GENİŞLETİLMİŞ CONTAINER */
.container { 
    width: 100%; 
    max-width: 1400px; 
    margin-left: auto; 
    margin-right: auto; 
    padding: 0 40px; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* IŞIK HÜZMELERİ (MESH GRADIENT) ANIMATED */
.glow-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.25; transition: opacity 0.5s ease; }
[data-theme="dark"] .glow { opacity: 0.35; }

@media (max-width: 768px) {
    .glow { filter: blur(80px); opacity: 0.4; }
    .glow-1 { width: 80vw; height: 80vw; }
    .glow-2 { width: 70vw; height: 70vw; }
    .glow-3 { width: 75vw; height: 75vw; }
    .glow-4 { width: 60vw; height: 60vw; }
}

@keyframes float-1 {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(10vw, 10vh) scale(1.1) rotate(120deg); }
    66% { transform: translate(-5vw, 20vh) scale(0.9) rotate(240deg); }
    100% { transform: translate(0, 0) scale(1) rotate(360deg); }
}

@keyframes float-2 {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(-15vw, 15vh) scale(1.2) rotate(-120deg); }
    66% { transform: translate(10vw, -10vh) scale(0.8) rotate(-240deg); }
    100% { transform: translate(0, 0) scale(1) rotate(-360deg); }
}

@keyframes float-3 {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(12vw, -15vh) scale(1.15) rotate(180deg); }
    66% { transform: translate(-18vw, 10vh) scale(0.85) rotate(0deg); }
    100% { transform: translate(0, 0) scale(1) rotate(-180deg); }
}

@keyframes float-4 {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(-10vw, -10vh) scale(1.1) rotate(90deg); }
    66% { transform: translate(15vw, 5vh) scale(0.9) rotate(180deg); }
    100% { transform: translate(0, 0) scale(1) rotate(270deg); }
}

.glow-1 { 
    top: -10%; left: -10%; width: 45vw; height: 45vw; background: var(--primary); 
    animation: float-1 25s infinite ease-in-out;
}
.glow-2 { 
    top: 20%; right: -10%; width: 35vw; height: 35vw; background: #00d4ff; 
    animation: float-2 30s infinite ease-in-out;
}
.glow-3 { 
    bottom: -10%; left: 20%; width: 40vw; height: 40vw; background: var(--primary); 
    animation: float-3 35s infinite ease-in-out;
    animation-delay: -5s;
}
.glow-4 { 
    bottom: 10%; right: 10%; width: 30vw; height: 30vw; background: #00d4ff; 
    animation: float-4 28s infinite ease-in-out;
    animation-delay: -10s;
}

/* =========================================
   HEADER (TRAY NAVBAR)
   ========================================= */
header {
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

nav {
    pointer-events: auto;
    width: 95%;
    max-width: 1200px;
    height: 64px;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    transition: var(--transition);
}

header.scrolled nav {
    height: 56px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.logo { font-size: 1.3rem; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -0.5px; display: flex; align-items: center; transition: var(--transition); }
.logo:hover { transform: scale(1.05); }
.logo span { color: var(--primary); }

.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text); font-size: 14px; font-weight: 500; opacity: 0.8; transition: var(--transition); }
.nav-links a:hover { opacity: 1; color: var(--primary); transform: translateY(-1px); }

.nav-btn { background: rgba(0, 102, 204, 0.8); backdrop-filter: blur(10px); color: #fff; padding: 10px 24px; border-radius: 100px; font-size: 14px; font-weight: 700; text-decoration: none; transition: var(--transition); box-shadow: 0 4px 12px rgba(0,102,204,0.15); display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,0.1); cursor: pointer; }
.nav-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 24px rgba(0,102,204,0.3); background: var(--primary); }

.theme-toggle { background: transparent; border: none; color: var(--text); cursor: pointer; padding: 8px; display: flex; align-items: center; justify-content: center; opacity: 0.8; transition: 0.2s; }
.theme-toggle:hover { opacity: 1; color: var(--primary); }

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: 0.2s;
}
.mobile-menu-btn:hover { opacity: 1; color: var(--primary); }

/* =========================================
   COMMON BUTTONS
   ========================================= */
.btn {
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    border: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.btn-primary { background: rgba(0, 102, 204, 0.8); color: #fff; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 4px 15px rgba(0,102,204,0.2); }
.btn-primary:hover { background: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,102,204,0.3); }

.btn-secondary { background: var(--card-bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: rgba(0, 0, 0, 0.05); transform: translateY(-2px); }
[data-theme="dark"] .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

/* UTILS */
.hide-mobile { display: inline-flex; }
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 48px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.01);
    transition: var(--transition, all 0.4s ease);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.card:hover { border-color: var(--primary); box-shadow: 0 20px 40px rgba(0,0,0,0.06); }

/* =========================================
   FOOTER (CORE)
   ========================================= */
footer { padding: 100px 0 40px; border-top: 1px solid var(--border); margin-top: 100px; background: var(--bg); position: relative; z-index: 1; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; }
.footer-col h4 { margin-bottom: 24px; font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--text); letter-spacing: 0.05em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 14px; font-size: 15px; color: var(--text-dim); display: flex; align-items: center; gap: 12px; }
.footer-col ul a { text-decoration: none; color: inherit; transition: 0.2s; }
.footer-col ul a:hover { color: var(--primary); }
.footer-bottom { margin-top: 80px; padding-top: 30px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 14px; color: var(--text-dim); }

@media (max-width: 1024px) {
    .container { padding: 0 24px; }
    .nav-links { gap: 20px; }
    .footer-content { grid-template-columns: 1fr 1fr 1fr; }
    .footer-col:first-child { grid-column: span 3; }
}

@media (max-width: 768px) {
    header { top: 12px; }
    nav { height: 60px; width: 92%; padding: 0 20px; }
    .nav-links { 
        position: fixed;
        top: 84px;
        left: 4%;
        right: 4%;
        background: var(--header-bg);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border: 1px solid var(--border);
        border-radius: 24px;
        flex-direction: column;
        padding: 32px;
        gap: 20px;
        display: none;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        z-index: 1001;
    }
    .nav-links.active { display: flex; }
    .nav-links a { font-size: 16px; width: 100%; display: block; text-align: center; }
    .mobile-menu-btn { display: flex; }
    .hide-mobile { display: none !important; }
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
    .footer-col:first-child { grid-column: span 1; }
    .footer-bottom { flex-direction: column; gap: 24px; text-align: center; }
}
}
