/* --- assets/css/style.css --- */

/* --- CORE CSS VARIABLES --- */
:root {
    --primary-gradient: linear-gradient(135deg, #0b409c 0%, #106ceb 100%);
    --accent-red: #ff3c5c;
    --text-main: #2d3436;
    --text-light: #ffffff;
    --bg-body: #ffffff;
    --bg-body-alt: #f8fafc;
    --bg-footer: #0a1118;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- GLOBAL RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Poppins', sans-serif; color: var(--text-main); background-color: var(--bg-body); line-height: 1.7; overflow-x: hidden; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: #1a1a1a; }
a { text-decoration: none; color: inherit; transition: var(--transition-smooth); }
ul { list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* --- BUTTONS --- */
.btn { display: inline-block; padding: 0.85rem 2rem; border-radius: 50px; font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; transition: var(--transition-smooth); cursor: pointer; border: none; text-align: center; }
.btn-red { background-color: var(--accent-red); color: var(--text-light); }
.btn-red:hover { background-color: #e03050; box-shadow: 0 5px 15px rgba(255, 60, 92, 0.3); transform: translateY(-2px); color: white;}
.btn-outline { background-color: transparent; color: #ffffff; border: 2px solid rgba(255, 255, 255, 0.4); }
.btn-outline:hover { border-color: #ffffff; background-color: rgba(255, 255, 255, 0.1); color: white; }
.btn-white { background-color: #ffffff; color: #106ceb; }
.btn-white:hover { background-color: #f8fafc; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); }

/* --- HEADER --- */
.site-header { position: fixed; top: 0; width: 100%; background-color: transparent; z-index: 1000; transition: var(--transition-smooth); }
.site-header.sticky { background-color: var(--bg-body); box-shadow: var(--shadow-sm); }
.site-header.solid { background-color: var(--bg-body); box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; }
.logo { font-size: 1.5rem; font-weight: 700; }
.logo-a { color: var(--accent-red); }
.logo-f { color: #fff; transition: var(--transition-smooth); }
.site-header.sticky .logo-f, .site-header.solid .logo-f { color: #000; }
.nav-menu ul { display: flex; gap: 2rem; }
.nav-menu a { color: #fff; font-weight: 500; font-size: 0.95rem; }
.site-header.sticky .nav-menu a, .site-header.solid .nav-menu a { color: var(--text-main); }
.nav-menu a:hover, .nav-menu a.active { color: var(--accent-red) !important; }

/* --- PAGE HERO (Inner Pages) --- */
.page-hero { background: var(--primary-gradient); padding: 10rem 0 6rem; text-align: center; color: white; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -50%; left: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(4, 190, 254, 0.3) 0%, rgba(4, 190, 254, 0) 70%); border-radius: 50%; z-index: 0; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: white; font-size: 3.5rem; margin-bottom: 1rem; font-weight: 800; }
.page-hero p { font-size: 1.2rem; opacity: 0.9; max-width: 600px; margin: 0 auto; font-weight: 300; }

/* --- CTA SIMPLE --- */
.cta-simple { background: var(--primary-gradient); padding: 5rem 0; text-align: center; color: white; }
.cta-simple h2 { color: white; font-size: 2.5rem; margin-bottom: 1rem; }
.cta-simple p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 2rem; max-width: 600px; margin: 0 auto 2rem;}

/* --- FOOTER --- */
.site-footer { background-color: var(--bg-footer); color: #b1b1b1; padding: 5rem 0 2rem; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer-logo { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; display: inline-block; }
.footer-logo-f { color: #fff; }
.footer-col h4 { color: #fff; font-size: 1.1rem; margin-bottom: 1.5rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { text-align: center; border-top: 1px solid #222; padding-top: 2rem; font-size: 0.8rem; }

/* --- INDEX.HTML SPECIFIC STYLES --- */
.hero-section { background: linear-gradient(135deg, #0b409c 0%, #106ceb 100%); color: #ffffff; padding: 11rem 0 8rem; position: relative; overflow: hidden; }
.hero-section .container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 1.2rem; color: white; font-weight: 800; }
.ai-text-gradient { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-content p { font-size: 1.15rem; font-weight: 300; margin-bottom: 2.5rem; opacity: 0.9; }
.hero-buttons { display: flex; gap: 1rem; }
.glass-panel { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 16px; height: 350px; }

/* Abstract UI Graphics for Hero */
.hero-visual { position: relative; height: 450px; width: 100%; display: flex; justify-content: center; align-items: center; }
.glass-main { width: 90%; height: 280px; border-radius: 16px; z-index: 2; display: flex; flex-direction: column; position: absolute; }
.glass-header { height: 35px; border-bottom: 1px solid rgba(255, 255, 255, 0.15); display: flex; align-items: center; padding: 0 1rem; gap: 6px; }
.mac-dot { width: 10px; height: 10px; border-radius: 50%; }
.glass-body { padding: 2rem; flex: 1; display: flex; flex-direction: column; gap: 1.2rem; }
.mock-line { height: 12px; background: rgba(255, 255, 255, 0.15); border-radius: 6px; }
.mock-line.short { width: 30%; } .mock-line.medium { width: 60%; } .mock-line.long { width: 85%; }

.glass-float-1 { width: 160px; height: 160px; border-radius: 50%; top: 20px; right: 0; z-index: 3; animation: float 6s ease-in-out infinite; display: flex; align-items: center; justify-content: center; position: absolute; }
.glass-float-2 { width: 180px; height: 120px; border-radius: 16px; bottom: 40px; left: -10px; z-index: 3; animation: float 8s ease-in-out infinite reverse; display: flex; align-items: center; justify-content: center; padding: 1.5rem; position: absolute; }
.circle-graph { width: 80px; height: 80px; border-radius: 50%; border: 8px solid rgba(255, 255, 255, 0.1); border-top-color: #ff3c5c; transform: rotate(45deg); }
.bar-graph { display: flex; align-items: flex-end; gap: 8px; height: 60px; width: 100%; }
.bar { width: 14px; background: rgba(255, 255, 255, 0.8); border-radius: 4px; }
.bar-1 { height: 40%; } .bar-2 { height: 75%; background: #ff3c5c; } .bar-3 { height: 100%; } .bar-4 { height: 50%; }

@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0px); } }

/* Homepage Sections */
.section-headline { font-size: 2.5rem; text-align: center; margin-bottom: 0.5rem; }
.section-sub-headline { font-size: 1.1rem; font-weight: 300; text-align: center; margin-bottom: 3rem; color: #636e72; max-width: 700px; margin-left: auto; margin-right: auto; }

.ai-advantage-section { padding: 7rem 0; background-color: var(--bg-body-alt); }
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 3rem; }
.ai-card { background-color: #ffffff; padding: 2.5rem 2rem; border-radius: 16px; box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05); transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); position: relative; overflow: hidden; border: 1px solid #edf2f7; text-align: left; z-index: 1; }
.ai-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--primary-gradient); opacity: 0; transition: opacity 0.3s ease; }
.ai-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1); border-color: transparent; }
.ai-card:hover::before { opacity: 1; }
.ai-icon-wrapper { width: 60px; height: 60px; border-radius: 14px; background: rgba(68, 129, 235, 0.08); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; color: #4481eb; transition: all 0.3s ease; }
.ai-card:hover .ai-icon-wrapper { background: var(--primary-gradient); color: #ffffff; transform: scale(1.05) rotate(-5deg); }
.ai-icon-wrapper svg { width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ai-card h3 { font-size: 1.4rem; margin-bottom: 1rem; color: var(--text-main); font-weight: 600; }
.ai-card p { font-size: 0.95rem; color: #636e72; line-height: 1.6; margin: 0; }

.benefits-section { padding: 7rem 0; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.benefit-card { text-align: center; padding: 2rem; }
.benefit-icon { font-size: 3.5rem; margin-bottom: 1.5rem; }
.benefit-card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.benefit-card p { font-size: 0.95rem; color: #636e72; }

.solution-section { padding: 7rem 0; }
.solution-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
/* --- ENHANCED SOLUTION IMAGE STYLES & ANIMATIONS --- */
.solution-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* Adds a soft, premium shadow that traces the shape of PNG images */
    filter: drop-shadow(0 20px 30px rgba(16, 108, 235, 0.15)); 
}

.solution-image {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Applies a continuous floating effect */
    animation: floatImage 6s ease-in-out infinite; 
}

/* Slightly scale up the image when the user hovers over that specific section */
.solution-section:hover .solution-img {
    transform: scale(1.05) translateY(-10px);
}

/* The floating keyframe animation */
@keyframes floatImage {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.solution-img-placeholder { width: 100%; height: auto; max-width: 450px; }
.solution-content h2 { font-size: 2.3rem; margin-bottom: 1.5rem; position: relative; }
.solution-content h2::after { content: ''; display: block; width: 60px; height: 4px; background-color: var(--accent-red); margin-top: 0.5rem; }
.solution-content p { font-size: 1.05rem; color: #555; margin-bottom: 1.5rem; }
.solution-content ul { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; }
.solution-content li { position: relative; padding-left: 25px; font-weight: 500; }
.solution-content li::before { content: '✓'; color: var(--accent-red); position: absolute; left: 0; font-weight: 900; }
.solution-grid.alt .solution-image { grid-column: 2; }
.solution-grid.alt .solution-content { grid-column: 1; grid-row: 1; }

.cta-section { padding: 6rem 0; background-color: var(--bg-body); text-align: center; }
.cta-content { background: var(--primary-gradient); padding: 5rem; border-radius: 30px; color: #fff; }
.cta-content h2 { font-size: 2.8rem; margin-bottom: 1rem; color: #ffffff; }
.cta-content p { font-size: 1.2rem; font-weight: 300; margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366; /* Official WhatsApp Green */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0px 8px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: #ffffff;
}

/* Make it slightly smaller on mobile screens */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 25px;
        right: 25px;
    }
    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
}

/* =========================================
   --- FULL MOBILE RESPONSIVE STYLES --- 
   ========================================= */

/* Hamburger Menu Icon Base */
.menu-toggle { display: none; flex-direction: column; cursor: pointer; z-index: 1001; gap: 5px; }
.menu-toggle .bar { width: 25px; height: 3px; background-color: #fff; transition: var(--transition-smooth); border-radius: 3px; }
.site-header.sticky .menu-toggle .bar, .site-header.solid .menu-toggle .bar { background-color: var(--text-main); }

/* Hamburger Animation to "X" */
.menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- TABLETS & SMALL DESKTOPS (Max 900px) --- */
@media (max-width: 900px) {
    /* Global Adjustments */
    .section-headline { font-size: 2.2rem; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
    
    /* Homepage */
    .hero-section .container { grid-template-columns: 1fr; text-align: center; }
    .page-hero h1, .hero-content h1 { font-size: 2.8rem; }
    .hero-buttons { justify-content: center; }
    .hero-visual { margin-top: 3rem; height: 350px; }
    .glass-float-1 { right: 10%; }
    .glass-float-2 { left: 5%; }
    .ai-grid, .benefits-grid { grid-template-columns: 1fr; }
    .solution-grid, .solution-grid.alt { grid-template-columns: 1fr; gap: 3rem; }
    .solution-grid.alt .solution-image { grid-column: 1; grid-row: 1; }
    .solution-grid.alt .solution-content { grid-column: 1; grid-row: 2; }
    .cta-content { padding: 4rem 2rem; }
    
    /* Inner Pages */
    .story-grid, .vm-grid { grid-template-columns: 1fr; }
    .stats-grid, .why-us-grid { grid-template-columns: repeat(2, 1fr); }
    .info-grid { grid-template-columns: 1fr; }
    .contact-info-wrapper { margin-top: -3rem; }
}

/* --- MOBILE PHONES (Max 768px) --- */
@media (max-width: 768px) {
    /* Mobile Navigation Activation */
    .menu-toggle { display: flex; }
    .nav-menu { 
        position: absolute; top: 100%; left: 0; width: 100%; 
        background: var(--bg-body); box-shadow: var(--shadow-md); 
        /* Clip-path makes it slide down smoothly */
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); 
        transition: clip-path 0.4s ease-in-out; 
    }
    .nav-menu.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    .nav-menu ul { flex-direction: column; gap: 0; padding: 1rem 0; text-align: center; }
    .nav-menu a { color: var(--text-main) !important; display: block; padding: 1rem; font-size: 1.1rem; border-bottom: 1px solid #f1f5f9; }
    .nav-menu a:hover { background-color: #f8fafc; }
    
    /* Global Spacing Reductions */
    section { padding: 5rem 0; }
    .page-hero { padding: 8rem 0 4rem; }
    .hero-section { padding: 8rem 0 4rem; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: 1; }
    .form-container { padding: 2rem 1.5rem; }
}

/* --- SMALL MOBILE PHONES (Max 600px) --- */
@media (max-width: 600px) {
    .container { padding: 0 1.5rem; }
    .page-hero h1, .hero-content h1 { font-size: 2.2rem; }
    .footer-grid, .stats-grid, .why-us-grid, .agency-portfolio-grid { grid-template-columns: 1fr; }
    
    /* Shrink the floating glass graphics to fit small screens */
    .glass-float-1 { right: 5%; width: 120px; height: 120px; }
    .glass-float-2 { left: 0; width: 150px; height: 100px; }
    .circle-graph { width: 60px; height: 60px; border-width: 5px; }
    
    /* Adjust floating WhatsApp button */
    .whatsapp-float { width: 55px; height: 55px; bottom: 25px; right: 25px; }
    .whatsapp-float svg { width: 30px; height: 30px; }
}

/* --- HERO SECTION MOBILE RESPONSIVE FIX --- */
@media (max-width: 900px) {
    /* Stack the grid into one column */
    .hero-section .container { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 2rem;
    }
    
    /* Center text and buttons */
    .hero-content p { 
        margin-left: auto; 
        margin-right: auto; 
        max-width: 100%;
    }
    .hero-buttons { 
        justify-content: center; 
    }
    
    /* Adjust visual height for tablets */
    .hero-visual { 
        height: 350px; 
        margin-top: 2rem;
    }
    .glass-float-1 { right: 10%; }
    .glass-float-2 { left: 5%; }
}

@media (max-width: 600px) {
    /* Adjust padding for small phones */
    .hero-section { 
        padding: 8rem 0 4rem; 
    }
    .hero-content h1 { 
        font-size: 2.2rem; 
    }
    
    /* Stack buttons full-width on tiny screens */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    .hero-buttons .btn {
        width: 100%;
    }

    /* Magically shrink the entire complex UI graphic proportionally */
    .hero-visual { 
        height: 250px; 
        transform: scale(0.7); /* Shrinks it to 70% of its original size */
        transform-origin: top center;
    }
}