@font-face {
    font-family: 'JetBrainsMono';
    src: url('assets/fonts/JetBrainsMono-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ----- RESET & VARIABLES (dark technical palette, sharp edges) ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-main: #0b1a2f;
  --bg-card: #11243b;
  --bg-darker: #071221;
  --accent: #2e9cca;
  --accent-hover: #1476a3;
  --text-light: #eef4fc;
  --text-muted: #b0c5dd;
  --border-color: #1f3a5f;
  /* --font-family: 'Inter', system-ui, -apple-system, sans-serif; */
  font-family: 'JetBrainsMono', monospace;
  --radius: 20px;
  --btn-radius: 20px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-light);
  line-height: 1.5;
  scroll-behavior: smooth;
  padding-top: 70px; /* adjust based on your navbar height (~60-80px) */
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  scroll-margin-top: 80px;
  padding: 5rem 0;
}

section:nth-of-type(odd) {
  background-color: var(--bg-main);
}
section:nth-of-type(even) {
  background-color: #0f2035;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 3rem;
  font-size: 1.2rem;
}

.btn {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--accent);
  padding: 0.8rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--btn-radius);
  transition: 0.2s ease;
  cursor: pointer;
  text-align: center;
  border-radius: var(--btn-radius);
}

.btn-primary {
  background: var(--accent);
  color: #0b1a2f;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  color: var(--text-light);
  border-color: var(--text-muted);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ----- NAVBAR ----- */
.navbar {
  background: var(--bg-darker);
  padding: 0.8rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}


.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo img {
  height: 40px; /* adjust based on your logo */
  width: auto;
  display: block;
}

/* ----- NAVBAR (with logo + text) ----- */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}
.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;  /* slight spacing for G.I.Y.A. */
  color: var(--text-light);
}
.logo-text span {
  color: var(--accent);
}

/* Hide logo text on mobile */
@media (max-width: 768px) {
  .logo-text {
    display: none;
  }
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-item {
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: 0.15s;
  cursor: pointer;
}
.nav-item:hover {
  border-bottom-color: var(--accent);
}

.dropdown {
  position: relative;
}
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: -10px;
  background: #1c314e;
  min-width: 200px;
  box-shadow: 0 20px 30px -10px black;
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: 0.8rem 0;
  z-index: 1000;
}
.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown-content a {
  display: block;
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
}
.dropdown-content a:hover {
  background: #2a405f;
  color: var(--accent);
}

.mobile-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
}

/* ----- HERO ----- */
.hero {
  padding: 5rem 0 6rem;
  background: radial-gradient(circle at 70% 20%, #1d3858, var(--bg-main) 80%);
  height: 100vh;                /* full viewport height */
  display: flex;
  align-items: center;          /* vertically center the grid */
}

.hero-grid {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  width: 100%;                  /* ensure it fills the container */
}

/* Left column – text */
.hero-content {
  flex: 1 1 400px;
  min-height: 380px;            /* enough for any text + button */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* button stays at bottom */
  transition: opacity 0.5s ease-in-out;
}

.hero-content.fade-out {
  opacity: 0;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-content h2 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-content h3 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-highlight {
  color: var(--accent);
  border-bottom: 3px solid var(--accent);
}

.hero-sub {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  min-height: 6rem;             /* reserve space for ~3 lines of text */
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Right column – visual container (fixed size) */
.hero-visual {
  flex: 1 1 300px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  padding: 0;                   /* image fills the box */
  height: 400px;                /* fixed – adjust to match your images */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1200px;           /* gives depth to the 3D flip */
  border-radius: var(--radius);
}

/* 3D flip wrapper */
.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease-in-out;
  transform-style: preserve-3d;  /* allows children to be positioned in 3D */
}

.hero-image-wrapper.flip {
  transform: rotateY(180deg);
}

/* Both front and back images */
.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  backface-visibility: hidden;   /* hides the back when facing away */
  border: none;
  border-radius: var(--radius);
  object-fit: cover;             /* fills the area, may crop */
  /* If you prefer full image visible (with possible letterboxing), use 'contain' */
  /* object-fit: contain; background-color: var(--bg-darker); */
}

.hero-image.front {
  transform: rotateY(0deg);
  z-index: 2;
}

.hero-image.back {
  transform: rotateY(180deg);    /* initially hidden behind */
  z-index: 1;
}

/* Optional badge (commented out in HTML but style kept) */
.hero-badge {
  background: #2e9cca20;
  color: var(--accent);
  padding: 0.3rem 1rem;
  border: 1px solid var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1.5rem;
}


/* ----- FEATURES GRID ----- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  transition: all 0.2s;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.8rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-muted);
}

/* ----- HOW IT WORKS ----- */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.step-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  flex: 1 1 180px;
  text-align: center;
  transition: 0.15s;
}
.step-item:hover {
  background: #173353;
}

.step-num {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
}

.step-item i {
  font-size: 2.5rem;
  color: var(--accent);
  margin: 1rem 0;
}

.step-item h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

/* ----- PRICING CARDS ----- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.pricing-card h3 {
  font-size: 1.8rem;
  font-weight: 600;
}
.price {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  margin: 1.5rem 0;
}
.pricing-card ul {
  list-style: none;
  margin: 2rem 0;
}
.pricing-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
}
.pricing-card .btn {
  width: 100%;
}

/* ----- DASHBOARD BLOCKS ----- */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.dashboard-block {
  background: #1f3147;
  border: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  text-align: left;
  transition: 0.2s;
}
.dashboard-block:hover {
  border-color: var(--accent);
}
.dashboard-block .main-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
  text-align: center;
  display: block;
}
.dashboard-block h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.dashboard-block .block-sub {
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.dashboard-block span {
  color: var(--text-muted);
  font-weight: 50;
  display: block;        /* important */
  text-align: center;    /* centers text */
}

.dashboard-block ul {
  list-style: none;
  margin-top: 1rem;
}
.dashboard-block li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.dashboard-block li i {
  width: 1.5rem;
  color: var(--accent);
  font-size: 1.2rem;
  margin-top: 0.15rem;
}

/* ----- DOWNLOADS & SUPPORT ----- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}
.download-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem 1rem;
  text-align: center;
}
.download-item i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.download-item button {
  margin-top: 1rem;
}
.support-cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 3rem 0;
}
.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  flex: 1 1 250px;
}
.support-card i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}


/* ----- ABOUT / CONTACT ----- */
.about-contact {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}
.about-text {
  flex: 2 1 300px;
}
.contact-form {
  flex: 1 1 300px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: #0f1f30;
  border: 1px solid var(--border-color);
  padding: 1rem;
  color: white;
  font-family: inherit;
  border-radius: 0;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--accent);
}

/* ----- BACK TO TOP BUTTON ----- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent);
  color: #0b1a2f;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border: 2px solid var(--accent);
  border-radius: var(--btn-radius);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background 0.2s;
  z-index: 99;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* ----- VIDEO MODAL ----- */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal.active {
  display: flex;
}
.modal-content {
  background: #0b1a2f;
  border: 2px solid var(--accent);
  width: 90%;
  max-width: 900px;
  position: relative;
  padding: 1rem;
}
.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover {
  color: var(--accent);
}
.modal video {
  width: 100%;
  height: auto;
  display: block;
}

/* ----- FOOTER ----- */
.footer {
  background: var(--bg-darker);
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border-color);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}
.footer-col p {
  color: var(--text-muted);
  margin: 1rem 0;
}
.social-links {
  display: flex;
  gap: 1.5rem;
  font-size: 1.8rem;
}
.social-links a:hover {
  color: var(--accent);
}
.footer-bottom {
  text-align: center;
  padding-top: 3rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 900px) {
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 0;
  }
  .nav-menu.active {
    display: flex;
  }
  .dropdown-content {
    position: static;
    box-shadow: none;
    background: transparent;
    padding-left: 1rem;
  }
}
@media (max-width: 600px) {
  .container { padding: 0 1rem; }
  .hero-cta .btn { width: 100%; }
  .dashboard-block li { font-size: 0.9rem; }
}

/* Subscription modal specific */
#subscribeModal .modal-content {
  padding: 2rem;
}
#subscribeModal h2 {
  color: var(--accent);
}
.form-row {
  display: flex;
  gap: 1rem;
}
.form-row .form-group {
  flex: 1;
}