:root {
  --primary-color: rgb(37, 150, 190);
  --hover-color: #01aba4;
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
}


body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8f9fa;
  color: #2c2c2c;
  transition: background-color 0.3s, color 0.3s;
}

.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

header {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.logo {
  height: 80px;
  transform: translateY(-7px); /* Moves the image upward */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a,
#toggleMode {
  text-decoration: none;
  color: inherit;
  font-weight: bold;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

#toggleMode:hover {
  transform: scale(1.1);
}

section {
  padding: 60px 20px;
  text-align: center;
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  margin: 20px auto;
  max-width: 800px;
  color: inherit;
}

.glass-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.glass-card li {
  margin: 15px 0;
  font-size: 1.1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

form input,
form textarea {
  padding: 10px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

form button {
  padding: 12px;
  font-size: 1rem;
  background-color: var(--primary-color);
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 8px;
}

form button:hover {
  background-color: #1a3e5d;
}

footer {
  text-align: center;
  padding: 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

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

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
  flex-wrap: wrap;
}

.about-image {
  flex: 1 1 300px;
  max-width: 400px;
  height: 400px;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1 1 400px;
  min-width: 280px;
  text-align: left;
}

.about-text h2 {
  margin-bottom: 15px;
  color: inherit; /* Inherits white in dark mode */
}


.about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0px;
}

.brand-name {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(to right, #01aba4, #008ce1, #0039c1); 
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== MODIFIED SECTION FOR HOME / WELCOME ===== */

#home {
  padding-top: 20px; /* Reduced spacing between header and content */
}

#home h1 {
  color: var(--primary-color);
  font-size: 50px;
  margin-bottom: 10px;
  margin-top: 0%;
}

#home .tagline {
  font-size: 24px;  /* Increased font size of tagline */
  font-weight: 500;
  color: #333;
  margin-top: 0;
}

/* ===== SLIDESHOW CENTERING FIX ===== */
.slideshow-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto; /* Remove full screen height */
  padding: 40px 20px;
}

.slideshow-container {
  margin: auto;
  width: 80%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  background-color: #fff;
}

.slide {
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
  border-radius: 20px;
}

.slide.active {
  display: block;
}

/* Nav Links Hover */
nav a:hover {
  color: var(--hover-color);
}

/* Toggle Mode Button Hover */
#toggleMode:hover {
  color: var(--hover-color);
}

/* Brand Text Hover */
.brand-name:hover {
  background: var(--hover-color);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
}

/* Tagline Hover Effect */
#home .tagline:hover {
  color: var(--hover-color);
  transition: color 0.3s ease;
}

/* Section Headings Hover */
section h1:hover,
section h2:hover,
section h3:hover {
  color: var(--hover-color);
  transition: color 0.3s ease;
}

/* Buttons Hover Override */
form button:hover {
  background-color: var(--hover-color);
  transition: background-color 0.3s ease;
}

nav a {
  position: relative;
  text-decoration: none;
  color: inherit;
  font-weight: bold;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding-bottom: 5px; /* Gives space for underline */
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: var(--hover-color);
  transition: width 0.3s ease-in-out;
}

nav a:hover::after {
  width: 100%;
}

.services-grid .glass-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.services-grid .glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  border-color: var(--hover-color);
  backdrop-filter: blur(16px);
}
.contact-section {
  padding: 60px 20px;
  background: #f0f4f8;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  max-width: 1200px;
  margin: auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.contact-form, .contact-info {
  flex: 1 1 400px;
  padding: 40px;
}

.contact-form h2 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.input-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  flex: 1;
  padding: 12px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.contact-form button {
  background:  #0039c1;
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 10px;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #01aba4;
}

.contact-info {
  background: #0049b7;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center; /* horizontally center content */
  justify-content: center; /* optional: vertically center */
  text-align: center; /* center text */
  gap: 15px;
}


.contact-info h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: #ffffff;
}

.contact-info p {
  margin: 10px 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    padding: 0;
  }

  .contact-form, .contact-info {
    padding: 30px 20px;
  }
}
.text-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.text-link:hover {
  color: #01aba4;
}

/* CONTACT US SECTION */
.contact-section {
  padding: 60px 20px;
  background: var(--contact-bg, #f9f9f9);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  transition: background-color 0.3s ease;
}

.contact-form,
.contact-info {
  flex: 1 1 50%;
  padding: 40px;
  box-sizing: border-box;
}

/* FORM STYLING */
.contact-form {
  background-color: #f2f6fc;
}

.contact-form h2 {
  color: #0049b7;
  margin-bottom: 20px;
  font-size: 24px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-row {
  display: flex;
  gap: 20px;
}

.input-row input {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  resize: vertical;
  min-height: 100px;
}

button[type="submit"] {
  background: #0049b7;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

button[type="submit"]:hover {
  background: #01aba4;
}

/* CONTACT INFO PANEL */
.contact-info {
  background: #0049b7;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-info h2 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
}

.contact-info h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.contact-info p {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-info i {
  font-size: 18px;
  margin-right: 6px;
}

/* Text Link with Hover Underline Animation */
.text-link {
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
  position: relative;
  transition: color 0.3s ease;
}

.text-link::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #01aba4;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.text-link:hover {
  color: #01aba4;
}

.text-link:hover::after {
  transform: scaleX(1);
}

/* DARK MODE SUPPORT */
body.dark-mode .contact-section {
  background-color: #121212;
  color: #ffffff;
}

body.dark-mode .contact-container {
  background-color: rgba(255, 255, 255, 0.03);
}

body.dark-mode .contact-form {
  background-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .contact-form h2 {
  color: #01aba4;
}

body.dark-mode input,
body.dark-mode textarea {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode button[type="submit"] {
  background-color: #01aba4;
  color: white;
}

body.dark-mode button[type="submit"]:hover {
  background-color: #007b9e;
}

body.dark-mode .contact-info {
  background-color: #01aba4;
  color: white;
}

body.dark-mode .contact-info h2,
body.dark-mode .contact-info p,
body.dark-mode .contact-info a,
body.dark-mode .contact-info span {
  color: #000000;
}

/* Dark Mode Text Link Styles */
.dark-mode .text-link {
  position: relative;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.dark-mode .text-link::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #0147ab;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.dark-mode .text-link:hover {
  color: #0147ab;
}

.dark-mode .text-link:hover::after {
  transform: scaleX(1);
}

/* Responsive Layout */
@media (max-width: 768px) {
  .contact-form,
  .contact-info {
    flex: 1 1 100%;
    padding: 30px 20px;
  }

  .input-row {
    flex-direction: column;
  }

  .contact-combined-box {
    flex-direction: column;
  }
}

/* Contact Section Layout */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.contact-form, .contact-info {
  flex: 1 1 300px;
}

.contact-combined-box {
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  width: 90%;
  max-width: 1000px;
  margin: 40px auto;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dark-mode .contact-combined-box {
  /* Same as light mode, for consistency */
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: 90%;
  max-width: 1000px;
  margin: auto;
  margin-top: 40px;
}

.contact-left, .contact-right {
  flex: 1;
  padding: 30px;
}

.contact-left {
  background-color: #e6f0ff;
  color: #000;
}

.contact-right {
  background-color: #0147ab;
  color: white;
}

.contact-left h2, .contact-right h2 {
  margin-bottom: 10px;
}

.form-button {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #003d99;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.form-button:hover {
  background-color: #01aba4;
}

.dark-mode .form-button {
  background-color: #01aba4 !important;
}

.dark-mode .form-button:hover {
  background-color: #0049b7 !important;
}

/* Dark Mode Contact Left Glass Style */
.dark-mode .contact-left {
  background: rgba(0, 0, 0, 0.4);
  color: white;
  padding: 40px;
  flex: 1;
  border-radius: 20px 0 0 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Auto Dark Mode via Media Query */
@media (prefers-color-scheme: dark) {
  .contact-left {
    background-color: #000000;
    color: white;
  }

  .contact-left h2,
  .contact-left p {
    color: white;
  }

  .form-button {
    background-color: #01aba4;
    color: white;
  }

  .form-button:hover {
    background-color: #0147ab;
  }
}

/* Centered Team Credits Section */
.team-credits {
  text-align: center;
  padding: 30px 20px;
  font-size: 1.2rem;
  margin: 40px auto 20px;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  color: var(--primary-color);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.dark-mode .team-credits {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-credits:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.glass-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Align Headings */
.contact-form h2 {
  margin-top: 0;
  padding-top: 1rem;
}
.contact-info h2 {
  margin-top: -95px;
  padding-top: 1rem;
}


.dark-mode .CI {
  color: #fff;
  transition: color 0.3s ease;
}

.dark-mode .CI:hover {
  color: #0147ab;
}


.dark-mode .contact-right {
  background-color: #01aba4;
  color: white;
}
