/* ══════════════════════════════════════
   AI Projelerim — Global Styles
   Shared across all pages
   ══════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    background-color: #050a18;
    color: #e2e8f0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
    line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
::selection { background: rgba(56,189,248,.25); color: #fff; }

/* ── ANIMATED BACKGROUND ── */
.bg-glow {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -2; overflow: hidden; pointer-events: none;
}
.bg-glow .orb {
    position: absolute; border-radius: 50%;
    filter: blur(120px); opacity: .3;
    animation: orbFloat 18s ease-in-out infinite alternate;
}
.bg-glow .orb:nth-child(1) { width: 600px; height: 600px; background: #2563eb; top: -10%; left: -5%; animation-delay: 0s; }
.bg-glow .orb:nth-child(2) { width: 500px; height: 500px; background: #7c3aed; top: 40%; right: -8%; animation-delay: -6s; }
.bg-glow .orb:nth-child(3) { width: 450px; height: 450px; background: #06b6d4; bottom: -15%; left: 30%; animation-delay: -12s; }
@keyframes orbFloat {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(60px, -40px) scale(1.15); }
    100% { transform: translate(-40px, 50px) scale(.95); }
}

#particles {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1; pointer-events: none;
}

/* ── NAVBAR ── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 2.5rem;
    backdrop-filter: blur(20px);
    background: rgba(5, 10, 24, .6);
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: background .3s;
}
.navbar.scrolled { background: rgba(5, 10, 24, .92); }
.nav-logo {
    font-weight: 800; font-size: 1.4rem;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    display: flex; align-items: center; gap: .5rem;
}
.nav-logo .logo-icon {
    width: 32px; height: 32px; border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
    -webkit-text-fill-color: white;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
    font-size: .9rem; font-weight: 500; color: #94a3b8;
    transition: color .25s; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    transition: width .3s;
}
.nav-links a:hover { color: #f1f5f9; }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
    padding: .55rem 1.4rem; border-radius: 50px;
    font-size: .85rem; font-weight: 600;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff; transition: transform .25s, box-shadow .25s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,99,235,.35); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #e2e8f0; border-radius: 2px; transition: .3s; }

/* ── SECTION COMMON ── */
section { padding: 7rem 2rem; position: relative; }
.section-header { text-align: center; max-width: 650px; margin: 0 auto 4rem; }
.section-header .overline {
    font-size: .75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 3px; color: #60a5fa; margin-bottom: .75rem;
}
.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15;
    margin-bottom: 1rem;
}
.section-header p { color: #94a3b8; font-size: 1.05rem; }

/* ── BUTTONS (shared) ── */
.btn-primary {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: 1rem 2.2rem; border-radius: 50px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff; font-weight: 700; font-size: 1.05rem;
    transition: transform .3s, box-shadow .3s;
    box-shadow: 0 4px 25px rgba(37,99,235,.35);
    position: relative; overflow: hidden;
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,.15) 50%, transparent 70%);
    transform: translateX(-100%); transition: transform .6s;
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 35px rgba(37,99,235,.45); }
.btn-secondary {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: 1rem 2rem; border-radius: 50px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    color: #cbd5e1; font-weight: 600; font-size: 1.05rem;
    transition: all .3s;
}
.btn-secondary:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); transform: translateY(-2px); }

/* ── FOOTER ── */
.footer {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 3rem 2rem 2rem;
}
.footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-logo {
    font-weight: 800; font-size: 1.2rem;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { font-size: .85rem; color: #64748b; transition: color .3s; }
.footer-links a:hover { color: #e2e8f0; }
.footer-legal {
    width: 100%; display: flex; justify-content: center;
    gap: 1.2rem; list-style: none;
    margin-top: 1.5rem; padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.04);
    flex-wrap: wrap;
}
.footer-legal a {
    font-size: .78rem; color: #475569;
    transition: color .3s;
}
.footer-legal a:hover { color: #94a3b8; }
.footer-copy {
    width: 100%; text-align: center;
    margin-top: 1rem; font-size: .8rem; color: #475569;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── AD SLOT ── */
.ad-container {
    max-width: 1100px; margin: 0 auto;
    padding: 1rem 0;
}
.ad-slot {
    background: rgba(255,255,255,.02);
    border: 1px dashed rgba(255,255,255,.06);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    color: #334155;
    font-size: .75rem;
    min-height: 90px;
    display: flex; align-items: center; justify-content: center;
    transition: opacity .3s;
}
.ad-slot:empty::after {
    content: '';
}

/* ── RESPONSIVE (global) ── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(5,10,24,.96); backdrop-filter: blur(20px);
        padding: 1.5rem 2rem; gap: 1rem;
        border-bottom: 1px solid rgba(255,255,255,.06);
    }
}

@media (max-width: 480px) {
    .navbar { padding: .8rem 1.2rem; }
    .nav-logo { font-size: 1.2rem; }
    section { padding: 4rem 1.2rem; }
}
