/* 
    NARRATE LTD - CUSTOM DESIGN SYSTEM
    Version: 1.0.0
    Author: Antigravity Digital Agency
*/

/* 1. CSS RESET / NORMALIZE */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

button, input, textarea {
    font-family: inherit;
    border: none;
    outline: none;
}

ul {
    list-style: none;
}

/* 2. CSS CUSTOM PROPERTIES */
:root {
    /* Colors - Creative Agency / Technology Blend */
    --color-primary: #6366F1; /* Indigo */
    --color-primary-dark: #4F46E5;
    --color-secondary: #0F172A; /* Dark Navy */
    --color-accent: #10B981; /* Emerald for highlights */
    --color-bg: #030712; /* Deep Black/Blue */
    --color-surface: #111827; /* Dark Grey Surface */
    --color-text: #F8FAFC; /* Slate Light */
    --color-muted: #94A3B8; /* Slate Muted */
    --color-white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-xxl: 10rem;
    
    /* UI Elements */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition-speed: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3. GLOBAL / BASE STYLES */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(to right, var(--color-white), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--color-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 4. TYPOGRAPHY SCALE */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

h1 { font-size: 4rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 3rem; font-weight: 700; }
h3 { font-size: 1.8rem; font-weight: 700; }
h4 { font-size: 1.4rem; font-weight: 600; }

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

/* 5. UTILITY CLASSES */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.bg-surface { background-color: var(--color-surface); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }

/* 6. COMPONENT STYLES */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-speed);
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--color-white);
}

/* Cards */
.card {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    transition: var(--transition-speed);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

/* 7. LAYOUT COMPONENTS */
/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-speed);
}

.navbar.sticky {
    padding: 1rem 0;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-muted);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-white);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu */
@media (max-width: 992px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 300px;
        background: var(--color-surface);
        flex-direction: column;
        padding-top: 6rem;
        transition: var(--transition-speed);
        box-shadow: var(--shadow-lg);
    }
    .nav-links.active { right: 0; }
}

/* Footer */
.footer {
    background-color: var(--color-secondary);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
}

.footer-text {
    color: var(--color-muted);
    margin-bottom: var(--spacing-md);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--color-muted);
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: var(--spacing-md); }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, rgba(3, 7, 18, 1) 70%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    margin-bottom: var(--spacing-sm);
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-muted);
    margin-bottom: var(--spacing-md);
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-10px) translateX(-50%);}
    60% {transform: translateY(-5px) translateX(-50%);}
}

/* 8. PAGE SPECIFIC STYLES */

/* Counters */
.trust-bar {
    background: var(--color-surface);
    padding: var(--spacing-md) 0;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    text-align: center;
}

.counter-item h3 {
    font-size: 2.5rem;
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .counter-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.pricing-card.popular {
    border: 2px solid var(--color-primary);
    transform: scale(1.05);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
}

@media (max-width: 992px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; gap: var(--spacing-lg); }
    .pricing-card.popular { transform: none; }
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: white;
}

input:focus {
    border-color: var(--color-primary);
}

/* 9. ANIMATIONS */
[data-aos] {
    transition-duration: 800ms;
}

/* 10. Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition-speed);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(99, 102, 241, 0.1);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
