/* ========================================
   YAZILIMAORG PREMIUM THEME
   Consistent UI Design System
   ======================================== */

/* === CSS VARIABLES === */
:root {
    /* Colors - Deep Space Navy + Electric Purple */
    --bg-primary: #0a0e17;
    --bg-secondary: #12121a;
    --bg-card: rgba(18, 18, 26, 0.9);
    --bg-elevated: #1a1a2e;

    /* Purple Theme */
    --purple-primary: #7B2CBF;
    --purple-light: #9D4EDD;
    --purple-dark: #5A189A;

    /* Google Colors */
    --google-blue: #4285F4;
    --google-green: #34A853;
    --google-yellow: #FBBC05;
    --google-red: #EA4335;

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-active: rgba(123, 44, 191, 0.5);

    /* Gradients */
    --gradient-purple: linear-gradient(135deg, #7B2CBF 0%, #9D4EDD 100%);
    --gradient-hero: linear-gradient(135deg, #0a0e17 0%, #1a1a2e 50%, #0a0e17 100%);
    --gradient-card: linear-gradient(135deg, rgba(123, 44, 191, 0.1), rgba(66, 133, 244, 0.05));

    /* Glows */
    --glow-purple: 0 0 40px rgba(123, 44, 191, 0.3);
    --glow-blue: 0 0 30px rgba(66, 133, 244, 0.2);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;
    --space-16: 64px;
}

/* === LIGHT MODE === */
[data-theme="light"] {
    --bg-primary: #f8f9fc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-elevated: #f0f1f5;

    --text-primary: #1a1a2e;
    --text-secondary: rgba(26, 26, 46, 0.7);
    --text-muted: rgba(26, 26, 46, 0.45);

    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-active: rgba(123, 44, 191, 0.4);

    --gradient-hero: linear-gradient(135deg, #f8f9fc 0%, #ede9f6 50%, #f8f9fc 100%);
    --gradient-card: linear-gradient(135deg, rgba(123, 44, 191, 0.06), rgba(66, 133, 244, 0.03));

    --glow-purple: 0 0 40px rgba(123, 44, 191, 0.12);
    --glow-blue: 0 0 30px rgba(66, 133, 244, 0.08);
}

/* === GLOBAL STYLES === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="light"] body {
    background: #f8f9fc;
    color: #1a1a2e;
}

/* === NEURAL BACKGROUND === */
.neural-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(123, 44, 191, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(66, 133, 244, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* === PREMIUM HEADER === */
.premium-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    gap: 8px;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.premium-header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.premium-header .logo-img {
    height: 38px;
    width: auto;
}

.premium-header .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.premium-header nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.premium-header .nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
}

.premium-header .nav-link:hover,
.premium-header .nav-link.active {
    color: var(--text-primary);
}

.premium-header .header-cta {
    padding: 10px 20px;
    background: var(--gradient-purple);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.premium-header .header-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-purple);
}

.premium-header .mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: white;
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .premium-header {
        padding: 0 12px;
    }

    .premium-header .nav-links {
        display: none;
    }

    .premium-header .header-cta {
        display: none;
    }

    .premium-header .mobile-toggle {
        display: flex;
    }

    .premium-header .logo-img {
        height: 30px;
    }
}

/* === MAIN CONTENT === */
.premium-main {
    padding-top: 70px;
}

/* === SECTION STYLES === */
.premium-section {
    padding: 80px 20px;
}

.premium-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* === SECTION HEADER === */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(123, 44, 191, 0.2);
    border: 1px solid rgba(123, 44, 191, 0.3);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--purple-light);
    margin-bottom: 16px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* === PREMIUM CARDS === */
.premium-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all 0.3s;
}

.premium-card:hover {
    border-color: var(--border-active);
    transform: translateY(-4px);
    box-shadow: var(--glow-purple);
}

.premium-card-featured {
    background: var(--gradient-card);
    border: 2px solid var(--purple-primary);
}

/* === BUTTONS === */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--gradient-purple);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-purple);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-subtle);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--purple-primary);
    background: rgba(123, 44, 191, 0.1);
}

/* === STATS GRID === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--purple-primary);
    transform: translateY(-4px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-purple);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 20px;
    color: white;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === PREMIUM FOOTER === */
.premium-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 48px 20px 24px;
}

.premium-footer .footer-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.premium-footer .footer-logo {
    height: 45px;
    margin-bottom: 16px;
}

.premium-footer .footer-tagline {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.premium-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.premium-footer .footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.premium-footer .footer-links a:hover {
    color: var(--purple-light);
}

.premium-footer .social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.premium-footer .social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s;
}

.premium-footer .social-link:hover {
    background: var(--purple-primary);
    color: white;
    transform: translateY(-3px);
}

.premium-footer .copyright {
    color: var(--text-muted);
    font-size: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

/* === MOBILE MENU === */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 999;
    padding: 24px;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border-subtle);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.mobile-menu-close {
    width: 44px;
    height: 44px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.mobile-menu-links {
    list-style: none;
}

.mobile-menu-links li {
    margin-bottom: 8px;
}

.mobile-menu-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background 0.3s;
}

.mobile-menu-links a:hover {
    background: var(--bg-elevated);
}

.mobile-menu-links i {
    width: 20px;
    color: var(--purple-light);
}

/* === REVEAL ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* === STICKY CTA BAR (Mobile) === */
.sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: var(--bg-card);
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-subtle);
}

.sticky-cta-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.sticky-cta-info {
    flex: 1;
}

.sticky-cta-title {
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.sticky-cta-sub {
    font-size: 11px;
    color: var(--purple-light);
}

.sticky-cta-btn {
    padding: 12px 20px;
    background: var(--gradient-purple);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .sticky-cta {
        display: block;
    }

    body {
        padding-bottom: 80px;
    }
}

/* === FEATURE CARDS === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--purple-primary);
    transform: translateY(-8px);
    box-shadow: var(--glow-purple);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-purple);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: white;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* === TESTIMONIAL CARDS === */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 24px;
    transition: all 0.3s;
}

.testimonial-card:hover {
    border-color: var(--purple-primary);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.testimonial-name {
    font-size: 15px;
    font-weight: 600;
}

.testimonial-role {
    font-size: 12px;
    color: var(--text-muted);
}

.testimonial-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 12px;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
}

.testimonial-stars i {
    font-size: 14px;
    color: var(--google-yellow);
}

@media (max-width: 900px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* === HERO SECTION === */
.premium-hero {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.premium-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(123, 44, 191, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(123, 44, 191, 0.2);
    border: 1px solid rgba(123, 44, 191, 0.3);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--purple-light);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
}

/* === TIMELINE === */
.premium-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.premium-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--purple-primary), var(--google-blue));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px;
    margin-bottom: 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--purple-primary);
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-date {
    display: block;
    color: var(--purple-light);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s;
}

.timeline-content:hover {
    border-color: var(--purple-primary);
    transform: translateY(-4px);
}

.timeline-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .premium-timeline {
        padding: 20px 0;
    }

    .premium-timeline::before {
        left: 16px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 48px;
        padding-right: 0;
        margin-bottom: 24px;
        box-sizing: border-box;
    }

    .timeline-dot {
        left: 7px !important;
        right: auto !important;
        width: 18px;
        height: 18px;
    }

    .timeline-date {
        font-size: 13px;
    }

    .timeline-content {
        padding: 16px;
    }

    .timeline-content h3 {
        font-size: 16px;
    }

    .timeline-content p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .premium-timeline::before {
        left: 12px;
    }

    .timeline-item {
        padding-left: 40px;
        margin-bottom: 20px;
    }

    .timeline-dot {
        left: 3px !important;
        width: 16px;
        height: 16px;
    }

    .timeline-content {
        padding: 14px;
    }

    .timeline-content h3 {
        font-size: 15px;
    }

    .timeline-content p {
        font-size: 12px;
    }
}

/* ========================================
   LIGHT MODE — Component Overrides
   ======================================== */
[data-theme="light"] .neural-bg {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(123, 44, 191, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(66, 133, 244, 0.04) 0%, transparent 50%);
}

[data-theme="light"] .premium-header {
    background: rgba(248, 249, 252, 0.95);
}

[data-theme="light"] .premium-header .mobile-toggle {
    color: var(--text-primary);
}

[data-theme="light"] .premium-header .header-cta {
    color: white;
}

[data-theme="light"] .section-title {
    background: linear-gradient(135deg, #1a1a2e 0%, #4a3a6e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .stat-value {
    color: var(--text-primary);
}

[data-theme="light"] .mobile-menu-close {
    color: var(--text-primary);
}

[data-theme="light"] .mobile-menu-links a {
    color: var(--text-primary);
}

[data-theme="light"] .premium-footer .social-link {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-secondary);
}

[data-theme="light"] .premium-footer .social-link:hover {
    background: var(--gradient-purple);
    color: white;
}

[data-theme="light"] .timeline-content {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .timeline-content h3 {
    color: var(--text-primary);
}

[data-theme="light"] .timeline-dot {
    border-color: #f8f9fc !important;
}

[data-theme="light"] .timeline-content::before {
    display: none !important;
}

[data-theme="light"] .timeline-item::before,
[data-theme="light"] .timeline-item::after {
    display: none !important;
}

/* === THEME TOGGLE BUTTON === */
.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    border-color: var(--purple-primary);
    color: var(--purple-light);
    transform: rotate(20deg);
}

[data-theme="light"] .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.04);
    color: #1a1a2e;
}

[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(123, 44, 191, 0.1);
    color: var(--purple-primary);
}