@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Variables for consistency */
    --primary: #E50914;
    --primary-hover: #b80710;
    
    /* Dark Mode Defaults */
    --bg: #0A0A0A;
    --surface: #121212;
    --text: #FFFFFF;
    --text-muted: #A0A0A0;
    --border: rgba(255, 255, 255, 0.08); /* Minimal border */
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --whatsapp-bg: #25d366;
    
    /* Transitions & Spacing */
    --transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --header-height: 80px;
    --container-width: 1200px;
}

/* Light Mode Overrides */
body.light-mode {
    --bg: #FAFAFA;
    --surface: #FFFFFF;
    --text: #1A1A1A;
    --text-muted: #666666;
    --border: rgba(0, 0, 0, 0.05);
    --shadow: 0 15px 45px rgba(0, 0, 0, 0.04);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background-color: var(--bg);
    color: var(--text);
    transition: var(--transition);
}

/* Typography */
h1, h2, h3, h4, .logo {
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.15;
    margin-bottom: 2.5rem;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    margin-bottom: 2.5rem;
}

p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

/* Container & Sections */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2.5rem;
    position: relative;
}

section {
    padding: 140px 0;
}

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
nav {
    height: var(--header-height);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    height: 75px;
    background: rgba(var(--nav-rgb, 10, 10, 10), 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

body.light-mode nav.scrolled {
    --nav-rgb: 250, 250, 250;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: 0.3s ease;
}

.nav-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding-top: 2px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.25rem 2.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF !important;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(229, 9, 20, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #FFFFFF !important;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(229, 9, 20, 0.15);
}

/* --- RESTORED PREMIUM GRID & CARD SYSTEM --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    width: 100%;
}

.card {
    background: var(--surface);
    padding: 4.5rem; /* Balanced, professional padding */
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 15px rgba(229, 9, 20, 0.08); /* Subtle red glow */
}

/* Specific Card elements */
.card-number {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    display: block;
}

.card-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 2.5rem;
}

.card h3, .card h4 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.card p {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    flex-grow: 0; /* Ensures description stays grouped with title */
}

.card ul {
    list-style: none;
    margin-bottom: 3.5rem;
    flex-grow: 1; /* Pushes the button to the bottom */
}

.card ul li {
    margin-bottom: 0.9rem;
    font-size: 1rem;
    color: var(--text-muted);
}

.card .btn {
    margin-top: auto; /* PIN BUTTON TO BOTTOM */
    align-self: flex-start; /* Keep button from stretching full width */
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-content h1 {
    margin-bottom: 2rem;
}

.hero-content p {
    margin-bottom: 3.5rem;
    max-width: 600px;
}

/* Universal Shared VFX Container */
.hero-visual-container {
    position: relative;
    width: 100%;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.particle-canvas {
    max-width: 600px;
    max-height: 600px;
    width: 100%;
    height: 100%;
}

/* Social & Social Hover */
.footer-social-link {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-block;
}

.footer-social-link:hover {
    color: var(--primary);
    transform: scale(1.15) translateY(-3px);
}

/* Sticky Social & Theme Icons */
.whatsapp-float {
    position: fixed;
    bottom: 45px;
    right: 45px;
    width: 70px;
    height: 70px;
    background: var(--primary);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.4);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.15) translateY(-8px);
}

.theme-toggle {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

footer {
    padding: 120px 0 60px;
    background: var(--surface);
}

@media (max-width: 1100px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content { align-items: center; }
    .hero-visual-container { order: -1; height: 350px; }
}

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

@media (max-width: 768px) {
    .card-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}
