/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/*=============== CSS VARIABLES ===============*/
:root {
  --primary-color: #00aaff; /* A vibrant blue for accents */
  --primary-color-alt: #0088cc;
  --secondary-color: #334155; /* A cool, dark slate for secondary buttons */
  --bg-dark: #0f172a; /* Main background */
  --bg-light: #1e293b; /* Card and header background */
  --text-light: #f1f5f9; /* Primary text color */
  --text-muted: #94a3b8; /* Muted text for subtitles and paragraphs */
  --border-color: #334155;
  --font-family: 'Poppins', sans-serif;
  --header-height: 4.5rem;
}

/*=============== BASE STYLES ===============*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-color-alt);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/*=============== REUSABLE CLASSES ===============*/
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 6rem 0 2rem;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-light);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: center;
}

/* Animation on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  width: 100%;
  padding: 0 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-light);
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}
.nav {
  display: flex;
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-light);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-light);
}

/*=============== HERO SECTION ===============*/
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url(https://images.unsplash.com/photo-1519389950473-47ba0277781c?q=80&w=2070) no-repeat center center/cover;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  color: var(--text-light);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 4vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-color-alt);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 170, 255, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

/*=============== ABOUT SECTION ===============*/
.about-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/*=============== SERVICES & PLATFORMS CARDS ===============*/
.services-grid, .platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card, .platform-card {
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover, .platform-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  border-color: var(--primary-color);
}

.card-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card h3, .platform-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.service-card p, .platform-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.btn-link {
  display: inline-flex;
  margin-top: 1.5rem;
  font-weight: 600;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-link i {
    transition: transform 0.3s ease;
}

.btn-link:hover i {
    transform: translateX(5px);
}

.coming-soon {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
}

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--bg-light);
  padding-top: 4rem;
  border-top: 1px solid var(--border-color);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.footer-contact p, .footer-links a {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-contact p i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.footer-socials a {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: var(--text-muted);
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/*=============== COOKIE BANNER ===============*/
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: var(--bg-light);
  color: var(--text-muted);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  z-index: 200;
  transition: bottom 0.5s ease-in-out;
}

.cookie-banner.show {
  bottom: 0;
}

.cookie-banner p {
    margin: 0;
}

.cookie-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/*=============== BACK TO TOP BUTTON ===============*/
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: -50px;
  background-color: var(--primary-color);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  z-index: 100;
  transition: right 0.4s ease, background-color 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 170, 255, 0.4);
}

.back-to-top.show {
    right: 2rem;
}

.back-to-top:hover {
    background-color: var(--primary-color-alt);
    color: #fff;
}

.policy-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-block: 1rem;
}
.policy-content h3 {
    color: var(--text-light);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}


/*=============== RESPONSIVE DESIGN ===============*/
@media screen and (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-image {
        order: -1; /* Puts image on top on smaller screens */
        margin-bottom: 2rem;
        max-width: 500px;
        margin-inline: auto;
    }
}

@media screen and (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 60%;
    height: 100vh;
    background-color: var(--bg-light);
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    padding-top: 6rem;
    transition: right 0.4s ease;
    flex-direction: column;
    z-index: 100;
  }

  .nav.show {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }

  .hamburger {
    display: block;
    z-index: 101; /* Above nav panel */
  }
  
  .footer-container {
      grid-template-columns: 1fr;
      text-align: center;
  }
  .footer-socials {
      justify-content: center;
  }
}

@media screen and (max-width: 576px) {
       .section-title {
        font-size: 2rem;
    }
    .cookie-banner {
        flex-direction: column;
        padding: 1.5rem 1rem;
    }
    .back-to-top {
        bottom: 1rem;
    }
    .back-to-top.show {
        right: 1rem;
    }
}
