/* 
 * AntiGravity AI Agency - Global Stylesheet
 * Custom resets, design tokens, layout variables, and global components.
 */

/* ==========================================================================
   1. GLOBAL TOKENS
   ========================================================================== */
:root {
  --bg-primary: #F8FAFC;
  --bg-secondary: #F1F5F9;
  --bg-card: #FFFFFF;
  --accent: #00C875;        /* vibrant green */
  --accent-2: #4F46E5;      /* indigo */
  --accent-cyan: #06B6D4;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border: rgba(15, 23, 42, 0.08);
  --border-accent: rgba(79, 70, 229, 0.25);
  
  --font-headings: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --header-height: 80px;
  --border-radius: 12px;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. BASICS & CORE TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Page Loader */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-primary);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(15, 23, 42, 0.05);
  border-radius: 50%;
  border-top-color: var(--accent);
  border-bottom-color: var(--accent-2);
  animation: spinner 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes spinner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-2);
}

/* Text selections */
::selection {
  background: rgba(0, 245, 160, 0.25);
  color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

/* Section Title templates */
.section {
  padding: 100px 0;
  position: relative;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-tag {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  gap: 10px;
}

.btn-accent {
  background: var(--accent);
  color: #0F172A;
  box-shadow: 0 4px 20px rgba(0, 200, 117, 0.2);
}

.btn-accent:hover {
  background: #00df90;
  box-shadow: 0 4px 30px rgba(0, 200, 117, 0.35);
  transform: translateY(-2px);
}

.btn-accent-2 {
  background: var(--accent-2);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.25);
}

.btn-accent-2:hover {
  background: #3e38c2;
  box-shadow: 0 4px 30px rgba(79, 70, 229, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.15);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background: rgba(15, 23, 42, 0.05);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.tab-btn {
  background: rgba(15, 23, 42, 0.03);
  border: var(--border);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

/* ==========================================================================
   3. LAYOUT COMPONENT GLASS
   ========================================================================== */
.card-glass {
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--border);
  border-radius: var(--border-radius);
  padding: 32px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--border-radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.04), rgba(255,255,255,0) 60%, rgba(0, 200, 117, 0.04));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.card-glass:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
  border-color: rgba(0, 200, 117, 0.25);
}

.card-glass:hover::before {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(255,255,255,0) 40%, rgba(0, 200, 117, 0.15));
}

/* Glow Blob Backdrop */
.glow-spot {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

.glow-spot.purple { background: var(--accent-2); }
.glow-spot.green { background: var(--accent); }

/* ==========================================================================
   4. STICKY NAVBAR
   ========================================================================== */
.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border);
  z-index: 9999;
  transition: var(--transition-smooth);
}

.navbar-wrapper.scrolled {
  height: 70px;
  background: rgba(248, 250, 252, 0.95);
  border-bottom-color: rgba(15, 23, 42, 0.04);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.logo-dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-item {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.nav-item:hover {
  color: var(--text-primary);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition-fast);
}

.nav-item:hover::after, .nav-item.active::after {
  width: 100%;
}

.nav-item.active {
  color: var(--text-primary);
}

/* Services Dropdown in Navbar */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 220px;
  background: var(--bg-secondary);
  border: var(--border);
  border-radius: 8px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: block;
  padding: 8px 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.dropdown-link:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent);
  padding-left: 24px;
}

/* Burger menu and drawer */
.burger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}

.burger-line {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: var(--border);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  padding: 100px 40px 40px 40px;
  gap: 24px;
  transition: var(--transition-smooth);
}

.nav-drawer.active {
  right: 0;
}

/* ==========================================================================
   5. FLOATING WIDGETS
   ========================================================================== */
/* WhatsApp Floating Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.whatsapp-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

.whatsapp-link:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-link svg {
  width: 24px;
  height: 24px;
  fill: #FFFFFF;
}

/* Cookie Consent Widget */
.cookie-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: calc(100% - 48px);
  max-width: 450px;
  background: rgba(255, 255, 255, 0.95);
  border: var(--border);
  border-radius: var(--border-radius);
  padding: 24px;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.cookie-widget.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.cookie-btns {
  display: flex;
  gap: 12px;
}

.cookie-btn {
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
}

.cookie-btn.accept {
  background: var(--accent);
  color: var(--bg-primary);
}

.cookie-btn.accept:hover {
  background: #00df90;
}

.cookie-btn.decline {
  background: rgba(15, 23, 42, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(15,23,42,0.1);
}

.cookie-btn.decline:hover {
  background: rgba(15, 23, 42, 0.1);
}

/* ==========================================================================
   6. INNER PAGE HEROS
   ========================================================================== */
.inner-hero {
  padding: 160px 0 80px 0;
  background: linear-gradient(180deg, rgba(248, 250, 252, 1) 0%, rgba(241, 245, 249, 1) 100%);
  border-bottom: var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.inner-hero .glow-spot {
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 16px;
}

.breadcrumb-separator {
  color: var(--text-muted);
}

.breadcrumb-item.active {
  color: var(--accent);
}

/* ==========================================================================
   7. DARK SECTIONS & FOOTER
   ========================================================================== */
.section-dark {
  background-color: #0B0F19 !important;
  color: #FFFFFF !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark h5, .section-dark h6 {
  color: #FFFFFF !important;
}

.section-dark p {
  color: #94A3B8 !important;
}

.section-dark p[style*="font-weight: 600"], .section-dark p.stat-label {
  color: #FFFFFF !important;
}

.footer {
  background-color: #0B0F19;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  padding: 80px 0 30px 0;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-desc {
  font-size: 0.95rem;
  color: #94A3B8;
  margin: 16px 0 24px 0;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  transition: var(--transition-fast);
}

.social-btn:hover {
  background: var(--accent);
  color: #0B0F19;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.footer-title {
  font-size: 1rem;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9rem;
  color: #94A3B8;
}

.footer-link:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  font-size: 0.85rem;
  color: #64748B;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  color: #64748B;
}

.footer-bottom-links a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   8. INPUTS & FORMS
   ========================================================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  background: rgba(15, 23, 42, 0.015);
  border: var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-2);
  background: #FFFFFF;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23A0A0B0'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}
