/* --- iOS 18 GLASS VARIABLES --- */
:root {
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-highlight: rgba(255, 255, 255, 0.25);
    --ios-blue: #0A84FF;
    --ios-blue-hover: #0070E0;
    --text-main: #F5F5F7;
    --text-muted: #86868B;
    --bg-dark: #000000;
    
    /* Smoothness Math Formula */
    --smooth-ease: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Width */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

/* Track (background) */
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

/* Thumb (draggable part) */
::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.4),
        rgba(255,255,255,0.15)
    );
    border-radius: 10px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Hover effect */
::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.6);
    box-shadow: 0 0 6px rgba(255,255,255,0.3);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.4) rgba(255,255,255,0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    -moz-osx-font-smoothing: grayscale;
}

/* Base */
.ripple {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
}

/* Liquid glass ripple */
.ripple span {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-advanced 700ms ease-out;
    pointer-events: none;

    background: radial-gradient(
        circle,
        rgba(255,255,255,0.6) 10%,
        rgba(255,255,255,0.25) 30%,
        rgba(255,255,255,0.1) 50%,
        transparent 70%
    );

    backdrop-filter: blur(6px);
}

/* Animation */
@keyframes ripple-advanced {
    to {
        transform: scale(5);
        opacity: 0;
    }
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

/* --- SCROLL REVEAL ANIMATIONS (Performance First) --- */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--smooth-ease), transform 0.8s var(--smooth-ease);
    will-change: opacity, transform;
}
.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Delay staggered children in grids */
.revealed .process-card:nth-child(1) { transition-delay: 0.1s; }
.revealed .process-card:nth-child(2) { transition-delay: 0.2s; }
.revealed .process-card:nth-child(3) { transition-delay: 0.3s; }

/* --- AMBIENT ANIMATED BACKGROUND --- */
.ambient-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; overflow: hidden; background: #121212;
    transform: translateZ(0); /* Hardware acceleration */
}
.blob {
    position: absolute; filter: blur(80px); border-radius: 50%;
    opacity: 0.6; animation: float 20s infinite alternate var(--smooth-ease);
    will-change: transform; /* Critical for smooth background animation */
    transform: translateZ(0); 
}
.blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: #1a365d; }
.blob-2 { bottom: -20%; right: -10%; width: 60vw; height: 60vw; background: #2d3748; animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 15%) scale(1.2); }
}

/* --- TYPOGRAPHY --- */
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 20px;}
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; margin-bottom: 15px; text-align: center; color: var(--text-main);}
h3 { font-size: 1.6rem; margin-bottom: 15px; font-weight: 800;}
p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6;}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- GLASSMORPHISM UTILITIES --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid var(--glass-border);
}

.glass-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: transform 0.4s var(--smooth-ease), border-color 0.4s var(--smooth-ease), box-shadow 0.4s var(--smooth-ease);
}
.glass-card:hover { border-color: var(--glass-highlight); }

/* Universal Smooth Hover Lift */
.hover-lift { transition: transform 0.4s var(--smooth-ease), box-shadow 0.4s var(--smooth-ease); }
.hover-lift:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.3); }

.logo-btn {
    background: transparent; border: none; padding: 10px 20px; margin-left: 30px;
    border-radius: 50px; font-size: 1rem; color: var(--text-main); 
    transition: all 0.4s var(--smooth-ease); cursor: pointer;
}
.logo-btn:hover {
    background: rgba(255, 255, 255, 0.15); opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); 
}

/* --- NAVIGATION --- */
.glass-nav {
    position: fixed; top: 15px; left: 50%; transform: translateX(-50%);
    width: 98%; max-width: 98%; border-radius: 50px; z-index: 1000;
    background: rgba(20, 20, 20, 0.45); 
    backdrop-filter: blur(25px) saturate(200%); -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid var(--glass-border); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s var(--smooth-ease);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 10px 0px; margin-left: -20px; }
.nav-logo { height: 50px; width: auto; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }

.nav-links { display: flex; list-style: none; gap: 10px; align-items: center; }
.nav-links a { 
    text-decoration: none; color: #ffffff; font-size: 0.95rem; font-weight: 600; 
    opacity: 0.85; transition: all 0.3s var(--smooth-ease); padding: 8px 18px; border-radius: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); 
}
.nav-links a:hover, .nav-links a.active { opacity: 1; background: rgba(255, 255, 255, 0.15); }

.right-section { display: flex; align-items: center; }
.nav-btn { padding: 10px 22px; font-size: 0.95rem; box-shadow: 0 4px 15px rgba(10, 132, 255, 0.4); }

.hamburger { display: none; cursor: pointer; z-index: 1001; margin-right: 20px;}
.hamburger .line { 
    width: 25px; height: 2px; background-color: #ffffff; margin: 5px; 
    transition: transform 0.4s var(--smooth-ease), opacity 0.4s var(--smooth-ease); 
    box-shadow: 0 1px 3px rgba(0,0,0,0.5); 
}

/* --- BUTTONS --- */
.btn { 
    display: inline-block; padding: 14px 28px; border-radius: 50px; 
    font-weight: 800; font-size: 1rem; text-decoration: none; 
    transition: all 0.4s var(--smooth-ease); cursor: pointer; border: none; text-align: center; 
}
.btn-primary { background: var(--ios-blue); color: white; box-shadow: 0 4px 15px rgba(10, 132, 255, 0.3); }
.btn-primary:hover { background: var(--ios-blue-hover); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(10, 132, 255, 0.5); }
.btn-secondary { background: rgba(255, 255, 255, 0.05); color: white; border: 1px solid var(--glass-border); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-3px); }
.full-width { width: 100%; }

/* --- LAYOUT --- */
main { display: flex; flex-direction: column; align-items: center; width: 100%; }

.hero-impact {
    width: 100%; padding-top: 180px; padding-bottom: 80px; min-height: 70vh;
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
}
.hero-content { max-width: 900px; margin: 0 auto; }
.hero-subtext { font-size: 1.2rem; max-width: 650px; margin: 0 auto 30px; font-weight: 500; }
.hero-actions { display: flex; gap: 15px; justify-content: center; }
.location-badge { font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 30px; display: inline-block; } 

.capabilities-section {
    width: 95%; max-width: 98%; margin: 0 auto 0; padding: 80px 5%; 
    position: relative; z-index: 50; border-radius: 50px; 
}
.section-title p { text-align: center; max-width: 650px; margin: 0 auto 60px; }

.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.process-card { padding: 40px 30px; border-radius: 30px; cursor: default; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);}

.industry-section {
    width: 95%; max-width: 98%; padding: 80px 5%; text-align: center;
    border-radius: 50px; margin: 40px auto; 
}
.industry-bubbles { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }

.glass-pill { 
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); 
    padding: 10px 24px; border-radius: 50px; font-size: 1rem; color: var(--text-main); 
    transition: all 0.4s var(--smooth-ease); cursor: default; 
}
.glass-pill:hover { background: rgba(255, 255, 255, 0.15); }

.industry-intro { max-width: 700px; margin: 40px auto 0; font-size: 1.2rem; }

/* --- FOOTER --- */
.site-footer {
    width: 95%; max-width: 98%; padding: 80px 5% 40px; border-radius: 50px; 
    margin: 0 auto 40px; position: relative; z-index: 10;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; align-items: start; }
.footer-brand h3 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 20px; font-weight: 900; }
.footer-actions { display: flex; gap: 15px; margin-top: 35px; }
.footer-btn { padding: 14px 30px; font-size: 14px; }

.footer-contact h4, .footer-nav h4 { color: var(--ios-blue); font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 30px; }
.footer-contact p,.footer-contact a, .footer-nav a { font-size: 1.05rem; margin-bottom: 18px; display: block; text-decoration: none; color: var(--text-main); opacity: 0.8; transition: 0.3s var(--smooth-ease); }
.footer-nav a:hover { opacity: 1; color: var(--ios-blue); transform: translateX(10px); }
.footer-bottom { text-align: center; padding-top: 50px; margin-top: 50px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem; opacity: 0.6; }

/* --- MODAL (Optimized rendering) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    display: flex; justify-content: center; align-items: center; z-index: 9999;
    opacity: 0; visibility: hidden; pointer-events: none; 
    transition: opacity 0.4s var(--smooth-ease), visibility 0.4s;
}
.modal-overlay.active { opacity: 1; visibility: visible; pointer-events: all; }

.modal-card { 
    width: 90%; max-width: 480px; padding: 50px 40px; border-radius: 40px; position: relative; 
    transform: translateY(40px) scale(0.95); transition: transform 0.4s var(--smooth-ease); 
    background: rgba(20,20,20,0.6); box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
.modal-overlay.active .modal-card { transform: translateY(0) scale(1); }

.close-modal { position: absolute; top: 25px; right: 30px; background: none; border: none; font-size: 2rem; color: var(--text-main); cursor: pointer; opacity: 0.5; transition: 0.3s; }
.close-modal:hover { opacity: 1; transform: scale(1.1); }
.modal-header h2 { font-size: 2.2rem; font-weight: 900; margin-bottom: 10px; }
.modal-header p { margin-bottom: 30px; color: var(--text-muted); font-weight: 600; text-align: center;}

.glass-form .input-group { margin-bottom: 20px; }
.glass-form input, .glass-form textarea {
    width: 100%; padding: 16px 20px; border-radius: 20px;
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
    color: white; font-size: 1rem; outline: none; transition: all 0.3s var(--smooth-ease); font-weight: 500; resize: none;
}
.glass-form input:focus, .glass-form textarea:focus { 
    border-color: var(--ios-blue); background: rgba(0,0,0,0.5); 
    box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.15); transform: translateY(-2px);
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float { 
    position: fixed; bottom: 30px; right: 30px; padding: 14px 28px; border-radius: 50px; 
    display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; 
    z-index: 2000; color: white; border: 1px solid var(--glass-border); 
}
.whatsapp-float:hover { transform: translateY(-5px) scale(1.05); border-color: #25d366; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .right-section { display: none; } 
    .hamburger { display: block; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 35px; text-align: center; }
    .footer-brand { order: 3; } .footer-contact { order: 2; } .footer-nav { order: 1; }
    .footer-brand h3 { font-size: 2rem; margin-bottom: 15px; }
    .footer-actions { justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
    
    .nav-links { 
        display: flex; position: absolute; top: 65px; left: 0; right: 0; 
        background: rgba(20, 20, 20, 0.85); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
        flex-direction: column; padding: 20px 0; gap: 25px; border-radius: 20px; 
        clip-path: circle(0% at 100% 0%); transition: clip-path 0.5s var(--smooth-ease); 
    }
    .nav-links.active { clip-path: circle(150% at 100% 0%); }
    .hamburger.toggle .line:nth-child(1) { transform: rotate(-45deg) translate(-5px, 5px); }
    .hamburger.toggle .line:nth-child(2) { opacity: 0; }
    .hamburger.toggle .line:nth-child(3) { transform: rotate(45deg) translate(-5px, -5px); }
}

@media (max-width: 768px) {
    .hero-impact { min-height: auto; padding: 140px 5% 80px; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-subtext { font-size: 1.1rem; }
    .hero-actions { flex-direction: column; }
    .capabilities-section { margin-top: -40px; padding: 60px 20px;}
    .industry-section { margin: 20px auto; padding: 60px 20px; }
    .site-footer { padding: 60px 20px 30px;}
    .whatsapp-float span { display: none; }
    .whatsapp-float { padding: 14px; border-radius: 50%; bottom: 20px; right: 20px; }
}
@media (max-width: 768px) {
  .blob,
  .ambient-bg {
    display: none;
  }

  .glass-panel {
    backdrop-filter: none;
    background: rgba(255,255,255,0.05);
  }
}

@media (max-width: 600px) {
    .footer-actions { flex-direction: column; align-items: center; }
    .footer-btn { width: 100%; max-width: 280px; }
    .glass-form input, .glass-form textarea { padding: 14px 18px; font-size: 0.95rem; }
    .modal-card { padding: 40px 25px; border-radius: 30px;}
}