/* ===== CSS VARIABLES ===== */
:root {
  --primary: #0077cc;      /* Blue primary */
  --accent: #33aaff;       /* Lighter blue accent */
  --background: #ffffff;   /* White background */
  --section-bg: #f5f8fa;   /* Light gray sections */
  --text: #1a1a1a;         /* Dark text */
  --card-bg: #ffffff;      /* Cards same as background */
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* ===== GLOBAL ===== */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
}
a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent);
}

/* Header and Footer styles moved to header-footer.css */

/* ===== HERO SECTION ===== */
.slideshow {
  position: relative;
  height: 90vh;
  overflow: hidden;
  margin-top: 70px;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation: fade 18s infinite;
}

.slide1 { background-image: url('/images/robotic_lab_16.jpg'); animation-delay: 0s; }
.slide2 { background-image: url('/images/robotic_lab_13.jpg'); animation-delay: 6s; }
.slide3 { background-image: url('/images/robotic_lab_15.jpg'); animation-delay: 12s; }

@keyframes fade {
  0%, 33% { opacity: 1; }
  34%, 100% { opacity: 0; }
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
}

.slide-text h1 {
  font-size: 3rem;
  color: rgba(3, 42, 78, 0.9);
  text-shadow: 0 0 12px rgba(3, 42, 78, 0.9);
}

.slide-text p {
  font-size: 1.2rem;
  color: #ffffff;
}

.slide-decoration {
  width: 80px;
  height: 4px;
  background-color: #00e5ff;
  margin: 1rem auto 0 auto;
  border-radius: 2px;
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 2rem;
  text-align: center;
  background-color: #f5f8fa;
  border-radius: 12px;
  margin: 2rem auto;
}

.section-header .title {
  color: #0077cc;
  font-weight: 700;
  font-size: 2rem;
}

.title-decoration {
  width: 80px;
  height: 4px;
  background-color: #33aaff;
  margin: 1rem auto;
  border-radius: 2px;
}

/* ===== ABOUT SECTION ===== */
/* Override Bootstrap container for about section */
#about .container {
  max-width: 1100px !important;
}

@media (min-width: 1200px) {
  #about .container {
    max-width: 1100px !important;
  }
}

@media (min-width: 992px) {
  #about .container {
    max-width: 1100px !important;
  }
}

#about {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
  padding: 80px 20px !important;
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(66, 153, 225, 0.1);
  border-radius: 50%;
  z-index: 0;
}

#about .container {
  position: relative;
  z-index: 1;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

#about .section-header {
  text-align: center;
  margin-bottom: 50px;
}

#about .title {
  font-size: 3rem;
  font-weight: 700;
  color: #0077cc;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

#about .title-decoration {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0077cc, #0077cc);
  margin: 0 auto;
  border-radius: 2px;
}

#about .about-intro {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 20px;
}

#about .about-intro p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #1f2937;
  max-width: 950px;
  margin: 0 auto;
  font-weight: 400;
}

#about .mission-vision {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 30px;
  margin-bottom: 50px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

#about .mission, 
#about .vision {
  background: white !important;
  padding: 50px 40px !important;
  border-radius: 15px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

#about .mission::before, 
#about .vision::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0077cc, #0077cc);
}

#about .mission:hover, 
#about .vision:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

#about .mission h3, 
#about .vision h3 {
  font-size: 2rem;
  color: #0077cc;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

#about .mission p, 
#about .vision p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4b5563;
  text-align: center;
}

#about .what-we-bring {
  background: white !important;
  padding: 50px 45px !important;
  border-radius: 15px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
  margin-bottom: 40px;
  border-left: 5px solid #0077cc !important;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

#about .what-we-bring h3 {
  font-size: 2.2rem;
  color:#0077cc;
  margin-bottom: 25px;
  font-weight: 600;
  text-align: center;
}

#about .what-we-bring p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #374151;
  text-align: center;
}

#about .excellence {
  background: linear-gradient(135deg, #0077cc 0%, #0077cc 100%) !important;
  padding: 50px 45px !important;
  border-radius: 15px !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

#about .excellence::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

#about .excellence h3 {
  font-size: 2.2rem;
  color: white;
  margin-bottom: 25px;
  font-weight: 600;
  position: relative;
  z-index: 1;
  text-align: center;
}

#about .excellence p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #e0e7ff;
  position: relative;
  z-index: 1;
  text-align: center;
}

/* ===== SERVICES CARDS ===== */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.card {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 2rem 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px #0077cc;
}

.card-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #0077cc;
  color: #fff;
  font-size: 1.8rem;
  transition: all 0.3s;
}

.card:hover .card-icon {
  background: #33aaff;
  box-shadow: 0 0 15px #33aaff;
}

/* ===== GALLERY ===== */
.section-gallery {
  background-color: #f5f8fa;
  padding: 5rem 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s, filter 0.3s;
}
.gallery-section {
  padding-bottom: 60px; /* Adjust this value for desired spacing */
}

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

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 119, 204, 0.15);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 12px;
}

.gallery-item:hover::after {
  opacity: 1;
  box-shadow: 0 0 15px var(--accent);
}

/* ===== PARTNERS SECTION ===== */
.partners-section {
  background-color: #f5f8ff;
  padding: 4rem 2rem;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.partners-section h2 {
  text-align: center;
  color: #007bff;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.partners-section .title {
  color: var(--primary);
  margin-bottom: 10px;
}

.partners-section p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #333;
  font-size: 1.1rem;
}

.scroll-container {
  display: flex;
  gap: 2rem;
  animation: scrollLeft 30s linear infinite;
  width: max-content;
}

.partner-card {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  width: 160px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.1);
  flex-shrink: 0;
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(102, 179, 255, 0.4);
}

.partner-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 0.8rem;
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

.partner-card h3 {
  font-size: 1rem;
  color: #1a1a1a;
  margin-top: 0.5rem;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partners-link {
  text-align: center;
  margin-top: 2rem;
}

.btn-apply {
  display: inline-block;
  background: #007bff;
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 12px rgba(0, 123, 255, 0.4);
}

.btn-apply:hover {
  background: #66b3ff;
  transform: translateY(-3px);
}

/* ===== PARTNERS CAROUSEL (Alternative) ===== */
.partners-carousel {
  overflow: hidden;
  margin-top: 30px;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 50px;
  animation: scroll 20s linear infinite;
}

.carousel-item {
  flex: 0 0 auto;
  width: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-item img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  transition: transform 0.3s;
}

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

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== CAREER PAGE ===== */
.career-hero {
  background: url('images/career-banner.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 120px 20px;
  position: relative;
}

.career-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.career-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: auto;
}

.career-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.career-hero p {
  font-size: 1.2rem;
  color: #ddd;
}

.career-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.career-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.career-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.career-card h3 {
  margin-bottom: 10px;
  color: var(--primary);
}

.career-card ul {
  margin: 0 0 15px 20px;
  color: #333;
}

.career-form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 30px auto 0;
  gap: 15px;
}

.career-form input,
.career-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
}

.career-form button {
  align-self: flex-start;
}

.career-page {
  padding-top: 80px;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 992px) {
  .slide-text h1 {
    font-size: 2rem;
  }

  .slide-text p {
    font-size: 1rem;
  }

  #about .mission-vision {
    grid-template-columns: 1fr !important;
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .slideshow {
    height: 60vh;
  }

  .section {
    padding: 3rem 1rem;
  }

  .section-header .title {
    font-size: 1.5rem;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .partner-card {
    width: 120px;
  }

  .partner-card img {
    width: 100px;
    height: 100px;
  }

  #about {
    padding: 60px 15px !important;
  }

  #about .title {
    font-size: 2.2rem;
  }

  #about .about-intro p {
    font-size: 1.05rem;
  }

  #about .mission, 
  #about .vision {
    padding: 35px 25px !important;
    min-height: auto;
  }

  #about .mission h3, 
  #about .vision h3 {
    font-size: 1.6rem;
  }

  #about .mission p, 
  #about .vision p {
    font-size: 1rem;
  }

  #about .what-we-bring, 
  #about .excellence {
    padding: 40px 30px !important;
  }

  #about .what-we-bring h3, 
  #about .excellence h3 {
    font-size: 1.8rem;
  }

  #about .what-we-bring p, 
  #about .excellence p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .slide-text h1 {
    font-size: 1.5rem;
  }

  .slide-text p {
    font-size: 0.9rem;
  }

  .section-header .title {
    font-size: 1.3rem;
  }

  #about .title {
    font-size: 1.8rem;
  }

  #about .about-intro p {
    font-size: 0.95rem;
  }

  #about .mission, 
  #about .vision {
    padding: 30px 20px !important;
  }

  #about .mission h3, 
  #about .vision h3 {
    font-size: 1.4rem;
  }

  #about .what-we-bring, 
  #about .excellence {
    padding: 35px 25px !important;
  }

  #about .what-we-bring h3, 
  #about .excellence h3 {
    font-size: 1.5rem;
  }
}
.gallery-btn-wrapper {
  text-align: center;
  margin-top: 2rem;
}

.btn-view-gallery {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  padding: 1rem 2.5rem; /* Increased from 0.75rem 1.5rem */
  font-size: 1.125rem;  /* Increased from default ~1rem */
  border-radius: 40px;  /* Slightly larger radius for proportion */
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-view-gallery:hover {
  background-color: #0056b3;
  transform: translateY(-3px);
}

