
/* ==========================================================================
   TABLE OF CONTENTS
   1. Configuration (Fonts & Variables)
   2. Reset & Base Styles
   3. Utility Classes & Animations
   4. Layout: Navbar & Header
   5. Layout: Mobile Menu
   6. Layout: Footer
   7. Components: Buttons
   8. Components: Video Background
   9. Page: Hero Section
   10. Page: General Sections (About, Contact)
   11. Page: Services (Specific Styles)
   ========================================================================== */

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

:root {
  /* Colors */
  --primary-bg: #0a0a0a;
  --secondary-bg: #1a1a1a;
  --accent-color: #e0921e;
  --accent-hover: #f0a52a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --border-color: #333333;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #e0921e 0%, #f0a52a 100%);
  --gradient-bg: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);

  /* Shadows & Effects */
  --shadow-light: 0 4px 20px rgba(224, 146, 30, 0.1);
  --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.3);
  --shadow-heavy: 0 16px 60px rgba(0, 0, 0, 0.5);
  --backdrop-blur: blur(20px);
  
  /* Layout */
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 80px;
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* CRITICAL FIX: Prevents Sticky Nav from covering titles when clicking links */
section[id] {
  scroll-margin-top: 120px; 
}

body {
  background: var(--primary-bg);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Main Container Wrapper */
.main-content {
  position: relative;
  z-index: 1;
  flex: 1;
  margin-top: var(--nav-height);
}

/* ==========================================================================
   3. UTILITY CLASSES & ANIMATIONS
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-3 { margin-top: 1.5rem; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ==========================================================================
   4. LAYOUT: NAVBAR & HEADER
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

/* Desktop Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

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

/* Language Switcher */
.language-switcher {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
}

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

/* ==========================================================================
   5. LAYOUT: MOBILE MENU
   ========================================================================== */
.mobile-menu-toggle {
  display: none; /* Hidden on Desktop */
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: var(--backdrop-blur);
  z-index: 1001;
  padding: 2rem 1rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  min-height: 100vh;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  display: block;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu-links {
  list-style: none;
}

.mobile-menu-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.mobile-menu-links a:hover {
  color: var(--accent-color);
  padding-left: 1rem;
}

.mobile-language-switcher {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
  .mobile-menu-toggle { display: block; }
  .nav-links, .language-switcher { display: none; }
  .nav-container { padding: 0 1rem; }
  
  body.mobile-menu-open {
    overflow: hidden; /* Prevent scroll when menu open */
  }
}

/* ==========================================================================
   6. LAYOUT: FOOTER
   ========================================================================== */
footer {
  background: var(--secondary-bg);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: auto;
  z-index: 2;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  align-items: start;
}

.footer-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-section p, .footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1.6;
  transition: var(--transition);
  display: block;
  margin-bottom: 0.5rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ==========================================================================
   7. COMPONENTS: BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-light);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   8. COMPONENTS: VIDEO BACKGROUND
   ========================================================================== */
.video-background {
  position: fixed; 
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  overflow: hidden;
}

.video-background video {
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.3;
}

.video-background::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.8) 0%, rgba(26, 26, 26, 0.6) 100%);
  z-index: 0;
}

/* ==========================================================================
   9. PAGE: HERO SECTION
   ========================================================================== */
.hero {
  min-height: 90vh; /* Slightly adjusted to account for nav */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero .subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero .description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   10. PAGE: GENERAL SECTIONS (About, Contact)
   ========================================================================== */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* About & Contact Grids */
.about-content, .contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

/* About Stats */
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(26, 26, 26, 0.4);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
  display: block;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Contact Items */
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(26, 26, 26, 0.4);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.contact-icon {
  width: 50px; height: 50px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Responsive adjustments for Grids */
@media (max-width: 768px) {
  .about-content, .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-stats { grid-template-columns: 1fr; }
}

/* ==========================================================================
   11. PAGE: SERVICES (Combined Styles)
   ========================================================================== */

/* The Main Services Grid (Home/Services Page) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  text-decoration: none;
  display: block;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-medium);
}

.service-icon {
  width: 60px; height: 60px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

/* Detailed Services Page Specifics */
.services-nav {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 3rem;
  z-index: 90;
}

.services-nav h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.services-nav-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  list-style: none;
}

.services-nav-list a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: var(--transition);
  display: block;
  font-size: 0.875rem;
}

.services-nav-list a:hover {
  background: var(--accent-color);
  color: var(--text-primary);
}

.service-detail {
  margin-bottom: 4rem;
  padding: 2rem;
  background: rgba(26, 26, 26, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
}

.service-detail h2 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.service-detail h3 {
  color: var(--text-primary);
  margin: 2rem 0 1rem 0;
  font-size: 1.5rem;
}

/* Service Features Grid (Within Detail) */
.service-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-item {
  padding: 1.5rem;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.feature-item h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Tech Stack Tags */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tech-tag {
  background: var(--gradient-primary);
  color: var(--text-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Process Steps (Numbered) */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  counter-reset: step-counter;
}

.process-step {
  text-align: center;
  padding: 1.5rem;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  position: relative;
  margin-top: 15px; /* Space for the bubble */
}

.process-step::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-color);
  color: var(--text-primary);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.process-step h4 {
  color: var(--text-primary);
  margin: 1rem 0 0.5rem 0;
  font-size: 1.125rem;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Services Responsive */
@media (max-width: 768px) {
  .services-nav-list { grid-template-columns: 1fr; }
  .service-detail { padding: 1.5rem; }
  .service-features, .process-steps { grid-template-columns: 1fr; }
}
