/*
Theme Name: Anvi Tech Solutions
Theme URI: https://anvitechsolutions.in/
Author: Antigravity AI
Description: Premium custom WordPress theme for Anvi Tech Solutions.
Version: 2.1
*/
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --bg-color: #0A1128; /* Deep premium navy/black */
  --surface-color: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.1);
  --primary: #FFC107; /* Neon cyan */
  --primary-hover: #00d0e6;
  --secondary: #3b82f6; /* Blue */
  --text-main: #F8FAFC;
  --text-muted: #94a3b8;
  --glass-bg: rgba(5, 9, 20, 0.7);
  --glass-blur: blur(12px);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif !important;
  background-color: var(--bg-color) !important;
  color: var(--text-main) !important;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Nav */
header {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
header.scrolled {
  background: var(--glass-bg); backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
}

nav {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 20px;
}
.logo { font-size: 1.8rem; font-weight: 800; color: var(--text-main); text-decoration: none; display: flex; align-items: center; gap: 8px;}
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 600; transition: var(--transition); position: relative;}
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background: var(--primary); transition: var(--transition); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Mobile Menu Button */
.menu-btn { display: none; background: none; border: none; color: white; font-size: 1.8rem; cursor: pointer; transition: transform 0.3s; }
.menu-btn:hover { transform: scale(1.1); color: var(--primary); }

/* Buttons */
.btn {
  background: linear-gradient(45deg, var(--secondary), var(--primary));
  color: #000; font-weight: 800; padding: 14px 32px; border-radius: 30px;
  text-decoration: none; display: inline-block; cursor: pointer;
  border: none; transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
  font-size: 1.1rem;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 240, 255, 0.5); color: #000;}
.btn-outline {
  background: transparent; color: var(--primary); border: 1px solid var(--primary);
  box-shadow: none;
}
.btn-outline:hover { background: rgba(255, 193, 7, 0.1); color: var(--primary); }

/* Layout & Utils */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 100px 0; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

/* Typography */
h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; font-weight: 800; letter-spacing: -1px; }
h2 { font-size: 2.8rem; margin-bottom: 20px; font-weight: 800; letter-spacing: -0.5px; }
h3 { font-size: 1.5rem; margin-bottom: 15px; font-weight: 600; }
p { font-size: 1.15rem; margin-bottom: 20px; }

/* Animation Utility Classes */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Hero Section */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: 80px;}
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; z-index: 2; position: relative; }
.hero-text { max-width: 600px; }
.hero-blob {
  position: absolute; top: 10%; right: -5%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,240,255,0.15) 0%, rgba(59,130,246,0.1) 50%, transparent 70%);
  border-radius: 50%; filter: blur(40px); animation: pulse 8s infinite alternate; z-index: 1;
}
@keyframes pulse { 0% { transform: scale(1); } 100% { transform: scale(1.1) translate(-20px, 20px); } }
.hero-image-wrapper { position: relative; }
.hero-image-wrapper img { width: 100%; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); object-fit: cover; }
.floating-card {
  position: absolute; bottom: -20px; left: -20px;
  background: var(--surface-color); backdrop-filter: var(--glass-blur); border: 1px solid var(--border-color);
  padding: 15px 25px; border-radius: 15px; display: flex; align-items: center; gap: 15px;
  animation: float 4s ease-in-out infinite; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0); } }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.glass-card {
  background: var(--surface-color); border: 1px solid var(--border-color);
  padding: 40px 30px; border-radius: 20px; backdrop-filter: var(--glass-blur);
  transition: var(--transition); display: flex; flex-direction: column; align-items: flex-start;
  height: 100%;
}
.glass-card:hover { transform: translateY(-10px); border-color: rgba(0, 240, 255, 0.3); box-shadow: 0 15px 40px rgba(0,0,0,0.4); background: rgba(255,255,255,0.08); }
.card-icon { width: 70px; height: 70px; background: rgba(255, 193, 7, 0.1); color: var(--primary); border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 25px; transition: var(--transition); }
.glass-card:hover .card-icon { background: var(--primary); color: #000; transform: scale(1.1); box-shadow: 0 10px 20px rgba(255, 193, 7, 0.2); }

/* Stats */
.stats-section { background: linear-gradient(180deg, transparent, rgba(0,240,255,0.03), transparent); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: 80px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item h3 { font-size: 3.8rem; color: var(--primary); margin-bottom: 5px; font-weight: 800; }

/* Call to Action */
.cta-box { background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(0,240,255,0.05)); border: 1px solid rgba(0,240,255,0.3); padding: 80px 60px; border-radius: 30px; text-align: center; position: relative; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.3); }

/* Footer */
footer { background: #02040a; border-top: 1px solid var(--border-color); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-links h4 { color: #fff; margin-bottom: 25px; font-size: 1.3rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: var(--transition); display: inline-block; }
.footer-links a:hover { color: var(--primary); transform: translateX(5px); }
.copyright { text-align: center; padding-top: 30px; border-top: 1px solid var(--border-color); color: var(--text-muted); }

/* Responsive */
@media (max-width: 1024px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
}
@media (max-width: 992px) {
  .hero-content { gap: 30px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 50px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}
@media (max-width: 768px) {
  .hero { align-items: flex-start; padding-top: 120px; padding-bottom: 60px; }
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 50px; }
  .hero-text { margin: 0 auto; }
  .hero-text .fade-up { justify-content: center; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--glass-bg); backdrop-filter: var(--glass-blur); flex-direction: column; padding: 30px; text-align: center; border-bottom: 1px solid var(--border-color); box-shadow: 0 20px 30px rgba(0,0,0,0.5); }
  .nav-links.active { display: flex; }
  .menu-btn { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .cta-box { padding: 50px 20px; }
  h1 { font-size: 2.8rem; }
  .floating-card { bottom: -10px; left: 50%; transform: translateX(-50%); animation: floatMobile 4s ease-in-out infinite; width: max-content; }
  @keyframes floatMobile { 0% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -15px); } 100% { transform: translate(-50%, 0); } }
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0px 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.whatsapp-float:hover {
    background-color: #128c7e;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0px 8px 25px rgba(37, 211, 102, 0.6);
    color: #fff;
}

/* Contact Buttons Custom Animations */
@keyframes pulseBlinkYellow {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.7); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 15px rgba(255, 204, 0, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 204, 0, 0); }
}
@keyframes pulseBlinkGreen {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@keyframes gentleVibrate {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px) rotate(-5deg); }
  40% { transform: translate(-2px, -2px) rotate(5deg); }
  60% { transform: translate(2px, 2px) rotate(-5deg); }
  80% { transform: translate(2px, -2px) rotate(5deg); }
  100% { transform: translate(0); }
}

.anim-pulse-yellow { animation: pulseBlinkYellow 2s infinite; }
.anim-pulse-yellow:hover { animation: gentleVibrate 0.3s infinite; }

.anim-pulse-green { animation: pulseBlinkGreen 2s infinite; animation-delay: 1s; }
.anim-pulse-green:hover { animation: gentleVibrate 0.3s infinite; }

/* Top Bar Styles */
.top-bar {
    background-color: #0b1a30;
    color: #f8fafc;
    padding: 10px 0;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1000;
}
.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.contact-details { display: flex; gap: 20px; }
.contact-details span { display: flex; align-items: center; gap: 8px; cursor: pointer; transition: color 0.3s; }
.contact-details span:hover { color: var(--primary); }
.top-bar a.urgent-btn {
    background-color: #e11d48;
    color: #fff !important;
    padding: 6px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 15px rgba(225, 29, 72, 0.6);
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}
.top-bar a.urgent-btn:hover { background-color: #be123c; transform: scale(1.05); }
@media (max-width: 768px) {
    .top-bar-container { justify-content: center; }
    .contact-details { display: none; }
}

/* Absolute visibility fix for Header overlapping images */
header {
    background-color: var(--bg-color) !important;
    border-bottom: 1px solid var(--border-color);
    z-index: 9995 !important;
}

/* Force buttons to be solid yellow as requested by global theme */
.btn {
    background: var(--primary) !important;
    color: #0F172A !important;
    border: none !important;
}
.btn-outline {
    background: transparent !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
}
.btn-outline:hover {
    background: var(--primary) !important;
    color: #0F172A !important;
}

/* Absolute Layout Override for Header & Hero */
header {
    position: sticky !important;
    top: 0;
    background-color: var(--bg-color) !important;
    border-bottom: 1px solid var(--border-color);
    z-index: 9995 !important;
}
.hero {
    padding-top: 60px !important;
}

/* Global Layout Calibration & Hero Viewport Fixes */
.hero {
    min-height: calc(100vh - 120px) !important; /* Fits gracefully below header without overflowing viewport */
    display: flex !important;
    align-items: flex-start !important;
    padding-top: 50px !important; 
    margin-top: 0 !important;
}

/* Inner pages shouldn't have giant empty banners */
.inner-hero {
    min-height: auto !important;
    padding-top: 80px !important;
    padding-bottom: 50px !important;
}

/* FAQ Native Accordion Styles */
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
}
.faq-item[open] {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(255, 204, 0, 0.1);
}
.faq-item summary {
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    list-style: none; /* Removes default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '\f078'; /* FontAwesome chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary);
    transition: transform 0.3s ease;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-content {
    padding: 0 25px 25px 25px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 10px;
    padding-top: 20px;
}

/* ===== FINAL HEADER HEIGHT FIX ===== */
/* Only the nav bar is sticky, contact bar scrolls away */
nav.sticky-nav {
    position: sticky !important;
    top: 0;
    z-index: 9999 !important;
    background: var(--bg-color) !important;
}
.top-bar {
    position: relative !important;
}
header {
    position: relative !important;
    top: auto !important;
}

/* Add scroll offset to all sections so headings are never hidden behind sticky nav */
section, .inner-hero, main > div {
    scroll-margin-top: 75px;
}

/* Reduce nav padding for slimmer feel */
nav {
    padding: 12px 20px !important;
}

/* FORCE VISIBILITY */
.fade-up, .fade-left { opacity: 1 !important; transform: none !important; visibility: visible !important; }
/* SLIM STICKY NAV ONLY */
nav.sticky-nav { position: sticky !important; top: 0; z-index: 9999 !important; background: var(--bg-color) !important; border-bottom: 1px solid var(--border-color); }
header { position: relative !important; }
.top-bar { position: relative !important; }
section { scroll-margin-top: 70px; }

/* Contact Form Fix - prevent field overlap */
.contact-form-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
}
.contact-form-grid .full-width {
    grid-column: 1 / -1 !important;
}
.contact-form-grid input,
.contact-form-grid textarea,
.contact-form-grid select {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 18px !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    color: var(--text-main) !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 1rem !important;
}

/* Blog cards fix - 3 column grid not oversized */
.blog-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
}
@media (max-width: 992px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .contact-form-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
    .blog-grid { grid-template-columns: 1fr !important; }
}

/* Sticky Nav fix for WordPress */
.admin-bar nav.sticky-nav {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar nav.sticky-nav {
        top: 46px;
    }
}

/* Call Float Button */
.call-float {
    position: fixed;
    bottom: 140px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: var(--primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    text-decoration: none;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(255,193,7,0.4);
    transition: all 0.3s ease;
}
.call-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(255,193,7,0.6);
}
