/* Reset & Base */
:root {
    --primary-color: #0F172A; /* Deep Navy */
    --secondary-color: #1E293B; /* Lighter Navy */
    --accent-color: #D4AF37; /* Metallic Gold */
    --accent-hover: #B59326;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --success-color: #10B981;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

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

.small-container {
    max-width: 800px;
}

.section-padding {
    padding: 5rem 0; /* 80px */
}

/* Typography Utilities */
.text-center { text-align: center; }
.text-gold { color: var(--accent-color); }

/* Badges */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #B59326 100%);
    color: #000;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

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

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

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    font-size: 1.2rem;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

.btn-link {
    color: var(--accent-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-link:hover {
    gap: 0.8rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse-effect {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.glow-effect {
    position: relative;
    overflow: hidden;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.5s, transform 0.5s;
}

.glow-effect:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(15, 23, 42, 0.95);
}

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

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

.logo i {
    color: var(--accent-color);
}

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

.nav-links a:not(.nav-cta) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.nav-cta {
    padding: 0.6rem 1.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 6px;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--accent-color);
    color: #000;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

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

/* Background image handling - fallback if image.jpeg is missing or bad */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('public/background.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) saturate(0); /* Black and white base for sophistication */
    z-index: -2;
    transition: transform 10s ease;
    animation: zoomHero 20s infinite alternate;
}

@keyframes zoomHero {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 100%);
    z-index: -1;
}

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

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94A3B8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.trust-indicators {
    display: flex;
    gap: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.trust-item i {
    color: var(--accent-color);
}

/* Pain Points / Problem Section */
.bg-dark { background-color: var(--primary-color); }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pain-card {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.pain-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.icon-box.danger { background: rgba(239, 68, 68, 0.1); color: #EF4444; }
.icon-box.warning { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.icon-box.success { background: rgba(16, 185, 129, 0.1); color: #10B981; }

.pain-card h3 { margin-bottom: 1rem; font-size: 1.25rem; }
.pain-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* Features / Value Gen */
.glass-card {
    background: var(--secondary-color); /* Fallback */
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Spanning logic */
.features-grid .feature-card:nth-child(1),
.features-grid .feature-card:nth-child(2) {
    grid-column: span 3; /* For mobile mainly, checked below in media query */
}

/* Complex Grid Layout for Features */
@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
    }
    .features-grid .feature-card:nth-child(1) { grid-column: span 1; }
    .features-grid .feature-card:nth-child(2) { grid-column: span 1; }
    .features-grid .feature-card:nth-child(3) { grid-column: span 1; }
    .features-grid .feature-card:nth-child(4) { grid-column: span 2; }
    .features-grid .feature-card:nth-child(5) { grid-column: span 1; background: linear-gradient(135deg, var(--accent-color) 0%, #a3821c 100%); color: #000; }
    
    .features-grid .feature-card:nth-child(5) p, 
    .features-grid .feature-card:nth-child(5) h3, 
    .features-grid .feature-card:nth-child(5) .btn-link {
        color: #000;
        border-color: #000;
    }
    .features-grid .feature-card:nth-child(5) .feature-icon {
        background: rgba(0,0,0,0.1);
        color: #000;
    }
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.feature-desc { color: var(--text-secondary); margin-bottom: 1.5rem; }
.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.feature-list li i { color: var(--accent-color); font-size: 0.8rem; }

/* Persona Section */
.bg-dark-alt { background-color: #0B1120; }
.row { display: flex; flex-wrap: wrap; gap: 4rem; }
.col-text { flex: 1; min-width: 300px; }
.col-visual { flex: 1; min-width: 300px; display: flex; align-items: center; justify-content: center; }

.audience-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 2rem; }
.audience-item { display: flex; gap: 1rem; align-items: flex-start; }
.audience-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 0.3rem;
}
.audience-item h4 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.audience-item p { color: var(--text-secondary); font-size: 0.9rem; }

.stat-box {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: rotateBorder 10s linear infinite reverse;
}

.stat-number { font-size: 4rem; font-weight: 800; color: var(--accent-color); line-height: 1; }
.stat-label { font-size: 1.2rem; margin-top: 0.5rem; color: var(--text-primary); }

/* Ticker */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--accent-color);
    padding: 1rem 0;
    white-space: nowrap;
}

.ticker {
    display: inline-block;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); } /* Assuming duplication of items twice or calc width */
}

/* Contact */
.contact-section {
    background: url('public/background.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    padding: 8rem 0;
}
.contact-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.9);
}

.contact-card {
    position: relative;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 4rem 2rem;
    border-radius: 20px;
}

.contact-subtitle {
    margin-bottom: 3rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: #020617;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand { max-width: 400px; }
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { color: var(--text-secondary); }

.footer-links h3 { margin-bottom: 1.5rem; }
.footer-links a { display: block; margin-bottom: 0.8rem; color: var(--text-secondary); }
.footer-links a:hover { color: var(--accent-color); transform: translateX(5px); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.keywords-cloud { margin-top: 1rem; opacity: 0.5; }

/* Floating WhatsApp */
.whatsapp-float {
    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;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 100;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .nav-links { display: none; } /* Add slide menu in JS logic if needed, or simple hide */
    .mobile-menu-btn { display: block; }
    
    .features-grid { grid-template-columns: 1fr; }
    .features-grid .feature-card { grid-column: span 1 !important; }
    
    .contact-details { flex-direction: column; gap: 1rem; }
    .hero-buttons { flex-direction: column; }
    
    /* Active Mobile Menu Basic */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        padding: 2rem;
        border-bottom: 1px solid var(--glass-border);
    }
}

/* Mobile Responsive Extra Small Devices */
@media (max-width: 370px) {
    html {
        font-size: 14px; /* Global scale down */
    }

    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem; /* Was 2.5rem on <768px */
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
        width: 100%; /* Full width buttons for ease of tap */
    }

    .glass-card, 
    .pain-card, 
    .contact-card,
    .feature-card {
        padding: 1.5rem; /* Reduce padding from 2rem/2.5rem */
    }

    .stat-box {
        width: 250px;
        height: 250px;
    }

    .stat-number {
        font-size: 3rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    .section-padding {
        padding: 3rem 0; /* Reduce vertical spacing */
    }

    .hero {
        padding-top: 100px; /* Adjust header overlap if needed */
        min-height: auto; /* Avoid forced height issues on small screens */
        padding-bottom: 3rem;
    }

    .feature-icon, 
    .icon-box {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* Ultra Small Devices (Fold 2 cover, tiny phones) */
@media (max-width: 315px) {
    html {
        font-size: 13px; /* Further global scale down */
    }

    .container {
        padding: 0 10px; /* Minimal padding */
    }

    .hero-title {
        font-size: 1.75rem;
        word-wrap: break-word; /* Ensure long words break */
    }

    .hero-buttons {
        gap: 0.5rem;
    }

    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .glass-card, 
    .pain-card, 
    .contact-card,
    .feature-card {
        padding: 1rem !important; /* Minimal card padding */
    }

    .feature-grid, .pain-points-grid {
        gap: 1.5rem;
    }

    /* Stat Box needs serious shrinking or hiding */
    .stat-box {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 22px;
        bottom: 15px;
        right: 15px;
    }

    .logo {
        font-size: 1.25rem;
    }

    /* Fix potential overflow in feature icons/text */
    .feature-icon, .icon-box {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    .ticker-item {
        padding: 0 1rem;
        font-size: 0.85rem;
    }
}