/*
Theme Name: Amigosss Perfect Mobile Theme
Author: Amigosss
Description: Fixed Horizontal Overflow & Perfect Hamburger Menu
Version: 1.5
*/

:root {
    --bg-color: #f0f5ff; 
    --primary-blue: #1d72d3;
    --dark-blue: #0f172a;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* --- BASE STYLES & OVERFLOW FIX --- */
* { 
    margin: 0; padding: 0; box-sizing: border-box; 
    font-family: 'Inter', sans-serif; 
}

html, body { 
    overflow-x: hidden !important; /* This stops the 'zoom out' issue */
    width: 100%;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

img { max-width: 100%; height: auto; }

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
    width: 100%; 
}

.section-padding { padding: 100px 0; }

.section-tag { color: var(--primary-blue); font-weight: 700; font-size: 13px; text-transform: uppercase; margin-bottom: 15px; display: block; text-align: center; }
.section-title { font-size: 42px; font-weight: 800; color: var(--dark-blue); margin-bottom: 60px; text-align: center; }

/* --- BUTTONS --- */
.btn-blue { background: var(--primary-blue); color: white; padding: 12px 28px; border-radius: 50px; font-weight: 600; transition: var(--transition); border: none; cursor: pointer; display: inline-block; }
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(29, 114, 211, 0.2); }

/* --- HEADER & NAVIGATION (FIXED) --- */
header { 
    position: fixed; top: 0; left: 0; width: 100%; 
    z-index: 2000; 
    background: rgba(240, 245, 255, 0.95); 
    backdrop-filter: blur(12px); 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
}

nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 0; 
    height: 70px;
}

.logo { font-size: 26px; font-weight: 800; color: var(--primary-blue); letter-spacing: -0.5px; z-index: 2100; }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-weight: 500; color: var(--text-main); transition: var(--transition); font-size: 15px; }
.nav-links a:hover { color: var(--primary-blue); }

.menu-toggle { 
    display: none; 
    font-size: 26px; 
    color: var(--primary-blue); 
    cursor: pointer; 
    z-index: 2100; 
}

.mobile-btn-li { display: none; }

/* --- HERO SECTION --- */
.hero { padding: 180px 0 100px; }
.hero .container { display: flex; align-items: center; gap: 50px; }
.hero-text { flex: 1.2; }
.hero-text h1 { font-size: 64px; font-weight: 800; line-height: 1.1; margin: 20px 0; color: var(--dark-blue); }
.hero-text p { font-size: 19px; margin-bottom: 40px; color: var(--text-muted); max-width: 520px; }
.hero-google-btn { display: inline-flex; align-items: center; gap: 12px; background: var(--dark-blue); color: white; padding: 16px 32px; border-radius: 50px; font-weight: 600; transition: var(--transition); }
.hero-img { flex: 0.8; position: relative; display: flex; justify-content: center; }
.hero-img img { width: 100%; max-width: 420px; z-index: 2; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.12)); }
.circle-bg { position: absolute; width: 480px; height: 480px; background: rgba(255,255,255,0.6); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; }

/* --- FEATURES --- */
.features-section-light { background-color: #fcfdfe; text-align: center; }
.features-grid-clean { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-top: 50px; }
.feature-card-light { background: #ffffff; padding: 50px 30px; border-radius: 24px; border: 1px solid rgba(0, 0, 0, 0.03); transition: all 0.4s ease; cursor: pointer; }
.feature-icon-box { width: 70px; height: 70px; background: var(--primary-blue); color: #ffffff; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 30px; }

/* --- DEMO --- */
.demo-wrapper { position: relative; max-width: 1000px; margin: 0 auto; padding: 40px; }
.browser-frame { background: #ffffff; border-radius: 20px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15); overflow: hidden; border: 1px solid #e2e8f0; }
.browser-header { background: #f8fafc; padding: 12px 20px; display: flex; align-items: center; border-bottom: 1px solid #e2e8f0; }
.dot { width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.video-content { position: relative; aspect-ratio: 16/9; background: #0f172a; cursor: pointer; }
.video-content img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }

.sketch { position: absolute; background: #f0f7ff; padding: 12px 20px; border-radius: 50px; border: 2px dashed var(--primary-blue); color: var(--primary-blue); font-weight: 700; z-index: 5; font-size: 14px; }
.sketch-left { left: -20px; top: 20%; animation: floatLeft 5s infinite ease-in-out; }
.sketch-right { right: -20px; bottom: 20%; animation: floatRight 6s infinite ease-in-out; }
@keyframes floatLeft { 0%, 100% { transform: translate(0, 0) rotate(-5deg); } 50% { transform: translate(-15px, -20px) rotate(5deg); } }
@keyframes floatRight { 0%, 100% { transform: translate(0, 0) rotate(5deg); } 50% { transform: translate(15px, 20px) rotate(-5deg); } }

/* --- SOLUTIONS --- */
.solutions-section { background-color: #f0f5ff; overflow: hidden; padding: 100px 0; }
.solutions-track { display: flex; gap: 30px; width: max-content; animation: scrollSolutions 40s linear infinite; }
.solution-card { background: #ffffff; width: 320px; padding: 40px 30px; border-radius: 20px; text-align: center; flex-shrink: 0; }
@keyframes scrollSolutions { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-350px * 5)); } }

/* --- TEAM --- */
.team-container-centered { display: flex; justify-content: center; gap: 50px; max-width: 1000px; margin: 0 auto; }
.team-card-unique { background: var(--white); flex: 1; max-width: 400px; padding: 60px 40px; border-radius: 40px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.03); transition: all 0.5s ease; }
.member-image-wrap { position: relative; width: 190px; height: 190px; margin: 0 auto 35px; }
.member-image-wrap img { width: 100%; height: 100%; border-radius: 50%; z-index: 2; object-fit: cover; border: 8px solid white; position: relative; }
.img-blob { position: absolute; top: -15px; left: -15px; width: 220px; height: 220px; background: #dbeafe; border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; animation: blobAnimate 10s infinite ease-in-out; opacity: 0.8; }
@keyframes blobAnimate { 0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; } 33% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; } }

/* --- FOOTER --- */
footer { background: #050a24; color: white; padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-divider { height: 1px; background: rgba(255, 255, 255, 0.08); margin: 60px 0 30px; }
.footer-bottom { text-align: center; font-size: 14px; color: #adb5bd; }

/* ==========================================
   ADVANCED MOBILE ENGINE (FIXES EVERYTHING)
   ========================================== */

/* Tablet View */
@media (max-width: 1024px) {
    .hero-text h1 { font-size: 48px; }
    .features-grid-clean { grid-template-columns: repeat(2, 1fr); }
}

/* Perfect Hamburger Logic (850px and below) */
@media (max-width: 850px) {
    .menu-toggle { display: block; } /* Shows the 3 lines */
    .hide-on-mobile { display: none; } /* Hides desktop button */

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen */
        width: 75%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        transition: 0.4s ease-in-out;
        box-shadow: -10px 0 30px rgba(0,0,0,0.15);
        z-index: 2050;
    }

    .nav-links.active { right: 0; } /* Slides in when active */
    .nav-links li { margin: 20px 0; width: 100%; }
    .nav-links a { font-size: 20px; color: var(--dark-blue); font-weight: 700; display: block; width: 100%; }
    
    .mobile-btn-li { display: block; padding: 0 40px; }
    .mobile-btn-li .btn-blue { width: 100%; }

    /* Fix Hero Stacking */
    .hero { padding: 140px 0 60px; }
    .hero .container { flex-direction: column-reverse; text-align: center; gap: 30px; }
    .hero-text h1 { font-size: 36px; }
    .hero-text p { margin: 0 auto 30px; }
    .hero-img img { max-width: 320px; }
    .circle-bg { width: 300px; height: 300px; }

    /* Fix Team Stacking */
    .team-container-centered { flex-direction: column; align-items: center; }
    .team-card-unique { width: 100%; max-width: 100%; }

    /* Fix Footer Stacking */
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .footer-brand p { margin: 0 auto 30px; }
    .socials { justify-content: center; }
}

/* Tiny Mobile Fix (480px and below) */
@media (max-width: 480px) {
    .section-padding { padding: 60px 0; }
    .section-title { font-size: 28px; }
    .hero-text h1 { font-size: 30px; }
    .features-grid-clean { grid-template-columns: 1fr; }
    .sketch { display: none; } /* Removes confusing elements on small screens */
    .circle-bg { display: none; } /* Reduces overflow risks */
}