/*==================== VARIABLES ====================*/
:root {
	/* Primary Colors and Typography */
	--primary-color: black;
	--secondary-color: #0f1318;
	--background-color: #f8f9fa;
	--text-color: #333;
	--heading-color: #222;
	--border-radius: 8px;
	--transition: all 0.3s ease-in-out;
	--font-family: "Soehne", system-ui, -apple-system, Helvetica Neue, Arial, sans-serif;
  
	/* Additional Variables */
	--header-height: 3.5rem;
	--white-color: hsl(0, 0%, 0%);
	--black-color: hsl(0, 0%, 100%);
	--menu-font: "Soehne", system-ui, -apple-system, Helvetica Neue, Arial, sans-serif;
	--h1-font-size: 1.5rem;
	--normal-font-size: .938rem;
	--font-regular: 400;
	--font-medium: 500;
	--z-tooltip: 10;
	--z-fixed: 100;
  }
  
  /*==================== BASE ====================*/
  html {
	scroll-behavior: smooth;
  }
  
  body {
	font-family: var(--font-family);
	background: var(--background-color) !important;
	color: var(--text-color);
	margin: 0;
	padding: 0;
	line-height: 1.6;
  }
  
  * {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
  }
  
  ul {
	list-style: none;
  }
  
  a {
	text-decoration: none;
  }
  
  /*==================== REUSABLE CLASSES ====================*/
  .container {
	max-width: 1120px;
	margin-inline: 1.5rem;
  }
  
  /*==================== HEADER & NAV ====================*/
  nav.nav.container {
	border-radius: 180px;
	background-color: white;
	top: 1rem;
	height: 60px;
	max-width: 900px;
	box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.3);
  }
  
  .header {
	position: fixed;
	width: 100%;
	top: 0;
	left: 0;
	background-color: transparent;
	z-index: var(--z-fixed);
	transition: opacity 0.3s ease-in-out;
  }
  
  .nav {
	position: relative;
	height: var(--header-height);
	display: flex;
	justify-content: space-evenly;
	align-items: center;
  }
  
  .nav__logo {
	color: var(--white-color);
	font-weight: var(--font-medium);
  }
  
  .nav__close,
  .nav__toggle {
	display: flex;
	color: var(--white-color);
	font-size: 1.5rem;
	cursor: pointer;
  }
  
  #particles-js {
    display: none; /* Hide by default */
    position: absolute;
    width: 100%;
    height: 100vh;
    background: black; /* Background color */
    z-index: -1;
}

  /*==================== MOBILE GLOBAL STYLES ====================*/
  @media (max-width: 768px) {
	html,
	body {
	  background-color: #000;
	}
  }
  
  /*==================== MOBILE NAV & HERO ====================*/
  @media screen and (max-width: 880px) {
	/* Hide video background on mobile */
	.video-bg {
	  display: none;
	}
	.footer {
		padding-bottom: 5px !important;
	}
	#hero {
        position: relative;
        width: 100%;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-align: center;
        padding: 0 20px;
        background: transparent !important; /* Removes gray background */
        overflow: hidden;
        z-index: 1;
    }

    #particles-js {
        display: block;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: black; /* Ensures a black background */
        z-index: -1; /* Sends particles behind content */
    }

    .video-bg {
        display: none; /* Hide video on mobile */
    }
    
    .overlay {
        display: none; /* Hide overlay if it's darkening the background */
    }
	.nav {
	  justify-content: space-between;
	  padding: 25px;
	}
	
	.nav__menu {
	  position: fixed;
	  left: -100%;
	  top: 0;
	  background-color: var(--black-color);
	  width: 100%;
	  height: 100%;
	  padding: 6rem 3.5rem 4.5rem;
	  display: flex;
	  flex-direction: column;
	  justify-content: space-between;
	  transition: left 0.4s;
	}
	
	.nav__item {
	  transform: translateX(-150px);
	  visibility: hidden;
	  transition: transform 0.4s ease-out, visibility 0.4s;
	}
	
	.nav__item:nth-child(1) {
	  transition-delay: 0.1s;
	}
	.nav__item:nth-child(2) {
	  transition-delay: 0.2s;
	}
	.nav__item:nth-child(3) {
	  transition-delay: 0.3s;
	}
	.nav__item:nth-child(4) {
	  transition-delay: 0.4s;
	}
	.nav__item:nth-child(5) {
	  transition-delay: 0.5s;
	}
  }
  
  /* Navigation Lists & Links */
  .nav__list,
  .nav__social {
	display: flex;
  }
  
  .nav__list {
	flex-direction: column;
	row-gap: 3rem;
  }
  
  .nav__link {
	position: relative;
	color: var(--white-color);
	font-size: var(--h1-font-size);
	font-weight: var(--font-medium);
	display: inline-flex;
	align-items: center;
	transition: opacity 0.4s;
  }
  
  .nav__link i {
	font-size: 2rem;
	position: absolute;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s, visibility 0.4s;
  }
  
  .nav__link span {
	position: relative;
	transition: margin 0.4s;
  }
  
  .nav__link span::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -6px;
	width: 0;
	height: 2px;
	background-color: var(--white-color);
	transition: width 0.4s ease-out;
  }
  
  /* Hover Animations for Links */
  .nav__link:hover span {
	margin-left: 2.5rem;
  }
  
  .nav__link:hover i {
	opacity: 1;
	visibility: visible;
  }
  
  .nav__link:hover span::after {
	width: 100%;
  }
  
  /* Sibling fade animation */
  .nav__list:has(.nav__link:hover) .nav__link:not(:hover) {
	opacity: 0.4;
  }
  
  .nav__close {
	position: absolute;
	top: 1rem;
	right: 1.5rem;
  }
  
  .nav__social {
	column-gap: 1rem;
  }
  
  .nav__social-link {
	color: var(--white-color);
	font-size: 1.5rem;
	transition: transform 0.4s;
  }
  
  .nav__social-link:hover {
	transform: translateY(-0.25rem);
  }
  
  /* Show menu state */
  .show-menu {
	left: 0;
  }
  
  .show-menu .nav__item {
	visibility: visible;
	transform: translateX(0);
  }
  
  /*==================== DESKTOP NAV ====================*/
  @media screen and (min-width: 880px) {
	.nav {
	  justify-content: space-evenly;
	  height: calc(var(--header-height) + 2rem);
	}
	
	.container {
	  margin-inline: auto;
	  padding: 20px;
	}
	
	.nav__toggle,
	.nav__close {
	  display: none;
	}
	
	.nav__link {
	  font-size: var(--normal-font-size);
	}
	
	.nav__link i {
	  font-size: 1.5rem;
	}
	
	.nav__list {
	  flex-direction: row;
	  column-gap: 3.5rem;
	}
	
	.nav__menu {
	  display: flex;
	  align-items: center;
	  column-gap: 3.5rem;
	}
  }
  
  /*==================== HERO SECTION ====================*/
  #hero {
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-align: center;
	padding: 0 20px;
	position: relative; /* Contains absolute children */
	width: 100%;
	overflow: hidden; /* Prevents video overflow */
  }
  
  .video-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2; /* Behind content */
	pointer-events: none;
  }
  
  .overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5); /* Adjust darkness as needed */
	z-index: -1; /* Behind content */
  }
  
  .hero-content p {
	font-size: clamp(1rem, 2.5vw, 1.2rem); /* Responsive font size with min/max */
	margin-bottom: 30px;
	overflow: hidden; /* Ensures text doesn't show before animation */
	white-space: nowrap; /* Keeps text on one line for typing effect */
	border-right: 3px solid white; /* Cursor effect */
	animation: 
	  typing 1.2s steps(40, end) forwards 2.5s, /* Adjusted steps for character count */
	  blink-caret 0.75s step-end infinite 2.5s; /* Blinking cursor with delay */
	animation-fill-mode: both; /* Ensures opacity changes persist */
	animation-delay: 0s; /* Delay matches typing start */
  }
  
  /* Fade Animation for h1 (unchanged) */
  .hero-content h1 {
	font-size: 3rem;
	margin-bottom: 20px;
	opacity: 0; /* Start hidden */
	animation-fill-mode: forwards; /* Ensures text stays visible after animation */
	animation: fadeIn 1.5s ease-in-out forwards; /* Fades in over 1.5 seconds */
  }
  
  /* Keyframes (unchanged) */
  @keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
  }
  
  @keyframes typing {
	from { width: 0; }
	to { width: 100%; }
  }
  
  @keyframes blink-caret {
	from, to { border-color: transparent; }
	50% { border-color: white; }
  }
  
  /* Mobile Adjustments (≤880px) */
@media screen and (max-width: 880px) {
	.hero-content p {
	  font-size: 18px;
	  white-space: normal; /* Allow text to wrap */
	  border-right: none; /* Remove cursor */
	  overflow: visible; /* No need to hide overflow with fade */
	  animation: fadeIn 1.2s ease-in-out forwards ; /* Regular fade-in */
	}
  }

  #hero .btn {
	background-color: white;
	color: black;
  }
  /*==================== BUTTONS ====================*/
  .btn {
	display: inline-block;
	background: var(--primary-color);
	color: #fff;
	padding: 12px 24px;
	font-size: 1rem;
	font-weight: 500;
	border-radius: var(--border-radius);
	text-decoration: none;
	transition: var(--transition);
	box-shadow: 0 4px 10px rgba(205, 205, 205, 0.3);
  }
  
  .btn:hover {
	background: var(--secondary-color);
	transform: translateY(-2px);
  }
  
  .btnsoon {
	display: inline-block;
	background: rgb(158, 158, 158);
	color: #000000;
	padding: 12px 24px;
	font-size: 1rem;
	font-weight: 500;
	border-radius: var(--border-radius);
	text-decoration: none;
	transition: var(--transition);
	box-shadow: 0 4px 10px rgba(205, 205, 205, 0.3);
}
.demo-card .btnsoon {
    margin: auto 15px 20px;
}

  /*==================== SECTIONS ====================*/
  section {
	padding: 100px 10%;
	text-align: center;
	position: relative;
  }
  
  section#ai-demos,
  #about,
  #contact {
	background-color: white;
  }
  
  #about .btn {
	margin-top: 10px;
  }
  
  .resources-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 40px;
  }
  
  .resource-card {
	background: #fff;
	border-radius: var(--border-radius);
	padding: 20px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	text-align: center;
  }
  
  .resource-card h3 {
	margin-bottom: 10px;
  }
  
  .resource-card p {
	margin-bottom: 20px;
	font-size: 0.9rem;
  }

  
  /*==================== DEMO CARDS ====================*/
  .demo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 40px;
	align-items: stretch;
  }
  
  .demo-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--border-radius);
	overflow: hidden;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	transition: var(--transition);
	text-align: center;
	padding-bottom: 20px;
  }
  
  .demo-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  }
  
  .demo-card img {
	width: 100%;
	height: 180px;
	object-fit: cover;
  }
  
  .demo-card h3 {
	font-size: 1.3rem;
	margin: 15px;
  }
  
  .demo-card p {
	font-size: 1rem;
	color: var(--text-color);
	margin: 0 15px 20px;
  }
  
  .demo-card .btn {
	margin: auto 15px 20px;
  }
  
  /*==================== FORMS ====================*/
  form {
	max-width: 600px;
	margin: auto;
	background: #fff;
	padding: 30px;
	border-radius: var(--border-radius);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  input,
  textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: var(--border-radius);
	font-size: 1rem;
	margin-bottom: 15px;
	transition: var(--transition);
	font-family: var(--font-family);
  }
  
  input:focus,
  textarea:focus {
	border-color: var(--primary-color);
	outline: none;
  }
  
  /*==================== FOOTER ====================*/
/* ========== ADVANCED FOOTER STYLES ========== */
.footer {
    background: white; /* Dark futuristic theme */
    color: black;
    padding: 60px 10%;
    text-align: center;
    position: relative;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: black; /* AI Themed Neon */
}

.footer-column p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: black;
    color: white;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
}

.footer-btn:hover {
    background: gray;
    transform: scale(1.05);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: black;
    font-size: 0.95rem;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

.footer-links a:hover {
    color: gray;
}

.footer-social {
    margin-top: 10px;
}

.footer-social a {
    display: inline-block;
    margin-right: 10px;
    font-size: 1.5rem;
    color: black;
    transition: transform 0.3s ease-in-out, color 0.3s;
}

.footer-social a:hover {
    color: black;
    transform: translateY(-3px);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-column {
        margin-bottom: 40px;
    }
}

  
  /*==================== FADE IN SECTIONS ====================*/
  .fade-in-section {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  .fade-in-section.visible {
	opacity: 1;
	transform: translateY(0);
  }
  
  /*==================== SECTION HEADINGS ====================*/
  section h2 {
	position: relative;
	display: inline-block;
	margin-bottom: 1rem;
  }
  
  section h2::after {
	content: "";
	display: block;
	width: 60px;
	height: 3px;
	background: #c2c2c2;
	border-radius: 5px;
	margin: 0 auto;
	margin-top: 0.4rem;
  }
  
  /*==================== KEYFRAMES ====================*/
  @keyframes gradientAnimation {
	0% {
	  background-position: 0% 50%;
	}
	50% {
	  background-position: 100% 50%;
	}
	100% {
	  background-position: 0% 50%;
	}
  }
  
  /*==================== ADDITIONAL MOBILE STYLES ====================*/
  @media (max-width: 768px) {
	.hero-content h1 {
	  font-size: 2.5rem;
	}
	
	.hamburger {
	  display: block;
	}
	
	.nav-links {
	  flex-direction: column;
	  display: none;
	  position: absolute;
	  top: 70px;
	  right: 0;
	  width: 100%;
	  background: #fff;
	  text-align: center;
	  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	}
	
	.nav-links li {
	  margin: 15px 0;
	}
	
	.nav-links.active {
	  display: flex;
	  border-radius: 5px;
	}
	
	.header-right {
	  gap: 1rem;
	  padding-right: 10px;
	}
	
	body {
	  background-color: #000;
	}
  }
  
  /*==================== BACK TO TOP BUTTON ====================*/
  #back-to-top {
	position: fixed;
	bottom: 80px;
	right: 20px;
	background: var(--primary-color);
	color: #fff;
	border: none;
	padding: 20px;
	border-radius: 50%;
	cursor: pointer;
	display: none;
	z-index: 1001;
	opacity: 0;
	transition: opacity 0.3s ease, background 0.3s ease, display 0.3s ease;
  }
  
  #back-to-top:hover {
	background: rgb(59, 59, 59);
  }
  /* Auth Modal Styles */
.auth-modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(5px);
  }
  
  .auth-modal-content {
	background-color: #fff;
	margin: 10% auto;
	padding: 30px;
	border-radius: 12px;
	width: 100%;
	max-width: 400px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
	position: relative;
  }
  
  .auth-close {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 25px;
	font-weight: bold;
	cursor: pointer;
	color: #777;
	transition: var(--transition);
  }
  
  .auth-close:hover {
	color: #000;
  }
  
  #chat-section {padding: 15px;}

  .auth-tabs {
	display: flex;
	margin-bottom: 20px;
	border-bottom: 1px solid #eee;
  }
  
  .auth-tab-btn {
	background: none;
	border: none;
	padding: 10px 15px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	flex: 1;
	color: #777;
	transition: var(--transition);
  }
  
  .auth-tab-btn.active {
	color: var(--primary-color);
	border-bottom: 2px solid var(--primary-color);
  }
  
  .auth-tab-content {
	display: none;
  }
  
  .auth-tab-content.active {
	display: block;
  }
  
  .auth-input-group {
	margin-bottom: 20px;
  }
  
  .auth-input-group input {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	transition: var(--transition);
  }
  
  .auth-input-group input:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  }
  
  .auth-input-group small {
	display: block;
	margin-top: 5px;
	color: #777;
	font-size: 12px;
  }
  
  .auth-btn {
	width: 100%;
	padding: 12px;
	background-color: var(--primary-color);
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: var(--transition);
  }
  
  .auth-btn:hover {
	background-color: var(--secondary-color);
  }
  
  .auth-google-btn {
	width: 100%;
	padding: 12px;
	background-color: white;
	color: #333;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--transition);
  }
  
  .auth-google-btn i {
	margin-right: 10px;
	font-size: 18px;
	color: #DB4437;
  }
  
  .auth-google-btn:hover {
	background-color: #f7f7f7;
  }
  
  .auth-divider {
	text-align: center;
	margin: 15px 0;
	position: relative;
  }
  
  .auth-divider::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background-color: #eee;
  }
  
  .auth-divider span {
	position: relative;
	background-color: white;
	padding: 0 15px;
	color: #777;
	font-size: 14px;
  }
  
  .auth-forgot {
	text-align: right;
	margin-bottom: 15px;
  }
  
  .auth-forgot a {
	color: var(--primary-color);
	font-size: 14px;
	text-decoration: none;
  }
  
  .auth-back-btn {
	width: 100%;
	padding: 12px;
	background-color: transparent;
	color: #333;
	border: 1px solid #ddd;
	border-radius: 6px;
	margin-top: 10px;
	font-size: 16px;
	cursor: pointer;
	transition: var(--transition);
  }
  
  .auth-back-btn:hover {
	background-color: #f7f7f7;
  }
  
  #reset-tab p {
	margin-bottom: 20px;
	color: #777;
	font-size: 14px;
  }

  /* Account dropdown styles */
.account-dropdown {
	display: none;
	position: absolute;
	top: 40px;
	right: 0;
	background-color: white;
	min-width: 160px;
	box-shadow: 0 8px 16px rgba(0,0,0,0.1);
	border-radius: 8px;
	z-index: 10;
  }
  
  .account-dropdown.show {
	display: block;
  }
  
  .account-dropdown ul {
	list-style: none;
	padding: 0;
	margin: 0;
  }
  
  .account-dropdown ul li {
	padding: 0;
  }
  
  .account-dropdown ul li a {
	color: var(--text-color);
	padding: 12px 16px;
	text-decoration: none;
	display: block;
	transition: var(--transition);
  }
  
  .account-dropdown ul li a:hover {
	background-color: #f1f1f1;
  }
  
  @media screen and (min-width: 880px) {
	.account-dropdown {
	  top: 60px;
	}
  }