/* Root theme variables */
:root {
  --bg: #ffffff;
  --text: #0b0b0b;
  --muted: #6c757d;
  --card: #f8f9fa;
  --accent: #8bf; /* requested */
  --accent-600: #5fb6ff;
  --border: rgba(0,0,0,.08);
  --section-title-color: #5fb6ff;
  --placeholder: #6c757d;
  --navbar-bg: rgba(255, 255, 255, 0.7); /* white with 70% opacity */
  --navbar-text: #000000;
  --navbar-hover: #ff6f61;
}

html[data-theme="dark"] {
  --bg: #0b0b0b;
  --text: #f6f7fb;
  --muted: #c9cbd1;
  --card: #151515;
  --accent: #8bf; /* requested */
  --accent-600: #5fb6ff;
  --border: rgba(255,255,255,.1);
  --placeholder: #a3a3a3;
  --navbar-bg: rgba(0, 0, 0, 0.7); /* black with 70% opacity */
  --navbar-text: #ffffff;
  --navbar-hover: #ff6f61;
}

* { box-sizing: border-box; }
html, body { width: 100%;
  overflow-x: hidden; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Inter, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  overflow-x: hidden;
}
html {
  transition: background 0.4s ease, color 0.4s ease;
}


.section-padding p,
.section-padding span,
.section-padding small,
.section-padding blockquote,
.section-padding .text-muted,
.section-padding .card-title,
.section-padding .card-text,
.section-padding .lead {
  color: var(--text) !important;
}
.section-title {
  color: var(--section-title-color) !important;
}

/* Ensure navbar and its container behave responsively */
.navbar, .container-fluid {
  width: 100%;
  max-width: 100%;
  padding: 0 1rem;
  margin: 0 auto;
  overflow-x: hidden;
}

.theme-toggle-btn {
  border: none;
  background: none;
  font-size: 1.2rem;
  padding: 5px;
  cursor: pointer;
}

/* Make sure toggle icons don’t jump */
button.navbar-toggler,
.btn-theme-toggle {
  transform: translateZ(0);
}

/* Navbar Background */
.bg-body-blur {
  backdrop-filter: saturate(180%) blur(10px);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  margin-left: 65px; /* Adjust this value as needed */
}

html[data-theme="light"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23000000' stroke-width='2' d='M4 7h22 M4 15h22 M4 23h22' /%3E%3C/svg%3E");
}

html[data-theme="light"] .navbar-toggler {
  border: 2px solid #000000;
}

html[data-theme="light"] .navbar-toggler:hover {
  background-color: #ff6f61; /* subtle hover glow */
}

/* Dark mode: orange border + icon color */
html[data-theme="dark"] .navbar-toggler {
  border: 2px solid #ffffff;
}

html[data-theme="dark"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

html[data-theme="dark"] .navbar-toggler:hover {
  background-color: #ff6f61; /* subtle hover glow */
}
.theme-navbar {
  background-color: var(--navbar-bg) !important;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}


.theme-navbar .navbar-brand,
.theme-navbar .nav-link,
.theme-navbar .btn-theme-toggle i {
  color: var(--navbar-text) !important;
  transition: color 0.3s ease;
}

.theme-navbar .nav-link:hover,
.theme-navbar .navbar-brand:hover,
.theme-navbar .btn-theme-toggle i:hover {
  color: var(--navbar-hover) !important;
}


/* Nav Links */
.navbar .nav-link {
  color: var(--text);
  opacity: 0.85;
  font-weight: 600;                  /* Make it semi-bold */
  text-decoration: none;             /* No underline by default */
  transition: all 0.3s ease-in-out;
  position: relative;
}

/* Hover and Focus */
.navbar .nav-link:hover,
.navbar .nav-link:focus {
  opacity: 1;
  color: #ff6f61;
  text-decoration: underline;        /* Underline on hover */
  text-decoration-color: #ff6f61;   /* Underline color */
  text-underline-offset: 4px;
}

/* Active Link Styling (when section is active) */
.navbar .nav-link.active {
  color: #ff6f61;
  text-decoration: underline;
  text-decoration-color: #ff6f61;
  text-underline-offset: 4px;
  opacity: 1;
}


/* Custom button for theme toggle */
.btn-theme-toggle {
  color: var(--text);
  border: 1px solid var(--border);
  background-color: transparent;
  transition: all 0.3s ease-in-out;
}

/* Hover effect */
.btn-theme-toggle:hover {
  border-radius: 4px;
  color: #ffffff;
  border-color: #ff6f61;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  padding-top: 55px;
  overflow: hidden;
}

/* Slider Wrapper */
.hero-slider-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -2;
}

/* Background Images */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: -2;
}

.hero-bg.active {
  opacity: 1;
  z-index: -1;
}

/* Overlay */
.hero-section .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35));
  z-index: -1;
}

/* Hero Text */
.hero-section h1,
.hero-section p {
  color: #fff;
  z-index: 1;
  position: relative;
}

/* Dot Indicators */
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.hero-dots .dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.hero-dots .dot.active,
.hero-dots .dot:hover {
  background-color: #ff6f61;
}

/* GLOBAL: Prevent horizontal scroll everywhere */
html, body {
  margin: 0;
  padding: 0;
  
}


/* Profile Image Zoom */
.zoom-img {
  transition: transform 0.4s ease;
  will-change: transform;
}

.zoom-img:hover {
  transform: scale(1.05); /* You can increase scale for stronger zoom */
}

/* Sections */
.section-padding { padding: 80px 0; scroll-margin-top: 90px; }
.bg-section { background: var(--card); }

/* Titles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--section-title-color);
  margin-bottom: 10px;
  text-align: center;
}
.accent { color: var(--accent-600); }

.service-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

/* Icon transition */
.service-card .card-body i {
  color: var(--accent-600);
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Hover effect */
.service-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-600);
   border-width: 2px;
}

/* Optional: animate icon slightly on hover */
.service-card:hover .card-body i {
  transform: scale(1.2);
  color: var(--accent-600); /* already set, but keeps the effect consistent */
}

/* Zoom-in effect for gallery images */
#galleryGrid .col-6 a {
  display: block;
  overflow: hidden;
  border-radius: 12px;
}

#galleryGrid img {
  transition: transform 0.4s ease, filter 0.3s ease;
  will-change: transform;
}

#galleryGrid a:hover img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

/* Custom Hover Styles ONLY for View Gallery button */
/* Zoom in-out keyframe animation */
@keyframes zoomPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

/* Apply animation to only the gallery button */
.gallery-btn {
  animation: zoomPulse 1.5s ease-in-out infinite;
  transition: all 0.3s ease;
  background-color: #5fb6ff;  /* Match your theme */
  color: #fff;                /* Text color */
  border: none;
  
}

/* Optional: Hover override to reduce conflict */
.gallery-btn:hover {
  background-color: #e85a51;
  color: #000000;
  transform: scale(1.1);
}

.btn-accent {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-color: #081018;
  --bs-btn-hover-bg: var(--accent-600);
  --bs-btn-hover-border-color: var(--accent-600);
  --bs-btn-font-weight: 600;
}

.btn-outline-light {
  color: #ffffff;                   /* default text color */
  border-color: #ffffff;           /* default border */
  background-color: transparent;   /* default background */
  transition: all 0.3s ease-in-out;
}

.btn-outline-light:hover {
  color: #000000;                  /* keep text white */
  background-color: #ff6f61;       /* change background */
  border-color: #ff6f61;           /* change border */
  animation: zoomInOut 2s ease-in-out infinite;
}

@keyframes zoomInOut {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.btn-hover-zoom {
  animation: zoomInOut 2.5s ease-in-out infinite;
  transition: transform 0.3s ease-in-out;
}

.card {
  background-color: var(--card); /* Use defined --card not --bg-card */
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

/* Hover Effect: border color + optional lift effect */
.card:hover {
  border-color: var(--accent-600);  /* Your blue */
  border-width: 2px;                /* Slightly thicker */
  transform: translateY(-4px);      /* Small lift */
  box-shadow: 0 8px 24px rgba(95, 182, 255, 0.25); /* Soft blue glow */
}

#testimonials .card {
  min-height: 320px;
  border: 2px solid #5fb6ff; /* Remove default border */
  border-radius: 12px;
  margin-top: 10px;
  transition: all 0.3s ease;
  max-width: 500px; /* or any size you like */
  margin-left: auto;
  margin-right: auto;
}

/* Make arrows transparent and theme-aware */
#testimonials .carousel-control-prev-icon,
#testimonials .carousel-control-next-icon {
  background-color: transparent;
  background-size: 80% 80%;
  filter: invert(1); /* Default: white for dark backgrounds */
}

/* Light Theme: Show dark arrows */
html[data-theme="light"] #testimonials .carousel-control-prev-icon,
html[data-theme="light"] #testimonials .carousel-control-next-icon {
  filter: invert(1); /* Dark arrows for light bg */
}

/* Dark Theme: Show light arrows */
html[data-theme="dark"] #testimonials .carousel-control-prev-icon,
html[data-theme="dark"] #testimonials .carousel-control-next-icon {
  filter: invert(0); /* Light arrows for dark bg */
}

/* Adjust arrow button position and size */
#testimonials .carousel-control-prev,
#testimonials .carousel-control-next {
  width: 40px; /* Shrink clickable area */
  top: 50%;
  transform: translateY(-50%);
}

/* Position arrows closer to the card */
#testimonials .carousel-control-prev {
  left: 300px; /* Move closer to card */
}

#testimonials .carousel-control-next {
  right: 300px; /* Move closer to card */
}


#testimonials img {
  object-fit: cover;
  border: 2px solid #ddd;
}

#testimonials .card:hover {
  border: 2px solid #ff6f61; /* Border only on hover */
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(95, 182, 255, 0.25);
}

#testimonials .carousel-inner {
  overflow: visible;
}

html[data-theme="light"] .carousel-indicators [data-bs-target] {
  background-color: #000;
}

html[data-theme="dark"] .carousel-indicators [data-bs-target] {
  background-color: #ff6f61;
}

/* Mobile: Adjust arrows to stay near card edges */
@media (max-width: 768px) {
  #testimonials .carousel-control-prev {
    left: 10px;
  }

  #testimonials .carousel-control-next {
    right: 10px;
  }

  /* Optional: Reduce card width on small screens */
  #testimonials .card {
    max-width: 90%;
  }
}

/* Equipment */
.equip-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: 
    border-color 0.3s ease, 
    transform 0.3s ease, 
    box-shadow 0.3s ease;
  color: var(--text);
  transform: scale(1);
}
.equip-card i { 
  color: var(--accent-600);
  transition: transform 0.3s ease;
 }

 .equip-card i {
  transition: transform 0.5s ease;
}

.equip-card:hover i {
  transform: scale(1.5);
}

/* Hover effect equipment cards */
.equip-card:hover {
  border-color: var(--accent-600);  /* Blue border on hover */
  border-width: 2px;
  transform: scale(1.03) translateY(-4px); /* Slight zoom + lift */
  box-shadow:
    0 0 8px rgba(95, 182, 255, 0.5),
    0 0 16px rgba(95, 182, 255, 0.2),
    0 8px 24px rgba(95, 182, 255, 0.25)
}

.equipment-link {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.equipment-link {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.equipment-link:hover {
  color: var(--secondary-color); /* or #5fb6ff */
  text-decoration: underline;
}

/* Contact */
#contact .form-control, #contact .form-select {
  background-color: var(--bg);
  color: var(--text);
  border-color: var(--border);
}
#contact .form-control:focus {
  box-shadow: 0 0 0 .25rem color-mix(in oklab, var(--accent-600) 25%, transparent);
  border-color: var(--accent-600);
}

/* Placeholder Styling */
::placeholder {
  color: var(--placeholder);
  opacity: 0.3; /* Ensures visibility */
}

html[data-theme="dark"] ::placeholder {
  color: var(--muted);
  opacity: 0.3;
}

/* Social Links */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link i {
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-link:hover {
  color: var(--accent-600);
  border-color: var(--accent-600);
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(95, 182, 255, 0.25);
}

.social-link:hover i {
  transform: scale(1.3);
}

#form-message {
  opacity: 0;
  transition: opacity 0.4s ease;
}
#form-message.show {
  opacity: 1;
}


/* Footer */
footer { background: var(--bg); }

footer .container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.heartbeat {
  display: inline-block;
  animation: heartbeat 1.6s infinite;
  transform-origin: center;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.3); }
  70% { transform: scale(1); }
}

footer a strong:hover {
  color: #ff6f61;
  transform: scale(1.05);
}

/* Utilities */
.shadow-sm { box-shadow: 0 6px 24px rgba(0,0,0,.08) !important; }
.rounded-3 { border-radius: 1rem !important; }

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
}


/* media queries */
@media (max-width: 991.98px) {
  .navbar-collapse {
    text-align: center;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: center;
  }

  .navbar-nav .nav-link {
    padding: 10px 0;
  }
}

@media (max-width: 576px) {
  /* ===== HERO SECTION ===== */
  .hero-section .row {
    justify-content: center;
    text-align: center;
  }

  .hero-section .d-flex.gap-3 {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
  }

  .hero-section .btn {
    width: 80%;
    max-width: 280px;
  }

  /* ===== ABOUT SECTION ===== */
  #about .row {
    text-align: center;
  }

  #about .section-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  #about p {
    font-size: 1rem;
    line-height: 1.6;
  }

  #about img {
    margin-bottom: 1.5rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  /* ===== SERVICES SECTION ===== */
  #services .card.service-card {
    padding: 1rem 0.5rem;
  }

  #services .card-title {
    font-size: 1.1rem;
  }

  #services .card-text {
    font-size: 0.9rem;
  }

  #services .row > [class*="col-6"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  #services .fa-2x {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  /* ===== GALLERY SECTION ===== */
  #gallery .row > [class*="col-6"] {
    flex: 0 0 50%;
    max-width: 50%;
  }

  #gallery img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  #gallery .section-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }

  #gallery p {
    font-size: 1rem;
    line-height: 1.5;
  }

  #gallery .btn {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }

  #gallery .g-3 {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 1rem;
  }

  /* ===== TESTIMONIALS SECTION ===== */
  #testimonials .section-title {
    font-size: 1.6rem;
  }

  #testimonials p.text-muted {
    font-size: 1rem;
  }

  #testimonials .card {
    padding: 1.25rem 1rem;
  }

  #testimonials .card img {
    width: 60px;
    height: 60px;
  }

  #testimonials .card h6 {
    font-size: 1rem;
  }

  #testimonials .card small {
    font-size: 0.85rem;
  }

  #testimonials .card p {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }

  #testimonials .carousel-indicators button {
    width: 8px;
    height: 8px;
    margin: 0 4px;
  }

  #testimonials .carousel-indicators {
    position: absolute;
    bottom: -11.2px;
  }

  #testimonials .carousel-control-prev-icon,
  #testimonials .carousel-control-next-icon {
    background-size: 80% 80%;
  }

  /* ===== EQUIPMENTS SECTION ===== */
  #equipments .equip-card {
    text-align: center;
    padding: 1.5rem 1rem;
  }

  #equipments .equip-card i {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }

  #equipments .equip-card h6 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  #equipments ul {
    padding-left: 0;
  }

  #equipments ul li {
    font-size: 0.9rem;
    padding: 4px 0;
  }

  #equipments .col-md-6 {
    margin-bottom: 1rem;
  }

  @media (max-width: 768px) {
  #contact .form-control,
  #contact textarea {
    font-size: 0.9rem;
  }

  #contact .btn {
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
  }

  #contact iframe {
    min-height: 260px;
  }

  #contact .social-link i {
    font-size: 1.1rem;
  }

  #contact .social-link {
    padding: 0.35rem 0.5rem;
  }

  #contact .social-link-container {
    justify-content: center !important;
  }

  #contact small {
    font-size: 0.85rem;
  }
}

  /* ===== FOOTER ===== */
  footer .small {
    font-size: 13px;
    line-height: 1.5;
  }

  .heartbeat {
    font-size: 16px;
  }

  footer .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

