/* Reset and box-sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Prevent horizontal scroll */
html, body {
  width: 100%;
  overflow-x: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f2f6fc;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
/* Default styles for desktop */
body {
  font-size: 18px;
  margin: 0;
  padding: 0;
}

/* Mobile devices: width 768px and smaller */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    padding: 10px;
  }

  .container {
    flex-direction: column;
    padding: 20px;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }
}

/* Base Body Styling */


body {
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom left, #0a192f, #000000);
    font-family: 'Segoe UI', sans-serif;
  }
  
  /* Navbar */
  .custom-navbar {
    background: transparent;
    padding: 1rem 2rem;
  }
  
  .logo-container {
    position: absolute;
    top: 10px;
    left: 15px;
    z-index: 999;
    animation: floatLogo 4s ease-in-out infinite;
  }
  
  .site-logo {
    width: 170px;
    height: right;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 10px #00f7ff);
    margin-top: -30px;
    margin-left: -40px;
  }
  
  .site-logo:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 20px #00f7ff) brightness(1.2);
  }
  
  @keyframes floatLogo {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
  }
  .stack-logo {
    font-size: clamp(18px, 4vw, 36px);  /* Responsive font size */
    font-weight: bold;
    color: #ffffff;
    margin-left: 100px;
    transition: font-size 0.3s ease;
  }
  
  /* Tablet adjustments */
  @media (max-width: 768px) {
    .stack-logo {
      font-size: 24px;
      margin-left: 70px;
    }
  }
  
  /* Mobile adjustments */
  @media (max-width: 480px) {
    .stack-logo {
      font-size: 25px;
      margin-left: 35px;
    }
  }
    
  .stack-logo:hover {
    text-shadow: 0 0 12px #000;
    transform: scale(1.05);
  }
  
  .nav-link {
    color: white !important;
    font-weight: 700;
    margin: 0 1rem;
    transition: all 0.3s ease-in-out;
    box-shadow: none !important;
  }
  
  .nav-link:hover {
    color: #00bfff !important;
    text-shadow: 0 0 10px #00bfff;
    transform: scale(1.08);
  }
  
  .contact-link {
    color: #00bfff;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
  }
  
  .contact-link:hover {
    text-shadow: 0 0 10px #00bfff;
    transform: scale(1.1);
  }
  
  /* Dropdown */
  .dropdown-menu {
    background-color: rgba(10, 25, 47, 0.95);
    border: none;
  }
  
  .dropdown-item {
    color: white;
    transition: all 0.3s ease;
    box-shadow: none !important;
  }
  
  .dropdown-item:hover {
    color: #00bfff;
    background-color: transparent;
    text-shadow: 0 0 8px #00bfff;
    transform: scale(1.05);
  }
  
  /* Hero Section */
  .hero-section {
    position: relative;
    min-height: 100vh;
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: none;
  }
  
  .hero-video-column {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
  }
  
  .bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(2.00);
  }
  
  .hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom left, rgba(10, 25, 47, 0.9), rgba(0, 0, 0, 0.9));
    z-index: 1;
  }
  
  .hero-section .container {
    position: relative;
    z-index: 2;
    text-align: center;
  }
  
  .hero-heading {
    font-size: 3rem;
    font-weight: 700;
    color: rgb(27, 201, 245);
    animation: fadeIn 2s ease-in-out;
  }
  
  .typed-text {
    color: #00bfff;
    text-shadow: 0 0 15px #00bfff;
  }
  
  .btn-glow {
    padding: 12px 30px;
    font-size: 18px;
    background-color: transparent;
    border: 2px solid #00bfff;
    color: #00bfff;
    text-shadow: 0 0 10px #00bfff;
    transition: all 0.3s ease;
  }
  
  .btn-glow:hover {
    background-color: #00bfff;
    color: #000;
    box-shadow: 0 0 15px #00bfff;
    transform: scale(1.05);
  }
  
  /* Services Section */
  .service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #00bfff33;
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
  }
  
  .service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 8px #0464b3);
    transition: transform 0.3s ease;
  }
  
  .service-card:hover .service-icon {
    transform: scale(1.1);
  }
  
  .service-card:hover {
    color: #00bfff;
    text-shadow: 0 0 10px #00bfff;
    transform: scale(1.05);
    border-color: #00bfff;
  }
  
  /* About Us Section */
  .about-us-section {
    background: linear-gradient(to bottom, #001f3d, #101820);
    color: white;
    padding: 60px 20px;
  }
  
  .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00bfff;
    margin-bottom: 30px;
  }
  
  .about-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .about-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #00bfff;
  }
  
  .about-card p {
    font-size: 1rem;
    color: #ddd;
  }
  
  .about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  }
  
  /* Quote Section */
  .quote-section {
    background-color: #777bb1;
    color: white;
    padding: 40px 20px;
    border-top: 4px solid #121313;
  }
  
  .quote-section .section-title {
    color: #001f3d;
  }
  
  .btn-quote {
    padding: 12px 30px;
    background-color: transparent;
    border: 2px solid white;
    color: white;
    font-size: 18px;
    text-shadow: 0 0 10px white;
    transition: all 0.3s ease;
    border-radius: 5px;
  }
  
  .btn-quote:hover {
    background-color: white;
    color: #111;
    box-shadow: 0 0 15px white;
    transform: scale(1.05);
  }
  
  /* Animations */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Responsive Fixes */
  @media (max-width: 768px) {
    .hero-video-column {
      width: 100%;
      height: 100%;
      position: absolute;
    }
  
    .hero-section .container {
      padding: 0 20px;
      padding-top: 25%;
      text-align: center;
    }
  }
  body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #0d0d1a;
    color: #ffffff;
  }
  
  .services {
    padding: 60px 30px;
    max-width: 1200px;
    margin: auto;
  }
  
  .what-we-do {
    text-align: center;
    background: #101b40;
    padding: 40px 30px;
    border-radius: 20px;
    margin-bottom: 60px;
    box-shadow: 0 15px 30px rgba(106, 0, 255, 0.6);
    transform: perspective(800px) rotateX(5deg);
    transition: all 0.5s ease;
  }
  .what-we-do:hover {
    transform: perspective(800px) rotateX(0deg);
    box-shadow: 0 0 25px rgba(106, 0, 255, 0.6);
  }
  
  .what-we-do h2 {
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #fcfcfc;
  }
  
  .what-we-do p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 900px;
    margin: auto;
  }
/* FAQ Section - StackRelief */
.faq-section {
    padding: 50px 20px;
    max-width: 1200px;
    margin: auto;
  }
  .faq-title-slide, .faq-contact-slide {
    background: linear-gradient(1145deg, #111633, #080c1a);
    border-radius: 15px;
    text-align: center;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 15px 40px rgba(106, 0, 255, 0.6);
    transform: perspective(1000px) rotateX(5deg);
    transition: 0.4s ease;
  }
  .faq-title-slide:hover, .faq-contact-slide:hover {
    transform: perspective(1000px) rotateX(0deg);
    box-shadow: 0 0 25px rgba(106, 0, 255, 0.6);
  }
  .faq-title-slide h2, .faq-contact-slide h3 {
    color: #fcfcfc;
    font-size: 2.5rem;
    text-shadow: 0 0 15px #fdfeff;
  }
  .faq-title-slide p, .faq-contact-slide p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 900px;
    margin: 15px auto 0;
  }
  .faq-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .faq-qa-section {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .faq-card {
    background-color: #111633;
    border-left: 5px solid #3c3fe0;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(106, 0, 255, 0.6);
    transform: translateX(50px);
    opacity: 0;
    animation: fadeInRight 0.6s ease forwards;
  }
  .faq-card:nth-child(1) { animation-delay: 0.1s; }
  .faq-card:nth-child(2) { animation-delay: 0.2s; }
  .faq-card:nth-child(3) { animation-delay: 0.3s; }
  .faq-card:nth-child(4) { animation-delay: 0.4s; }
  .faq-card:nth-child(5) { animation-delay: 0.5s; }
  .faq-card:nth-child(6) { animation-delay: 0.6s; }
  .faq-card:hover {
    box-shadow: 0 0 25px rgba(106, 0, 255, 0.6);
    background: #111633;
  }
  .question {
    color: #fafbfc;
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #899fdd;
  }
  .answer {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
  }
  .faq-image-panel {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .faq-image-panel img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(106, 0, 255, 0.6);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }
  .faq-image-panel img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 45px rgba(106, 0, 255, 0.6);
  }
  @keyframes fadeInRight {
    0% {
      transform: translateX(50px);
      opacity: 0;
    }
    100% {
      transform: translateX(0px);
      opacity: 1;
    }
  }
  @media (max-width: 900px) {
    .faq-content {
      flex-direction: column;
    }
    .faq-image-panel {
      order: -1;
      margin-bottom: 30px;
    }
  }
/* ====== Contact Section Styles ====== */
.contact-section {
  background: linear-gradient(145deg, #111633, #080c1a);
  color: #fff;
  padding: 80px 20px;
  max-width: 1300px;
  margin: auto;
  border-radius: 20px;
  box-shadow: 0 0 45px rgba(106, 0, 255, 0.6);
  animation: fadeSlideIn 1s ease-out;
}

.contact-header {
  text-align: center;
  margin-bottom: 50px;
}

.contact-header h2 {
  font-size: 2.5rem;
  color: #ffffff;
  text-shadow: 0 0 10px #4978dd;
}

.contact-header p {
  font-size: 1.2rem;
  color: #ccc;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

/* ====== Left Column (Contact Info) ====== */
.contact-info {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item {
  background: rgba(80, 22, 107, 0.6);
  padding: 20px;
  border-left: 5px solid #d99bff;
  border-radius: 12px;
  transition: 0.3s ease;
}

.info-item:hover {
  background: rgba(80, 22, 107, 0.6);
  box-shadow: 0 0 20px #7a46aa;
}

.info-item h4 {
  color: #f0f1f7;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.info-item p {
  color: #ccc;
}

/* ====== Right Column (Form) ====== */
.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  background: #e7f7f5;
  border: 1px solid #f2f5f4;
  border-radius: 10px;
  color: #000000;
  font-size: 1rem;
  transition: 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #3c7ef8;
  box-shadow: 0 0 10px #3c7ef8;
  outline: none;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  background: #5bb0ff;
  color: #fff;
  border: none;
  padding: 15px;
  font-size: 1.1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.4s ease;
  box-shadow: 0 0 15px #3c7ef8;
}

.contact-form button:hover {
  background: #3c7ef8;
  box-shadow: 0 0 25px #3c7ef8;
}

/* ====== Contact Section Animation ====== */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====== Footer Section ====== */
.stackrelief-footer {
  position: relative;
  background: linear-gradient(145deg, #000000, #110014);
  color: white;
  padding: 60px 40px;
  border-top-left-radius: 80px;
  border-top-right-radius: 80px;
  box-shadow: 0 0 20px rgba(106, 0, 255, 0.6),
              0 0 60px rgba(106, 0, 255, 0.6);
  overflow: hidden;
}

/* Curved Background Effects */
.stackrelief-footer::before,
.stackrelief-footer::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.3), transparent);
}

.stackrelief-footer::before {
  top: -60px;
  left: -60px;
}

.stackrelief-footer::after {
  bottom: -60px;
  right: -60px;
}

/* Footer Layout */
.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

/* Brand & Slogan */
.footer-brand {
  font-size: 3rem;
  color: rgb(106, 0, 255, 0.6);
}

.footer-slogan {
  font-size: 1rem;
  color: #ddd;
  margin-bottom: 20px;
}

/* Social Links */
.footer-socials a {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  color: #ccc;
  text-decoration: none;
  transition: 0.4s ease;
}

.footer-socials a:hover {
  color: #07368d;
  text-shadow: 0 0 10px #07368d;
  transform: scale(1.05);
}

.footer-socials img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  transition: 0.3s;
}

.footer-socials a:hover img {
  filter: drop-shadow(0 0 5px #032db4) brightness(0.8) saturate(3);
}

/* Quick Links */
.footer-heading {
  color: rgb(106, 0, 255, 0.6);
  font-size: 2rem;
  margin-bottom: 15px;
}

.quick-links {
  list-style: none;
  padding: 0;
}

.quick-links li {
  margin: 10px 0;
}

.quick-links a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.quick-links a:hover {
  color: #04207c;
  text-shadow: 0 0 8px #372fa1;
}

/* Footer Contact Info (Right Column) */
.right p {
  margin: 10px 0;
  color: #ffffff;
  transition: 0.3s;
}

.right p:hover {
  color: white;
  text-shadow: 0 0 20px #190c5f;
}

/* ====== Responsive Layout ====== */
@media (max-width: 900px) {
  .contact-content {
    flex-direction: column;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
