/* ===== Reset and Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: #0a0f1c;
  color: #e4e4e4;
  line-height: 1.6;
}

/* ===== Header ===== */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba(10, 15, 28, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  border-bottom: 1px solid #1e3a8a;
  z-index: 1000;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  color: #00bcd4;
  font-size: 1.5em;
  font-weight: 600;
  margin-left: -30px;
}

.logo img {
  height: 110px;
  margin-right: 8px;
  margin-top: 3px;
  margin-bottom: 0px;
  border-radius: 4px;
}
/* ===== Mission & Vision Section ===== */
.mission {
  background: #0d1424;
  padding: 80px 10%;
  text-align: center;
}

.mission h2 {
  color: #00bcd4;
  margin-bottom: 50px;
  font-size: 2em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mv-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.mv-box {
  background: #111a2e;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(0, 188, 212, 0.2);
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.1);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.mv-box:hover {
  transform: translateY(-5px);
  border-color: #00bcd4;
}

.mv-box h3 {
  color: #00bcd4;
  font-size: 1.5em;
  margin-bottom: 15px;
}

.mv-box p {
  color: #d0d0d0;
  font-size: 1em;
  line-height: 1.6;
  text-align: justify;
}

/* Responsive */
@media (max-width: 768px) {
  .mission {
    padding: 60px 6%;
  }

  .mv-box {
    padding: 25px;
  }

  .mv-box h3 {
    font-size: 1.3em;
  }
}


/* ===== Navigation ===== */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 35px;
}

nav ul li a {
  color: #e4e4e4;
  text-decoration: none;
  font-size: 1.15em;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 8px 12px;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #00bcd4;
  text-shadow: 0 0 8px rgba(0, 188, 212, 0.6);
}

/* ===== Hamburger Menu (Mobile) ===== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 25px;
  height: 20px;
  justify-content: space-between;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background: #00bcd4;
  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);
}

/* ===== Hero Section (Parallax + Animated Overlay) ===== */
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: 
    linear-gradient(rgba(10, 15, 28, 0.7), rgba(0, 26, 51, 0.8)),
    url("home_ai") center / cover no-repeat fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 60px 20px 40px 20px;
  box-sizing: border-box;
}

/* ===== Gradient Overlay Animation ===== */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, #001a33, #00bcd4);
  opacity: 0;
  animation: overlayFade 1s ease forwards;
  z-index: 0;
}

@keyframes overlayFade {
  0% {
    opacity: 1;
    background: linear-gradient(120deg, #0a0f1c, #001a33);
  }
  50% {
    opacity: 0.9;
    background: linear-gradient(120deg, #002244, #00a1b4);
  }
  100% {
    opacity: 0;
    background: linear-gradient(120deg, #0a0f1c, #00bcd4);
  }
}

/* ===== Hero Content ===== */
.hero-content {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideIn 1.2s ease forwards;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Animated Brand Title (Color Interchange Effect) ===== */
.brand-title {
  font-size: 3.8em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.1;
  animation: fadeInDown 1s ease forwards, textColorCycle 3s infinite alternate ease-in-out;
  background: linear-gradient(90deg, #00bcd4, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  position: relative;
}

/* Glowing underline reflection */
.brand-title::after {
  content: "";
  display: block;
  width: 120px;
  height: 6px;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.6), transparent);
  margin: 15px auto 0;
  border-radius: 50%;
  filter: blur(1px);
}

/* Animate the “AI” part differently for contrast */
.brand-title span {
  animation: aiColorCycle 3s infinite alternate ease-in-out;
  color: #00bcd4;
  text-shadow: 0 0 12px rgba(0, 188, 212, 0.8);
}

/* Color transition animation for Fintronics text */
@keyframes textColorCycle {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Reverse animation for AI (interchanging color) */
@keyframes aiColorCycle {
  0% {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  }
  50% {
    color: #00bcd4;
    text-shadow: 0 0 12px rgba(0, 188, 212, 0.8);
  }
  100% {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  }
}

/* Tagline */
.tagline {
  font-size: 1.8em;
  color: #00bcd4;
  font-weight: 500;
  margin-top: 10px;
  letter-spacing: 0.5px;
  animation: fadeInUp 1.2s ease forwards;
}

/* Subheading line */
.subtitle {
  font-size: 1.1em;
  color: #d0d0d0;
  max-width: 800px;
  margin: 20px auto;
  line-height: 1.6;
  animation: fadeInUp 1.5s ease forwards;
}

/* Entry Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Text Scaling */
@media (max-width: 768px) {
  .brand-title {
    font-size: 2.5em;
  }

  .tagline {
    font-size: 1.3em;
  }

  .subtitle {
    font-size: 1em;
    padding: 0 20px;
  }
}

/* CTA Button */
.cta {
  background: #00bcd4;
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
  display: inline-block;
  margin-top: 10px;
}

.cta:hover {
  background: #0097a7;
}

/* ===== Generic Section Styling ===== */
section {
  padding: 80px 10%;
}

h2 {
  text-align: center;
  color: #00bcd4;
  margin-bottom: 40px;
}

/* ===== Services Section ===== */
.service-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.service-box {
  background: #111a2e;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  transition: 0.3s;
  border: 1px solid transparent;
}

.service-box:hover {
  transform: translateY(-5px);
  border: 1px solid #00bcd4;
}

/* ===== Products Section ===== */
.products {
  background: #0d1424;
  text-align: center;
  padding: 80px 10%;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.product-card {
  background-color: #111a2e;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  transition: 0.3s;
  border: 1px solid transparent;
}

.product-card:hover {
  transform: translateY(-5px);
  border: 1px solid #00bcd4;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.product-card h3 {
  color: #00bcd4;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.product-card p {
  color: #ccc;
  font-size: 0.95em;
  line-height: 1.5;
}
/* ===== Latest News Auto-Scroll Ticker ===== */
/* ===== Latest News Auto-Rotate (Every 30s) ===== */
.news-ticker {
  background: #0d1424;
  color: #fff;
  padding: 15px 0;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid #00bcd4;
  border-bottom: 1px solid #00bcd4;
}

#news-scroll {
  font-size: 1.1em;
  color: #e4e4e4;
  min-height: 45px;
  transition: opacity 0.8s ease-in-out;
}

.news-item {
  cursor: pointer;
  color: #e4e4e4;
  font-weight: 400;
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s ease;
}

.news-item:hover {
  color: #00bcd4;
  text-shadow: 0 0 8px rgba(0,188,212,0.6);
  transform: scale(1.02);
}

@media (max-width: 768px) {
  #news-scroll {
    font-size: 0.95em;
  }
}

/* ===== News Section ===== */
.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.news-card {
  background: #111a2e;
  border: 1px solid rgba(0,188,212,0.2);
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: #00bcd4;
  box-shadow: 0 4px 20px rgba(0,188,212,0.1);
}

.news-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.news-card:hover img {
  transform: scale(1.03);
}


/* ===== Contact Section ===== */
form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
}

input, textarea {
  background: #1a2238;
  color: white;
  border: none;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 6px;
}

button {
  background: #00bcd4;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #0097a7;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #1e3a8a;
  background: #0a0f1c;
  color: #aaa;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  header {
    padding: 10px 20px;
    height: 55px;
  }

  nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(10, 15, 28, 0.98);
    display: none;
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
    animation: slideDown 0.3s ease forwards;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
  }

  nav ul li {
    margin: 0;
  }

  nav ul li a {
    font-size: 1.2em;
  }

  nav.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    background-attachment: scroll;
    background-position: center top;
    background-size: cover;
    padding-top: 120px;
    padding-bottom: 80px;
  }

  .brand-title {
    font-size: 2.4em;
  }

  .tagline {
    font-size: 1.3em;
  }

  .subtitle {
    font-size: 1em;
    padding: 0 20px;
  }

  .product-gallery {
    grid-template-columns: 1fr;
  }
}

/* ===== Slide-down Animation for Mobile Menu ===== */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===== Crossfade Animation for News Ticker ===== */
#news-scroll {
  position: relative;
  display: inline-block;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  font-size: 1.1em;
  color: #e4e4e4;
}

#news-scroll.fade-in {
  opacity: 1;
}

.news-item {
  cursor: pointer;
  color: #e4e4e4;
  transition: color 0.3s ease, transform 0.3s ease;
}

.news-item:hover {
  color: #00bcd4;
  text-shadow: 0 0 8px rgba(0, 188, 212, 0.6);
  transform: scale(1.02);
}

