/* ============ HEADER ANIMATION ============ */
html {
  scroll-behavior: smooth;
}

header {
  background: linear-gradient(90deg, #1e3c72, #2a5298);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideDown 1s ease-out;
  transition: box-shadow 0.4s ease-in-out, background 0.4s ease-in-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

@keyframes slideDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

header.scrolled {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  background: linear-gradient(90deg, #162d53, #234b89);
}

/* ============ NAVIGATION ============ */
nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  max-height: 65px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05) rotate(-1deg);
}

nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffcc00;
}
nav ul li a:focus {
  outline: 2px solid var(--accent-color);
  background: rgba(255, 255, 255, 0.2);
}



/* ============ NAV TOGGLE ============ */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  width: 28px;
  height: 20px;
  z-index: 1100;
}

.nav-toggle .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #fff;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.4s ease;
}

/* Animate to "X" */
.nav-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
@media (max-width: 768px) {
  nav ul {
    top: 100%;
    right: 0;
    left: 0;
    width: 100%;
    border-radius: 0 0 12px 12px;
    text-align: center;
  }

  nav ul li a {
    text-align: center;
    font-size: 1.1rem;
    border-radius: 8px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  nav ul {
    position: absolute;
    top: 100%;
    right: 1rem;
    flex-direction: column;
    background: linear-gradient(90deg, #1e3c72, #2a5298); /* Match header */
    width: 220px;
    padding: 1rem;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    gap: 0.7rem;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    backdrop-filter: blur(4px); /* Optional: glass effect */
    z-index: 1001;
  }

  nav ul.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  nav ul li a {
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
  }

  nav ul li a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffcc00;
  }
}


/* ============ FOOTER ============ */
footer {
  background: linear-gradient(90deg, #10284e, #1c3f73);
  color: #ddd;
  padding: 15px 10px;
  text-align: center;
  font-size: 0.95rem;
}

footer p {
  margin-bottom: 8px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

.social-links a {
  color: #fff;
  font-size: 1.4rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.25);
  color: #ffcc00;
}
:root {
  --primary-color: #0066ff;
  --accent-color: #00d1b2;
  --dark-text: #222;
  --light-bg: #f9f9f9;
  --card-bg: #ffffff;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}


/* Hero Section */
#hero {
  background: linear-gradient(to right, #e0f7fa, #ffffff);
  padding: 100px 20px;
  border-radius: 20px;
  text-align: center;
  animation: fadeIn 1.4s ease-in-out both;
}

#hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #003366;
  margin-bottom: 20px;
  line-height: 1.3;
}

#hero p {
  font-size: 1.3rem;
  color: #444;
  max-width: 780px;
  margin: 0 auto 30px;
}

.cta {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  transition: 0.4s ease;
  box-shadow: var(--shadow);
}

.cta:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Section Titles */
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #003366;
  margin-bottom: 20px;
  position: relative;
  animation: fadeInUp 1s ease forwards;
}

.section-title::after {
  content: '';
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  display: block;
  margin: 12px auto 0;
  border-radius: 6px;
}

/* Swiper Service Cards */
.swiper-slide {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
  transition: transform 0.4s ease;
}

.swiper-slide:hover {
  transform: translateY(-10px);
}

.service-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  background-color: #f2f2f2;
}

.service-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease-in-out;
}

.swiper-slide:hover .service-image-wrapper img {
  transform: scale(1.1) rotate(0.3deg);
}

.service-content h3 {
  margin-top: 18px;
  font-size: 1.3rem;
  color: #003366;
}

.service-content p {
  font-size: 1rem;
  color: #555;
  margin-top: 8px;
}

/* Testimonials */
.testimonial-box {
  background: white;
  padding: 40px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-style: italic;
  max-width: 840px;
  margin: 0 auto 40px;
  animation: fadeInUp 1.3s ease forwards;
}

.testimonial-box cite {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  color: var(--primary-color);
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility */
.centered-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-block {
  padding: 60px 0;
}
/* For buttons */
.cta {
display: inline-block;
background: var(--primary-color);
color: white;
padding: 14px 32px;
border-radius: 50px;
font-weight: 600;
font-size: 1rem;
text-transform: uppercase;
transition: 0.4s ease;
box-shadow: var(--shadow);
text-align: center;
margin: 20px auto;
text-decoration: none; /* 👈 this is the fix */
}


/* Optional hover effects */
.cta:hover {
background: var(--accent-color);
transform: translateY(-3px);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Center container */
.cta-wrapper {
text-align: center;
}
h2.section-title {
text-align: center;
margin-left: auto;
margin-right: auto;
}
p {
text-align: center;
margin-left: auto;
margin-right: auto;
}
body {
font-family: 'Poppins', sans-serif;
background-color: var(--light-bg);
color: var(--dark-text);
margin: 0;
padding: 0;
opacity: 0;
animation: fadePageIn 1.4s ease-in-out forwards;
}

@keyframes fadePageIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}



.swiper {
width: 100%;
height: 100%;
overflow: hidden;
}

.swiper-slide {
width: 100%;
height: auto; /* or a fixed height if needed */
box-sizing: border-box;
}
/* About Page Specific Enhancements */

/* Card Grids - used in Why Choose Us and Portfolio */
.why-choose,
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

/* Cards in Grid */
.why-card,
.portfolio-card {
  background: linear-gradient(145deg, #ffffff, #f0f4f8);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease-in-out;
}

.why-card:hover,
.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Team Image */
.team-avatar {
  width: 100%;
  max-width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 15px;
  display: block;
}

/* Contact List */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 20px auto 0;
  text-align: left;
  max-width: 600px;
}

.contact-list li {
  margin-bottom: 12px;
  font-size: 1rem;
}

.contact-list i {
  color: var(--primary-color);
  margin-right: 8px;
}
/* Generic container styling */
.container {
  max-width: 1200px;
  margin: 0 auto; /* Horizontally center the container */
  padding: 2rem;
}

/* Ensure text inside is centered */
.text-center {
  text-align: center;
}

/* Optional: center children within section-block if using flex */
.section-block {
  display: flex;
  flex-direction: column;
  align-items: center; /* horizontally center items */
  justify-content: center; /* vertically center if you set a height */
  gap: 1rem;
}


/* === SWIPER SERVICE BOOK STYLES (Optimized) === */
.swiper {
  width: 100%;
  padding: 50px 0;
}

.swiper-slide {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  display: flex;
  flex-direction: column;
  height: auto;
  cursor: pointer;
  border: 2px solid transparent;
}

.swiper-slide:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 2px solid #007acc33;
}

.swiper-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-bottom: 2px solid #007acc10;
}

.swiper-slide:hover img {
  transform: scale(1.05);
}

.service-text {
  padding: 20px 16px;
  text-align: center;
}

.service-text h3 {
  font-size: 1.25rem;
  color: #007acc;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-text p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  margin: 0;
}

.swiper-pagination-bullet {
  background: #007acc;
  opacity: 0.3;
  transition: all 0.3s;
}

.swiper-pagination-bullet-active {
  background: #007acc;
  opacity: 1;
  transform: scale(1.3);
}


/* Portfolio Grid Layout */
.portfolio-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
  margin-top: 2rem;
}

/* Portfolio Card Design */
.portfolio-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1.5px solid #d4ecff;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

.portfolio-card img,
.portfolio-card video {
  width: 100%;
  max-width: 240px;        /* NEW: Constrain width */
  height: 160px;           /* Keep height consistent */
  object-fit: contain;     /* Prevent cropping */
  margin: 0 auto;          /* Center horizontally */
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
  display: block;
}

/* Text Content */
.portfolio-card h3 {
  font-size: 1.15rem;
  margin: 0.8rem 1rem 0.4rem;
  color: #003d66;
  font-weight: 600;
}

.portfolio-card p {
  font-size: 0.95rem;
  margin: 0 1rem 1rem;
  color: #444;
  line-height: 1.4;
}

/* Portfolio Card CTA Buttons */
.portfolio-card .btn,
.portfolio-card .download-btn {
  margin: 0 1rem 1.2rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  background-color: #007acc;
  color: white;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  font-weight: 500;
  box-shadow: 0 3px 10px rgba(0, 122, 204, 0.2);
  max-width: 180px;       /* Limit button width */
  width: auto;            /* Allow flexibility */
  display: inline-block;  /* Prevent stretching */
  text-overflow: ellipsis;/* Handle long text gracefully */
  margin-left: auto;      /* Centers button horizontally */
  margin-right: auto;     /* Centers button horizontally */
}
.portfolio-card .btn:hover,
.portfolio-card .download-btn:hover{
  background: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 3D Character Grid */
.portfolio-grid.three-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
}

.portfolio-grid.three-column img {
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  border-radius: 10px;
  background-color: #f0f8ff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
/* === Reviews Section Grid === */
#reviews {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  padding: 60px 20px;
}

/* === Each Review Card === */
.review-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  word-wrap: break-word;     /* ✅ Ensures long words break */
  overflow-wrap: break-word; /* ✅ Same as above, more robust */
}

.review-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* === Header: Avatar + Name === */
.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.review-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #007BFF;
}

/* === Reviewer Name === */
.review-box h3 {
  font-size: 1.05rem;
  color: #003366;
  font-weight: 600;
  margin: 0;
}

.review-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;          /* ✅ Center contents horizontally */
  text-align: center;           /* ✅ Center text inside */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 500px;             /* ✅ Limit box width */
  margin: 0 auto;               /* ✅ Center the box in the grid column */
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section-block {
  background: linear-gradient(to right, #e6f3ff, #ffffff);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 122, 204, 0.1);
}

.section-block h1 {
  font-size: 2.5rem;
  color: #007acc;
  margin-bottom: 20px;
}

.section-block p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 30px;
}

/* Hero Section */
.hero-section {
  padding: 80px 20px 60px;
  background: linear-gradient(to right, #e6f3ff, #f2faff);
  color: #007acc;
  font-family: 'Poppins', sans-serif;
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-section p {
  font-size: 1.2rem;
  color: #333;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 1s ease forwards;
}

/* Contact Grid */
.contact-grid {
  padding: 60px 20px;
  text-align: center;
}

.contact-grid h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #007acc;
  animation: fadeInUp 0.8s ease forwards;
}

.grid-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  justify-content: center;
  align-items: stretch;
}

.contact-card {
  background: #f5faff;
  border: 1px solid #cce6f5;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.contact-card i {
  font-size: 2rem;
  color: #007acc;
  margin-bottom: 10px;
}

.contact-card span {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.contact-card a {
  text-decoration: none;
  color: #007acc;
  font-size: 1rem;
  word-break: break-word;
}

/* Contact Form Section */
.form-section {
  padding: 60px 20px;
}

#contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #cce6f5;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.05);
  font-family: 'Poppins', sans-serif;
}

#contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid #aad4ef;
  border-radius: 8px;
  background: #f9fcff;
  font-size: 1rem;
  font-family: inherit;
  transition: border 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: #007acc;
  outline: none;
}

/*#submit-button {*/
/*  background-color: #007acc;*/
/*  color: #fff;*/
/*  padding: 12px 24px;*/
/*  font-size: 1rem;*/
/*  font-weight: 600;*/
/*  border: none;*/
/*  border-radius: 8px;*/
/*  cursor: pointer;*/
/*  transition: background 0.3s ease;*/
/*}*/

/*#submit-button:hover {*/
/*  background-color: #005f99;*/
/*}*/

/* Loader and Success Messages */
#loader-message,
#success-message {
  display: none;
  margin-top: 20px;
  font-size: 1rem;
  text-align: center;
}

#loader-message {
  color: #007acc;
}

#success-message {
  color: green;
}

/* Animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive spacing */
@media (max-width: 600px) {
  .hero-section h1 {
    font-size: 2.2rem;
  }
  .hero-section p {
    font-size: 1rem;
  }
  .contact-grid h2 {
    font-size: 1.5rem;
  }
}
/* Prevent layout shift due to scrollbar */
html {
  overflow-y: scroll;
}

/* Prevent margin collapse or accidental padding shifts */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}





