/*

=================================================================

    1.  GLOBAL & ROOT STYLES
    2.  NAVIGATION BAR
    3.  BUTTONS
    4.  HERO SECTION
    5.  SERVICES & PRICING
    6.  WHY CHOOSE US
    7.  SAMPLES & MODAL
    8.  TESTIMONIALS
    9.  CTA & FOOTER
    10. RESPONSIVE

=================================================================

*/

/* ======== 1. GLOBAL & ROOT STYLES ======== */

:root {
    --blue-400: #60a5fa; --blue-500: #3b82f6; --blue-600: #2563eb;
    --slate-100: #f1f5f9; --slate-200: #e2e8f0; --slate-400: #94a3b8; --slate-900: #0f172a;
    --white: #ffffff;
    --whatsapp-green: #25D366;
    --bg-primary: #020617; 
    --bg-secondary: var(--slate-900); 
    --text-primary: var(--slate-100);
    --text-secondary: var(--slate-400);
    --border-color: #334155;
    --card-bg: linear-gradient(to right, #1e293b, #0f172a, #1e293b);
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    --primary-accent: var(--blue-400);
    --primary-accent-hover: var(--blue-500);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --noise-texture: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

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

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

body::before {
    content: ''; position: fixed; inset: 0; width: 100vw; height: 100vh;
    background-image: var(--noise-texture); opacity: 0.08; pointer-events: none; z-index: -1;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; position: relative; }
.section-title { font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 700; text-align: center; margin-bottom: 16px; line-height: 1.2; }
.section-subtitle { font-size: 1.125rem; color: var(--text-secondary); max-width: 650px; margin: 0 auto 50px auto; text-align: center; }


/* ======== 2. NAVIGATION BAR ======== */

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.navbar {
    background: rgba(15, 23, 42, 0.5); 
    backdrop-filter: blur(8px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--blue-400), var(--blue-600), var(--blue-400));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-flow 5s ease-in-out infinite;
    text-decoration: none;
    z-index: 10;
}

.hamburger-btn { display: none; background: none; border: none; cursor: pointer; z-index: 1001; }
.hamburger-btn .line { display: block; width: 25px; height: 3px; background-color: var(--white); margin: 5px 0; transition: all 0.3s ease-in-out; }
.hamburger-btn.active .line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-btn.active .line:nth-child(2) { opacity: 0; }
.hamburger-btn.active .line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-menu-wrapper { display: flex; align-items: center; gap: 30px; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 30px; }
.nav-menu a { text-decoration: none; color: var(--text-primary); font-weight: 600; font-size: 1rem; transition: color 0.2s ease; }
.nav-menu a:not(.btn):hover { color: var(--primary-accent); }


/* ======== 3. BUTTONS ======== */

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: all 0.2s ease; border: 2px solid transparent; cursor: pointer; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); }
.btn-primary { background-image: linear-gradient(to top, var(--blue-500), var(--blue-600)); color: var(--white); box-shadow: 0 7px 25px rgba(59, 130, 246, 0.2); }
.btn-primary:hover { box-shadow: 0 7px 30px rgba(59, 130, 246, 0.3); }
.btn-secondary { background-color: transparent; color: var(--primary-accent); border-color: var(--primary-accent); }
.btn-secondary:hover { background-color: var(--primary-accent); color: var(--white); }
.btn-whatsapp { padding: 18px 36px; font-size: 1.2rem; border-radius: 12px; background-color: var(--whatsapp-green); color: var(--white); box-shadow: 0 10px 30px -10px rgba(37, 211, 102, 0.4); }
.btn-whatsapp svg { width: 28px; height: 28px; margin-right: 12px; stroke: var(--white); }
.btn-whatsapp:hover { box-shadow: 0 10px 40px -10px rgba(37, 211, 102, 0.6); }
.btn-whatsapp-nav { color: var(--white); background-color: transparent; border: 2px solid var(--whatsapp-green); padding: 8px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.btn-whatsapp-nav:hover { background-color: var(--whatsapp-green); transform: scale(1.1); }
.btn-whatsapp-nav svg { width: 20px; height: 20px; stroke: var(--white); }


/* ======== 4. HERO SECTION ======== */

@keyframes float { 0%, 100% { transform: translateZ(0) translateY(0); } 50% { transform: translateZ(20px) translateY(-15px); } }
@keyframes beam-flow { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
.hero { padding: 120px 0; text-align: center; background-color: var(--bg-primary); overflow: hidden; perspective: 1000px; position: relative; }
.hero-3d-wrapper { transform-style: preserve-3d; transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1); will-change: transform; }
.hero-background-effects { position: absolute; inset: 0; background-image: radial-gradient(ellipse at 50% 50%, rgba(15, 23, 42, 0.5) 0%, transparent 70%); transform: translateZ(-200px); z-index: 1; }
.energy-beam-container { position: absolute; top: 0; left: 50%; width: 600px; height: 100%; transform: translateX(-50%) translateZ(-100px); pointer-events: none; z-index: 2; }
.energy-beam { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.15), transparent); filter: blur(20px); opacity: 0.8; }
.energy-beam::before, .energy-beam::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.energy-beam::before { background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.3), transparent); filter: blur(5px); animation: beam-flow 15s infinite linear alternate; }
.energy-beam::after { background: linear-gradient(90deg, transparent, white, transparent); width: 50%; left: 25%; filter: blur(30px); opacity: 0.3; animation: beam-flow 10s infinite linear alternate-reverse; }
.hero-content { position: relative; z-index: 3; }
.featurette { position: absolute; background-color: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--slate-200); padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; backdrop-filter: blur(5px); animation: float 6s infinite ease-in-out; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.featurette-1 { top: 20px; left: 15%; transform: translateZ(50px); animation-delay: 0s; }
.featurette-2 { top: 120px; left: 5%; transform: translateZ(80px); animation-delay: 2s; }
.featurette-3 { top: 60px; right: 10%; transform: translateZ(60px); animation-delay: 4s; }
.hero-title { font-size: clamp(3rem, 7vw, 5rem); max-width: 850px; margin-left: auto; margin-right: auto; text-shadow: 0 0 20px rgba(96, 165, 250, 0.3), 0 0 50px rgba(96, 165, 250, 0.2); }
.hero-subtitle { font-size: 1.25rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; justify-content: center; gap: 16px; margin-top: 40px; }


/* ======== 5. SERVICES & PRICING ======== */

.services { background-color: var(--bg-primary); overflow: hidden; }
.services::before { content: ''; position: absolute; top: 0; left: 10%; width: 80%; height: 100%; background-image: radial-gradient(circle at center, rgba(30, 108, 232, 0.3), transparent 70%); opacity: 0.6; filter: blur(100px); z-index: 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; position: relative; z-index: 1; }
.card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 24px; padding: 32px; text-align: left; box-shadow: var(--card-shadow); transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s, border-color 0.3s; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--text-primary); }
.card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.2); border-color: var(--primary-accent); }
.card.popular { position: relative; border-color: var(--blue-500); box-shadow: 0 0 60px 0px rgba(96, 165, 250, 0.3); }
.card.popular:hover { box-shadow: 0 0 70px 0px rgba(96, 165, 250, 0.4); }
.card-title { font-size: 1.75rem; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.card-description { font-size: 1rem; color: var(--text-secondary); min-height: 3.2em; }
.price { font-size: 2.5rem; font-weight: 700; color: var(--text-primary); margin: 24px 0; }
.price-currency { font-size: 1.5rem; color: var(--text-secondary); margin-right: 4px; }
.price-amount { font-size: 3rem; color: var(--text-primary); }


/* ======== 6. WHY CHOOSE US ======== */

.why-us { background-color: var(--bg-secondary); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 50px; }
.feature-item { text-align: center; }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; background-image: linear-gradient(to top, var(--blue-500), var(--blue-600)); color: var(--white); border-radius: 50%; margin-bottom: 24px; box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25); }
.feature-icon svg { width: 32px; height: 32px; }
.feature-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 12px; color: var(--text-primary); }
.feature-description { color: var(--text-secondary); }


/* ======== 7. SAMPLES & MODAL ======== */

.samples { background-color: var(--bg-primary); }
.samples-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; text-align: left; margin-top: 50px; }
.sample-box { background: var(--card-bg); border: 1px solid var(--border-color); padding: 32px; border-radius: 16px; }
.sample-box h3 { color: var(--primary-accent); font-size: 1.75rem; margin-bottom: 12px; }
.sample-image { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 20px rgba(0,0,0,0.15); cursor: pointer; margin-top: 24px; transition: transform 0.3s, box-shadow 0.3s; }
.sample-image:hover { transform: scale(1.03); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }

.modal-overlay { position: fixed; inset: 0; background-color: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { position: relative; background-color: var(--slate-900); width: 90%; max-width: 1200px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: scale(0.95); transition: transform 0.3s ease; display: flex; flex-direction: column; max-height: 90vh; }
#csv-modal .modal-content { padding: 30px; }
#image-modal .modal-content { width: auto; max-width: 90%; height: auto; padding: 0; background: transparent; }
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-close-btn { position: absolute; top: -15px; right: -15px; width: 36px; height: 36px; background: var(--blue-500); color: var(--white); border: none; border-radius: 50%; font-size: 24px; line-height: 36px; text-align: center; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 10; }
#full-screen-image { border-radius: 6px; width: 100%; height: 100%; max-height: 80vh; }

.table-container { flex-grow: 1; overflow-y: auto; overflow-x: hidden; position: relative; -webkit-mask-image: linear-gradient(to bottom, black 95%, transparent 100%); mask-image: linear-gradient(to bottom, black 95%, transparent 100%); }
.table-container::-webkit-scrollbar { width: 8px; }
.table-container::-webkit-scrollbar-track { background: var(--slate-800); }
.table-container::-webkit-scrollbar-thumb { background: var(--blue-500); border-radius: 4px; }
.table-container::-webkit-scrollbar-thumb:hover { background: var(--blue-400); }

.data-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.data-table thead { position: sticky; top: 0; z-index: 1; }
.data-table th { background-color: rgba(15, 23, 42, 0.85); backdrop-filter: blur(5px); padding: 16px 20px; border-bottom: 2px solid var(--border-color); font-weight: 600; text-align: left; color: var(--slate-100); }
.data-table td { padding: 14px 20px; border-bottom: 1px solid var(--border-color); }
.data-table tbody tr { transition: background-color 0.2s ease; }
.data-table tbody tr:hover { background-color: rgba(30, 41, 59, 0.7); }
.data-table tbody tr:nth-child(even) { background-color: rgba(30, 41, 59, 0.3); }
.data-table tbody tr:nth-child(even):hover { background-color: rgba(30, 41, 59, 0.9); }


/* ======== 8. TESTIMONIALS ======== */

.testimonials { background-color: var(--bg-secondary); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; margin-top: 50px; }
.testimonial-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; }
.testimonial-text { font-size: 1.125rem; font-style: italic; color: var(--text-secondary); margin-bottom: 24px; flex-grow: 1; }
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.author-photo { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--primary-accent); }
.author-name { font-weight: 600; color: var(--text-primary); }
.author-title { font-size: 0.9rem; color: var(--text-secondary); }


/* ======== 9. CTA & FOOTER ======== */

.cta { background-color: var(--bg-primary); color: var(--text-primary); padding: 120px 0; text-align: center; overflow: hidden; }
.cta::before { content: ''; position: absolute; top: 50%; left: 50%; width: 80%; padding-top: 80%; transform: translate(-50%, -50%); background-image: radial-gradient(circle at center, rgba(96, 165, 250, 0.3), transparent 60%); filter: blur(80px); z-index: 0; }
.cta .container { position: relative; z-index: 1; }
.cta .section-title { color: var(--text-primary); }
.cta .section-subtitle { color: var(--text-secondary); margin-bottom: 40px; }
.footer { background: var(--bg-primary); color: var(--text-secondary); text-align: center; padding: 40px 0; }


/* ======== 10. RESPONSIVE ======== */

@media (max-width: 768px) {
    .hamburger-btn { display: block; }
    .nav-menu-wrapper { position: fixed; top: 0; left: -100%; width: 100%; height: 100vh; background: var(--bg-primary); flex-direction: column; justify-content: center; align-items: center; transition: left 0.3s ease-in-out; z-index: 1000; }
    .nav-menu-wrapper.active { left: 0; }
    .nav-menu { flex-direction: column; gap: 40px; text-align: center; margin-bottom: 40px; }
    .nav-menu a { font-size: 1.5rem; }
    .btn-whatsapp-nav { position: absolute; top: 20px; right: 80px; }
    .nav-menu-wrapper:not(.active) .btn-whatsapp-nav { display: none; }
    .hero { padding: 80px 0; }
    .hero-buttons { flex-direction: column; align-items: center; }
    section { padding: 80px 0; }
    .featurette { display: none; }
    .pricing-grid, .features-grid { grid-template-columns: 1fr; justify-items: center; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .samples-grid { grid-template-columns: 1fr; }

    #csv-modal .modal-content { padding: 20px; }
    .data-table th { padding: 12px 15px; }
    .data-table td { padding: 10px 15px; font-size: 0.9rem; }
}

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