:root {
  /* Color Palette */
  --primary: #001f3f; /* Deep Navy */
  --primary-light: #003366;
  --accent: #00d2ff; /* Glassy Cyan */
  --text: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --bg-light: #f8f9fa;
  --glass: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  
  /* Typography */
  --font-main: 'Outfit', sans-serif;
  
  /* Spacing */
  --section-padding: 100px 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* Typography Helpers */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation Overhaul */
.navbar-modern {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar-modern.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

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

.brand-modern {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white); /* Default to white on dark hero */
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.navbar-modern.scrolled .brand-modern {
  color: var(--primary); /* Change to dark when scrolled on white bg */
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--white); /* Default to white */
  font-weight: 600;
  transition: color 0.3s;
}

.navbar-modern.scrolled .nav-links a {
  color: var(--primary); /* Change to dark when scrolled */
}

.nav-links a:hover {
  color: var(--accent) !important;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  padding: 5px;
  cursor: pointer;
}

/* Hero Section */
.hero-modern {
  height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, #003366 0%, #001f3f 100%);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(at 0% 0%, rgba(0, 210, 255, 0.15) 0px, transparent 50%),
    radial-gradient(at 50% 0%, rgba(0, 210, 255, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(0, 210, 255, 0.15) 0px, transparent 50%);
  opacity: 0.8;
}

.hero-overlay {
  display: none; /* No longer needed for gradient bg */
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
  color: var(--white);
}

.hero-content h1 {
  font-size: 5rem;
  margin-bottom: 25px;
  letter-spacing: -1px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-modern {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 50px;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.nav-links .btn-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3);
  color: var(--white) !important;
}

/* Glass Cards */
.services-section {
  padding: var(--section-padding);
  background: var(--primary);
  color: var(--white);
}

.grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.glass-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0,210,255,0.15);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 25px;
  background: linear-gradient(135deg, var(--accent), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  transition: transform 0.3s ease;
}

.glass-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--accent);
  font-weight: 700;
}

.card-content p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
  padding: var(--section-padding);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  height: 250px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Contact Section */
.contact-modern {
  background: var(--primary);
  color: var(--white);
  padding: var(--section-padding);
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.contact-info-panel {
  flex: 1;
  min-width: 300px;
}

.contact-info-panel h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

/* Footer Styling */
footer.footer-modern {
  background: var(--primary);
  color: var(--white);
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: block;
}

footer.footer-modern .footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}
@media (max-width: 991px) {
  footer.footer-modern .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  footer.footer-modern .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--accent);
}

.footer-desc {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.7;
  transition: all 0.3s;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
  padding-left: 5px;
}

.footer-info {
  list-style: none;
}

.footer-info li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  opacity: 0.8;
  font-size: 0.9rem;
}

.footer-info i {
  color: var(--accent);
  margin-top: 3px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  opacity: 0.6;
}

.info-item i {
  color: var(--accent);
  font-size: 1.5rem;
}

#footer-map {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 1;
}

/* Blog Styles */
.blog-section {
  padding: var(--section-padding);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.blog-img {
  height: 220px;
  width: 100%;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.blog-info {
  padding: 30px;
  flex: 1;
}

.blog-tag {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 10px;
  display: block;
}

.blog-info h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.blog-info p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Article Page Styling */
.article-header {
  padding: 120px 0 60px;
  background: var(--primary);
  color: var(--white);
  text-align: center;
}

.article-meta {
  margin-bottom: 20px;
  opacity: 0.8;
  font-size: 0.9rem;
}

.article-main {
  max-width: 800px;
  margin: -50px auto 80px;
  background: var(--white);
  padding: 60px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  position: relative;
  z-index: 10;
}

.article-hero-img {
  width: 100%;
  height: 450px;
  border-radius: 20px;
  object-fit: cover;
  margin-bottom: 40px;
}

.article-body {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text);
}

.article-body h2 {
  margin: 40px 0 20px;
  color: var(--primary);
}

.article-body p {
  margin-bottom: 25px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white); /* White background for mobile dropdown */
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  .nav-links a {
    color: var(--primary) !important; /* Always dark in the white mobile dropdown */
  }
  .nav-links.active {
    display: flex;
  }
  .navbar-toggle {
    display: block !important;
    cursor: pointer;
    color: var(--white); /* Burger color white on dark hero */
  }
  .navbar-modern.scrolled .navbar-toggle {
    color: var(--primary); /* Burger color dark when scrolled */
  }
  .hero-modern {
    height: auto;
    padding: 120px 20px 60px;
  }
  .hero-modern .hero-btns {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
    width: 100%;
  }
  .hero-btns .btn-modern {
    display: block !important;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
