/* =====================================================
   ROBİ - Robotik Bilim Atölyesi
   Bold Editorial Design
   ===================================================== */

:root {
    --orange: #FF6B35;
    --blue: #0EA5E9;
    --purple: #8B5CF6;
    --green: #10B981;
    --yellow: #F59E0B;
    --pink: #F43F5E;
    --dark: #0A0A0B;
    --dark-2: #141416;
    --dark-3: #1C1C1F;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F4F4F5;
    --gray-200: #E4E4E7;
    --gray-300: #D4D4D8;
    --gray-400: #A1A1AA;
    --gray-500: #71717A;
    --gray-600: #52525B;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* =====================================================
   HEADER
   ===================================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gray-200);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 38px; }
.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.04em;
}

.nav-list { display: flex; gap: 4px; list-style: none; }
.nav-link {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
    border-radius: 8px;
}
.nav-link:hover { color: var(--dark); background: var(--gray-100); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    letter-spacing: 0.02em;
}
.header-phone:hover { color: var(--dark); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-sm { padding: 8px 18px; font-size: 13px; border-radius: 8px; }
.btn-accent { background: var(--dark); color: var(--white); }
.btn-accent:hover { background: var(--dark-2); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 101; }
.hamburger span { width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =====================================================
   HERO
   ===================================================== */

.hero {
    background: var(--dark);
    color: var(--white);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 92vh;
}

.hero-left {
    display: flex;
    align-items: center;
    padding: 80px 48px 80px 0;
}

.hero-left-inner { max-width: 520px; margin-left: auto; padding-left: 24px; }

.hero-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 24px;
    padding: 6px 14px;
    border: 1px solid rgba(255,107,53,0.3);
    border-radius: 100px;
}

.hero-title {
    font-size: clamp(3rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.0;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
}

.hero-title span {
    background: linear-gradient(135deg, var(--orange), #FF9A5C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 420px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-light {
    background: var(--white);
    color: var(--dark);
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 15px;
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,255,255,0.15); }

.btn-ghost {
    background: transparent;
    color: var(--gray-400);
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 15px;
    border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,0.4); }

.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-2);
    position: relative;
    padding: 48px;
}

.hero-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,107,53,0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(139,92,246,0.06) 0%, transparent 50%);
}

.hero-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.hero-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 28px 24px;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.hero-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-4px);
}

.hc-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.hc-1 .hc-number { color: var(--pink); }
.hc-2 .hc-number { color: var(--green); }
.hc-3 .hc-number { color: var(--blue); }
.hc-4 .hc-number { color: var(--purple); }

.hc-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    display: block;
}

.hc-text { font-size: 13px; color: var(--gray-500); }

/* =====================================================
   MARQUEE
   ===================================================== */

.marquee {
    background: var(--gray-100);
    padding: 16px 0;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 48px;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.marquee-track span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =====================================================
   SECTION COMMON
   ===================================================== */

.section-top { margin-bottom: 48px; }

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--orange);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark);
}

/* =====================================================
   WORKSHOPS (ATÖLYELER)
   ===================================================== */

.workshops {
    padding: 100px 0;
}

.age-group { margin-bottom: 48px; }

.age-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 100px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.age-badge span {
    font-weight: 500;
    opacity: 0.85;
    font-size: 13px;
}

.age-pink { background: linear-gradient(135deg, #F43F5E, #EC4899); }
.age-green { background: linear-gradient(135deg, #10B981, #059669); }
.age-blue { background: linear-gradient(135deg, #0EA5E9, #0284C7); }
.age-purple { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }

.workshop-grid {
    display: grid;
    gap: 16px;
}

.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.ws-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: var(--transition);
}

.ws-card:hover {
    background: var(--white);
    border-color: var(--gray-300);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    transform: translateY(-3px);
}

.ws-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.ws-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* =====================================================
   BENTO (NEDEN BİZ)
   ===================================================== */

.bento {
    padding: 100px 0;
    background: var(--dark);
    color: var(--white);
}

.bento .section-label { color: var(--orange); }
.bento .section-title { color: var(--white); }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.bento-card {
    background: var(--dark-2);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bento-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    opacity: 0;
    transition: var(--transition);
}

.bento-card:hover {
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}

.bento-card:hover::after { opacity: 1; }

.bento-lg { grid-column: span 2; }

.bento-num {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.bento-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--white);
}

.bento-card p {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.7;
    max-width: 460px;
}

/* =====================================================
   ABOUT
   ===================================================== */

.about { padding: 100px 0; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-left { position: sticky; top: 100px; }
.about-left .section-title { font-size: clamp(2rem, 3.5vw, 2.75rem); }

.about-right { display: flex; flex-direction: column; gap: 40px; }

.about-block h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.about-block p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.8;
}

/* =====================================================
   CTA
   ===================================================== */

.cta { padding: 100px 0; background: var(--gray-50); }

.cta-inner {
    background: linear-gradient(135deg, var(--orange), #E05520);
    border-radius: var(--radius-lg);
    padding: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    color: var(--white);
}

.cta-text h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--white);
    margin-bottom: 20px;
}

.cta-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.cta-pills span {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255,255,255,0.18);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.btn-whatsapp {
    background: var(--white);
    color: #25D366;
    padding: 16px 32px;
    border-radius: var(--radius);
    font-size: 16px;
    flex-shrink: 0;
}

.btn-whatsapp:hover {
    background: #25D366;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-lg { padding: 18px 36px; font-size: 16px; }

/* =====================================================
   CONTACT
   ===================================================== */

.contact { padding: 100px 0; }

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
}

.contact-items { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--gray-600);
    padding: 14px 18px;
    border-radius: var(--radius);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.contact-item:hover {
    background: var(--white);
    border-color: var(--gray-300);
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.contact-item svg { flex-shrink: 0; color: var(--gray-400); }

.map-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 380px;
    border: 1px solid var(--gray-200);
}

.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; }

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    background: var(--dark);
    color: var(--white);
    padding: 48px 0 24px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.footer-logo-img { height: 32px; }

.footer-brand p { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.footer-slogan { color: var(--orange) !important; font-style: italic; margin-top: 8px; }

.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; padding-top: 6px; }
.footer-nav a { color: rgba(255,255,255,0.4); font-size: 14px; font-weight: 500; }
.footer-nav a:hover { color: var(--white); }

.footer-bottom { padding-top: 24px; }
.footer-bottom p { color: rgba(255,255,255,0.25); font-size: 0.8rem; }

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; min-height: auto; }
    .hero-left { padding: 80px 0 40px; }
    .hero-left-inner { max-width: 100%; margin: 0; padding: 0 24px; }
    .hero-right { padding: 40px 24px 64px; }
    .hero-cards { max-width: 100%; }
    .cols-4 { grid-template-columns: repeat(2, 1fr); }
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-lg { grid-column: span 2; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-left { position: static; }
    .cta-inner { flex-direction: column; text-align: center; padding: 48px 32px; }
    .cta-pills { justify-content: center; }
    .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav {
        position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px;
        height: 100vh; background: var(--white); padding: 80px 24px 24px;
        box-shadow: -8px 0 40px rgba(0,0,0,0.08); transition: 0.3s ease; z-index: 100;
    }
    .nav.active { right: 0; }
    .nav-list { flex-direction: column; gap: 4px; }
    .nav-link { padding: 14px 16px; font-size: 16px; }
    .header-actions { display: none; }

    .hero-title { font-size: 2.5rem; }
    .hero-cards { grid-template-columns: 1fr 1fr; }
    .cols-3, .cols-4 { grid-template-columns: 1fr; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-lg { grid-column: span 1; }
    .footer-top { flex-direction: column; }
    .footer-nav { gap: 16px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-cards { grid-template-columns: 1fr; }
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */

/* =====================================================
   CURSOR EFFECTS
   ===================================================== */

.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,107,53,0.12) 0%, rgba(255,107,53,0.04) 30%, transparent 70%);
    mix-blend-mode: screen;
}

.cursor-glow.active { opacity: 1; }

.cursor-glow.on-dark {
    background: radial-gradient(circle, rgba(255,107,53,0.18) 0%, rgba(139,92,246,0.06) 35%, transparent 70%);
}

.hero-card {
    transition: transform 0.3s ease, background 0.2s ease, border-color 0.2s ease;
}

.bento-card {
    transition: transform 0.3s ease, border-color 0.2s ease;
}

.ws-card {
    transition: transform 0.3s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .marquee-track { animation: none; }
}
