
/* ========== GENERAL STYLES ========== */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #0d0d0d;
  color: #fff;
}

/* ========== NAVIGATION BAR ========== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(20, 20, 25, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center; /* center both logo + nav together */
  padding: 15px 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

li{
    list-style: none;
}

a{
  color: white;  
  text-decoration: none;
}

.navbar{
    min-height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.nav-menu{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.logo img {
  height: 45px;     /* adjust size of your logo */
  width: auto;
  display: block;
}

.nav-link{
    transition: 0,7s ease;
}

.hamburger{
    display: none;
    cursor: pointer;
}

.bar{
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #ffffff;
}

@media(max-width:768px){
    .hamburger{
        display: block;
    }

    .hamburger.active .bar:nth-child(2){
         opacity: 0;
    }
    .hamburger.active .bar:nth-child(1){
         transform: translateY(8px) rotate(45deg);
    }
     .hamburger.active .bar:nth-child(3){
         transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu{
        position:fixed;
        left: -100%;
        top: 7px;
        gap: 0;
        flex-direction: column;
        background-color: #000000;
        width: 250px;
        text-align: center;
        transition: 0.3s;
        align-items: center;
        
    }
}

.nav-item{
    margin: 6px 0;
}

.nav-menu.active{
    left: 0;
}

/* Logo */
.logo {
  margin-right: 70px; /* space between logo and nav */
}

.logo img {
  height: 150px;          /* increased logo size */
  width: auto;           /* keeps proportions */
  display: block;
  transform: scale(1.2); /* visually enlarges logo slightly */
  transform-origin: center;
}



/* Nav Menu */

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}

nav ul li {
  display: inline-block;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  padding: 5px 0;
  position: relative;
}

/* Hover Effect */
nav ul li a:hover {
  color: #00bcd4;
}

/* Underline Animation */
nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #00bcd4;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}



/* HERO BACKGROUND */
.hero-background {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Background images using pseudo-elements */
.hero-background::before,
.hero-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: -1; /* behind all content */
  animation: zoomFade 20s infinite ease-in-out;

  /* DARKENING FILTER */
  filter: brightness(40%); /* reduce brightness to 40%, adjust as needed */
}

/* Images */
.hero-background::before {
  background-image: url("./picture/menu.jpg");
  animation-delay: 0s;
}

.hero-background::after {
  background-image: url("./picture/back.jpg");
  animation-delay: 10s;
}

/* Zoom + Fade Animation */
@keyframes zoomFade {
  0%, 100% {
    transform: scale(1);
    opacity: 0;
  }
  25% {
    transform: scale(1.1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0;
  }
  75% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* HERO TEXT */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  z-index: -1; /* move behind background */
  opacity: 0.5; /* optional: make it semi-transparent so it's subtle */
}


/* ===== H1 (Main Title) ===== */
.hero-text h1 {
  font-size: 3rem;
  margin: 0 0 20px 0;
  white-space: nowrap;
  overflow: hidden;
  border-right: 4px solid #00bcd4; /* typing cursor */
  width: 0; /* start hidden */
  animation: typingH1 6s steps(40, end) infinite, blinkCursor 0.75s step-end infinite;
}

/* ===== P (Slogan) ===== */
.hero-text p {
  font-size: 1.5rem;
  margin: 0 auto;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  position: relative;
  width: 0;
  animation: typingP 6s steps(60, end) infinite;
  animation-delay: 0.5s;
  color: #e06c00;
  padding-right: 1px; /* was 4px — reduced to bring cursor closer */
}

.hero-text p::after {
  content: "";
  position: absolute;
  right: 30;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 1.05em;
  background-color: #00bcd4;
  animation: blinkCursor 0.75s step-end infinite;
  box-shadow: 0 0 6px rgba(0, 188, 212, 0.25);
}

@keyframes blinkCursor {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* ===== KEYFRAMES ===== */
@keyframes typingH1 {
  0% { width: 0; }
  60% { width: 100%; }  /* typing phase */
  80% { width: 100%; }  /* hold visible */
  100% { width: 0; }    /* delete */
}

@keyframes typingP {
  0% { width: 0; }
  60% { width: 100%; }
  80% { width: 100%; }
  100% { width: 0; }
}

/* ===== CURSOR BLINK ===== */
@keyframes blinkCursor {
  0%, 50%, 100% { border-color: #00bcd4; }
  25%, 75% { border-color: transparent; }
}

/* ===== SOCIAL ICONS INSIDE HERO SECTION ===== */
.social-icons {
  position: absolute;
  bottom: 40px; /* distance from bottom of hero section */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 25px;
  z-index: 2; /* above background but below navbar */
}

.social-icons a {
  color: #00bcd4;
  font-size: 1.8rem;
  transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.social-icons a:hover {
  color: #ffffff;
  transform: scale(1.2);
  text-shadow: 0 0 10px #00bcd4;
}

/* ===== SMALLER NAVBAR SIZE ADJUSTMENT ===== */
header {
  padding: 5px 20px !important; /* reduce top/bottom space */
  height: 60px !important; /* reduce navbar height */
}

.navbar {
  min-height: 50px !important; /* reduce navbar box height */
  padding: 0 16px !important; /* less side padding */
}

.logo img {
  height: 130px !important; /* smaller logo */
  width: auto;
}

.nav-menu {
  gap: 40px !important; /* reduce spacing between menu items */
}

.nav-branding {
  font-size: 1.3rem !important; /* smaller branding text */
  font-weight: 600;
}

nav ul li a {
  font-size: 0.95rem !important; /* smaller menu text */
}

/* ===== Mobile Menu Adjustments ===== */
@media (max-width: 768px) {
  .nav-menu {
    top: 60px !important; /* aligns with new smaller navbar */
  }
}

/* ===== GLASSY BLACK HAMBURGER MENU BACKGROUND ===== */
@media (max-width: 768px) {
  .nav-menu {
    background: rgba(0, 0, 0, 0.4) !important; /* transparent black */
    backdrop-filter: blur(15px) !important; /* glassy blur effect */
    -webkit-backdrop-filter: blur(15px); /* for Safari support */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* subtle border */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6); /* soft shadow for depth */
  }

  .nav-item a {
    color: #fff !important;
  }

  .nav-item a:hover {
    color: #00bcd4 !important;
  }
}


/* ===== RESPONSIVE TEXT & ELEMENT SCALING ===== */

/* For tablets and smaller laptops */
@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .hero-text p {
    font-size: 1.2rem;
  }
  .logo img {
    height: 100px !important;
  }
}

/* For mobile devices */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2rem;
    white-space: normal;  /* allow text to wrap */
  }
  .hero-text p {
    font-size: 1rem;
    white-space: normal;  /* wrap slogan too */
  }
  .social-icons {
    gap: 15px;
  }
  .social-icons a {
    font-size: 1.3rem;
  }
  .logo img {
    height: 80px !important;
  }
}

/* For very small phones (below 480px width) */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.6rem;
  }
  .hero-text p {
    font-size: 0.9rem;
  }
  .social-icons {
    bottom: 20px;
  }
  .social-icons a {
    font-size: 1.1rem;
  }
}

/* Center the hero section */
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical centering */
  align-items: center;     /* horizontal centering */
  text-align: center;
  height: 100vh;           /* makes it take full screen height */
  padding: 0 20px;         /* small padding for mobile */
  box-sizing: border-box;
}

/* Optional: adjust sizes */
.hero-text h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.hero-text p {
  font-size: 1.25rem;
  margin-top: 0;
  color: #ff7300;
}

/* COPYRIGHT TEXT */
copyright {
  text-align: center;
  color: #ffffff;
  font-size: 0.9rem;
  margin-top: 10px;   /* space from social icons */
  position: relative; /* keep it under icons */
  z-index: 2;
  align-items: center;
}

/* ===== Glassy About Us Container ===== */
.about-container {
  max-width: 1000px;
  margin: 120px auto 50px auto; /* leave space for fixed navbar */
  padding: 40px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  color: #fff;
}

.about-container h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 25px;
  color: #00bcd4;
}

.about-container p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: justify;
}

/* ===== Mission & Vision Section ===== */
.mission-vision {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.mission, .vision {
  flex: 1 1 45%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission h2, .vision h2 {
  color: #00bcd4;
  margin-bottom: 15px;
  text-align: center;
}

.mission p, .vision p {
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: justify;
}

.mission:hover, .vision:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 1024px) {
  .about-container {
    padding: 30px;
    margin: 100px auto 40px auto;
  }
  .about-container h1 {
    font-size: 1.8rem;
  }
  .about-container p {
    font-size: 0.95rem;
  }
  .mission, .vision {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .about-container {
    margin: 80px 20px 30px 20px;
    padding: 25px;
  }
  .about-container h1 {
    font-size: 1.5rem;
  }
  .about-container p {
    font-size: 0.9rem;
  }
  .mission-vision {
    flex-direction: column;
    gap: 20px;
  }
  .mission, .vision {
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .about-container {
    padding: 20px;
    margin: 60px 15px 20px 15px;
  }
  .about-container h1 {
    font-size: 1.3rem;
  }
  .about-container p {
    font-size: 0.85rem;
  }
}

/* ===== Back to Home Button ===== */
.back-home {
  text-align: center;
  margin-top: 30px;
}

.back-home a {
  display: inline-block;
  padding: 10px 25px;
  background: #00bcd4;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.back-home a:hover {
  background: #0097a7;
  transform: translateY(-2px);
}

/* ===== Services Container ===== */
.services-container {
  max-width: 1200px;
  margin: 140px auto 50px auto; /* leave space for navbar */
  padding: 40px;
  background: rgba(255, 255, 255, 0.05); /* semi-transparent white reflection */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  color: #fff;
}

/* ===== Services Hero ===== */
.services-hero {
  position: relative;
  text-align: center;
  margin-bottom: 50px;
}

.services-hero img {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
  height: 300px;
}

.services-slogan {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
}

.services-slogan h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.services-slogan p {
  font-size: 1.2rem;
}

/* ===== Services Focus Areas ===== */
.services-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.service-item {
  flex: 1 1 250px;
  max-width: 280px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

.service-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 15px auto;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,0.2);
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.service-item h3 {
  margin-bottom: 10px;
  color: #00bcd4;
  font-size: 1.2rem;
}

.service-item p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #fff;
}

/* ===== Back to Home Button ===== */
.back-home {
  text-align: center;
  margin-top: 40px;
}

.back-home a {
  display: inline-block;
  padding: 10px 25px;
  background: #00bcd4;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.back-home a:hover {
  background: #0097a7;
  transform: translateY(-2px);
}

/* ===== Responsive ===== */
@media(max-width: 1024px){
  .services-slogan h1 {
    font-size: 2rem;
  }
  .services-slogan p {
    font-size: 1rem;
  }
}

@media(max-width: 768px){
  .services-focus {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .services-hero img {
    height: 200px;
  }
}

@media(max-width: 480px){
  .services-slogan h1 {
    font-size: 1.6rem;
  }
  .services-slogan p {
    font-size: 0.9rem;
  }
}

/* ===== Animated Service Cards (Flip Effect) ===== */
.service-item {
  position: relative;
  perspective: 1000px;
  cursor: pointer;
  transition: transform 0.6s ease;
}

.service-item-inner {
  position: relative;
  width: 100%;
  height: 300px;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.service-item:hover .service-item-inner {
  transform: rotateY(180deg);
}

/* Front side */
.service-front, .service-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

/* Front side (image covers box) */
.service-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Back side (specialisation list) */
.service-back {
  background: rgba(0,0,0,0.8);
  color: #fff;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.service-back h3 {
  color: #00bcd4;
  margin-bottom: 10px;
}

.service-back ul {
  list-style: none;
  padding: 0;
}

.service-back ul li {
  margin: 5px 0;
  font-size: 0.95rem;
}

/* Responsive Flip Box Adjustments */
@media (max-width: 768px) {
  .service-item-inner {
    height: 250px;
  }
}

