/* ============================================
   DIGITACH - ULTRA MODERN CSS
   Branding: #7B61FF | #FF6F91
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---- CSS Variables ---- */
:root {
    --bg-primary:    #0D0D0D;
    --bg-secondary:  #111111;
    --bg-card:       #161616;
    --text-primary:  #FFFFFF;
    --text-secondary:#B0B0B0;
    --text-muted:    #707070;
    --border-color:  rgba(255,255,255,0.08);
    --accent-1:      #7B61FF;
    --accent-2:      #FF6F91;
    --accent-gradient: linear-gradient(135deg, #7B61FF, #FF6F91);
    --shadow-card:   0 4px 24px rgba(0,0,0,0.3);
    --radius:        16px;
    --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-primary:    #F8F8FC;
    --bg-secondary:  #FFFFFF;
    --bg-card:       #FFFFFF;
    --text-primary:  #1A1A2E;
    --text-secondary:#4A4A6A;
    --text-muted:    #8A8AAA;
    --border-color:  rgba(0,0,0,0.08);
    --shadow-card:   0 4px 24px rgba(0,0,0,0.08);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}

/* ---- Gradient Text ---- */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(13,13,13,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(248,248,252,0.85);
}

/* ===== NAVBAR LİNKLƏRİ - DÜZƏLDİLDİ (AĞ RƏNG) ===== */
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: #FFFFFF !important;
    font-size: 15px;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: #7B61FF !important;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--accent-gradient);
    transition: width var(--transition);
    border-radius: 2px;
}

.nav-links a:hover::after { width: 100%; }

/* Light mode üçün navbar linkləri */
[data-theme="light"] .nav-links a {
    color: #1A1A2E !important;
}

[data-theme="light"] .nav-links a:hover {
    color: #7B61FF !important;
}

/* ---- Theme Toggle ---- */
.theme-toggle {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    transition: all var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-card);
    border-color: var(--accent-1);
}

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(123,97,255,0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}

.btn-outline:hover {
    border-color: var(--accent-1);
    color: var(--accent-1);
    transform: translateY(-2px);
}

/* ---- Cards ---- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
    box-shadow: var(--shadow-card);
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(123,97,255,0.3);
    box-shadow: 0 12px 40px rgba(123,97,255,0.15);
}

/* ---- Form Inputs ---- */
.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition);
    outline: none;
    display: block;
}

.form-input:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 4px rgba(123,97,255,0.1);
}

.form-input::placeholder { color: var(--text-muted); }

textarea.form-input { resize: vertical; min-height: 120px; }

/* ---- Checkbox Custom ---- */
.checkbox-custom {
    width: 20px; height: 20px;
    accent-color: var(--accent-1);
    cursor: pointer;
}

/* ---- Reveal Animation ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Counter ---- */
.counter {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---- Float Animation ---- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-15px); }
}

.animate-float { animation: float 4s ease-in-out infinite; }

/* ---- Mobile Menu Button ---- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 280px; height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        padding: 40px 24px;
        gap: 24px;
        transition: right var(--transition);
        border-left: 1px solid var(--border-color);
        z-index: 1000;
    }

    .nav-links.active { right: 0; }
    
    /* Mobile menyuda linklərin rəngi */
    .nav-links a {
        color: #FFFFFF !important;
        font-size: 18px;
    }
    
    [data-theme="light"] .nav-links a {
        color: #1A1A2E !important;
    }
}

/* ---- Logo SVG fallback ---- */
.logo-crown {
    width: 40px; height: 40px;
    display: inline-block;
    
    /* ===== ƏLAVƏ TƏKMİLLƏŞDİRMƏLƏR ===== */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Navbar overlay */
.nav-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Focus states (Accessibility) */
*:focus-visible {
    outline: 2px solid var(--accent-1);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection */
::selection {
    background: rgba(123, 97, 255, 0.3);
    color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { 
    background: linear-gradient(135deg, #7B61FF, #FF6F91); 
    border-radius: 10px; 
}

[data-theme="light"] ::-webkit-scrollbar-track { background: #E8E8F0; }

/* Images */
img { max-width: 100%; height: auto; display: block; }

/* Loading spinner */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fa-spin { animation: spin 1s linear infinite; }

/* Utility Classes */
.text-center { text-align: center; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

/* Mobil düzəlişlər */
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .nav-links a { font-size: 18px; }
}
