@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

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

:root {
  --primary-color: #000000;
  --secondary-color: #6a148b;
  --text-color: #333;
  --background: #6a148b;
  --menu-background: #f8f8f8;
  --border-color: #eaeaea;
}

body {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Navigation */
header {
  background-color: transparent !important;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
}

nav {
  display: flex;
  align-items: center;
  padding: 15px 0;
  margin: 0 auto;
  width: 100%;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 20px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 70px;
  transition: transform 0.3s ease;
  margin-top: 40px;
  padding-left: 20px;
}

.logo img:hover {
  transform: scale(1.05);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-right: 25px;
}

nav ul li:last-child {
  margin-right: 0;
}

nav ul li a {
  text-decoration: none;
  color: rgb(255, 255, 255) !important;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1px;
  font-weight: bold;
}

nav ul li a:hover {
  color: var(--secondary-color);
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons button {
  width: 45px;
  height: 45px;
  padding: 5px;
  border: none;
  background: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.social-icons button:hover {
  transform: translateY(-3px);
}

.social-icons img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.social-icons button:hover img {
  filter: grayscale(0%);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: white !important;
  padding: 5px;
  transition: color 0.3s ease;
}

.hamburger:hover {
  color: var(--secondary-color);
}

.h2-title {
  color: #6a148b;
  font-weight: bold;
  font-family: "Times New Roman", Times, serif;
  padding-left: 10px;
}

.heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bolder;
}

.third-text,
.fourth-text {
  padding-left: 10px;
}

.heading img {
  width: 150px;
}

.span-second-img {
  margin-bottom: 8px;
  padding-top: 0px;
}

.first-second-img {
  margin-top: 30px;
  padding-top: 0px;
}

/* Mobile Menu */
@media (max-width: 992px) {
  .nav-left {
    gap: 20px;
  }

  nav ul li {
    margin-right: 15px;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    padding: 0;
    position: relative;
  }

  .nav-content {
    padding: 12px 20px;
  }

  .nav-left {
    width: 100%;
    justify-content: space-between;
  }

  .hamburger {
    display: block;
    order: 1;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--menu-background);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 0;
    margin: 0;
  }

  nav ul li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
  }

  nav ul li a {
    display: block;
    padding: 15px 20px;
    transition: background-color 0.3s ease;
  }

  nav ul li a:hover {
    background-color: rgba(106, 20, 139, 0.05);
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  .social-icons {
    display: none;
    padding: 10px 10px 10px;
    border-radius: 50px;
    justify-content: center;
    width: 100%;
    background-color: transparent !important;
  }

  nav.open ul {
    display: flex;
  }

  nav.open .social-icons {
    display: flex;
  }
}

/* Content Placeholder */
main {
  flex: 1;
}

/* Hero Section */
.hero {
  min-height: calc(100vh - -10px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  margin-top: 0;
  overflow: hidden;
  z-index: 1;
}

.hero-content {
  text-align: left;
  max-width: 700px;
  padding-left: 74px;
  margin-top: 200px;
  position: relative;
  z-index: 1;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  transition: opacity 1.2s ease-in-out;
  z-index: 0;
  opacity: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  background-color: rgba(0, 0, 0, 0.4); /* semi-transparent black */
  z-index: 0;
}

.desktop-only {
  display: block;
}
.mobile-only {
  display: none;
}

/*Responsive rule for Mobile View*/
@keyframes flipIn {
  0% {
    transform: rotateY(90deg);
    opacity: 0;
  }
  50% {
    transform: rotateY(45deg);
    opacity: 0.5;
  }
  100% {
    transform: rotateY(0deg);
    opacity: 1;
  }
}

/* Default (Desktop) */
.fourth-text {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
  color: white; /* desktop white */
}

/* Mobile (<=600px) */
@media (max-width: 600px) {
  /* existing styles */

  .desktop-only { display: none; }
  .mobile-only { display: block; }
}

/* Desktop (>=601px) */
@media (min-width: 601px) {
  .desktop-only { display: block; }
  .mobile-only { display: none; }
}

/* Mobile (<=600px) */
@media (max-width: 600px) {
  .hero::before { content: none; }
  .mobile-only { display: block; }

  .hero-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 280px;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
  }

  ul li a { background-color: black; }

  .logo img {
    height: 40px;
    margin-top: 15px;
  }

  .heading {
    height: 200px;
  }

  .heading-img {
    height: 100px;
    background-size: cover;
    background-position: center;
  }

  .hero {
    width: 100vw;
    height: auto;
    min-height: auto;
    display: flex;
    flex-direction: column;
    background: none;
  }

  .hero-content {
    margin-top: 180px;
    padding: 0 12px;
    position: relative;
    z-index: 1;
    max-width: 100%;
    text-align: left;
  }

  .heading { padding-top: 60px; }

  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 1rem; }

  .h2-title {
    font-size: 1.1rem;
  }

  .button-group { justify-content: center; }
  main { padding: 0 4px; }

  .fourth-text {
    color: black;
  }
}

@media (max-width: 375px) {
  .hero-content {
    margin-top: 170px;
    padding: 0 12px;
    position: relative;
    z-index: 1;
    max-width: 100%;
    text-align: left;
  }

  .fourth-text {
    font-size: 18px;
    color: black; /* mobile black */
  }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 20px;
  color: white;
  line-height: 1.2;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--secondary-color);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary-color);
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.btn:hover {
  background-color: transparent;
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(106, 20, 139, 0.3);
}

.btn-download {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.btn-download:hover {
  color: var(--secondary-color);
  transform: translateY(-3px);
}

.button-group {
  display: flex;
  align-items: center;
  gap: 16px; /* spacing between buttons */
  flex-wrap: wrap; /* allows stacking on small screens */
  margin-top: 30px;
}

.download-wrap {
  display: flex;
  align-items: center;
}

.arrow-download {
  margin-right: 8px;
  position: static; /* prevent floating */
}

/* Footer styles moved to footer.css */
