/* ========================================
   SOVEREIGN MEDIA — Main Stylesheet
   ======================================== */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #0f0f0f;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent: #2563eb;
    --accent-light: #3b82f6;
    --accent-glow: rgba(37, 99, 235, 0.25);
    --whatsapp: #25D366;
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.14);
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, button { font-family: inherit; font-size: inherit; }

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

/* ---- Text Gradient ---- */
.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #3b82f6 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Navigation ---- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}
.nav.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 0;
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.logo-mark {
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem;
}
.logo-text { font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; }
.logo-accent { color: var(--accent-light); }

.nav-links {
    display: flex; align-items: center; gap: 2rem;
}
.nav-links a {
    font-size: 0.875rem; font-weight: 400; color: var(--text-secondary);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
    background: var(--accent) !important; color: #fff !important;
    padding: 0.55rem 1.25rem; border-radius: 8px;
    font-weight: 500 !important; transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--accent-light) !important; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
    width: 22px; height: 2px; background: var(--text-primary);
    border-radius: 2px; transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: rgba(10, 10, 10, 0.98); backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center; gap: 1.5rem;
        transition: right 0.35s ease; border-left: 1px solid var(--border);
    }
    .nav-links.open { right: 0; }
    .nav-links a { font-size: 1.1rem; }
}

/* ---- Hero ---- */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    position: relative; overflow: hidden;
    background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.12) 0%, transparent 55%), var(--bg-primary);
}
.hero-glow {
    position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
    width: 800px; height: 500px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content {
    text-align: center; position: relative; z-index: 1;
    padding-top: 6rem;
}
.hero-badge {
    display: inline-block; padding: 0.4rem 1rem;
    border: 1px solid var(--border); border-radius: 100px;
    font-size: 0.8rem; font-weight: 500; color: var(--accent-light);
    letter-spacing: 0.05em; text-transform: uppercase;
    margin-bottom: 2rem;
}
.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 600;
    line-height: 1.05; letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}
.hero-sub {
    font-size: 1.1rem; color: var(--text-secondary);
    max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 4rem; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.85rem 2rem; border-radius: 10px; font-weight: 500;
    font-size: 0.95rem; cursor: pointer; border: none;
    transition: all 0.25s ease;
}
.btn-primary {
    background: var(--accent); color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
    background: var(--accent-light);
    box-shadow: 0 6px 30px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent; color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.03); }
.btn-full { width: 100%; }

.hero-stats {
    display: flex; align-items: center; justify-content: center; gap: 2.5rem;
    flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-number { display: block; font-size: 1.8rem; font-weight: 700; }
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.hero-stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ---- Sections ---- */
.section { padding: 7rem 0; }
.section-alt { background: var(--bg-secondary); }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-label {
    display: inline-block; font-size: 0.75rem; font-weight: 600;
    color: var(--accent-light); text-transform: uppercase;
    letter-spacing: 0.1em; margin-bottom: 1rem;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 600;
    letter-spacing: -0.03em; margin-bottom: 1rem; line-height: 1.15;
}
.section-desc {
    font-size: 1rem; color: var(--text-secondary);
    max-width: 550px; margin: 0 auto; line-height: 1.7;
}

/* ---- Services ---- */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}
.service-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2rem;
    transition: all 0.4s ease;
}
.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 25px var(--accent-glow);
}
.service-icon {
    width: 48px; height: 48px; border-radius: 10px;
    background: rgba(37, 99, 235, 0.1); color: var(--accent-light);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
}
.service-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.6rem; }
.service-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; }

@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
}

/* ---- About ---- */
.about-grid {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: start;
}
.about-text { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 1rem; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 2rem; }
.about-feature {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.875rem; color: var(--text-secondary);
}
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2rem 1.5rem; text-align: center;
}
.stat-number { display: block; font-size: 2rem; font-weight: 700; color: var(--accent-light); margin-bottom: 0.25rem; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-features { grid-template-columns: 1fr; }
}

/* ---- Process ---- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.process-step {
    position: relative; padding: 2rem 1.5rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.process-number {
    font-size: 2.5rem; font-weight: 700; color: rgba(37, 99, 235, 0.15);
    margin-bottom: 1rem; line-height: 1;
}
.process-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.6rem; }
.process-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65; }

@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .process-grid { grid-template-columns: 1fr; } }

/* ---- Testimonials ---- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.testimonial-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2rem;
}
.testimonial-stars { color: #f59e0b; font-size: 0.9rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 0.9rem;
}
.testimonial-name { font-size: 0.9rem; font-weight: 600; }
.testimonial-role { font-size: 0.78rem; color: var(--text-muted); }

@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-desc { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.9rem; color: var(--text-secondary);
    transition: color 0.2s;
}
.contact-item:hover { color: var(--text-primary); }
.whatsapp-link:hover { color: var(--whatsapp) !important; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 0.85rem 1rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; color: var(--text-primary);
    font-size: 0.9rem; transition: border-color 0.2s;
    outline: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-success {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center; padding: 3rem 1rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.form-success h3 { font-size: 1.3rem; font-weight: 600; margin-top: 1rem; }
.form-success p { font-size: 0.9rem; color: var(--text-secondary); margin-top: 0.5rem; }

@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ---- Footer ---- */
.footer {
    padding: 4rem 0 2rem; border-top: 1px solid var(--border);
    background: var(--bg-primary);
}
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem; margin-bottom: 3rem;
}
.footer-desc { font-size: 0.85rem; color: var(--text-muted); margin-top: 1rem; line-height: 1.6; max-width: 280px; }
.footer-heading { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-primary); margin-bottom: 1rem; }
.footer-links-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links-col a { font-size: 0.85rem; color: var(--text-muted); transition: color 0.2s; }
.footer-links-col a:hover { color: var(--text-primary); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

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

/* ---- WhatsApp Float ---- */
.whatsapp-float {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--whatsapp); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease; animation: waFloat 3s ease-in-out infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}
@keyframes waFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.whatsapp-float:hover { animation: none; transform: scale(1.1); }

/* ---- Reveal Animation ---- */
.reveal {
    opacity: 0; transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* ---- Selection ---- */
::selection { background: rgba(37, 99, 235, 0.3); color: #fff; }