/* ------ Base styling ------ */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fafafa;
  color: #333333;
  font-family: "rubik", sans-serif;
}

.current-page {
  color: #009C14 !important;
}

.shadow-effect {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.shadow-contact {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.navbar-brand {
  width: 25%;
}

.logo-img {
    width: 100%;
    height: auto;
}

.logo-img:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
  .navbar-brand {
    width: 75%;   /* make it wider */
    max-width: 100%;
  }
}

.navbar-toggler {
    color:#009C14;
}

main {
  flex-grow: 1;
}

/* -------- Nav bar -------- */
#navigation {
  background-color: #fafafa;
}

ul {
  margin: 0;
}

.site-header .navbar-nav .nav-link {
  color: #333333;
}

.site-header .navbar-nav .nav-link:hover {
  color: #009C14;
}

.nav-link.active {
  text-decoration: underline;
}

.white-text {
  color: #333333;
}

/* -------- BUTTONS ---------- */
.contact-button, .request-button {
    background-color: #009C14;
    color: #fafafa;
    border: none;
    padding: 10px;
}

.request-button:hover, .contact-button:hover {
  background-color: #218838;
  transform: translateY(-2px);
  text-decoration: none;
  color: #fafafa;
}

.service-button {
    background-color: #333333;
    border: none;
    padding: 10px;
    color: #fafafa;

}

.service-button:hover {
    background-color: #2b2b2b;
    transform: translateY(-2px);
    text-decoration: none;
    color: #fafafa;
}


/* -------- PAGE TITLES -------- */
.blog-title,
.about-title,
.home-title,
.user-posts-title {
  font-size: 1.6rem;
}

/* -------- HOME PAGE -------- */

/* Slideshow container */
.slideshow-container {

  position: relative;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

.hero-img-wrapper {
    position: relative;
    width: 100%;
    height: 40vh;
    overflow: hidden; /* 🔥 prevents spill */
}


.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  transition: .3s ease;
  background-color: rgba(0, 0, 0, 0.5);
}

.overlay-2 {
  position: absolute;
  top: 0;
  left: 0;

  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.mySlides img {
  aspect-ratio: initial;
  overflow: hidden;
  object-fit: cover;
}

.fade {
  top: 0;
  -webkit-animation-name: fade;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-duration: 6s;
  animation-name: fade;
  animation-iteration-count: infinite;
  animation-duration: 6s;
}

@keyframes fade {
  0% {
    opacity: .6;
  }

  20% {
    opacity: 1;
  }

  33% {
    opacity: 1;
  }

  53% {
    opacity: 1;
  }

  100% {
    opacity: .5;
  }
}

/* Text overlay */
.welcome-text {
  color: #fafafa;
  text-align: center;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(20px);

    color: white;
    text-align: center;

    opacity: 0;
    animation: fadeSlideUp 1.2s ease forwards;
    animation-delay: 0.5s;
}

/* Optional: style text */
.hero-text h2 {
    font-size: 2rem;
    font-weight: 600;
}

.hero-text p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Animation */
@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
}

.welcome-text h2 {
  font-size: 38px;
}

.welcome-text p {
  font-size: 24px;
}

@media (max-width: 768px) {
  .welcome-text h2 {
    font-size: 6vw;   /* scales with screen width */
  }

  .welcome-text p {
    font-size: 4vw;
  }
}

.welcome-text a {
  text-decoration: none;
  color: #fafafa;
}

.welcome-text a:hover {
  color: #009C14;
}

/* ----------GALLERY ---------------*/

.gallery-img {
  width: 100%;
  height: 200px;          /* fixed height */
  object-fit: cover;      /* crops image without stretching */
  display: block;
  transition: transform 0.3s ease, z-index 0s;
  position: relative;     /* needed for z-index */
  z-index: 0;             /* base layer */
}

.gallery-img:hover {
  transform: scale(1.3); /* zoom in */
  z-index: 10;             /* bring to top on hover */
}

/* -------- CONSULTANCY PAGE -------- */

.card-container {
  background-color: rgba(51, 51, 51, 0.7);
}

.card-container h2 {
  color:#fafafa;
}

/* -------- ROBOTICS PAGE -------- */

.scroll {
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: fit-content;
    white-space: nowrap;
    animation: loop 30s linear infinite;
}

@keyframes loop {
    0% {transform: translateX(0%);}
    100% {transform: translateX(-50%);}
}
.item {
    display: flex;
    align-items: center;
    gap: 0 0.2rem;
    color: #e2e8f0;
    font-size: .9rem;
    /* background-color: #152c41;
    padding: 0.7rem 1rem; */
    margin: 0rem 1rem;
    border-radius: 0.4rem;
    white-space: nowrap;
    box-shadow:
    0 0.1rem 0.2rem #00000033,
    0 0.1rem 0.5rem #0000004d,
    0 0.2rem 01.5rem #00000066,
}


/* -------- SERVICES PAGE -------- */


.flip-card {
  background-color: transparent;
  height: 400px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 0.375rem;
  overflow: hidden;
}

.flip-card-front { 
  display: flex;
  align-items: center;
  justify-content: center;
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: contain;  
  display: block;
}

.flip-card-back {
  background-color: #076934;
  color: white;
  transform: rotateY(180deg);
  padding: 1rem;
  overflow: auto;
} 

/* -------- DEVELOPMENT PAGE -------- */

.card-container-dev {
  background-color: rgba(218, 215, 215, 0.656);
}

.text-green {
  background-color: #009C14;
  color: #fafafa;
}

/* -------- CONTACT PAGE -------- */
.hero-img-wrapper-contact {
    position: relative;
    background-image: url("https://res.cloudinary.com/dfm2di4ln/image/upload/v1776172056/dji_fly_20241111_103246_142_1731321173987_photo_optimized_ttvy2w.jpg");
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    padding: 80px 0 60px;
   
}

.hero-text-contact {
    position: relative;
    color: white;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: contactFadeUp 1.2s ease forwards;
    animation-delay: 0.5s;
    margin-bottom: 2rem;
    z-index: 3;
}

@keyframes contactFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Dark overlay */
.overlay-contact {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.hero-img-wrapper-contact .row,
.hero-img-wrapper-contact .hero-text-contact,
.hero-img-wrapper-contact #contact-form {
    position: relative;
    z-index: 2;
}


/* Optional: make form readable */
#contact-form {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
}

/* -------- ABOUT PAGE -------- */

.img-half-md {
  width: 100% !important;
}

@media (min-width: 768px) {
  .img-half-md {
    width: 50% !important;
  }
}


/* -------- FOOTER -------- */
#footer-container {
  background-color: #009C14;
  color: #fff;
  max-width: 100%;

}

#footer-container-secondary {
  padding-bottom: 0 !important;
  max-width: 95%;
}

#footer-container-last {
  align-items: center;
  margin-bottom: 0 !important;
}

.footer-link-heading {
  font-size: 1.2rem;
}

.nav-link-footer {
  color: #fafafa;
}

.nav-link-footer:hover {
  color: #fafafa;
}

/* Social media links */
#social-icons li {
  font-size: 2rem;
  color: #fafafa;
}

#social-icons li a i {
  color: #fafafa;
}

#social-icons li a:hover {
  color: #aaaaaa;
}