/* ===== GLOBAL ===== */
html, body {
  margin:0;
  padding:0;
  background:#0b0f1a;
  font-family:'Montserrat', sans-serif;
  overflow-x: hidden;
  overflow-y: auto; /* scrollable rakhlam */
}

/* ===== ANIMATIONS ===== */
@keyframes headerIn{
  from{opacity:0; transform:translateY(-25px);}
  to{opacity:1; transform:translateY(0);}
}
@keyframes headerGradientMove{
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}
@keyframes glowPulse{
  0%{box-shadow:0 0 12px rgba(0,245,255,0.3);}
  50%{box-shadow:0 0 26px rgba(0,245,255,0.7);}
  100%{box-shadow:0 0 12px rgba(0,245,255,0.3);}
}
@keyframes gradientMove{
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}
@keyframes borderSlideLoop{
  0% { transform: translateX(-200px); }
  100% { transform: translateX(100vw); }
}

/* ===== HEADER ===== */
.header{
  width:100%;
  background:
    linear-gradient(120deg,#0b0f1a,#1f2b4d,#0b0f1a),
    radial-gradient(circle at top,#00f5ff33,transparent 60%);
  background-size:300% 300%;
  animation:
    headerGradientMove 14s ease infinite,
    headerIn 0.9s ease-out;
  border-bottom:1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 999;
}

/* Animated bottom border line (loop) */
.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,245,255,0), #00f5ff, rgba(0,245,255,0));
  animation: borderSlideLoop 2.5s linear infinite;
}

/* ===== HEADER BOX ===== */
.header-box{
  max-width:1300px;
  margin:0 auto;
  padding:26px 36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  position: relative;
  flex-wrap: wrap;
}

/* ===== LOGO ===== */
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* desktop left align */
}

.logo a {
  display: inline-block;
}

.logo-img {
  height: 50px; /* desktop size */
  width: auto;
}


/* ===== DESKTOP NAV ===== */
.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex:1;
}

.nav-link{
  position:relative;
  color:#cfd8ff;
  text-decoration:none;
  font-size:16px;
  font-weight:400;
  letter-spacing:0.4px;
  transition:color 0.3s ease, font-weight 0.3s ease;
}

.nav-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-7px;
  width:0%;
  height:2px;
  background:linear-gradient(90deg,#00f5ff,#3a7bfd);
  transition:width 0.35s ease;
}

.nav-link:hover{
  color:#ffffff;
  font-weight:500;
}

.nav-link:hover::after{
  width:100%;
}

.nav-link.active{
  color:#ffffff;
  font-weight:500;
}

.nav-link.active::after{
  width:100%;
}

/* ===== CTA BUTTON ===== */
.cta-btn{
  background:linear-gradient(135deg,#00f5ff,#3a7bfd,#00f5ff);
  background-size:300% 300%;
  color:#020617;
  padding:14px 34px;
  border-radius:50px;
  text-decoration:none;
  font-size:15px;
  font-weight:500;
  letter-spacing:0.6px;
  display:inline-block;
  animation:glowPulse 2.8s infinite;
  transition:transform 0.35s ease, box-shadow 0.35s ease;
}

.cta-btn:hover{
  animation:gradientMove 2s ease infinite;
  transform:translateY(-4px);
  color:#020617;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index:1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #00f5ff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1){
  transform: rotate(45deg) translate(5px,5px);
}
.hamburger.active span:nth-child(2){
  opacity:0;
}
.hamburger.active span:nth-child(3){
  transform: rotate(-45deg) translate(5px,-5px);
}

/* ===== MOBILE FULLSCREEN SIDEBAR ===== */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background:#0b0f1a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 25px;
  transition: right 0.4s ease;
  z-index:1000;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav .nav-link,
.mobile-nav .cta-btn{
  margin: 0;
  font-size: 18px;
  text-align: center;
}

.mobile-nav .cta-btn{
  color:#000000;
}

.mobile-nav .nav-link:hover,
.mobile-nav .cta-btn:hover{
  color:#fff;
}




/* ===== RESPONSIVE ===== */
@media(max-width:768px){
  .desktop-nav{display:none;}
  .hamburger{display:flex;}
  .logo {
    align-items: center; /* tablet/mobile center */
    text-align: center;
    width: 100%;
  }
  .logo-img {
    height: 45px; /* tablet/mobile size */
  }

}

@media(max-width:480px){
  .header-box{padding:16px 20px;}
  .logo-img {
    height: 40px; /* small mobile size */
  }
  .logo-title{
    font-size:24px;
    text-align:center;
    width:100%;
  }
 
}



/* ===== FOOTER ===== */
.footer {
  position: relative;
  background:
    linear-gradient(120deg,#0b0f1a,#1f2b4d,#0b0f1a),
    radial-gradient(circle at top,#00f5ff33,transparent 60%);
  background-size:300% 300%;
  animation: footerGradientMove 14s ease infinite;
  color: #cfd8ff;
  padding: 60px 20px 30px;
  font-family: 'Montserrat', sans-serif;
  overflow: hidden;
}

/* Top animated border like header */
.footer-border {
  content:'';
  position: absolute;
  top:0;
  left:0;
  width:200px;
  height:3px;
  background: linear-gradient(90deg, rgba(0,245,255,0), #00f5ff, rgba(0,245,255,0));
  animation: borderSlideLoop 2.5s linear infinite;
}

/* ===== Footer container ===== */
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
  position: relative;
  z-index: 1; /* above animated border */
}

/* Columns */
.footer-col {
  flex: 1;
  min-width: 220px;
}

/* 1st column: logo + desc */
.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 15px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #9aa4bf;
}

/* 2nd column: links */
.footer-col h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-link {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  color: #cfd8ff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-link:hover {
  color: #00f5ff;
}

/* 3rd column: subscribe + social */
.subscribe-form {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.subscribe-form input {
  flex: 1;
  padding: 10px;
  border-radius: 4px;
  border: none;
}

.subscribe-form button {
  padding: 10px 20px;
  border: none;
  background: #00f5ff;
  color: #020617;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
}

.subscribe-form button:hover {
  background: #3a7bfd;
}

/* Social links */
.social-links {
  display: flex;
  gap: 15px;
}

.social-link img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}

.social-link img:hover {
  transform: scale(1.2);
}

/* Footer bottom */
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  color: #777;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  position: relative;
  z-index:1;
}

/* ===== ANIMATIONS ===== */
@keyframes footerGradientMove {
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}

@keyframes borderSlideLoop{
  0% { transform: translateX(-200px); }
  100% { transform: translateX(100vw); }
}

/* ===== RESPONSIVE ===== */
@media(max-width:992px){
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .footer-col {
    text-align: center;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .subscribe-form input,
  .subscribe-form button {
    width: 100%;
  }
}
