/* General */
* { margin:0; padding:0; box-sizing:border-box; font-family:'Poppins', sans-serif; }
body { scroll-behavior:smooth; line-height:1.6; }

/* Navbar */
nav { position:sticky; top:0; background:#fff; display:flex; justify-content:space-between; align-items:center; padding:10px 50px; z-index:100; box-shadow:0 2px 5px rgba(0,0,0,0.1);}
.nav-links { list-style:none; display:flex; gap:20px;}
.nav-links li a { text-decoration:none; color:#007bff; font-weight:600; transition:0.3s;}
.nav-links li a:hover { color:#0056b3; }

/* Profile Image in Navbar */
.profile-link {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* round shape */
    object-fit: cover;
    border: 2px solid #007bff;
    cursor: pointer;
    transition: 0.3s;
}

    .profile-pic:hover {
        border-color: #0056b3;
        transform: scale(1.05);
    }

/* Responsive Navbar */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        padding: 10px 20px;
    }

    .nav-links {
        flex: 1;
        justify-content: center;
        gap: 15px;
    }

    .profile-link {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
        width: 100%;
    }

    .profile-pic {
        width: 35px;
        height: 35px;
    }
}



/* Switch Button */
.switch-btn {
  position: fixed;
  bottom: 20px;   /* initial distance from bottom */
  right: 20px;
  background: #007bff;
  color: white;
  border: none;
  padding: 3px 3px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1000;
  font-size: 14px;
  transition: all 0.3s ease;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .switch-btn {
    bottom: 15px;
    right: 15px;
    padding: 8px 12px;
    font-size: 12px;
  }
}


/* Hero */
#hero { position:relative; height:100vh; display:flex; justify-content:center; align-items:center; color:white; text-align:center; overflow:hidden;}
#hero video { width:100%; height:100%; object-fit:cover; position:absolute; top:0; left:0;}
#hero .overlay { position:absolute; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5);}
.hero-content { position:relative; z-index:2;}
.btn { padding:10px 25px; background:#007bff; color:white; border-radius:5px; text-decoration:none; transition:0.3s;}
.btn:hover { background:#0056b3; }

/* Hero Section Full Page Background */
#hero {
    position: relative;
    height: 100vh;           /* full viewport height */
    width: 100%;
    background: url('images/VersaHelp Logo.png') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    color: white;
}

/* Overlay for darkening */
#hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);  /* optional, dark overlay */
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo {
    display: none; /* hide the <img> if you're using it as a background */
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content .btn {
    padding: 12px 30px;
    font-size: 1.2rem;
}


/* Fade-in Animation */
.fade-in-hero {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInHero 1.5s forwards;
    animation-delay: 0.3s;
}

@keyframes fadeInHero {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optional: stagger elements separately */
.fade-in-hero img {
    animation: fadeInHero 1.5s forwards 0.2s;
}

.fade-in-hero h1 {
    animation: fadeInHero 1.5s forwards 0.5s;
}

.fade-in-hero .btn {
    animation: fadeInHero 1.5s forwards 0.8s;
}





/* Sections */
section { padding:80px 20px; }
.container { width:90%; max-width:1200px; margin:auto; }
h2 { text-align:center; margin-bottom:40px; }

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover { transform: translateY(-5px); }

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.btn-small {
    margin-top: 10px;
    padding: 5px 15px;
    background: #007bff;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}



/* Team */
.team-container {
    overflow: hidden;           /* hide overflow */
    width: 100%;
    position: relative;
}

.team-grid {
    display: flex;
    gap: 20px;
    animation: slide 20s linear infinite;
}

.team-member {
    flex: 0 0 200px;            /* fixed width for uniformity */
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;              /* uniform height */
    object-fit: cover;
    border-radius: 50%;
}

/* Slide animation */
@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* adjust based on total width */
}

/* Why Choose Us */
#why-choose-us {
    padding: 60px 0;
    text-align: center;
    background: #f9f9f90d;
}

#why-choose-us h2 {
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    transition: transform 0.3s, opacity 0.6s;
    opacity: 0;               /* start hidden */
    transform: translateY(30px); /* start slightly down */
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    color: #007bff;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin: 15px 0 10px;
    font-size: 1.3rem;
}

.feature-card p {
    color: #555;
    font-size: 1rem;
}

/* Delay classes for staggered animation */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Animate in when in viewport */
.feature-card.show {
    opacity: 1;
    transform: translateY(0);
}


/* Gallery + Testimonials Section */
#gallery-testimonials {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  padding: 60px 10%;
  background: #f9f9f9;
}

/* Section Titles */
#gallery-testimonials h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

/* Gallery Styling */
.gallery-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  max-height: 350px; /* desktop height */
  width: 100%;
}

.gallery-slide {
  display: none;
  text-align: center;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  max-height: 350px;        /* desktop height */
  object-fit: cover;        /* fill container without distortion */
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.gallery-slide img:hover {
  transform: scale(1.05);  /* subtle zoom on hover */
}

/* Gallery Caption */
.gallery-caption {
  margin-top: 8px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

/* Navigation Arrows */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 12px;
  color: #333;
  font-weight: bold;
  font-size: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0);
  transition: background 0.3s;
}

.prev:hover, .next:hover {
  background: #007bff12;
  color: #fff;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .gallery-slide img {
    max-height: 300px;
  }
}

@media (max-width: 900px) {
  .showcase-grid {
    grid-template-columns: 1fr;  /* stack gallery & testimonials on mobile */
  }
  
  .gallery-slide img {
    max-height: 250px;
  }
}

@media (max-width: 600px) {
  .gallery-slide img {
    max-height: 200px;
  }
}






/* Booking Form */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: auto;
}

.name-fields {
  display: flex;
  gap: 10px;
}

input, select, textarea {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  width: 100%;
}

textarea {
  min-height: 100px;
}

.calendar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.month {
  display: flex;
  flex-direction: column;
}

.days {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.days span {
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
}

.days .selected {
  background-color: #ccc;
}

.time-slots {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.slots {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.slots span {
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
}

/* Footer */
footer {
    background: #007BFF;
    color: #fff;
    padding: 40px 20px 20px 20px;
    font-family: 'Poppins', sans-serif;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.footer-about h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 300px;
}

.footer-contact h4,
.footer-social h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-contact p {
    font-size: 14px;
    margin: 5px 0;
}

.footer-contact i,
.footer-social i {
    margin-right: 8px;
}

.footer-social a {
    color: #fff;
    font-size: 20px;
    margin-right: 15px;
    transition: transform 0.3s, color 0.3s;
}

.footer-social a:hover {
    color: #ffeb3b;
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    font-size: 14px; 
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 10px;
}

@media (max-width: 900px) {
    .footer-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-about p {
        max-width: 100%;
    }

    .footer-social a {
        margin-right: 10px;
    }
}

/* Animations */
.fade-in { opacity:0; transform:translateY(20px); animation:fadeIn 1s forwards; }
.fade-in-delay { opacity:0; transform:translateY(20px); animation:fadeIn 1s forwards 0.5s;}
.fade-in-delay-2 { opacity:0; transform:translateY(20px); animation:fadeIn 1s forwards 1s;}
.fade-up { opacity:0; transform:translateY(40px); animation:fadeUp 1s forwards; }
.slide-up { opacity:0; transform:translateY(40px); animation:slideUp 0.8s forwards;}
.delay-1 { animation-delay:0.3s;}
.delay-2 { animation-delay:0.6s;}
.delay-3 { animation-delay:0.9s;}

@keyframes fadeIn { to { opacity:1; transform:translateY(0);} }
@keyframes fadeUp { to { opacity:1; transform:translateY(0);} }
@keyframes slideUp { to { opacity:1; transform:translateY(0);} }

