/* ============================================
   Axentro | Core Stylesheet
   Version: 2.0 (Production)
   ============================================ */

/* 1. CSS Variables (Theming) */
:root {
  --bg-base: #EDEEF5;
  --text: #1a1a1a;
  --muted: #555555;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.05);
  --accent: #9fff00;
  --secondary: #bc00ff;
  --btn-text: #1a1a1a;
  --card-bg: rgba(255, 255, 255, 0.9);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --nav-bg: rgba(241, 241, 241, 0.8);
  --link-hover-bg: rgba(0, 0, 0, 0.03);
  --btn-ripple: rgba(0,0,0,0.1);
  --transition-speed: 0.4s;
}

[data-theme="dark"] {
  --bg-base: #0a0a0c;
  --text: #ffffff;
  --muted: #d4d4d8;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.1);
  --accent: #9fff00;
  --secondary: #bc00ff;
  --btn-text: #050507;
  --card-bg: rgba(20, 20, 22, 0.6);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --nav-bg: rgba(10, 10, 12, 0.7);
  --link-hover-bg: rgba(255, 255, 255, 0.05);
  --btn-ripple: rgba(255,255,255,0.3);
}

/* 2. Reset & Base Styles */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-base);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
  line-height: 1.6;
}

/* Accessibility: Focus States */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 3. Layout & Typography */
section {
  padding: clamp(80px, 10vw, 140px) clamp(15px, 4vw, 40px);
  text-align: center;
  position: relative;
  z-index: 1;
}

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

h1, h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

h3 {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  line-height: 1.3;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

p {
  color: var(--muted);
  line-height: 1.8;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
}

/* 4. UI Components: Navbar */
nav.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(to bottom, var(--nav-bg), transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background var(--transition-speed) ease;
}

.nav-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

/* Phase 4: Logo Icon Color changed to Accent Green */
.nav-brand svg {
  width: 24px;
  height: 24px;
  fill: var(--accent); 
  transition: transform 0.3s ease;
}

.nav-brand:hover svg {
  transform: rotate(10deg);
}

.nav-links {
  display: flex;
  gap: 5px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 8px;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

.nav-link {
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  transition: color .3s, background-color .3s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.nav-link:hover {
  color: var(--text);
  background-color: var(--link-hover-bg);
}

.nav-link.active {
  color: var(--btn-text);
  background: var(--accent);
}

/* Phase 4: New Navbar Controls (Replacing Floating Controls) */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 10px 15px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-btn:hover {
  background: var(--text);
  color: var(--bg-base);
  border-color: var(--text);
  transform: translateY(-2px) scale(1.05);
}

.nav-btn i {
  font-size: 1rem;
}

/* 5. UI Components: Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 8rem;
  padding-bottom: 4rem;
  flex-grow: 1;
}

.video-wrapper {
  position: absolute;
  top: 15vh;
  left: 0;
  width: 100%;
  height: 85vh;
  z-index: 0;
  pointer-events: none;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.gradient-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6rem;
  background: linear-gradient(to bottom, var(--bg-base), transparent);
  z-index: 1;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
  text-align: center;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 9vw, 6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  text-transform: uppercase;
  color: #0a0a0a;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.9), 0 0 25px rgba(255, 255, 255, 0.7);
}

.hero-title .muted {
  color: #333333;
  opacity: 1;
  font-weight: 500;
  display: block;
  font-size: clamp(1rem, 2vw, 1.5rem);
  text-transform: none;
  margin-top: 1rem;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.7);
}

.eye-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 2px solid #0a0a0a;
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 4px;
  position: relative;
  top: -2px;
  transition: width 0.3s ease;
}

.eye-dot {
  width: 8px;
  height: 8px;
  background-color: #0a0a0a;
  border-radius: 50%;
}

.hero .tagline {
  font-family: 'Outfit', sans-serif;
  margin-bottom: 25px;
  letter-spacing: 0.2em;
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  color: var(--accent);
  text-transform: uppercase;
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid var(--accent);
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.hero-services {
  margin-top: 40px;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  letter-spacing: 0.15em;
  color: #333333;
  opacity: 1;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  padding: 15px 0;
  display: inline-block;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.7);
}

/* Dark Mode Overrides for Hero */
[data-theme="dark"] .hero-title {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 0, 0, 0.7);
}
[data-theme="dark"] .hero-title .muted {
  color: #e4e4e7;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.7);
}
[data-theme="dark"] .eye-pill { border-color: #ffffff; }
[data-theme="dark"] .eye-dot { background-color: #ffffff; }
[data-theme="dark"] .hero-services {
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.7);
}

/* 6. UI Components: Buttons */
.cta-button {
  background: var(--accent);
  color: var(--btn-text);
  padding: 16px 40px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 50px;
  display: inline-block;
  text-decoration: none;
  border: none;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 10px 30px rgba(159, 255, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  box-shadow: 0 15px 40px rgba(159, 255, 0, 0.4);
  transform: translateY(-2px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  position: relative;
  overflow: hidden;
}

.btn-wa { background: #25D366; color: #000; }
.btn-mail { background: #EA4335; }
.btn-fb { background: #1877F2; }
.btn-ig { background: #E1306C; }

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 7. UI Components: Cards (Services) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.card-wrapper {
  perspective: 1000px;
}

.card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  padding: 30px;
  border-radius: 24px;
  text-align: start;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transform-style: preserve-3d;
  transition: box-shadow 0.3s, border-color 0.3s;
  box-shadow: var(--shadow);
  height: 100%;
  will-change: transform;
}

.card:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.glare-card {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  pointer-events: none;
  z-index: 2;
}

.card-content {
  position: relative;
  z-index: 3;
  transform-style: preserve-3d;
}

.card-content > * {
  transition: transform 0.3s;
}

.card:hover .card-content > * {
  transform: translateZ(30px);
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.service-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 20px;
  filter: grayscale(30%) contrast(1.1);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.card:hover .service-img {
  filter: grayscale(0%) contrast(1.1);
  transform: scale(1.02);
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.3s;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
}

.card:hover .more-link {
  gap: 15px;
}

/* 8. UI Components: Footer & Floating WA */
.final-cta-text {
  margin-bottom: 15px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
}

.cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

footer {
  padding: 60px 20px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

footer .main {
  font-weight: 700;
  font-size: 1.1rem;
  font-family: 'Outfit', sans-serif;
  color: var(--text);
}

footer .by {
  margin-top: 10px;
  font-size: 0.9rem;
  opacity: .6;
  color: var(--muted);
}

.footer-icons {
  margin-top: 25px;
  display: flex;
  gap: 15px;
  justify-content: center;
  font-size: 1.1rem;
}

.footer-icons a {
  transition: all 0.3s;
  text-decoration: none;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text);
}

.footer-icons a:hover {
  transform: translateY(-5px);
  color: var(--accent);
  border-color: var(--accent);
  background: var(--text);
}

.floating-wa {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #25D366;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  text-decoration: none;
  transition: all 0.3s;
}

html[dir="rtl"] .floating-wa {
  left: auto;
  right: 20px;
}

.floating-wa:hover {
  transform: scale(1.1) rotate(5deg);
}
