/**
 * FutureNav - Cutting Edge Navigation
 * styles.css - Core styles for the futuristic navigation experience
 * March 24, 2025
 */

/* Base styles & Custom properties */
:root {
  --primary: #6366f1; /* Indigo */
  --primary-dark: #4f46e5;
  --secondary: #06b6d4; /* Cyan */
  --accent: #a855f7; /* Purple */
  --dark-bg: #111827;
  --darker-bg: #030712;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --navbar-bg: rgba(17, 24, 39, 0.7); /* Semi-transparent navbar background */
  --glass-effect: blur(12px);
  --transition-normal: all 0.3s ease;
  --border-glow: rgba(99, 102, 241, 0.3);
  --neon-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
  --glow-cyan: 0 0 15px rgba(6, 182, 212, 0.5);
  --glow-indigo: 0 0 15px rgba(99, 102, 241, 0.5);
  --glow-purple: 0 0 15px rgba(168, 85, 247, 0.5);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /* Enable smooth scrolling */
  scroll-padding-top: 80px; /* Account for fixed navbar */
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: var(--darker-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.5s ease;
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--primary-dark), var(--accent));
}

/* Navigation Bar Styles */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--navbar-bg);
  backdrop-filter: var(--glass-effect);
  -webkit-backdrop-filter: var(--glass-effect); /* For Safari */
  border-bottom: 1px solid var(--border-glow);
  z-index: 1000;
  transition: var(--transition-normal);
  height: 70px;
}

#navbar.scrolled {
  /* padding: 0.5rem 0; */
  background-color: rgba(17, 24, 39, 0.9); /* More opaque when scrolled */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Navbar Logo */
.logo {
  display: flex;
  align-items: center;
}

/* Navigation Links */
.nav-link {
  position: relative;
  overflow: hidden;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, rgb(6, 182, 212), rgb(99, 102, 241));
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link:hover {
  color: var(--secondary);
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
}

/* Mobile Navigation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
  max-height: 2000px; /* Adjust based on your menu height */
}

#mobile-menu-button {
  background: transparent;
  border: none;
  cursor: pointer;
}

/* For the hamburger animation */
#mobile-menu-button.active #line1 {
  transform: translate(-50%, -50%) rotate(45deg);
  transform-origin: center;
}

#mobile-menu-button.active #line2 {
  opacity: 0;
}

#mobile-menu-button.active #line3 {
  transform: translate(-50%, -50%) rotate(-45deg);
  transform-origin: center;
}

#line1, #line2, #line3 {
  transition: transform 0.3s ease, opacity 0.2s ease, background-color 0.3s ease;
  transform-origin: center;
}

/* Section Styles */
section {
  padding: 6rem 0;
  /*min-height: 100vh;*/
  display: flex;
  align-items: center;
}

/*section:first-of-type {
  padding-top: 8rem;
}
*/

/* Gradient Text */
.gradient-text {
  background: linear-gradient(to right, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Glow Effects */
.glow-effect {
  position: relative;
}

.glow-effect:before {
  content: '';
  position: absolute;
  inset: -5px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(8px);
}

.glow-effect:hover:before {
  opacity: 1;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(to right, var(--primary), var(--accent));
  color: white;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--neon-shadow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--secondary);
  color: var(--secondary);
}

.btn-outline:hover {
  background-color: rgba(6, 182, 212, 0.1);
  transform: translateY(-3px);
}

.contact-btn {
  position: relative;
  overflow: hidden;
}

.contact-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(6, 182, 212, 0.2) 45%,
    rgba(6, 182, 212, 0.4) 50%,
    rgba(6, 182, 212, 0.2) 55%,
    transparent 60%
  );
  transition: transform 0.5s ease;
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
}

.contact-btn:hover::before {
  transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
  animation: fadeIn 0.8s ease forwards;
}

@keyframes pulse {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Card Styles */
.card {
  background-color: rgba(17, 24, 39, 0.7);
  backdrop-filter: var(--glass-effect);
  border: 1px solid var(--border-glow);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: var(--transition-normal);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--neon-shadow);
  border-color: rgba(99, 102, 241, 0.5);
}

.card-hover-effect {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-effect:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-cyan);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(31, 41, 55, 0.5);
  border: 1px solid rgba(75, 85, 99, 0.5);
  border-radius: 0.5rem;
  color: var(--text-primary);
  transition: var(--transition-normal);
}

.form-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

/* Grid System */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }

/* Responsive Layout */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  
  /* Show desktop nav, hide mobile nav */
  .mobile-only { display: none; }
}

@media (max-width: 767px) {
  .desktop-only { display: none; }
  
  section {
    padding: 4rem 0;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  #navbar {
    height: auto;
  }
  
  .nav-link::after {
    display: none;
  }
}

/* Dark Overlay for Modals */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Background Decorations */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(6, 182, 212, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
  z-index: -1;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 70%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

.bg-glow.top-right {
  top: -20%;
  right: -20%;
}

.bg-glow.bottom-left {
  bottom: -20%;
  left: -20%;
}

/* Footer Styles */
footer {
  background-color: rgba(17, 24, 39, 0.8);
  backdrop-filter: var(--glass-effect);
  border-top: 1px solid var(--border-glow);
  padding: 3rem 0;
}

.footer-link {
  color: var(--text-secondary);
  transition: var(--transition-normal);
}

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

/* Section transitions and animations */
.section-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-highlight {
  position: relative;
}

.section-highlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.1), transparent 70%);
  opacity: 0;
  animation: pulse 1s ease;
  pointer-events: none;
  z-index: -1;
}

/* Enhanced accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Header animation */
.text-6xl {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}


/* Enhance focus styles for accessibility */
a:focus, button:focus {
  outline: 2px solid rgba(6, 182, 212, 0.5);
  outline-offset: 2px;
}

/* Style the scrollbar for a futuristic look */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #0891b2, #4f46e5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #06b6d4, #6366f1);
}












.newsletter .newsletter-container p {
  margin: 0;
  font-size: 16px;
  padding: 10px 0;
  color: #8d96a3;
  text-align: center;
}



.newsletter .newsletter-container .newsletter-msg {
  padding: 5px 0;
}

.newsletter-popup {
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  transition: all 0.3s ease;
}
.newsletter-popup .newsletter-container {
  position: relative;
  display: flex;
  flex-flow: column;
  padding: 30px;
  background-color: #fff;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  transform: scale(0.3);
  transition: all 0.3s ease;
}
.newsletter-popup .newsletter-container.open {
  transform: scale(1);
}
.newsletter-popup .newsletter-container h3 {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 500;
  margin: 0;
  padding: 10px 0 10px;
  color: #3f4e64;
}
.newsletter-popup .newsletter-container h3 .icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  min-width: 35px;
  height: 35px;
  min-height: 35px;
  border-radius: 50%;
  background-color: #3f4e64;
  margin-right: 10px;
}
.newsletter-popup .newsletter-container h3 .icon svg {
  fill: #fff;
}
.newsletter-popup .newsletter-container p {
  margin: 0;
  padding: 15px 0;
  color: #8d96a3;
}
.newsletter-popup .newsletter-container form {
  display: flex;
  padding: 15px 0 10px;
}
.newsletter-popup .newsletter-container form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #e7eaee;
  outline: none;
}
.newsletter-popup .newsletter-container form input::placeholder {
  color: #989ea5;
}
.newsletter-popup .newsletter-container form button {
  width: 200px;
  appearance: none;
  background-color: #3f4e64;
  font-weight: 500;
  font-size: 14px;
  color: #fff;
  border: 0;
  cursor: pointer;
}
.newsletter-popup .newsletter-container form button:hover {
  background-color: #354254;
}
.newsletter-popup .newsletter-container .newsletter-close-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  text-decoration: none;
  color: #ddd;
  font-size: 30px;
  line-height: 20px;
}
.newsletter-popup .newsletter-container .newsletter-close-btn:hover {
  color: #c4c4c4;
}
.newsletter-popup .newsletter-container .newsletter-msg {
  padding: 5px 0;
}
.newsletter-popup.open {
  display: flex;
  background-color: rgba(0, 0, 0, 0.4);
}

.newsletter .loader, .newsletter-popup .loader {
  display: inline-block;
  border: 2px solid #999;
  border-top: 2px solid #eee;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: spin 1s ease infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.send-newsletter-form {
  background-color: #fff;
  width: 500px;
  margin: 0 auto;
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
}
.send-newsletter-form h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 25px;
  font-size: 20px;
  text-align: center;
  border-bottom: 1px solid #eceff2;
  color: #6a737f;
  font-weight: 600;
  background-color: #f9fbfc;
}
.send-newsletter-form h1 i {
  padding-right: 10px;
  font-size: 24px;
}
.send-newsletter-form .fields {
  position: relative;
  padding: 20px;
}
.send-newsletter-form input[type=text] {
  margin-top: 15px;
  padding: 15px;
  border: 1px solid #dfe0e0;
  width: 100%;
  outline: 0;
  font-size: 14px;
}
.send-newsletter-form input[type=text]:focus {
  border: 1px solid #c6c7c7;
}
.send-newsletter-form textarea {
  resize: none;
  margin-top: 15px;
  padding: 15px;
  border: 1px solid #dfe0e0;
  width: 100%;
  height: 150px;
  outline: 0;
  font-size: 14px;
}
.send-newsletter-form textarea:focus {
  border: 1px solid #c6c7c7;
}
.send-newsletter-form input[type=submit] {
  display: block;
  margin-top: 15px;
  padding: 15px;
  border: 0;
  background-color: #cb5f51;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  width: 100%;
}
.send-newsletter-form input[type=submit]:hover {
  background-color: #c15b4d;
}
.send-newsletter-form input[type=submit]:disabled {
  background-color: #999999;
}
.send-newsletter-form .field {
  display: inline-flex;
  position: relative;
  width: 100%;
  padding-bottom: 20px;
}
.send-newsletter-form label {
  font-size: 14px;
  font-weight: 600;
  color: #8e939b;
}
.send-newsletter-form .responses {
  padding: 0;
  margin: 0;
}
.send-newsletter-form .multi-select-list {
  border: 1px solid #dfe0e0;
  margin: 15px 0;
  overflow-y: auto;
  max-height: 150px;
}
.send-newsletter-form .multi-select-list label {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #f3f3f3;
}
.send-newsletter-form .multi-select-list label input {
  margin-right: 15px;
}
.send-newsletter-form .multi-select-list label:last-child {
  border-bottom: 0;
}

.unsubscribe, .confirmed {
  background-color: #f3f4f7;
}
.unsubscribe .unsubscribe-form, .unsubscribe .confirmed-wrapper, .confirmed .unsubscribe-form, .confirmed .confirmed-wrapper {
  display: flex;
  flex-flow: column;
  background-color: #fff;
  width: 100%;
  max-width: 500px;
  margin: 60px auto;
  border-radius: 10px;
  padding: 45px;
  box-shadow: 0px 0px 6px 1px rgba(45, 54, 68, 0.05);
}
.unsubscribe .unsubscribe-form h1, .unsubscribe .confirmed-wrapper h1, .confirmed .unsubscribe-form h1, .confirmed .confirmed-wrapper h1 {
  font-size: 20px;
  font-weight: 600;
  color: #666b72;
  margin: 0;
  padding: 15px 0;
}
.unsubscribe .unsubscribe-form p, .unsubscribe .confirmed-wrapper p, .confirmed .unsubscribe-form p, .confirmed .confirmed-wrapper p {
  font-size: 16px;
  color: #6b6f75;
  margin: 0;
  padding: 10px 0;
}
.unsubscribe .unsubscribe-form textarea, .unsubscribe .confirmed-wrapper textarea, .confirmed .unsubscribe-form textarea, .confirmed .confirmed-wrapper textarea {
  resize: none;
  padding: 15px;
  border: 1px solid #dfe0e0;
  width: 100%;
  height: 150px;
  outline: 0;
  font-size: 14px;
  margin-top: 10px;
}
.unsubscribe .unsubscribe-form textarea:focus, .unsubscribe .confirmed-wrapper textarea:focus, .confirmed .unsubscribe-form textarea:focus, .confirmed .confirmed-wrapper textarea:focus {
  border: 1px solid #c6c7c7;
}
.unsubscribe .unsubscribe-form textarea::placeholder, .unsubscribe .confirmed-wrapper textarea::placeholder, .confirmed .unsubscribe-form textarea::placeholder, .confirmed .confirmed-wrapper textarea::placeholder {
  color: #8e939b;
}
.unsubscribe .unsubscribe-form button, .unsubscribe .confirmed-wrapper button, .confirmed .unsubscribe-form button, .confirmed .confirmed-wrapper button {
  padding: 12px;
  border: 0;
  background-color: #cb5f51;
  font-weight: 500;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  width: 100px;
  font-size: 14px;
  margin: 25px 0 10px 0;
  box-shadow: 0px 0px 6px 1px rgba(45, 54, 68, 0.1);
}
.unsubscribe .unsubscribe-form button:hover, .unsubscribe .confirmed-wrapper button:hover, .confirmed .unsubscribe-form button:hover, .confirmed .confirmed-wrapper button:hover {
  background-color: #c15b4d;
}

