/* --- YOUR ORIGINAL CSS --- */

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

body {
  font-family: 'Rubik', sans-serif;
  margin: 0;
  padding-top: 4rem;
  background: #f4f8fc;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  overflow-x: hidden;
  line-height: 1.6;
}
.social-links a {
  font-size: 1.6rem;
  color: #003366;
  margin-right: 1rem;
  transition: 0.3s;
}

.social-links a:hover {
  color: #4361ee;
  transform: translateY(-3px);
}

main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  gap: 2rem;
}

.hero-left {
  width: 100%;
  max-width: 300px;
}

.hero-left img {
  width: 100%;
  height: auto;
}

.hero-right {
  width: 100%;
}

.hero-right h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-right p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  min-height: 1.6em;
}

/* Typewriter effect styles */
.typed-text {
  font-weight: 500;
  color: #003366;
}

.cursor {
  display: inline-block;
  width: 3px;
  background-color: #003366;
  margin-left: 2px;
  animation: blink 1s infinite;
}

.cursor.typing {
  animation: none;
}

@keyframes blink {
  0% { background-color: #003366; }
  49% { background-color: #003366; }
  50% { background-color: transparent; }
  99% { background-color: transparent; }
  100% { background-color: #003366; }
}

/* Card Styles */
.card-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
}

.card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0.5rem 0;
  font-size: 1.25rem;
}

.card p {
  color: #666;
  line-height: 1.5;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  margin: 0.5rem;
  background-color: #003366;
  color: white;
}

.btn.alt {
  background-color: transparent;
  border: 2px solid #003366;
  color: #003366;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

nav {
  background-color: rgba(0, 51, 102, 0.98);
  padding: 0.75rem 1rem;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-toggle {
  display: block;
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 30px;
  height: 22px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: white;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.nav-toggle span:first-child { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:last-child { top: 20px; }

.nav-toggle.active span:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:last-child {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Nav Menu for mobile toggle */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: rgba(0, 51, 102, 0.98);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  text-align: center;
}

.nav-menu.active {
  max-height: 500px;
}

nav ul li {
  width: 100%;
  text-align: center;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  display: block;
  border: 1px solid transparent;
  margin: 0 auto;
  max-width: 200px;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav ul li a:hover::after {
  width: 80%;
}

/* ✅ Desktop override */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
  .nav-menu {
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    padding: 0;
    max-height: none;
    position: static;
    background: none;
    box-shadow: none;
  }
  nav ul li {
    width: auto;
  }
  nav ul li a {
    max-width: none;
    padding: 0.5rem 1rem;
  }
}

/* Responsive Media Queries */
@media (min-width: 768px) {
  /* Hero Section */
  .hero {
    flex-direction: row;
    justify-content: center;
    text-align: left;
    gap: 4rem;
    padding: 4rem 2rem;
  }

  .hero-left {
    max-width: 350px;
  }

  .hero-right {
    max-width: 500px;
  }

  .hero-right h1 {
    font-size: 2.5rem;
  }

  /* Cards */
  .card-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  /* Containers */
  main {
    padding: 2rem;
  }

  /* Cards */
  .card-container {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Hero Section */
  .hero {
    gap: 6rem;
  }

  .hero-left {
    max-width: 400px;
  }

  .hero-right h1 {
    font-size: 3rem;
  }
}

/* About Page Styles */
.about-main {
  padding: 1rem;
}

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

.about-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.about-image-wrapper {
  width: 100%;
  max-width: 300px;
}

.about-image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-intro {
  max-width: 600px;
}

.lead-text {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

.info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.info-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* About Page Media Queries */
@media (min-width: 768px) {
  .about-hero {
    flex-direction: row;
    text-align: left;
    gap: 4rem;
  }

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

@media (min-width: 1024px) {
  .info-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-hero {
    gap: 6rem;
  }
}

footer {
  background: linear-gradient(to right, #002244, #003366);
  color: white;
  padding: 2rem 1rem;
  margin-top: auto;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

.footer-section {
  margin-bottom: 1.5rem;
}

.footer-section h3 {
  color: #7cb9e8;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.footer-nav {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-nav a:hover {
  opacity: 1;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.8;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
  }

  .social-links {
    justify-content: flex-start;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

/* Blog Page Styles */
.blog-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.blog-list li {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.blog-list li:hover {
  transform: translateY(-5px);
}

.blog-list a {
  display: block;
  padding: 1.5rem;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Blog Media Queries */
@media (min-width: 768px) {
  .blog-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
