/* Header */
/* ---------- Animated Header (matches footer theme) ---------- */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  overflow: hidden;
  background: linear-gradient(90deg, #1b0f2e, #120a25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* glowing animated background */
header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.3), transparent 30%),
    radial-gradient(circle at 90% 60%, rgba(124, 58, 237, 0.25), transparent 25%),
    radial-gradient(circle at 50% 90%, rgba(173, 125, 255, 0.2), transparent 30%);
  filter: blur(50px);
  animation: headerGlow 10s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

@keyframes headerGlow {
  0% {
    transform: translate(0%, 0%) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translate(3%, -2%) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translate(-3%, 3%) scale(1.05);
    opacity: 0.9;
  }
}

/* header content layout */
header .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* logo */
header .logo img {
  height: 45px;
  filter: drop-shadow(0 0 8px rgba(187, 134, 252, 0.6));
  transition: transform 0.3s ease;
}
header .logo img:hover {
  transform: scale(1.07);
}

/* navigation links */
.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #e2d9ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #bb86fc, #8b5cf6);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #bb86fc;
}
.nav-links a:hover::after {
  width: 100%;
}

/* menu toggle for mobile */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: #f5f5f5;
  cursor: pointer;
  user-select: none;
}

/* ---------- Responsive Styles ---------- */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 70%;
    height: calc(100vh - 70px);
    background: rgba(27, 15, 46, 0.95);
    backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right 0.4s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    right: 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links a {
    font-size: 1.2rem;
  }
}
/* Footer */
/* Footer Section */
footer {
  position: relative;
  background: linear-gradient(135deg, #0d021e, #1a0433);
  color: #fff;
  padding: 60px 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(128, 0, 255, 0.2), transparent 60%),
              radial-gradient(circle at 70% 20%, rgba(0, 200, 255, 0.25), transparent 60%);
  animation: animateBg 10s infinite linear;
  z-index: 0;
  opacity: 0.8;
}

@keyframes animateBg {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

footer .footer-column {
  position: relative;
  z-index: 1;
  flex: 1 1 250px;
  min-width: 250px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease;
}

footer .footer-column:hover {
  transform: translateY(-6px);
}

footer h3 {
  color: #c88bff;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

footer a {
  display: block;
  color: #ddd;
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #8f5cff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px 20px;
  }

  footer .footer-column {
    width: 100%;
    max-width: 400px;
  }
}
footer form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer input[type="email"] {
  padding: 10px;
  border: none;
  border-radius: 8px;
  outline: none;
  font-size: 0.95rem;
}

footer button {
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #8f5cff, #c88bff);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

footer button:hover {
  background: linear-gradient(90deg, #c88bff, #8f5cff);
}



/* Animations */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(30px);}
  to {opacity: 1; transform: translateY(0);}
}

@keyframes fadeUp {
  from {opacity: 0; transform: translateY(40px);}
  to {opacity: 1; transform: translateY(0);}
}

/* -----------------------------
   Section styles (under header)
   - Very light purple panels
   - Soft shadows and rounded corners
   - Floating animation for images
   - Responsive stacking on small screens
   ----------------------------- */

/* container for the whole about area */
.about-section {
  position: relative;
  z-index: 1;                 /* keep above header overlays */
  padding: 80px 6%;
  background: transparent;    /* header background stays untouched */
}

/* main content wrapper */
.about-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* large heading and intro paragraph */
.about-container > h1 {
  font-size: 2.6rem;
  margin-bottom: 8px;
  color: #2b1146;
}

.about-container > p {
  color: #3b2b4a;
  max-width: 900px;
  line-height: 1.75;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

/* repeated content blocks (text + image) */
.about-block {
  display: flex;
  align-items: center;
  gap: 40px;
  background: rgba(237, 229, 255, 0.75); /* very light purple */
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(86, 49, 125, 0.08);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

/* hover lift for desktop */
.about-block:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(86, 49, 125, 0.12);
}

/* allow reversing order (text right / image left) */
.about-block.reverse {
  flex-direction: row-reverse;
}

/* text column inside a block */
.about-text {
  flex: 1 1 480px;
  color: #2b1146;
}

.about-text h2 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  color: #45126e;
}

.about-text p {
  color: #4a2f66;
  line-height: 1.7;
  font-size: 1rem;
}

/* image column */
.about-image {
  flex: 0 0 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ensure images are responsive and have a floating animation */
.about-image img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 12px 30px rgba(72, 32, 120, 0.12);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
  animation: floatImage 6.5s ease-in-out infinite;
  will-change: transform;
}

/* subtle scale on hover */
.about-image img:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 22px 48px rgba(72, 32, 120, 0.18);
}

/* separate group for plain image galleries */
.about-images {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}

/* smaller card-like images in gallery */
.about-images .thumb {
  width: 320px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.6);
  box-shadow: 0 10px 28px rgba(86,49,125,0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.about-images .thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  animation: floatImage 7.5s ease-in-out infinite;
}

/* vision / single paragraph area */
.about-vision {
  margin-top: 8px;
  background: rgba(245, 240, 255, 0.7);
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(86,49,125,0.06);
  color: #3b2b4a;
}

/* floating animation keyframes for images */
@keyframes floatImage {
  0%   { transform: translateY(0px); }
  40%  { transform: translateY(-10px); }
  70%  { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

/* small devices: stack everything and tighten spacing */
@media (max-width: 900px) {
  .about-section {
    padding: 48px 5%;
  }

  .about-block {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .about-block.reverse {
    flex-direction: column; /* reverse not needed on stacked layout */
  }

  .about-image, .about-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  .about-image img {
    animation-duration: 6s;
  }
}

/* extra small devices */
@media (max-width: 480px) {
  .about-container > h1 {
    font-size: 1.8rem;
  }

  .about-container > p {
    font-size: 1rem;
  }

  .about-text h2 {
    font-size: 1.25rem;
  }
}

.hero {
  position: relative;
  height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

@keyframes gradientMove {
  0% {
    background: linear-gradient(to bottom right, rgba(90, 0, 180, 0.5), rgba(20, 0, 60, 0.5));
  }
  100% {
    background: linear-gradient(to top left, rgba(150, 0, 255, 0.6), rgba(40, 0, 100, 0.6));
  }
}

/*herosection*/

  .hero {
  height: 70vh;
  background: radial-gradient(circle at bottom, #21004f, #140033, #0b001f);
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #ba8cff, #e0caff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px #ba8cff;
}

/* Falling stars */
.shooting-star {
  position: absolute;
  top: -100px;
  width: 3px;
  height: 120px;
  background: linear-gradient(to bottom, #fff, transparent);
  opacity: 0.9;
  animation: skyfall 5s linear infinite;
}

@keyframes skyfall {
  0% { transform: translateY(0) translateX(0) rotate(15deg); opacity: 1; }
  100% { transform: translateY(110vh) translateX(150px) rotate(15deg); opacity: 0; }
}

/* Ambient background glow */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 20%, rgba(255,255,255,0.05), transparent 80%);
  animation: driftGlow 8s ease-in-out infinite alternate;
}

@keyframes driftGlow {
  from { opacity: 0.3; transform: scale(1); }
  to { opacity: 0.6; transform: scale(1.1); }
}





/* --- Footer Mobile Overflow Fix --- */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 1rem;
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: hidden;
}

.footer-column {
  flex: 1 1 300px;
  min-width: 250px;
  margin: 1rem 0;
  box-sizing: border-box;
}

footer form {
  display: flex;
  flex-wrap: nowrap;
  max-width: 100%;
}

footer input {
  flex: 1;
  min-width: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    width: 100%;
    max-width: 500px;
  }

  footer form {
    flex-direction: column;
    align-items: center;
  }

  footer input,
  footer button {
    width: 100%;
    max-width: 90%;
    margin-bottom: 0.5rem;
  }
}

/* Prevent horizontal scroll globally */
html, body {
  overflow-x: hidden;
}
