/* ------------------- GLOBAL RESET ------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

body, html {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background: #111;
  color: #fff;
}

/* ------------------- NAVBAR ------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: #ffffff;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  transition: background 0.3s ease;
}

.navbar.scrolled {
  background: #000;
}

.navbar .logo img {
  height: 110px;
}

/* ------------------- NAV LINKS ------------------- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 50px;
}

.nav-links li {
  list-style: none;
}

.nav-links li a {
  color: #100f0f;
  text-decoration: none;
  font-weight: 500;
  font-size: 20px;
  padding: 10px 0;
  position: relative;
  transition: color 0.3s;
}

/* Smooth underline */
.nav-links li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #e50914;
  transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

/* ------------------- SUBSCRIBE BUTTON ------------------- */
.subscribe-btn {
  background: #e50914;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.subscribe-btn:hover {
  background: #c62828;
  transform: scale(1.05);
}

/* ------------------- HAMBURGER (MOBILE) ------------------- */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 2rem;
  background: none;
  border: none;
  color: #000;
  z-index: 1100;
}

/* ------------------- MOBILE MENU ------------------- */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
  }
     
  @media (max-width: 768px) {
    .navbar .logo {
      order: 1;              
      flex: 1;               
      display: flex;
      align-items: center;
      margin-left: -20px; 
    }
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    text-align: center;
    z-index: 1000;
  }

  .nav-links.open {
    max-height: 100vh;   /* ✅ unlimited height so all links show */
    padding: 20px 0;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .nav-links li a {
    color: #000; /* Black text in mobile menu */
  }
}




   /*------------------------------------- Hero section--------------------------------------------------------- */
    :root {
    --primary-red: #e50914;
    --dark-bg: #faf6f6;
    --light: #efeaea;
    --muted: #555;
    --card-red: #1c1818;
    --card-black: #1d1818;
    --overlay: rgba(0,0,0,0.05);
    --max-width: 1200px;
    --transition-speed: 0.6s;
  }
   
  /* GLOBAL */
  *{margin:0;padding:0;box-sizing:border-box;}
  body{font-family:'Segoe UI', Roboto, sans-serif;background:var(--dark-bg);color:var(--light);line-height:1.6;}
  
  /* HERO SECTION */
  .tech-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 100px 20px;
    background: #fff;
    position: relative;
    overflow: hidden;
  }
  .hero-content {
    flex: 1;
    min-width: 350px;
    z-index: 1;
    padding-right: 20px;
  }
  .hero-content h1 {
    font-size: 3.1rem;
    color: var(--primary-red);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(-50px);
    animation: slideFade 1s forwards 0.2s;
  }
  .hero-content p {
    font-size: 1.3rem;
    color: var(--muted);
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(-30px);
    animation: slideFade 1s forwards 0.5s;
  }
  .hero-content .subtext {
    font-size: 1.1rem;
    color: #666;
    margin-top: 5px;
    opacity: 0;
    transform: translateY(-20px);
    animation: slideFade 1s forwards 0.8s;
  }
  .hero-image {
    flex: 1;
    min-width: 350px;
    text-align: center;
    position: relative;
  }
  .hero-image img {
    width: 100%;
    max-width: 600px;
    border-radius: 25px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
  }
  .hero-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 35px 70px rgba(0,0,0,0.25);
  }
  
  /* TEXT ANIMATION */
  @keyframes slideFade {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* SECTION TITLE */
  .section-title {
    text-align: center;
    font-size: 2rem;
    margin: 60px 0 30px;
    color: var(--primary-red);
    position: relative;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  .section-title::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: var(--primary-red);
    margin: 10px auto 0;
    transition: width 0.5s ease;
  }
  .section-title:hover::after {
    width: 60px;
  }
  
  /* STORY GRID */
  .story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto 60px;
    padding: 0 20px;
  }
  
  /* FLIP CARDS */
  .flip-card {
    perspective: 2000px;
    
  }
  .flip-card-inner {
    position: relative;
    width: 100%;
    min-height: 400px;
    transform-style: preserve-3d;
    transition: transform var(--transition-speed) cubic-bezier(0.4,0.2,0.2,1);
    border-radius: 20px;
    cursor: pointer;
  }
  .flip-card-inner:hover {
    transform: rotateY(180deg) rotateX(5deg);
  }
  .flip-card-front,
  .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: all 0.5s ease;
  }
  .flip-card-front img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 15px;
    transition: transform 0.5s ease;
  }
  .flip-card-front img:hover {
    transform: scale(1.08);
  }
  .flip-card-back {
    transform: rotateY(180deg);
    text-align: center;
    color: var(--light);
    font-weight: 500;
    font-size: 1rem;
  }
  .flip-card-front h3,
  .flip-card-back h3 {
    color: var(--primary-red);
  }
  .flip-card.red .flip-card-front,
  .flip-card.red .flip-card-back {
    background: linear-gradient(145deg, var(--card-red), var(--card-black));
  }
  .flip-card.black .flip-card-front,
  .flip-card.black .flip-card-back {
    background: linear-gradient(145deg, var(--card-black), var(--card-red));
  }
  
  /* MOBILE RESPONSIVE */
  @media(max-width:768px){
    .tech-hero {
      flex-direction: column-reverse;
      text-align: center;
      padding: 60px 20px;
    }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p, .hero-content .subtext { font-size: 1rem; }
    .hero-image img { max-width: 90%; margin-bottom: 20px; }
  
   /* Mobile: disable hover, enable flipped class */
@media(max-width:768px){
  .flip-card-inner:hover {
    transform: none; /* hover disabled */
  }
  .flip-card-inner.flipped {
    transform: rotateY(180deg) rotateX(5deg);
  }
}
  }

    /*------------------------------------ tech  solution ---------------------------------------------------*/
   
    
   /* ------------------- TECHNOLOGY SHOWCASE ------------------- */
.tech-showcase {
  position: relative;
  width: 100%;
  height: 90vh; /* Desktop */
  overflow: hidden;
  font-family: "Segoe UI", sans-serif;
  border-radius: 14px;
}

/* Background Image */
.tech-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(40%) contrast(1.1);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

/* Overlay Content */
.tech-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 5%;
  color: #fff;
  z-index: 2;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent);
  overflow-y: auto;
}

/* Heading */
.tech-overlay h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: var(--primary-red);
  animation: fadeDown 1s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* List */
.tech-overlay ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-overlay ul li {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeLeft 1s ease forwards;
  opacity: 0;
}

.tech-overlay ul li span {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-red);
}

/* Animations */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

.tech-overlay ul li:nth-child(1) { animation-delay: 0.4s; }
.tech-overlay ul li:nth-child(2) { animation-delay: 0.7s; }
.tech-overlay ul li:nth-child(3) { animation-delay: 1s; }
.tech-overlay ul li:nth-child(4) { animation-delay: 1.3s; }

/* ------------------- RESPONSIVE ------------------- */
@media (max-width: 768px) {
  .tech-showcase {
      min-height: 70vh;
      height: auto;
  }
  
  .tech-bg img {
      height: 100%;
      width: 100%;
  }

  .tech-overlay {
      padding: 2rem;
      background: rgba(0, 0, 0, 0.75);
      height: 100%;
      justify-content: flex-start;
      overflow-y: auto;
  }
  
  .tech-overlay h2 {
      font-size: 1.8rem;
  }
  
  .tech-overlay ul li {
      font-size: 1rem;
      line-height: 1.4;
      flex-wrap: wrap;
  }
}





       /*------------------------------------- footer----------------------------------------------------- */

  

 /* Import Google Font */
 @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

 /* ===== Footer Wrapper ===== */
 .site-footer {
     background-color: #ffffff;
     color: #333333;
     font-family: 'Montserrat', sans-serif;
     padding: 50px 20px 20px;
     box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
 }
 
 /* ===== Footer Container ===== */
 .footer-container {
     max-width: 1200px;
     margin: auto;
     display: flex;
     flex-wrap: wrap;
     justify-content: space-between;
     gap: 40px;
 }
 
 /* ===== Columns ===== */
 .footer-column {
     flex: 1 1 200px;
     min-width: 200px;
     margin-bottom: 20px;
 }
 
 /* ===== Logo & Tagline ===== */
 .footer-logo {
     height: 70px;
     margin-bottom: 10px;
 }
 
 .tagline {
     font-size: 16px; /* Increased from 14px */
     margin-bottom: 15px;
     color: #666666;
     line-height: 1.5;
 }
 
 /* ===== Section Headings ===== */
 .footer-column h3 {
     font-size: 18px; /* Increased from 16px */
     font-weight: 600;
     color: #111111;
     margin: 0 0 15px 0;
     position: relative;
     padding-bottom: 8px;
     display: inline-block;
 }
 
 .footer-column h3::after {
     content: '';
     position: absolute;
     bottom: 0;
     left: 0;
     width: 50px;
     height: 2px;
     background-color: #D72638;
 }
 
 /* ===== Links ===== */
 .footer-links {
     list-style: none;
     padding: 0;
     margin: 0;
 }
 
 .footer-links li {
     margin-bottom: 12px; /* Increased from 10px */
 }
 
 .footer-links a {
     color: #444444;
     text-decoration: none;
     font-size: 16px; /* Increased from 14px */
     transition: color 0.3s ease;
 }
 
 .footer-links a:hover {
     color: #D72638;
 }
 
 /* ===== Social Icons ===== */
 .social-icons {
     display: flex;
     justify-content: flex-start;
     gap: 15px;
     margin-top: 20px;
 }
 
 .social-icons a {
     display: flex;
     align-items: center;
     justify-content: center;
     width: 40px;
     height: 40px;
     border-radius: 50%;
     background-color: #eeeeee;
     color: #D72638;
     border: 1px solid #dddddd;
     transition: background-color 0.3s ease, color 0.3s ease;
 }
 
 .social-icons a:hover {
     background-color: #D72638;
     color: #ffffff;
 }
 
 .social-icons .social-icon {
     width: 20px;
     height: 20px;
 }
 
 /* ===== Subscribe Button ===== */
 .subscribe-btn {
     display: inline-block;
     background-color: #D72638;
     color: #fff;
     padding: 12px 24px; /* Increased padding */
     border-radius: 5px;
     font-size: 16px; /* Increased from 14px */
     font-weight: 500;
     text-decoration: none;
     text-align: center;
     transition: background-color 0.3s ease;
     margin-top: 15px;
 }
 
 .subscribe-btn:hover {
     background-color: #a51928;
 }
 
 /* ===== Footer Bottom ===== */
 .footer-bottom {
     text-align: center;
     margin-top: 40px;
     padding-top: 20px;
     border-top: 1px solid #e0e0e0;
 }
 
 .footer-bottom p {
     margin: 0;
     font-size: 16px; /* Increased from 13px */
     color: #888888;
 }
 
 /* ===== Mobile Responsive ===== */
 @media (max-width: 768px) {
     .footer-container {
         flex-direction: column;
         text-align: center;
         align-items: center;
         gap: 30px;
     }
 
     .footer-column {
         flex: 1 1 100%;
         min-width: unset;
         margin-bottom: 0;
     }
 
     .footer-column h3::after {
         left: 50%;
         transform: translateX(-50%);
     }
 
     .footer-social {
         width: 100%;
         text-align: center;
     }
 
     .footer-social .social-icons {
         justify-content: center;
         margin-top: 10px;
         margin-bottom: 10px;
     }
 
     .footer-social .subscribe-btn {
         display: block;
         margin: 0 auto;
         max-width: 220px; /* Adjusted max width */
         font-size: 16px; /* Increased font size for mobile button */
     }
 }
       