/* style.css */
/* Base styles */
* {
    margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
    background-color: #121212;
    color: #E0E0E0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

.section {
    padding: 60px 20px;
}
h1, h2, h3 {
    font-weight: 600;
}
a {
    color: inherit;
    text-decoration: none;
}

/* Navigation */
/* Navbar base */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(90deg,rgba(0, 0, 0, 0.6) 40%, rgba(38, 38, 38, 0.6) 100%);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}
.logo::after {
    content:'Genex';
    background-image: linear-gradient(to bottom right, #008cff , #e100ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Desktop menu */
.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links li {
  position: relative;
}

.flag {
  width: 18px;
  height: 12px;
  margin-right: 5px;
}

nav .nav-links a:hover {
    background-image: linear-gradient(to bottom right, #008cff , #e100ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dropdown */
.dropbtn{

}

.dropdown-content {
  display: none;
  position: absolute;
  background: #1C1C1C;
  top: 100%;
  left: 0;
  min-width: 100px;
  z-index: 999;
}

.dropdown-content a {
  display: flex;
  align-items: center;
  padding: 8px 12px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Hamburger button */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 24px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #1C1C1C;
  position: absolute;
  top: 60px; /* height of navbar */
  left: 0;
  right: 0;
  z-index: 999;
}

.mobile-menu a,
.mobile-menu .dropdown {
  padding: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.9);
}

.mobile-menu a:hover {
    background-image: linear-gradient(to bottom right, #008cff , #e100ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Show hamburger and hide desktop on small screens */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: block;
  }
}
/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: rgba(0,0,0,0.5);
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  text-align: center;
}

.hero-content h1,
.hero-content .slogan,
.hero-content .btn {
  opacity: 0;
  /* animations from your JS still apply */
}
.hero h1 {
    font-size: clamp(3rem, 5vw, 4rem);
    margin-bottom: 20px;
}
.hero h1::after {
    content:'Genex';
    background-image: linear-gradient(to bottom right, #008cff , #e100ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero .slogan {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: white;
}
.btn {
  position: relative;
  z-index: 1;
  padding: 0.75em 2em;
  background-color: #0b0d15;
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 1000px;
  cursor: pointer;
  overflow: hidden; /* This is key */
}

.btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom right, #008cff , #e100ff);
  z-index: -1;
  border-radius: 1000px;
  padding: 2px;
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
}

.btn:hover::after {
  padding: 0;
  mask: none;
  -webkit-mask: none;
}

.btn:hover {
   box-shadow: 10px 0 100px #008cff85 , -10px 0 100px #e100ffbb;
}

.fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 150px; /* Adjust height based on how gradual you want the fade */
  width: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, black 100%);
  z-index: 3;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    background-image: linear-gradient(to bottom right, #008cff , #e100ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Services */
.services {
    background: linear-gradient(rgba(0,0,0,1), rgba(0,0,0,0.8)), linear-gradient(to bottom right, #008cff , #e100ff);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.service-item {
    flex: 1 1 280px;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.5); */
    opacity: 0; /* start hidden for animation */
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.card {
  margin: 0 auto;
  padding: 2em;
  width: 250px;
  height: 380px;
  background: black;
  text-align: center;
  border-radius: 10px;
  position: relative;
}

@property --angle{
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.card::after, .card::before{
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  background-image: conic-gradient(from var(--angle), transparent, transparent, #008cff, transparent, transparent, transparent, transparent, transparent, #e100ff, transparent, transparent, transparent, transparent);
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: -1;
  padding: 2px;
  border-radius: 10px;
  animation: 10s spin linear infinite;
}
.card::before{
  filter: blur(1.5rem);
  opacity: 0.5;
}
@keyframes spin{
  from{
    --angle: 0deg;
  }
  to{
    --angle: 360deg;
  }
}
.service-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.service-item p {
    font-size: 0.95rem;
}

/* About */
.about{
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.9), rgba(0,0,0,0.7)), url('assets/section_2_background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    border-top: 1px solid #444;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
    text-align: center;
}

/* FAQs */
.faq-section {
  background: linear-gradient(rgba(0,0,0,0.9), rgba(0,0,0,0.8)), linear-gradient(to bottom right, #008cff , #e100ff);
  border-top: 1px solid #444;
}

.faq-container {
  padding: 4rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-container {
  border-radius: 10px;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
  background-color: black;
  transition: background 0.3s;
  border-radius: 200px;
  margin-top: 15px;
}

.faq-question:hover {
  background: linear-gradient(to bottom right, #008cff , #e100ff);
}

.faq-answer {
  padding: 0 1rem 1rem;
  display: none;
  color: #ccc;
  margin-top: 15px;
}

.faq-answer ul {
  padding-left: 1.5rem;
  list-style-type: disc;
}

/* Contact */
.contact {
  background: linear-gradient(rgba(0,0,0,0.9), rgba(0,0,0,0.7)), url('assets/section_2_background.webp');
  border-top: 1px solid #444;
}

.contact p {
  text-align: center;
}

.contact form {
    max-width: 600px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}
.contact label {
    font-weight: 500;
}
.contact input, .contact textarea {
    padding: 10px;
    background: #1C1C1C;
    border: 1px solid #333;
    border-radius: 4px;
    color: #E0E0E0;
    resize: none;
}
.contact input:focus, .contact textarea:focus {
    outline: none;
    border-color: #1E90FF;
}
.contact-info {
    text-align: center;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.contact-info a {
  color: #7fc9ff;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background-color: #0a0a0a;
  color: #f3f3f3;
  padding: 40px 20px 20px;
  border-top: 1px solid #222;
  font-size: 0.85rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-left {
  flex: 2;
  min-width: 250px;
}

.footer-left h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.footer-left p {
  color: #bbbbbb;
  line-height: 1.4;
  max-width: 400px;
}

.footer-right {
  display: flex;
  justify-content: flex-end;
  flex: 1;
  gap: 40px;
  min-width: 250px;
}

.footer-column {
  min-width: 120px;
}

.footer-column h4 {
  font-size: 1rem;
  margin-bottom: 5px;
  color: #ffffff;
}

.footer-column p {
  margin: 0;
}

.footer-column a {
  color: #7fc9ff;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 15px;
  margin-top: 30px;
  font-size: 0.75rem;
  color: #888888;
}

/* Animation classes (added by JS) */
.show {
    opacity: 1 !important;
    transform: translateX(0) translateY(0) !important;
}
.slide-in-left,
.slide-in-right {
    opacity: 0;
    transform: translateX(-50px);
}
.slide-in-right {
    transform: translateX(50px);
}
.slide-in-up,
.slide-in-down {
    opacity: 0;
    transform: translateY(50px);
}
.slide-in-down {
    transform: translateY(-50px);
}

.fade-in {
  opacity: 0;
  filter: blur(100px);
}

.show {
    opacity: 1;
    transition: opacity 1s ease, transform 1s ease, filter 1s ease;
    filter: blur(0px);
}
