/* ==========================================================================
   Base & Variables
   ========================================================================== */
:root {
    --primary: #0F172A;
    --secondary: #1E40AF;
    --accent: #2563EB;
    --success: #22C55E;
    --bg-light: #F8FAFC;
    --bg-dark: #020617;
    --text-main: #334155;
    --text-light: #94A3B8;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    
    --font-main: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --bg-light: #0f172a;
    --text-main: #f1f5f9;
    --white: #1e293b;
    --border: #334155;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background-color: var(--bg-dark);
    color: var(--text-main);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-main); color: var(--text-main); background: var(--white); overflow-x: hidden; }
body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: var(--bg-light); }
body::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 5px; }

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 100px 0; }
.bg-light { background: var(--bg-light); }
.text-center { text-align: center; }

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 { color: var(--primary); font-weight: 700; }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3 { color: #fff; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; }
.section-title span { color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: var(--transition); border: 2px solid transparent; position: relative; overflow: hidden; z-index: 1; }
.btn-primary { background: linear-gradient(45deg, var(--accent), var(--secondary)); color: #fff; box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5); color:#fff; }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* Glassmorphism */
.glass-card { background: var(--glass-bg); backdrop-filter: blur(10px); border: 1px solid var(--glass-border); border-radius: 16px; box-shadow: var(--shadow); transition: var(--transition); }
.glass-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.top-bar { background: var(--primary); color: #fff; padding: 10px 0; font-size: 0.85rem; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-contact span, .top-social a { margin-right: 15px; }
.lang-selector { background: transparent; color: #fff; border: 1px solid #fff; border-radius: 4px; padding: 2px 5px; }

.header { position: fixed; top: 40px; width: 100%; z-index: 1000; transition: var(--transition); background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header.sticky { top: 0; background: rgba(255,255,255,0.95); box-shadow: var(--shadow); }
[data-theme="dark"] .header { background: rgba(30, 41, 59, 0.9); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo h1 { font-size: 1.8rem; margin: 0; }
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 30px; }
.nav-links li a { font-weight: 500; font-size: 1rem; }
.nav-links li a:hover { color: var(--accent); }
.dropdown { position: relative; }
.mega-menu { position: absolute; top: 100%; left: -100px; width: 400px; background: var(--white); box-shadow: var(--shadow); border-radius: 8px; display: flex; padding: 20px; opacity: 0; visibility: hidden; transition: var(--transition); transform: translateY(10px); border: 1px solid var(--border); }
.dropdown:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-column { flex: 1; }
.mega-column h3 { font-size: 1.1rem; margin-bottom: 10px; border-bottom: 2px solid var(--accent); display: inline-block; }
.mega-column a { display: block; padding: 8px 0; font-size: 0.9rem; }

.header-actions { display: flex; align-items: center; gap: 15px; }
.icon-btn { background: transparent; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-main); }
.hamburger { display: none; background: transparent; border: none; font-size: 1.5rem; color: var(--text-main); cursor: pointer; }

/* ==========================================================================
   Sections (Hero, About, Services, etc.)
   ========================================================================== */
/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding-top: 150px; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; z-index: 2; position: relative; }
.hero-title { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; }
.gradient-text { background: linear-gradient(45deg, var(--accent), var(--success)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.2rem; margin-bottom: 30px; color: var(--text-light); }
.hero-stats { display: flex; gap: 30px; margin-top: 40px; }
.stat-item { font-size: 1.1rem; font-weight: 600; }
.stat-item .counter { font-size: 2rem; color: var(--accent); }
.hero-image { position: relative; height: 500px; }
.tech-illustration { position: absolute; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }
.hero-glass-1, .hero-glass-2, .hero-glass-3 { position: absolute; padding: 30px; border-radius: 20px; font-size: 3rem; color: var(--accent); animation: float 6s infinite ease-in-out; }
.hero-glass-1 { top: 10%; left: 10%; animation-delay: 0s; }
.hero-glass-2 { top: 50%; right: 10%; animation-delay: 2s; }
.hero-glass-3 { bottom: 10%; left: 30%; animation-delay: 4s; }

/* Trusted Logos Marquee */
.trusted-logos { margin-top: 80px; text-align: center; overflow: hidden; }
.logo-slider-wrapper { margin-top: 20px; width: 100%; overflow: hidden; position: relative; }
.logo-slide-track { display: flex; width: calc(250px * 10); animation: scroll 20s linear infinite; gap: 50px; align-items: center; justify-content: center;}
.slide { width: 150px; text-align: center; opacity: 0.5; transition: var(--transition); }
.slide:hover { opacity: 1; color: var(--accent); }
.wave-divider { position: absolute; bottom: 0; left: 0; width: 100%; line-height: 0; }
.wave-divider svg { display: block; width: calc(100% + 1.3px); height: 100px; }
.wave-divider .shape-fill { fill: var(--bg-light); }
[data-theme="dark"] .wave-divider .shape-fill { fill: var(--bg-dark); }

/* Grids */
.services-grid, .tech-grid, .portfolio-grid, .pricing-grid, .team-grid, .blog-grid, .contact-grid { display: grid; gap: 30px; }
.services-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.tech-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); text-align: center; }
.portfolio-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: center; }
.team-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: center; }
.blog-grid { grid-template-columns: repeat(3, 1fr); }
.contact-grid { grid-template-columns: 1fr 1fr; }

/* Cards Styling */
.service-card { padding: 30px; text-align: left; }
.service-card .icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 20px; }
.service-card h3 { margin-bottom: 15px; }
.tech-card { padding: 20px; border-radius: 12px; background: var(--white); box-shadow: var(--shadow); transition: var(--transition); }
.tech-card i { font-size: 2rem; color: var(--primary); margin-bottom: 10px; display: block; }
.tech-card:hover { transform: translateY(-5px); background: var(--accent); color: #fff; }
.tech-card:hover i { color: #fff; }
[data-theme="dark"] .tech-card { background: var(--glass-bg); }

/* Portfolio */
.portfolio-filter { text-align: center; margin-bottom: 40px; }
.filter-btn { background: transparent; border: none; padding: 8px 20px; font-size: 1rem; cursor: pointer; font-weight: 600; color: var(--text-main); }
.filter-btn.active, .filter-btn:hover { color: var(--accent); border-bottom: 2px solid var(--accent); }
.port-item { position: relative; overflow: hidden; border-radius: 16px; height: 300px; }
.port-img { height: 100%; display: flex; align-items: center; justify-content: center; background: #e2e8f0; color: var(--text-light); }
.port-info { position: absolute; bottom: -100%; left: 0; width: 100%; background: rgba(15,23,42,0.9); color: #fff; padding: 20px; transition: var(--transition); text-align: center; }
.port-item:hover .port-info { bottom: 0; }

/* Process / Timeline */
.timeline-container { position: relative; max-width: 800px; margin: 0 auto; }
.timeline-container::before { content: ''; position: absolute; left: 50%; top: 0; height: 100%; width: 2px; background: var(--accent); transform: translateX(-50%); }
.timeline-item { display: flex; justify-content: flex-end; padding-right: 50%; position: relative; margin-bottom: 40px; }
.timeline-item:nth-child(even) { justify-content: flex-start; padding-right: 0; padding-left: 50%; }
.t-icon { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 40px; height: 40px; background: var(--accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; z-index: 2; border: 4px solid var(--bg-light); }
.t-content { width: 90%; padding: 20px; }
.timeline-item:nth-child(even) .t-content { margin-left: 10%; }

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 15px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.faq-btn { width: 100%; text-align: left; padding: 15px 20px; background: var(--white); border: none; font-size: 1.1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--text-main); }
.faq-content { padding: 0 20px; background: var(--white); max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.active .faq-content { padding: 15px 20px; max-height: 200px; }
.faq-item.active .faq-btn i { transform: rotate(45deg); color: var(--accent); }

/* Forms & Footer */
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; margin-bottom: 20px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-light); color: var(--text-main); font-family: inherit; }
.footer { background: var(--primary); color: var(--text-light); padding: 80px 0 20px; }
.footer h3, .footer h4 { color: #fff; margin-bottom: 20px; }
.footer-col a { display: block; margin-bottom: 10px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; }

/* Special Utilities */
.floating-btn { position: fixed; right: 20px; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; z-index: 999; cursor: pointer; box-shadow: var(--shadow); transition: var(--transition); border: none; }
.whatsapp { bottom: 140px; background: #25D366; }
.call { bottom: 80px; background: var(--accent); }
.chat { bottom: 20px; background: var(--primary); right: auto; left: 20px; }
.btt { bottom: 20px; background: var(--text-main); opacity: 0; visibility: hidden; }
.btt.show { opacity: 1; visibility: visible; }
.floating-btn:hover { transform: scale(1.1); }

/* Pricing */
.pricing-toggle { display: flex; justify-content: center; align-items: center; gap: 15px; margin-top: 20px; }
.switch { position: relative; display: inline-block; width: 60px; height: 34px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--border); transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--accent); }
input:checked + .slider:before { transform: translateX(26px); }
.price-card { padding: 40px; text-align: center; }
.price-card.popular { transform: scale(1.05); border: 2px solid var(--accent); position: relative; }
.badge { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); background: var(--accent); color: #fff; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; }
.price { font-size: 3rem; font-weight: bold; color: var(--primary); margin: 20px 0; }
[data-theme="dark"] .price { color: #fff; }
.features li { margin-bottom: 15px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.features i { color: var(--success); }

/* Loader & Custom Cursor */
.loader-container { position: fixed; top:0; left:0; width:100%; height:100%; background: var(--white); z-index: 9999; display: flex; justify-content: center; align-items: center; transition: opacity 0.5s; }
.spinner { width: 50px; height: 50px; border: 5px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
.custom-cursor { position: fixed; width: 20px; height: 20px; border: 2px solid var(--accent); border-radius: 50%; pointer-events: none; z-index: 10000; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s; mix-blend-mode: difference; }
.scroll-progress { position: fixed; top: 0; left: 0; height: 4px; background: var(--accent); z-index: 1001; width: 0%; }