/* ==========================================================================
   SODAGAR ONLINE — CORE UI STYLESHEET
   Foundation: layout, typography, components, responsive
   Background system → background.css | Animations → animations.css
   ========================================================================== */

/* ─────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   ───────────────────────────────────────────────────────── */
:root {
    --bg-primary:      #020409;
    --bg-secondary:    #0a0d16;
    --bg-card:         rgba(12, 15, 25, 0.75);
    --text-primary:    #ffffff;
    --text-secondary:  #aeb6ce;
    --text-muted:      #8892b0;
    --accent-blue:      #0d6efd;
    --accent-glow:     rgba(13, 110, 253, 0.4);
    --accent-glow-sm:  rgba(13, 110, 253, 0.15);
    --glass-bg:        rgba(10, 13, 22, 0.72);
    --glass-border:    #a855f7;
    --glass-border-hl: #d8b4fe;
    --radius-sm:       6px;
    --radius-md:       10px;
    --radius-lg:       16px;
    --transition-fast: 250ms cubic-bezier(0.22, 1, 0.36, 1);
    --transition-mid:  500ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─────────────────────────────────────────────────────────
   2. GLOBAL RESET & BASE
   ───────────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─────────────────────────────────────────────────────────
   3. NAVBAR
   ───────────────────────────────────────────────────────── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
}

.logo span { color: var(--accent-blue); }

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color var(--transition-fast);
}

.nav-links a:hover { color: var(--text-primary); }

.nav-btn {
    padding: 0.5rem 1.4rem;
    background-color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
    border-radius: var(--radius-sm);
    color: #ffffff !important;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem !important;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all var(--transition-fast) !important;
    box-shadow: 0 4px 15px var(--accent-glow-sm);
}

.nav-btn:hover {
    background-color: #0a58ca;
    color: #ffffff !important;
    box-shadow: 0 0 25px var(--accent-glow);
}

/* ─────────────────────────────────────────────────────────
   4. HERO SECTION
   ───────────────────────────────────────────────────────── */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 5% 6rem;
    gap: 4rem;
    flex-grow: 1;
    min-height: 85vh;
}

.hero-content {
    flex: 1;
    max-width: 620px;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.text-gradient {
    display: inline-block;
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 60%, #d8b4fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 540px;
}

/* ─────────────────────────────────────────────────────────
   5. BUTTONS
   ───────────────────────────────────────────────────────── */
.cta-group {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.875rem 1.875rem;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    border-radius: var(--radius-sm);
    transition: all 350ms cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #0a58ca 0%, #0d6efd 50%, #3d8bfd 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.35), 0 1px 0 rgba(255,255,255,0.1) inset;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(13, 110, 253, 0.5), 0 1px 0 rgba(255,255,255,0.15) inset;
}

.btn-primary:active { transform: scale(0.97); }

.btn-icon {
    width: 16px;
    height: 16px;
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary:hover .btn-icon { transform: translateX(4px); }

.btn-secondary {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(13, 110, 253, 1);
}

.btn-secondary:hover {
    background-color: rgba(13, 110, 253, 0.04);
    border-color: #0d6efd;
    color: var(--text-primary);
}

/* ─────────────────────────────────────────────────────────
   6. HERO VISUAL / TERMINAL MOCKUP
   ───────────────────────────────────────────────────────── */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-card {
    width: 100%;
    max-width: 460px;
    transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
    background: rgba(128, 128, 128, 0.75) !important;
}

.mockup-card:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.dot.red    { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green  { background-color: #27c93f; }

.mockup-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.code-line {
    height: 7px;
    border-radius: 3px;
    background-color: var(--glass-border);
}
.w-100 { width: 100%; }
.w-75  { width: 75%;  }
.w-50  { width: 50%;  }
.w-30  { width: 30%;  }

.data-stream {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: opacity 200ms ease;
    letter-spacing: 0.5px;
}

.data-stream.highlight {
    color: var(--accent-blue);
    font-weight: 700;
}

/* ─────────────────────────────────────────────────────────
   7. GLASSMORPHISM CARD
   ───────────────────────────────────────────────────────── */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 1px 0 rgba(13, 110, 253, 0.04) inset;
}

/* ─────────────────────────────────────────────────────────
   8. SECTIONS
   ───────────────────────────────────────────────────────── */
.section {
    padding: 5.5rem 5%;
    border-top: 1px solid var(--glass-border);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 400;
}

/* ─────────────────────────────────────────────────────────
   9. FEATURES GRID
   ───────────────────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 2.25rem;
    border-radius: var(--radius-md);
    transition:
        transform  350ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 350ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 350ms ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 30px var(--accent-glow-sm);
    border-color: var(--glass-border-hl);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    display: block;
    filter: drop-shadow(0 0 8px rgba(13, 110, 253, 0.3));
}

.feature-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.feature-desc {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 0.9rem;
}

/* ─────────────────────────────────────────────────────────
   10. ABOUT SECTION
   ───────────────────────────────────────────────────────── */
.about-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 3.5rem 4rem;
}

.about-content h2 { margin-bottom: 2rem; }

.about-content p {
    color: var(--text-secondary);
    line-height: 1.95;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.about-content p:last-child { margin-bottom: 0; }

.about-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.about-content em {
    color: rgba(255, 100, 100, 0.9);
    font-style: normal;
    font-weight: 500;
}

/* ─────────────────────────────────────────────────────────
   11. FOOTER
   ───────────────────────────────────────────────────────── */
.footer {
    padding: 2.5rem 5%;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.footer-link:hover { color: var(--accent-blue); }

/* ─────────────────────────────────────────────────────────
   12. RESPONSIVE
   ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-section { gap: 3rem; }
    .about-container { padding: 2.5rem; }
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 3rem 5% 4rem;
        min-height: auto;
    }

    .hero-title  { font-size: clamp(1.8rem, 7vw, 2.5rem); }
    .hero-visual { width: 100%; }
    .mockup-card { transform: none; max-width: 100%; }
    .cta-group   { justify-content: center; }
    .nav-links   { display: none; }

    .section { padding: 3.5rem 5%; }
    .features-grid { grid-template-columns: 1fr; gap: 1rem; }
    .about-container { padding: 2rem 1.5rem; }
    .section-title { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .btn { padding: 0.75rem 1.4rem; font-size: 0.7rem; }
    .cta-group { flex-direction: column; width: 100%; }
    .cta-group .btn { width: 100%; justify-content: center; }
}

/* =====================================================
   CONTACT MODAL
   ===================================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    visibility: visible;
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-content {
    width: 90%;
    max-width: 400px;
    padding: 2rem;
    position: relative;
    text-align: center;
    transform: translateY(0) scale(1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.hidden .modal-content {
    transform: translateY(20px) scale(0.95);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: #aeb6ce;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #ff4444;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.contact-link-item:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: #a855f7;
    transform: translateX(5px);
}

.contact-link-item .icon {
    font-size: 1.2rem;
    margin-right: 15px;
}

