@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --primary-color: #030712; /* Very dark, almost black blue */
  --secondary-color: #111827; /* Dark gray/blue */
  --accent-color: #3b82f6; /* Professional blue */
  --accent-light: #60a5fa; /* Lighter blue for gradients */
  --accent-glow: rgba(59, 130, 246, 0.2);
  --text-main: #f9fafb; /* Off white */
  --text-muted: #9ca3af; /* Gray */
  --border-color: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(17, 24, 39, 0.7);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--primary-color);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 4.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--accent-light);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: block;
}

p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

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

/* Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color) 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
  animation: btnPulse 2.5s infinite;
}

.btn-primary:hover {
  animation: none;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.6);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--accent-color);
  background: rgba(59, 130, 246, 0.05);
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.2rem 0;
  transition: var(--transition);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(to right, #fff, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  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: -4px;
  left: 0;
  background-color: var(--accent-color);
  transition: var(--transition);
}

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

.mobile-menu-btn {
  display: none;
  cursor: pointer;
  position: relative;
  z-index: 1001; /* Keep above nav links */
}

/* Custom Hamburger Animation */
.hamburger {
  width: 30px;
  height: 20px;
  position: relative;
}
.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--text-main);
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: all 0.3s ease-in-out;
}
.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }

.mobile-menu-btn.active .hamburger span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}
.mobile-menu-btn.active .hamburger span:nth-child(2) {
  opacity: 0;
  left: -20px;
}
.mobile-menu-btn.active .hamburger span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  background-color: var(--primary-color);
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
  overflow: hidden;
}

@keyframes pulseGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.5; }
  33% { transform: scale(1.1) translate(20px, -20px); opacity: 0.8; }
  66% { transform: scale(0.9) translate(-20px, 20px); opacity: 0.6; }
  100% { transform: scale(1) translate(0, 0); opacity: 0.5; }
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  filter: blur(60px);
  animation: pulseGlow 12s infinite alternate ease-in-out;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,210,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  filter: blur(60px);
  animation: pulseGlow 15s infinite alternate-reverse ease-in-out;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  text-align: left;
}

.hero-text h1 {
  text-align: left;
}

.hero-visual {
  position: relative;
  width: 100%;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-main-card {
  width: 85%;
  height: 80%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  padding: 2.5rem;
  justify-content: space-around;
}

.hmc-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.floating-card {
  position: absolute;
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  box-shadow: 0 25px 50px rgba(0,0,0,0.6);
  backdrop-filter: blur(15px);
  z-index: 10;
}

.fc-top-right {
  top: 5%;
  right: -5%;
  animation: float 5s ease-in-out infinite;
}

.fc-bottom-left {
  bottom: 5%;
  left: -5%;
  animation: float 7s ease-in-out infinite reverse;
}

.fc-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-family: 'Outfit', sans-serif;
}

.fc-value {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--accent-light);
  line-height: 1;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Feature/Stats/Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--accent-light);
  box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.3);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
}

/* Stats specific */
.stats-section {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  padding: 6rem 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 4rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  background: linear-gradient(135deg, #fff, var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Content Blocks */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.content-block.reverse {
  direction: rtl;
}

.content-block.reverse > * {
  direction: ltr;
}

.image-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(45deg, var(--secondary-color), #1e293b);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border-color);
  font-size: 4rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.content-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  animation: float 6s ease-in-out infinite;
}

.check-list {
  list-style: none;
  margin-top: 2rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--text-main);
}

.check-list i {
  color: var(--accent-color);
  background: rgba(59, 130, 246, 0.1);
  padding: 5px;
  border-radius: 50%;
  font-size: 0.8rem;
}

/* Form */
.contact-wrapper {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.form-control {
  width: 100%;
  padding: 1.2rem;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(59, 130, 246, 0.05);
}

textarea.form-control {
  height: 180px;
  resize: none;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--text-main);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes btnPulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger reveals */
.grid-3 > div:nth-child(1) { transition-delay: 0.1s; }
.grid-3 > div:nth-child(2) { transition-delay: 0.2s; }
.grid-3 > div:nth-child(3) { transition-delay: 0.3s; }
.grid-3 > div:nth-child(4) { transition-delay: 0.4s; }
.grid-3 > div:nth-child(5) { transition-delay: 0.5s; }
.grid-3 > div:nth-child(6) { transition-delay: 0.6s; }

.grid-4 > div:nth-child(1) { transition-delay: 0.1s; }
.grid-4 > div:nth-child(2) { transition-delay: 0.2s; }
.grid-4 > div:nth-child(3) { transition-delay: 0.3s; }
.grid-4 > div:nth-child(4) { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 1024px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  .section { padding: 6rem 0; }
  .content-block { gap: 3rem; }
  .hero-visual { height: 450px; }
}

@media (max-width: 992px) {
  .hero-grid, .content-block, .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
  .hero-text { text-align: center; }
  .hero-text h1 { text-align: center; }
  .hero-btns { justify-content: center !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .hero::before { width: 400px; height: 400px; filter: blur(40px); }
  .hero::after { width: 300px; height: 300px; filter: blur(40px); }
  .fc-top-right { right: 5%; }
  .fc-bottom-left { left: 5%; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; margin-bottom: 1rem; }
  h2 { font-size: 2rem; margin-bottom: 1rem; }
  p { font-size: 1rem; margin-bottom: 1.2rem; }
  
  .section { padding: 4rem 0; }
  .stats-section { padding: 3rem 0; }
  .container { padding: 0 1.5rem; }
  
  .hero { min-height: 80vh; padding-top: 100px; }
  .hero p { font-size: 1.1rem; margin-bottom: 2rem; text-align: center; }
  .hero-btns { flex-direction: column; gap: 1rem; }
  .btn { width: 100%; padding: 1rem; }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(3, 7, 18, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }
  .nav-links.active { left: 0; }
  .nav-links a { font-size: 1.2rem; }
  .mobile-menu-btn { display: block; }
  
  .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 1.5rem; }
  .card { padding: 2rem 1.5rem; }
  .stat-number { font-size: 3rem; }
  
  .content-image, .image-placeholder { height: 250px; }
  
  /* Hero Visual Fixes for Mobile */
  .hero-visual { height: auto; padding: 2rem 0; margin-top: 1rem; }
  .hero-main-card { width: 100%; height: auto; padding: 1.5rem; gap: 1rem; }
  .hmc-item { padding: 0.8rem; font-size: 0.9rem; }
  .floating-card { padding: 1rem; }
  .fc-label { font-size: 0.65rem; }
  .fc-value { font-size: 1.8rem; }
  .fc-top-right { top: 0; right: -10px; }
  .fc-bottom-left { bottom: 0; left: -10px; }
  
  .contact-wrapper { padding: 2rem 1.5rem; gap: 2rem; }
  .contact-info h3 { font-size: 1.5rem; }
  
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  .section-header { margin-bottom: 3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stat-number { font-size: 2.5rem; }
  
  /* Micro tweaks for tiny screens */
  .hero-main-card { width: 95%; margin: 0 auto; }
  .fc-top-right { top: -10px; right: 0; }
  .fc-bottom-left { bottom: -10px; left: 0; }
  .fc-value { font-size: 1.4rem; }
}
