/* --- CSS STYLES (style.css) --- */
:root {
    --bg: #000000;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-hover: rgba(255, 255, 255, 0.12);
    --border: rgba(255, 255, 255, 0.1);
    --primary: #3b82f6;
    --accent: #8b5cf6;
    --text: #ffffff;
    --text-gray: #9ca3af;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- LOADING SCREEN --- */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease;
}
.loader-content { text-align: center; }
.loader-logo { font-size: 2rem; font-weight: 700; margin-bottom: 20px; color: white; }
.spinner {
    width: 40px; height: 40px; border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid var(--primary); border-radius: 50%;
    animation: spin 1s linear infinite; margin: 0 auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- POPUP MODAL --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
    z-index: 2000; display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.modal-box {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 1px solid var(--primary);
    padding: 30px; border-radius: 20px; text-align: center;
    max-width: 400px; width: 100%; position: relative;
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.3);
    animation: popupScale 0.4s ease;
}
@keyframes popupScale { from {transform: scale(0.8); opacity: 0;} to {transform: scale(1); opacity: 1;} }

.close-modal { position: absolute; top: 15px; right: 20px; color: var(--text-gray); cursor: pointer; font-size: 1.5rem; }
.modal-icon { font-size: 3rem; color: #fbbf24; margin-bottom: 15px; }
.modal-box h2 { font-size: 1.8rem; margin-bottom: 10px; color: white; }
.modal-box p { color: var(--text-gray); margin-bottom: 20px; }

/* --- BACKGROUND GLOW --- */
.ambient-glow {
    position: fixed; width: 400px; height: 400px; border-radius: 50%;
    filter: blur(120px); opacity: 0.3; z-index: -1; pointer-events: none;
}
.purple { top: -100px; left: -100px; background: var(--accent); animation: float 10s infinite alternate; }
.blue { bottom: -100px; right: -100px; background: var(--primary); animation: float 12s infinite alternate-reverse; }
@keyframes float { 0% { transform: translate(0,0); } 100% { transform: translate(30px, 30px); } }

/* --- NAVBAR --- */
.glass-nav {
    position: fixed; top: 20px; left: 0; right: 0;
    display: flex; flex-direction: column; align-items: center;
    z-index: 1000; padding: 0 20px; transition: all 0.3s ease;
}
.nav-content {
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    padding: 10px 25px; border-radius: 50px;
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; max-width: 900px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.brand { font-weight: 700; font-size: 1.4rem; color: white; text-decoration: none; }
.dot { color: var(--primary); }
.nav-items { display: flex; gap: 30px; }
.nav-items a { color: var(--text-gray); text-decoration: none; font-size: 0.95rem; transition: 0.3s; }
.nav-items a:hover { color: white; }

.action-btn { background: white; color: black; padding: 8px 20px; border-radius: 30px; text-decoration: none; font-weight: 600; font-size: 0.9rem; }

.mobile-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; padding: 5px; }

/* Mobile Menu */
.mobile-menu {
    max-height: 0; overflow: hidden; opacity: 0;
    background: rgba(20, 20, 20, 0.95); backdrop-filter: blur(20px);
    width: 90%; max-width: 880px; border-radius: 20px; margin-top: 10px;
    display: flex; flex-direction: column; text-align: center;
    transition: all 0.4s ease; border: 1px solid var(--border);
}
.mobile-menu a { padding: 15px; color: var(--text-gray); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mobile-menu a.highlight-link { color: var(--primary); font-weight: 700; border-bottom: none; }

.glass-nav.expanded .mobile-menu { max-height: 300px; opacity: 1; padding: 10px 0; }

/* --- HERO --- */
.hero { min-height: 90vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 100px; }
.pill-badge {
    border: 1px solid var(--border); padding: 8px 16px; border-radius: 30px;
    font-size: 0.85rem; color: var(--text-gray); display: inline-block; margin-bottom: 25px;
    background: rgba(255,255,255,0.03);
}
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 25px; font-weight: 700; }
.gradient-text {
    background: linear-gradient(to right, #60a5fa, #c084fc);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--text-gray); max-width: 500px; margin: 0 auto 40px; font-size: 1.2rem; }
.btn-wrapper { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.btn-glow {
    background: var(--primary); color: white; padding: 14px 35px; border-radius: 50px;
    text-decoration: none; font-weight: 600; box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
    transition: transform 0.2s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-glass {
    background: rgba(255,255,255,0.08); color: white; padding: 14px 35px;
    border-radius: 50px; text-decoration: none; font-weight: 600; border: 1px solid var(--border);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-glow:hover, .btn-glass:hover { transform: scale(1.05); }

/* PHONE ICON ROTATION CLASS (0 DEGREE) */
.phone-rotate {
    transform: rotate(0deg);
}

/* --- SECTIONS --- */
.section { padding: 100px 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.glass-card {
    background: var(--glass); border: 1px solid var(--border); border-radius: 24px; padding: 40px;
    transition: transform 0.3s, background 0.3s;
    cursor: pointer; 
}
.glass-card:hover { transform: translateY(-10px); background: var(--glass-hover); border-color: rgba(255,255,255,0.25); }
.icon-box {
    width: 60px; height: 60px; background: rgba(255,255,255,0.05); border-radius: 16px;
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--primary);
    margin-bottom: 25px;
}
.glass-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.glass-card p { color: var(--text-gray); }

/* --- STATS SECTION --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 50px;
}
.glass-panel {
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 30px;
}
.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}
.stat-item p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* --- REVIEW SLIDER CSS --- */
.slider-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    width: 100%;
}

.review-slide {
    min-width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

a.review-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    padding: 40px; 
    border-radius: 20px; 
    border: 1px solid var(--border);
    text-align: center;
    height: 100%;
    display: block;
    text-decoration: none;
    transition: transform 0.3s, border-color 0.3s;
    cursor: pointer;
}

a.review-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    background: rgba(255,255,255,0.05);
}

.stars { color: #fbbf24; margin-bottom: 15px; font-size: 1.2rem; }
.review-text { font-style: italic; color: var(--text-gray); margin-bottom: 20px; font-size: 1.1rem; }
.client-name { font-weight: 700; color: white; font-size: 1.2rem; }
.client-loc { font-size: 0.9rem; color: var(--primary); margin-top: 5px; }

/* --- FAQ FIXED --- */
.faq-item {
    background: var(--glass); 
    border: 1px solid var(--border); 
    border-radius: 15px; 
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px; 
    cursor: pointer; 
    font-weight: 600; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    user-select: none; 
}

.faq-answer {
    padding: 0 20px 20px; 
    color: var(--text-gray); 
    display: none; 
    border-top: 1px solid var(--border); 
    padding-top: 15px;
}

/* Open State Class */
.faq-item.faq-active .faq-answer { 
    display: block; 
    animation: fadeIn 0.3s ease;
}

.faq-item.faq-active .faq-question { 
    color: var(--primary); 
}

/* Plus sign styling */
.faq-question span {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

/* Plus rotates when open */
.faq-item.faq-active .faq-question span {
    transform: rotate(45deg); 
    color: var(--primary);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- FOOTER --- */
.footer-grid {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 50px; 
    padding: 80px 20px 40px; 
    border-top: 1px solid var(--border);
}
.footer-info h2 { font-size: 2rem; margin-bottom: 20px; }
.footer-info p { color: var(--text-gray); margin-bottom: 30px; }
.socials a { color: white; font-size: 1.5rem; margin-right: 20px; opacity: 0.7; transition: opacity 0.3s; }
.socials a:hover { opacity: 1; color: var(--primary); }

/* FORM STYLES */
.footer-form input, 
.footer-form select {
    width: 100%; padding: 15px 20px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    border-radius: 12px; color: white; margin-bottom: 15px; font-family: inherit;
    padding-right: 40px;
}

.footer-form select option {
    background-color: #1a1a1a;
    color: white;
    padding: 10px 15px;
}

.footer-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
}

.footer-form button {
    width: 100%; padding: 15px; background: white; color: black; border: none; border-radius: 12px; font-weight: 700; cursor: pointer;
}
.copyright { text-align: center; padding-bottom: 30px; color: var(--text-gray); font-size: 0.8rem; }

/* --- FLOATING BUTTONS (BOTH ON RIGHT) --- */

/* 1. WhatsApp Button (Bottom Right) */
.float-wa {
    position: fixed;
    bottom: 30px;
    right: 30px; /* Right Side */
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}
.float-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.4);
}

/* 2. Scroll Top Button (Right Side, Above WhatsApp) */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 105px; /* 30px (WA bottom) + 60px (WA height) + 15px (gap) */
    right: 30px; /* Same alignment as WhatsApp */
    z-index: 1000;
    border: none;
    outline: none;
    background-color: var(--primary);
    color: white;
    cursor: pointer;
    width: 60px; /* Same as WhatsApp */
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    /* Center icon perfectly */
    display: none; /* Controlled by JS */
    align-items: center;
    justify-content: center;
}

#scrollTopBtn:hover {
    background-color: var(--accent);
    transform: translateY(-5px);
}

/* --- ANIMATIONS & RESPONSIVE --- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

@media (max-width: 768px) {
    .nav-items.desktop-only { display: none; }
    .action-btn { display: none; }
    .mobile-toggle { display: block; }
    .nav-content { padding: 10px 20px; }
    .brand { font-size: 1.2rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero { min-height: 80vh; padding-top: 120px; }
    
    .footer-grid { 
        grid-template-columns: 1fr; 
        padding: 40px 30px !important; 
    }
    a.review-card { padding: 25px; }
    
    /* Mobile Floating Buttons Adjustment */
    .float-wa {
        width: 50px;
        height: 50px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
    
    #scrollTopBtn {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 80px; /* 20px + 50px + 10px gap */
        right: 20px; /* Same alignment */
    }
}
