/* ===================================
   SEOMASTER - Main Stylesheet
   Colors: Lime #65A30D + Dark #1A1A2E
   Fonts: Manrope + Inter
   =================================== */

/* CSS Custom Properties */
:root {
  /* Primary Colors */
  --lime: #65A30D;
  --lime-light: #84CC16;
  --lime-dark: #4D7C0F;
  --lime-50: rgba(101, 163, 13, 0.05);
  --lime-100: rgba(101, 163, 13, 0.1);
  --lime-200: rgba(101, 163, 13, 0.2);

  /* Dark Colors */
  --dark: #1A1A2E;
  --dark-light: #16213E;
  --dark-lighter: #0F3460;
  --dark-800: #2D2D44;
  --dark-700: #3D3D5C;

  /* Neutral Colors */
  --white: #FFFFFF;
  --gray-100: #F8FAFC;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;

  /* Typography */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --header-height: 80px;

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-lime: 0 4px 20px rgba(101, 163, 13, 0.3);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50%;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  color: var(--gray-300);
  margin-bottom: 1rem;
}

/* ===================================
   Utility Classes
   =================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--lime), var(--lime-light));
  border-radius: 2px;
}

.section-title p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 24px auto 0;
}

.text-lime { color: var(--lime); }
.text-gradient {
  background: linear-gradient(135deg, var(--lime), var(--lime-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================================
   Buttons
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--lime), var(--lime-light));
  color: var(--dark);
  box-shadow: var(--shadow-lime);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(101, 163, 13, 0.4);
}

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

.btn-secondary:hover {
  background: var(--lime);
  color: var(--dark);
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.125rem;
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
}

.nav-logo img {
  height: 40px;
}

.nav-logo span {
  color: var(--white);
}

.nav-logo .text-lime {
  color: var(--lime);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-300);
  position: relative;
  padding: 8px 0;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--lime);
}

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

.nav-cta {
  margin-left: 20px;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-height);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.9));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--lime-100);
  border: 1px solid var(--lime-200);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--lime);
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: var(--radius-full);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: var(--gray-300);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--dark-800);
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--lime);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-top: 8px;
}

/* ===================================
   Features Section
   =================================== */
.features {
  background: var(--dark-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--dark);
  border-radius: var(--radius-md);
  padding: 40px 30px;
  border: 1px solid var(--dark-800);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--lime), var(--lime-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--lime-200);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--lime-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon img {
  width: 32px;
  height: 32px;
}

.feature-card h4 {
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--gray-400);
}

/* ===================================
   Services Section
   =================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--dark-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--dark-800);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--lime-200);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 30px;
}

.service-content h4 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.service-content p {
  font-size: 0.9375rem;
  color: var(--gray-400);
  margin-bottom: 20px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  font-weight: 600;
  font-size: 0.9375rem;
}

.service-link:hover {
  gap: 12px;
}

/* ===================================
   Results/Stats Section
   =================================== */
.results {
  background: var(--dark-light);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.result-card {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  border: 1px solid var(--dark-800);
  transition: var(--transition);
}

.result-card:hover {
  border-color: var(--lime);
  box-shadow: var(--shadow-lime);
}

.result-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 24px;
}

.result-card h4 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.result-card p {
  color: var(--gray-400);
}

/* ===================================
   CTA Section
   =================================== */
.cta {
  position: relative;
  padding: 100px 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(101, 163, 13, 0.95), rgba(77, 124, 15, 0.95));
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--dark);
  margin-bottom: 20px;
}

.cta-content p {
  color: var(--dark-light);
  font-size: 1.125rem;
  margin-bottom: 32px;
}

.cta .btn-primary {
  background: var(--dark);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.cta .btn-primary:hover {
  background: var(--dark-light);
  transform: translateY(-2px);
}

/* ===================================
   About Page
   =================================== */
.about-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-height);
  background-size: cover;
  background-position: center;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(15, 52, 96, 0.9));
}

.about-content {
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-text h3 {
  margin-bottom: 20px;
  color: var(--lime);
}

.about-text p {
  font-size: 1.0625rem;
  margin-bottom: 16px;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-card {
  background: var(--dark-light);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  border: 1px solid var(--dark-800);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: var(--lime-200);
  box-shadow: var(--shadow-lg);
}

.team-image {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 3px solid var(--lime);
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h4 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.team-card .role {
  color: var(--lime);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.team-card p {
  font-size: 0.875rem;
  color: var(--gray-400);
}

/* ===================================
   Services Page
   =================================== */
.services-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-height);
  background: linear-gradient(135deg, var(--dark), var(--dark-light));
}

.service-detail {
  padding: 80px 0;
  border-bottom: 1px solid var(--dark-800);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.service-detail.reverse .service-detail-grid {
  direction: rtl;
}

.service-detail.reverse .service-detail-grid > * {
  direction: ltr;
}

.service-detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.service-detail-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.service-detail-content h3 {
  margin-bottom: 20px;
  font-size: 1.75rem;
}

.service-detail-content p {
  font-size: 1.0625rem;
  margin-bottom: 16px;
}

.service-features {
  margin-top: 24px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--gray-300);
  font-size: 1rem;
}

.service-features li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--lime);
  color: var(--dark);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===================================
   Contact Page
   =================================== */
.contact-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-height);
  background: linear-gradient(135deg, var(--dark), var(--dark-light));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-form {
  background: var(--dark-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--dark-800);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--white);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--dark);
  border: 1px solid var(--dark-800);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px var(--lime-100);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-info {
  padding: 20px 0;
}

.contact-info h3 {
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: var(--lime-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon img {
  width: 24px;
  height: 24px;
}

.info-content h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.info-content p {
  font-size: 0.9375rem;
  color: var(--gray-400);
}

.info-content a {
  color: var(--lime);
}

.info-content a:hover {
  text-decoration: underline;
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--dark-light);
  padding: 80px 0 30px;
  border-top: 1px solid var(--dark-800);
}

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

.footer-brand {
  max-width: 300px;
}

.footer-brand .nav-logo {
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--lime);
}

.social-link img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.footer-column h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--white);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--gray-400);
  font-size: 0.9375rem;
}

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

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--dark-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0;
}

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

.footer-bottom-links a {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.footer-bottom-links a:hover {
  color: var(--lime);
}

/* ===================================
   Animations
   =================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
  .features-grid,
  .services-grid,
  .results-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .service-detail-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-detail.reverse .service-detail-grid {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transform: translateX(100%);
    transition: var(--transition);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    margin-left: 0;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .stat-item {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .features-grid,
  .services-grid,
  .results-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }

  .container {
    padding: 0 16px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.875rem;
  }

  .btn-large {
    padding: 14px 32px;
    font-size: 1rem;
  }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
  .header,
  .footer,
  .cta {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .hero {
    min-height: auto;
    padding: 40px 0;
  }
}
