body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
}

/* Header */
header {
  display: flex;
  justify-content: space-between; /* logo left, nav right */
  align-items: center;
  background-color: #0d3b66;
  color: #fff;
  padding: 15px 40px;
}

/* Logo image container */
.logo-img {
  position: relative;   /* keep logo inside flex flow */
}

.logo-img img {
  width: 190px;   /* smaller size so it doesn’t dominate */
  height: 170px;
  border-radius: 50%;
  border: 3px solid #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.logo-img img:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

/* Navigation */
nav {
  margin-left: auto;    /* pushes nav to the right side */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: #ffcc00;
}



/* Hero Section */
#home {
  position: relative;
  height: 100vh;
  background: url("background.jpg") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

 /* Service Grid Layout */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* Service Card */
.service-card {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Force all images to same size */
.service-card img {
  display: block;
  width: 100%;
  height: 180px;       /* fixed height for uniformity */
  object-fit: cover;   /* crops neatly without distortion */
  border-radius: 8px;
  margin-bottom: 15px;
}

.service-card h3 {
  margin: 10px 0 5px;
  font-size: 18px;
  color: #0d3b66;
}

.service-card p {
  font-size: 14px;
  color: #555;
}
 
.main-heading {
  text-align: center;   /* center text */
  color: #fff;
  position: relative;   /* ensures it stacks above the logo */
  z-index: 10;          /* brings text in front of logo */
}

.main-heading .welcome-text {
  font-size: 42px;      /* big size */
  font-weight: bold;
  margin: 0;
}

.main-heading .tagline {
  font-size: 20px;
  margin-top: 10px;
  color: #ffcc00;       /* gold highlight */
  font-style: italic;
}

/* Navigation */
nav {
  position: relative;
  z-index: 10;          /* keeps nav above the logo */
  margin-left: auto;    /* pushes nav to the right side */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: #ffcc00;
}

.hero-content h1 {
  color: #0d3b66;   /* dark blue for visibility */
  font-size: 36px;
  font-weight: bold;
}

.hero-content p {
  color: #ffcc00;   /* gold highlight for tagline */
  font-size: 18px;
  margin-top: 10px;
}

.about {
  max-width: 800px;
  margin: 60px auto;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.about h1 {
  font-size: 32px;
  color: #0d3b66;
  margin-bottom: 20px;
}

.about p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;              /* space between icon and text */
  background-color: #0d3b66;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #ffcc00;
  color: #0d3b66;
}

.btn .icon {
  width: 24px;           /* size of the icon */
  height: 24px;
}


/* Apply only to contact page */
body.contact-page {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  margin: 0;
}

body.contact-page .contact-container {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: 400px;
  text-align: center;

  /* Center horizontally and add vertical spacing */
  margin: 100px auto;
}

/* Shared styles for forms */
form {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

label {
  text-align: left;
  margin: 5px 0;
  font-weight: bold;
}

input, textarea {
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  padding: 10px;
  background: #007BFF;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background: #0056b3;
}

a {
  color: #007BFF;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.contact-info .icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 8px;
}


body.dark-mode .auth-container,
body.dark-mode .contact-container {
  background: #1e1e1e;
  color: #f4f4f4;
  box-shadow: 0 4px 10px rgba(255,255,255,0.1);
}

/* Buttons */
button {
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

body.light-mode button {
  background: #007BFF;
  color: #fff;
}

body.dark-mode button {
  background: #00C853;
  color: #fff;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px; /* spacing between links */
  margin: 0;
  padding: 0;
}

#theme-toggle {
  margin-left: 30px; /* space between Contact and button */
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
}

.videos {
  margin-top: 60px;   /* space after images */
  padding: 20px;
  background: #fafafa; /* subtle background to separate */
  border-radius: 8px;
}

.video-card {
  margin-bottom: 40px;
  text-align: center;
}
.video-card video {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}


body.light-mode {
  background: #fff;
  color: #000;
}

body.dark-mode {
  background: #121212;
  color: #eee;
}

/* Optional: adapt services/videos sections */
body.dark-mode .services,
body.dark-mode .videos {
  background: #1e1e1e;
  color: #eee;
}

/* Lightbox background */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}


#service-icons {
  display: flex;
  flex-direction: row-reverse; /* order flows right to left */
  justify-content: center;     /* keep the row centered */
  align-items: center;
  gap: 40px;
  margin: 40px 0;
}

.icon-card {
  text-align: center;
}

.icon-card img {
  width: 120px;   /* square size */
  height: 120px;
  object-fit: cover;
  border-radius: 8px; /* square with rounded corners */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.icon-card img:hover {
  transform: scale(1.05);
}

.icon-card h4 {
  margin-top: 10px;
  font-size: 16px;
  color: inherit; /* adapts to light/dark mode */
}
