/**
 * Aarti Web Technology — Master Integrated Style Architecture
 */

@import './variables.css';
@import './components.css';
@import './animations.css';
@import './main.css';

/* -------------------------------------------------------------------
 * CORE BRANDING & TYPOGRAPHY METRICS
 * ------------------------------------------------------------------- */
:root {
  --primary: #0a66c2;
  --primary-hover: #084e96;
  --secondary: #00a8ff;
  --dark: #0a0e1a;
  --light: #f8faff;
  --white: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: rgba(15, 23, 42, 0.08);
}

/* -------------------------------------------------------------------
 * RESPONSIVE CONTAINER & PAGE LAYOUT ENGINE
 * ------------------------------------------------------------------- */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

@media (max-width: 1320px) {
  .container {
    max-width: 1140px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* -------------------------------------------------------------------
 * TOP BAR & HEADER STYLING
 * ------------------------------------------------------------------- */
.top-bar {
  background-color: #060913;
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar a {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.top-bar a:hover {
  color: #38bdf8;
}

/* -------------------------------------------------------------------
 * NAVBAR NAVIGATION & LOGO
 * ------------------------------------------------------------------- */
nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  z-index: 1000;
  padding: 14px 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes navSlideDown {
  0% { transform: translateY(-100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

nav.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 8px 0;
  border-bottom: 1px solid rgba(10, 102, 194, 0.18);
  box-shadow: 0 10px 30px -5px rgba(10, 102, 194, 0.14), 0 4px 15px rgba(0, 0, 0, 0.05);
  animation: navSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled .logo img {
  height: 38px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links li a:hover {
  color: var(--primary);
}

/* Ultra-Animated Get Started Navbar Button */
@keyframes btnPulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(10, 102, 194, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(10, 102, 194, 0); }
  100% { box-shadow: 0 0 0 0 rgba(10, 102, 194, 0); }
}

@keyframes btnShimmerSweep {
  0% { transform: translateX(-120%) rotate(25deg); }
  30% { transform: translateX(180%) rotate(25deg); }
  100% { transform: translateX(180%) rotate(25deg); }
}

.btn-nav-get-started {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0a66c2 0%, #00a8ff 100%);
  border: none;
  border-radius: 50px;
  box-shadow: 0 6px 20px -4px rgba(10, 102, 194, 0.45);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  text-decoration: none !important;
  cursor: pointer;
  z-index: 1;
  animation: btnPulseGlow 3s infinite;
}

.btn-nav-get-started::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-120%) rotate(25deg);
  animation: btnShimmerSweep 3.5s ease-in-out infinite;
  pointer-events: none;
}

.btn-nav-get-started i {
  font-size: 0.82rem;
  transition: transform 0.3s ease;
}

.btn-nav-get-started:hover {
  transform: translateY(-3px) scale(1.04);
  background: linear-gradient(135deg, #0056b3 0%, #0088cc 100%);
  box-shadow: 0 10px 28px -4px rgba(10, 102, 194, 0.65), 0 0 15px rgba(0, 168, 255, 0.4);
  color: #ffffff !important;
}

.btn-nav-get-started:hover i {
  transform: translateX(4px);
}

/* -------------------------------------------------------------------
 * ULTRA-PREMIUM REDESIGNED HERO SECTION (Vercel & Linear Inspired)
 * ------------------------------------------------------------------- */
.hero-wrapper {
  position: relative;
  padding: 70px 0 90px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(10, 102, 194, 0.06) 0%, transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(10, 102, 194, 0.08);
  border: 1px solid rgba(10, 102, 194, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.gradient-text-primary {
  background: linear-gradient(135deg, #0a66c2 0%, #00a8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.18rem;
  line-height: 1.7;
  color: #475569;
  max-width: 620px;
  margin-bottom: 36px;
}

@media (max-width: 991px) {
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 991px) {
  .hero-actions {
    justify-content: center;
  }
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  background: linear-gradient(135deg, #0a66c2 0%, #00a8ff 100%);
  color: #ffffff !important;
  box-shadow: 0 10px 30px rgba(10, 102, 194, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(10, 102, 194, 0.5);
  color: #ffffff !important;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  background: #ffffff;
  color: #1e293b !important;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-hero-secondary:hover {
  background: #f8fafc;
  border-color: var(--primary);
  color: var(--primary) !important;
  transform: translateY(-2px);
}

/* IDE Code Terminal Showcase Component (Zero Scrollbars & Clean Typing Cursor) */
.hero-ide-window {
  background: #090d16;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  text-align: left;
}

.ide-header {
  background: #0f172a;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ide-dots {
  display: flex;
  gap: 8px;
}

.ide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.ide-dot-red { background-color: #ff5f56; }
.ide-dot-yellow { background-color: #ffbd2e; }
.ide-dot-green { background-color: #27c93f; }

.ide-title {
  font-family: monospace;
  font-size: 0.82rem;
  color: #94a3b8;
}

.ide-body {
  padding: 20px 24px;
  font-family: 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #e2e8f0;
  height: 350px;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -ms-overflow-style: none !important;  /* IE and Edge */
  scrollbar-width: none !important;       /* Firefox */
}

.ide-body pre {
  margin: 0;
  padding: 0;
  background: transparent;
}

.ide-body::-webkit-scrollbar {
  display: none !important;              /* Chrome, Safari, Opera */
  width: 0 !important;
  height: 0 !important;
}

.typing-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background-color: #38bdf8;
  margin-left: 2px;
  vertical-align: middle;
  animation: cursor-blink 0.8s infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.token-keyword { color: #f472b6; font-weight: bold; }
.token-string { color: #34d399; }
.token-fn { color: #38bdf8; }
.token-comment { color: #64748b; font-style: italic; }
.token-var { color: #fbbf24; }
.token-code { color: #e2e8f0; }

.ide-footer-status {
  background: #0b1120;
  padding: 10px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #94a3b8;
}

/* Mobile Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: #1e293b;
  transition: all 0.3s ease;
}

@media (max-width: 991px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
    gap: 20px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
  }

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

/* -------------------------------------------------------------------
 * FOOTER STYLING
 * ------------------------------------------------------------------- */
footer {
  background: linear-gradient(180deg, rgba(6, 9, 19, 0.72) 0%, rgba(2, 4, 9, 0.85) 100%), url('https://images.unsplash.com/photo-1526778548025-fa2f459cd5c1?auto=format&fit=crop&q=80&w=1920') center/cover no-repeat fixed;
  color: #94a3b8;
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #38bdf8;
}

footer h4 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
