:root {
    --primary: #007f30; /* Daha dolğun yaşıl */
  --primary-dark: #005f24;
  --secondary: #002244; /* Dərin göy */
  --accent: #00b894;
  
    --light: #ffffff;
  --bg-alt: #f4f6f9;
  --text: #1a1a1a;
  --text-light: #555555;
  
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;
}

body.dark {
  --light: #0d1117;
  --bg-alt: #161b22;
  --text: #e6edf3;
  --text-light: #8b949e;
  --card-bg: #1f252e;
  --border-color: #30363d;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--light);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  scroll-behavior: smooth;
  transition: background 0.3s ease, color 0.3s ease;
}

body { padding-top: 80px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--secondary);
}

body.dark h1, body.dark h2, body.dark h3, body.dark h4 {
  color: #fff;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s;
}

body.dark .navbar {
  background: rgba(13, 17, 23, 0.95);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.main-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* Naviqasiya */
.nav-list {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s;
}

.nav-list a:hover {
  color: var(--primary);
}

.controls {
  display: flex;
  gap: 15px;
  align-items: center;
}

.lang {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: 8px;
  display: flex;
}

.lang-btn {
  background: none;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-light);
  border-radius: 6px;
  transition: 0.3s;
}

.lang-btn.active {
  background: var(--primary); 
  color: #fff;
}

.theme-toggle {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero {
  position: relative;
  padding: 140px 0 100px;
  text-align: center;
    background: linear-gradient(135deg, var(--secondary) 0%, #004d40 100%);
  color: #fff;
  overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  color: #fff !important;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 18px;
  color: #e0e0e0;
  margin-bottom: 40px;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.cta-btn {
  padding: 15px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.cta-btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.cta-btn.secondary {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
}

.cta-btn.secondary:hover {
  background: rgba(255,255,255,0.2);
}

.section {
  padding: 100px 0;
}

.bg-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.subtitle {
  color: var(--text-light);
  font-size: 18px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  position: relative;
  height: 350px;
  border-radius: 15px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  display: flex;
  align-items: flex-end;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
  transition: 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card:hover::before {
  background: linear-gradient(to top, rgba(0, 127, 48, 0.9) 0%, rgba(0, 34, 68, 0.6) 100%);
}

.card-content {
  position: relative;
  z-index: 2;
  padding: 30px;
  color: #fff;
  width: 100%;
}

.icon-box {
  font-size: 40px;
  color: var(--accent);
  margin-bottom: 15px;
}

.service-card h3 {
  color: #fff !important;
  margin-bottom: 10px;
  font-size: 22px;
}

.service-card p {
  font-size: 15px;
  color: #f0f0f0;
  line-height: 1.5;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-img img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.tech-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.tech-list li {
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 18px;
  color: var(--text);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.portfolio-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 280px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 34, 68, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.overlay-text {
  text-align: center;
  color: #fff;
}

.overlay-text h3 { color: #fff !important; }

.bg-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 48px;
  color: #fff;
  margin-bottom: 10px;
}

.footer {
  background: #0b0e14;
  color: #8892b0;
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1); 
}

.footer a {
  color: #8892b0;
  text-decoration: none;
  transition: 0.3s;
}

.footer a:hover {
  color: var(--primary);
}

.social-links a {
  font-size: 20px;
  margin-right: 15px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #1f252e;
  padding-top: 30px;
}

.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal-item.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .nav-list { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .header-row { padding: 0 20px; }
  .hero h1 { font-size: 36px; }
}