/* ==========================================================================
   Global Styles & Variables
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  background: #f9fafb;
  color: #1f2937;
  line-height: 1.6;
  padding-top: 80px;
}

/* Logo */
.logo img {
  height: 50px;
  width: auto;
  display: block;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #111827;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #3b82f6;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out; 
  color: white;
  padding: 2rem;
  position: relative; 
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); 
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* ==========================================================================
   Buttons & General Components
   ========================================================================== */
.btn {
  padding: 0.8rem 1.5rem;
  background: #1f2937;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
  display: inline-block;
}

.btn:hover {
  background: #111827;
  transform: translateY(-3px);
}

.btn-secondary {
  background: transparent;
  color: #3b82f6;
  border: 2px solid #3b82f6;
  margin-top: 1rem;
  margin-left:10%;

}

.btn-secondary:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-3px);
}

/* Section Base Styles */
.section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #1f2937;
  position: relative;
}

.section h2::after {
  content: '';
  display: block;
  height: 3px;
  width: 60px;
  margin: 0.5rem auto;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  border-radius: 3px;
}

/* Image Card */
.image-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   About Section
   ========================================================================== */
/* About Section */
.about .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: start;
}

.about .container .image-card {
  grid-column: 1 / -1; 
  max-width: 600px; 
  justify-self: center; 
}
.about .content p {
  margin-bottom: 1rem;
}

.focus-list {
  list-style: none;
}

.focus-list li {
  margin: 0.5rem 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about .content ul.focus-list i {
  color: #3b82f6;
  font-size: 1.2rem;
}


.aside-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image: linear-gradient(145deg, #6366f1, #3b82f6);
  background-size: 150% 150%;
  animation: gradient-animation 10s ease infinite;
}

.aside-card h3 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.acronym-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.acronym-list li {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.acronym-list b {
  font-size: 1.2rem;
  display: inline-block;
}

.aside-narrative {
  font-size: 0.9rem;
  text-align: center;
  opacity: 0.9;
}

.aside-card:hover {
  transform: translateY(-5px);
}

/* ==========================================================================
   Aim Section
   ========================================================================== */
/* Aim Section */
.aim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.aim-card {
  background: white;
  padding: 2rem;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.4s, box-shadow 0.4s;
}

.aim-grid .aim-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.aim-card i {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: #6366f1;
}

/* ==========================================================================
   Vision Section
   ========================================================================== */
/* Vision Section */
.vision {
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: white;
  text-align: center;
}
.vision .container {
  max-width: 1200px;
  margin: 0 auto;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: center;
}

.vision-content {
  max-width: 700px;
}

.vision p {
  font-size: 1.2rem;
  margin: 1.5rem 0;
}

.vision .btn {
  background: white;
  color: #1f2937;
  font-weight: bold;
}

.vision .btn:hover {
  background: #f3f4f6;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  padding: 2rem 1rem;
  background: #111827;
  color: #d1d5db;   /* removed unesscary top margin */
  text-align: center;
}

footer p {
  margin: 0.5rem 0;
}

footer a {
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: #6366f1;
}
/* ==========================================================================
   Developers Page
   ========================================================================== */
/* Developer  Page */
.dev-header {
  text-align: center;
  padding: 3rem 1rem;
  background: #111827;
  color: white;
}

.dev-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.dev-header p {
  font-size: 1.1rem;
  color: #d1d5db;
}

/* Developer Cards */
.developers-portfolio {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 1rem;
  background: #f9fafb;
}

.developer-card {
  background: #ffffff;
  color: #1f2937;
  padding: 1.5rem;
  border-radius: 12px;
  width: 250px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.developer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.developer-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.developer-card h2 {
  margin-bottom: 0.5rem;
}

.developer-card p {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

/* Social Links */
.dev-socials a {
  margin: 0 5px;
  color: #3b82f6;
  font-size: 1.2rem;
  transition: color 0.3s, transform 0.3s;
}

.dev-socials a:hover {
  color: #6366f1;
  transform: translateY(-3px);
}
.back-home {
  text-align: center;
  margin-top: 2rem;
}

.home-btn {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: #3b82f6;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.2s ease;
}

.home-btn:hover {
  background: #6366f1;
  transform: scale(1.05);
}

/* ==========================================================================
   Responsive Styles 
   ========================================================================== */
@media (max-width: 900px) {
  .about .container {
    grid-template-columns: 1fr;
  }

  .about .container .image-card {
    order: 3; 
  }

  .vision-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #111827;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes gradient-animation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Mission Section */
#mission {
  background: white;
}

.mission-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: center;
}

.mission-text {
  font-size: 1.1rem;
  color: #4b5563;
}

.mission-goals {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 15px;
  border-left: 5px solid #1e3a8a;
}

.mission-goals ul {
  list-style: none;
}

.mission-goals li {
  margin: 1rem 0;
  padding-left: 2rem;
  position: relative;
}

.mission-goals li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1e3a8a;
  font-weight: bold;
  font-size: 1.2rem;
}

/*Team Section */
#team {
  background: #f8fafc;
  overflow: hidden;
}

.team-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.team-carousel {
  display: flex;
  width: 800%;
  animation: infiniteCarousel 16s infinite linear;
  transition: transform 0.5s ease;
}

.team-container:hover .team-carousel {
  animation-play-state: paused;
}

.team-container.manual-control .team-carousel {
  animation: none;
}

.team-card {
  width: 320px;
  height: 400px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  margin: 0 40px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(30, 58, 138, 0.3);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30, 58, 138, 0.8);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-container:hover .carousel-nav {
  opacity: 1;
}

.carousel-nav:hover {
  background: #1e3a8a;
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
  left: 10px;
}

.carousel-nav.next {
  right: 10px;
}

.team-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.team-card:hover .team-card-inner {
  transform: rotateY(180deg);
}

.team-card-front,
.team-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.team-card-back {
  transform: rotateY(180deg);
  background: #1e3a8a;
  color: white;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(45deg, #1e3a8a, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 3rem;
  color: white;
}

.team-name {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #1e3a8a;
}

.team-card-back .team-name {
  color: white;
}

.team-position {
  color: #6b7280;
  margin-bottom: 1rem;
}

.team-card-back .team-position {
  color: #e5e7eb;
}

.team-bio {
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-y: auto;
}
.team-bio::-webkit-scrollbar {
  width: 4px;
}

/* Contact Section */
#contact {
  background: #1e3a8a;
  color: white;
  margin: 0 35px;
  border-radius: 10px 10px 0 0;
}

#contact h2 {
  color: white;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.contact-form {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: white;
  width: 30px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.submit-btn {
  background: white;
  color: #1e3a8a;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes infiniteCarousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive Styles (merge with previous) */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #1e3a8a;
    position: absolute;
    top: 80px;
    right: 0;
    width: 250px;
    padding: 1rem;
    border-radius: 0 0 0 15px;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .section h2 {
    font-size: 2rem;
  }

  .team-card {
    width: 280px;
    height: 380px;
    margin: 0 20px;
  }
}

/* team carasul images */
.cteam-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ==============================
   MOBILE RESPONSIVENESS
   ============================== */
@media (max-width: 768px) {
  #contact {
    padding: 3rem 1rem;
    margin: 0; /* Remove horizontal margin on mobile */
  }

  .contact-container {
    grid-template-columns: 1fr; /* This was already good for stacking */
    gap: 2rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .form-group input,
  .form-group textarea { /* Reducing font-size for smaller screens */
    font-size: 0.95rem; 
    padding: 0.8rem; 
  } 

  .submit-btn {
    font-size: 0.95rem; 
    padding: 0.9rem;
  }
}

@media (max-width: 480px) {
  .contact-item i {
    font-size: 1.2rem;
  }

  #contact h2 {
    font-size: 1.5rem;
  }
}
