/* ==========================================================================
   FIAO PUBLIC FRONTEND STYLES
   ========================================================================== */

:root {
    /* Brand Colors - FIAO */
    --primary: #ef4444; /* Vibrant Red */
    --primary-dark: #cc1e2e;
    --primary-light: rgba(255, 39, 59, 0.1);
    --accent: #dc2626; /* Deep Red */
    
    /* Backgrounds */
    --bg-body: #050505;
    --bg-surface: #111111;
    --bg-surface-light: #1a1a1a;
    --bg-hero: radial-gradient(circle at 30% 10%, #4a030c 0%, #1a0104 50%, #050505 100%);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-light: #71717a;
    --text-inverse: #000000;
    
    /* UI Elements */
    --border-color: #27272a;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;
    
    /* Shadows - Premium soft layered shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.7);
    --shadow-hover: 0 25px 35px -5px rgba(255, 69, 0, 0.2);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-primary { color: var(--primary); }
.text-center { text-align: center; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: 0 10px 20px -10px rgba(239, 68, 68, 0.4);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    box-shadow: 0 15px 30px -10px rgba(239, 68, 68, 0.5);
    transform: translateY(-3px) scale(1.02);
    color: white;
}

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

.btn-outline:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.btn-pill {
    border-radius: var(--radius-pill);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: transparent;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    height: 80px;
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: none;
    gap: 32px;
    margin-left: auto;
    margin-right: 40px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-actions .btn {
    display: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-actions .btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 39, 59, 0.4);
}

.user-login-btn {
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.user-login-btn svg {
    transition: transform 0.3s ease;
}

.user-login-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.user-login-btn:hover svg {
    transform: scale(1.2);
}

/* Navbar Dark Text (For Legal/Info Pages) */
.navbar.navbar-dark-text .nav-links a {
    color: #475569;
}

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

.navbar.navbar-dark-text .user-login-btn {
    color: #475569;
    background: rgba(0, 0, 0, 0.05);
}

.navbar.navbar-dark-text .user-login-btn:hover {
    color: #fff;
    background: var(--primary);
}

.navbar.navbar-dark-text .mobile-menu-btn {
    color: #475569;
}

.navbar.navbar-dark-text.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom-color: #e2e8f0;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-surface);
    padding: 0;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav.active {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
}

.mobile-nav a {
    display: block;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 500;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.mobile-nav.active a {
    transform: translateY(0);
    opacity: 1;
}

/* Staggered link animation */
.mobile-nav.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active a:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav.active a:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav.active a:nth-child(4) { transition-delay: 0.4s; }
.mobile-nav.active .mobile-nav-actions { transition-delay: 0.5s; transform: translateY(0); opacity: 1; }

.mobile-nav-actions {
    padding: 24px;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5,5,5,0.2) 0%, rgba(5,5,5,0.9) 100%);
    z-index: 0;
}

.floating-img {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.3;
    border-radius: 50%;
    top: -100px;
    right: -200px;
    z-index: 0;
    transition: transform 0.2s ease-out;
}

.hero-bg-accent {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent);
    filter: blur(100px);
    opacity: 0.2;
    border-radius: 50%;
    bottom: -50px;
    left: -100px;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 18px;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.mockup-wrapper img {
    width: 100%;
    height: auto;
    transform: rotate(5deg) scale(1.05);
    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.5));
    transition: transform 0.5s ease;
}

.mockup-wrapper:hover img {
    transform: rotate(0deg) scale(1.1);
}

/* ==========================================================================
   SECTIONS & GRIDS
   ========================================================================== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 32px;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.grid-3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

/* ==========================================================================
   CARDS (Premium Style)
   ========================================================================== */
.feature-card {
    background: var(--bg-surface);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 24px;
}

/* Device Card */
.device-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); /* Extremely soft base shadow */
    display: flex;
    flex-direction: column;
}

.device-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.device-image {
    width: 100%;
    height: 240px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.device-card:hover .device-image {
    transform: scale(1.05);
}

.device-brand {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    font-weight: 600;
}

.device-name {
    font-size: 18px;
    margin: 8px 0;
    color: var(--text-primary);
}

.device-price {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: auto;
}

.device-installment {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    display: inline-block;
    margin-bottom: 12px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: #020202;
    color: var(--text-secondary);
    padding: 100px 0 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.2fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 24px;
    font-weight: 800;
    font-family: 'Outfit';
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col ul a {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
    line-height: 1.4;
}

.footer-col ul a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-grid-sub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 39, 59, 0.2);
}

.footer-social-col {
    position: relative;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: left;
    color: #52525b;
    font-size: 14px;
}

@media (max-width: 1200px) {
    .footer-container {
        gap: 30px;
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .footer-col-double {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer { padding: 80px 0 40px; }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .footer-col-double {
        grid-column: span 1;
    }
    .footer-grid-sub {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* ==========================================================================
   WHATSAPP BUTTON
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: white;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Desktop)
   ========================================================================== */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .nav-actions .btn {
        display: inline-flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-content h1 {
        font-size: 56px;
    }
    
    .grid-3 {
        gap: 30px;
    }
    
    .grid-3 > * {
        width: calc(33.333% - 20px);
        min-width: 320px;
        flex-grow: 0;
    }
    
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Glassmorphism utility */
.glass {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Shimmer effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
}

.shimmer:hover::after {
    left: 150%;
    transition: 0.8s;
}

/* Scroll animation */
@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Section heading reveal */
.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    transform: translateX(-50%);
}
