@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* Loading Screen Styling */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f0f8ff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    font-size: 1.5em;
    color: #007acc;
    z-index: 1000;
  }
  
  .plane {
    font-size: 3em;
    animation: flyAcross 3s infinite;
  }
  
  /* Keyframe for Plane Animation */
  @keyframes flyAcross {
    0% {
      transform: translateX(-100px);
    }
    50% {
      transform: translateX(100px);
    }
    100% {
      transform: translateX(300px);
    }
  }

  /* Setting default font for the body */
body {
    font-family: 'Roboto', sans-serif, Arial;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
  }

  /* Using different font weights */
h1, h2, h3 {
    font-weight: 700; /* Bold */
  }

h2 {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

p, a, li {
    font-weight: 400; 
  }

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0rem 2rem;
  background-color: #f8f8f8;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 10;
  overflow: hidden;
}
  
.logo img {
  height: 100px; 
}

.logo:focus, .logo:active {
  outline: none; 
  background: transparent;
}

  
.nav-links {
  display: flex;
  list-style: none;
  padding-right: 10rem;
}
  
.nav-links li {
  margin-left: 3rem;
}
  
.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}
  
.nav-links a:hover {
  color: #0073e6; /* Customize hover color */
}

.car-shadow {
  position: absolute;
  top: 50%; /* Position in the vertical center of the header */
  transform: translateY(-50%); /* Center the car vertically */
  left: -150px; /* Start slightly off-screen */
  opacity: 0.15; /* Lower opacity for shadow effect */
  z-index: -1; /* Move it behind the header content */
}

/* Car Animation */
.car-animation {
  width: 80px; /* Adjust car size */
  animation: moveCarShadow 6s linear infinite;
  filter: blur(2px); /* Adds a subtle blur for shadow */
}

@keyframes moveCarShadow {
  0% {
    transform: translateX(0) translateY(-50%);
  }
  100% {
    transform: translateX(calc(100vw + 150px)) translateY(-50%);
  }
}

/* General section styling */
.section {
  padding: 4rem 2rem;
  text-align: center;
}

.home {
  height: 100vh; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


.about {
  /* background-color: #f1f8e9;  */
}

.contact {
  /* background-color: #ffebee;  */
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

.accordion {
  width: 80%; /* Takes 80% of the home section's width */
  margin: 0 auto; /* Centers it horizontally */
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  padding: 1rem;
  border-radius: 8px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  overflow: hidden;
  max-height: 50px; /* Collapsed height */
  cursor: pointer;
  box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
}

.accordion-item h2 {
  margin: 0;
}

.accordion-item.expanded {
  max-height: 500px; /* Expanded height */
  padding: 1rem 1rem 1.5rem;
  /* background-color: #b2ebf2; Slightly darker teal for expanded */
}

.accordion-item.closed h2::before {
  content: '👉'; 
  position: absolute;
  left: 300px; 
  top: 0;
  font-size: 1.5rem;
  animation: hand-point 0.8s infinite alternate; 
}

.accordion-item.closed h2 {
  position: relative; /* Ensures the hand animation aligns with h2 */
}

.accordion-item .card-container {
  display: flex;
  gap: 1.5rem; /* Adds consistent space between cards */
  padding: 1.5rem; /* Adds padding inside the container */
  overflow-x: auto;
  justify-content: center; /* Centers the cards horizontally */
  align-items: center; /* Centers the cards vertically */
}

.card {
  flex: 0 0 200px;
  position: relative;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 0.1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  perspective: 1000px;
  width: 200px; 
  height: 300px; 
  position: relative;
  cursor: pointer;
}

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

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

/* Flip when .flip class is added */
.card.flip .card-inner {
  transform: rotateY(180deg);
}

/* Front and Back Styles */
.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
}

/* Back Side Styling */
.card-back {
  transform: rotateY(180deg);
}

.card-front img, .card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers card without spilling */
  border-radius: 8px;
}

/* Center Icon Between the Flipping Faces */
.card-front::after, .card-back::before {
  
  position: absolute;
  font-size: 2rem;
  color: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.2;
}

.card h2,
.card p {
  text-overflow: ellipsis; 
  overflow: hidden;
  white-space: nowrap;
}

/* LED indicator for selected cards */
.card.has-led::after {
  content: '';
  position: absolute;
  top: 8px; /* Positioning at the top-right */
  right: 8px;
  width: 10px; /* Size of the LED */
  height: 10px;
  background-color: green;
  border-radius: 50%;
  box-shadow: 0 0 5px green; /* Glow effect */
  animation: blink 1s infinite alternate; /* Blinking animation */
}

.social-icons {
  display: flex;
  gap: 20px; /* Space between icons */
  margin-top: 10px;
}

#contact {
  text-align: center; /* Centers the content within the section */
  padding: 20px;
}

.social-icons {
  display: flex;
  justify-content: center; /* Centers the icons horizontally */
  gap: 20px; /* Space between icons */
  margin-top: 10px;
}

.icon {
  font-size: 2rem; /* Adjust size as needed */
  color: #444; /* Default color */
  text-decoration: none;
  transition: color 0.3s;
}

.icon:hover {
  color: #25d366; 
}

.icon.instagram:hover {
  color: #C13584; 
}

.icon.facebook:hover {
  color: #4267B2; 
}

.icon.youtube:hover {
  color: red; 
}

/* Initial styles for the button */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none; /* Hidden by default */
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s;
  display: flex; /* Flexbox for centering */
  align-items: center; /* Vertical center */
  justify-content: center; /* Horizontal center */
  padding: 0; /* Remove padding to avoid shifting */
}

/* Show the button on hover */
.scroll-to-top:hover {
  opacity: 1;
}

.team {
  text-align: center;
  padding: 2rem;
  background-color: #f9f9f9; /* Optional background for section */
}

.team-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap; /* Ensures responsiveness on smaller screens */
  margin-top: 1rem;
}

.avatar {
  text-align: center;
  max-width: 300px;
  background-color: #fff;
  border-radius: 10px;
  border-width: 50px;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%; /* Makes the image circular */
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6
  ); /* Adds a shadow effect */
}


.name {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.designation {
  font-size: 1rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.description {
  font-size: 0.9rem;
  color: #777;
  line-height: 1.4;
}


/* Blinking animation */
@keyframes blink {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.3;
  }
}

/* Hand pointing animation */
@keyframes hand-point {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(5px); 
  }
}

@media (max-width: 768px) {
  .card-container {
    max-width: 100%; /* Ensures container doesn't exceed viewport width */
    display: flex;
    gap: 1.5rem; 
    padding: 1.5rem;
    overflow-x: auto;
  }

  header {
    justify-content: center;
  }

  .nav-links {
    display: none;
  }

  .logo img {
    height: 50px; /* Adjust logo size if needed */
  }

  .accordion {
    width: 100%; /* Takes 80% of the home section's width */
  }

  .accordion-item h2 {
    font-size: 1.1rem; /* Adjusted size similar to h4 */
    margin: 8px 0; 
  }

  .section {
    padding: 1rem 2rem;
  }

  .accordion-item.closed h2::before {
    position: absolute;
    left: 5px; /* Position hand to the left of h2 */
    top: 0;
    font-size: 1.1rem;
    animation: hand-point 0.8s infinite alternate; /* Animation */
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  /* Styles for tablet view */
  .accordion-item.closed h2::before {
    position: absolute;
    left: 35px; /* Position hand to the left of h2 */
    top: 0;
    font-size: 1.1rem;
    animation: hand-point 0.8s infinite alternate; /* Animation */
  }
}





