/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0d1117;
  color: #e6edf3;
  line-height: 1.6;
  padding-top: 60px; /* Match fixed nav height */
}

img {
  max-width: 100%;
  display: block;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.5rem;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid #1f2937;
  height: 60px;
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: #e6edf3;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #58a6ff;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(22, 27, 34, 0.95);
  min-width: 220px;
  border: 1px solid #1f2937;
  border-radius: 6px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  z-index: 999;
}

.dropdown-content a {
  display: block;
  padding: 12px 16px;
  color: #e6edf3;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease;
}

.dropdown-content a:hover {
  background-color: #161b22;
  color: #58a6ff;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.nav-links > .dropdown > a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #58a6ff;
  transition: width 0.3s ease;
}

.nav-links > .dropdown:hover > a::after {
  width: 100%;
}

/* Hero Header */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(to bottom, #161b22, #0d1117);
  background-image: url('../services/images/cloud-bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: visible;
}

header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 23, 0.6);
  z-index: 1;
  pointer-events: none;
}

header h1, header p {
  position: relative;
  z-index: 2;
}

header h1 {
  font-size: 3rem;
  color: #58a6ff;
  margin-bottom: 1rem;
}

header p {
  max-width: 700px;
  font-size: 1.2rem;
  color: #c9d1d9;
}

.cta-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  background: #238636;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #2ea043;
}

/* Sections */
section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 2rem auto;
  text-align: left;
  background: rgba(22, 27, 34, 0.85);
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  position: relative;
}

section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../services/images/tech-bg.png') no-repeat center center;
  background-size: cover;
  opacity: 0.05;
  z-index: 0;
  border-radius: 12px;
}

section > * {
  position: relative;
  z-index: 1;
}

section h2 {
  font-size: 2rem;
  color: #58a6ff;
  margin-bottom: 1rem;
}

section p, section ul {
  color: #c9d1d9;
  font-size: 1.1rem;
}

ul {
  list-style: none;
  padding: 0;
}

ul li {
  margin: 1rem 0;
  background: #0d1117;
  padding: 1rem;
  border-left: 4px solid #58a6ff;
  border-radius: 6px;
  box-shadow: inset 0 0 10px #0d1117;
}

/* Cards */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #58a6ff;
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(6px);
}

.card:hover {
  transform: translateY(-8px);
  border-color: #58a6ff;
  box-shadow: 0 0 25px rgba(88, 166, 255, 0.3);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: #58a6ff;
}

.card p {
  font-size: 1.05rem;
  color: #e6edf3;
}

.card-link {
  text-decoration: none;
  color: inherit;
}

/* Toggle Buttons */
.region-toggle-label {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.region-toggle-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.region-btn {
  padding: 0.5rem 1.2rem;
  border: 2px solid #007acc;
  border-radius: 6px;
  background-color: white;
  color: #007acc;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.region-btn:hover,
.region-btn.active {
  background-color: #007acc;
  color: white;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #8b949e;
  border-top: 1px solid #1f2937;
  margin-top: 3rem;
}

/* Animations */
.fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 1rem 1.5rem;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
  }

  header h1 {
    font-size: 2.25rem;
  }

  header p {
    font-size: 1rem;
  }

  section {
    padding: 2rem 1rem;
  }
}
