/* ===== CONNECTIFY X PROFESSIONAL STYLES ===== */

/* CSS Variables */
:root {
  --primary-color: #4FBA5D;
  --primary-dark: #368163;
  --primary-light: #5fd666;
  --dark-bg: #0F0A0A;
  --card-bg: #23232b;
  --text-primary: #E0E2DB;
  --text-secondary: #B0B0B0;
  --border-color: rgba(79, 186, 93, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --border-radius: 1.5rem;
  --transition: all 0.3s ease;
  --insecure-color: #ff6b6b;
  --text-color-primary: var(--primary-color);
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { 
  scroll-behavior: smooth; 
}

body { 
  font-family: 'Inter', sans-serif; 
  background: var(--dark-bg); 
  color: var(--text-primary); 
  line-height: 1.6; 
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== TYPOGRAPHY ===== */
.glow { 
  text-shadow: 0 0 18px var(--primary-color), 0 0 32px var(--primary-color); 
}

.gradient-text { 
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark), var(--primary-light)); 
  -webkit-background-clip: text; 
  background-clip: text; 
  -webkit-text-fill-color: transparent; 
  color: transparent; 
}

/* ===== NAVIGATION STYLES ===== */
.navbar {
  background: rgba(15, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
}

.logo {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.logo:hover {
  color: var(--primary-light);
  text-shadow: 0 0 20px rgba(79, 186, 93, 0.5);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile Navigation */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  z-index: 1001;
  position: relative;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  transition: var(--transition);
  border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(15, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  transition: right 0.3s ease;
  z-index: 1000;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  transition: var(--transition);
}

.mobile-menu a:hover {
  color: var(--primary-color);
}

/* ===== NEW NAVBAR STYLES ===== */
.navbar-new {
  background: rgba(15, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: var(--transition);
}

.navbar-logo:hover {
  text-shadow: 0 0 20px rgba(79, 186, 93, 0.5);
}

.navbar-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.navbar-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.navbar-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.navbar-link:hover {
  color: var(--primary-color);
}

.navbar-link:hover::after {
  width: 100%;
}

.navbar-mobile-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  background: none;
  border: none;
  padding: 0.5rem;
}

.navbar-mobile-line {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  transition: var(--transition);
  border-radius: 2px;
}

.navbar-mobile-btn.active .navbar-mobile-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-mobile-btn.active .navbar-mobile-line:nth-child(2) {
  opacity: 0;
}

.navbar-mobile-btn.active .navbar-mobile-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.navbar-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(15, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  transition: right 0.3s ease;
  z-index: 999;
}

.navbar-mobile-menu.active {
  right: 0;
}

.navbar-mobile-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  transition: var(--transition);
}

.navbar-mobile-link:hover {
  color: var(--primary-color);
}

/* Mobile Navbar Styles */
@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }
  
  .navbar-mobile-btn {
    display: flex;
  }
  
  .navbar-brand {
    display: none; /* Hide "Connectify X" text on mobile */
  }
  
  .navbar-icon {
    width: 2rem;
    height: 2rem;
  }
}

@media (max-width: 480px) {
  .navbar-container {
    padding: 0 1rem;
  }
}

/* ===== CARD COMPONENTS ===== */
.card { 
  background: var(--card-bg); 
  border-radius: var(--border-radius); 
  box-shadow: var(--shadow); 
  transition: var(--transition); 
  position: relative; 
  overflow: hidden; 
  border: 1px solid var(--border-color);
  padding: 2rem;
}

.card:hover { 
  transform: translateY(-8px) scale(1.02); 
  box-shadow: 0 20px 60px rgba(79, 186, 93, 0.3), 0 0 0 2px rgba(79, 186, 93, 0.2); 
}

.card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.card p {
  color: var(--text-primary);
  line-height: 1.6;
}

/* ===== BUTTONS ===== */
.btn-main { 
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); 
  color: #fff; 
  font-weight: 700; 
  border-radius: 9999px; 
  padding: 1rem 2.5rem; 
  font-size: 1.125rem; 
  box-shadow: 0 4px 16px rgba(79, 186, 93, 0.3); 
  transition: var(--transition); 
  position: relative; 
  overflow: hidden;
  border: none;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.btn-main::after { 
  content: ''; 
  position: absolute; 
  left: -75%; 
  top: 0; 
  width: 50%; 
  height: 100%; 
  background: linear-gradient(120deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.0) 100%); 
  transform: skewX(-20deg); 
  transition: left 0.5s ease; 
}

.btn-main:hover::after { 
  left: 120%; 
}

.btn-main:hover { 
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)); 
  transform: translateY(-2px); 
  box-shadow: 0 8px 24px rgba(79, 186, 93, 0.4); 
}

.btn-secondary { 
  background: rgba(79, 186, 93, 0.1); 
  color: var(--primary-color); 
  font-weight: 600; 
  border: 1px solid var(--primary-color);
  border-radius: 8px; 
  padding: 0.75rem 1.5rem; 
  font-size: 0.875rem; 
  transition: var(--transition); 
  position: relative; 
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.btn-secondary:hover { 
  background: rgba(79, 186, 93, 0.2); 
  transform: translateY(-1px); 
  box-shadow: 0 4px 12px rgba(79, 186, 93, 0.2); 
}

.btn-small { 
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); 
  color: #fff; 
  font-weight: 600; 
  border-radius: 12px; 
  padding: 1rem 2rem; 
  font-size: 1rem; 
  box-shadow: 0 4px 16px rgba(79, 186, 93, 0.3); 
  transition: var(--transition); 
  position: relative; 
  overflow: hidden;
  border: none;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.btn-small:hover { 
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)); 
  transform: translateY(-2px); 
  box-shadow: 0 6px 20px rgba(79, 186, 93, 0.4); 
}

.btn-disabled {
  cursor: not-allowed !important;
  opacity: 0.7;
  pointer-events: none;
}

.btn-disabled:hover {
  transform: none !important;
  box-shadow: 0 4px 16px rgba(79, 186, 93, 0.3) !important;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

/* ===== HERO SECTION ===== */
.hero-bg-anim { 
  position: absolute; 
  left: 50%; 
  top: 0; 
  transform: translateX(-50%); 
  width: 120vw; 
  height: 80vh; 
  z-index: 0; 
  pointer-events: none; 
}

.hero-bg-anim span { 
  position: absolute; 
  border-radius: 50%; 
  filter: blur(60px); 
  opacity: 0.18; 
  animation: heroBlob 12s infinite alternate; 
}

.hero-bg-anim .b1 { 
  background: var(--primary-color); 
  width: 400px; 
  height: 400px; 
  left: 10%; 
  top: 10%; 
  animation-delay: 0s; 
}

.hero-bg-anim .b2 { 
  background: var(--primary-dark); 
  width: 300px; 
  height: 300px; 
  left: 60%; 
  top: 30%; 
  animation-delay: 2s; 
}

.hero-bg-anim .b3 { 
  background: var(--text-primary); 
  width: 250px; 
  height: 250px; 
  left: 30%; 
  top: 60%; 
  animation-delay: 4s; 
}

/* Floating Particles */
.particle { 
  position: absolute; 
  border-radius: 50%; 
  opacity: 0.13; 
  pointer-events: none; 
  animation: particleFloat 8s infinite alternate; 
}

.p1 { width: 32px; height: 32px; left: 12%; top: 22%; background: var(--primary-color); animation-delay: 0s; }
.p2 { width: 20px; height: 20px; left: 80%; top: 40%; background: var(--primary-dark); animation-delay: 1.5s; }
.p3 { width: 18px; height: 18px; left: 30%; top: 70%; background: var(--text-primary); animation-delay: 3s; }
.p4 { width: 24px; height: 24px; left: 5%; top: 50%; background: var(--primary-color); animation-delay: 4.5s; }
.p5 { width: 28px; height: 28px; left: 90%; top: 10%; background: var(--primary-dark); animation-delay: 6s; }
.p6 { width: 22px; height: 22px; left: 20%; top: 85%; background: var(--text-primary); animation-delay: 7.5s; }
.p7 { width: 26px; height: 26px; left: 60%; top: 5%; background: var(--primary-color); animation-delay: 9s; }

/* ===== SECTION STYLES ===== */
.main-content {
  padding-top: 70px; /* Account for smaller fixed navbar */
  min-height: 100vh;
}

.page-title {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--card-bg) 100%);
  padding: 3rem 0;
  text-align: center;
  margin-top: -70px;
  padding-top: calc(3rem + 70px);
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
}

.section-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
}

.section-content-wrapper h3 {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.section-content-wrapper p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 3rem;
}

.encryption-visual {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-icon {
  width: 60px;
  height: 60px;
  stroke: var(--primary-color);
  stroke-width: 2px;
  fill: none;
  z-index: 2;
  position: relative;
}

.data-stream {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.data-particle {
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: stream-and-encrypt 4s infinite linear;
}

@keyframes stream-and-encrypt {
  0% {
    transform: translateX(-20px) translateY(-50%);
    background-color: var(--insecure-color);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  49% {
    transform: translateX(280px) translateY(-50%) scale(1.2);
    background-color: var(--insecure-color);
  }
  50% {
    transform: translateX(300px) translateY(-50%) scale(1);
    background-color: var(--text-color-primary);
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(620px) translateY(-50%);
    background-color: var(--text-color-primary);
    opacity: 0;
  }
}

.data-particle:nth-child(1) { animation-delay: 0s; }
.data-particle:nth-child(2) { animation-delay: 0.2s; }
.data-particle:nth-child(3) { animation-delay: 0.4s; }
.data-particle:nth-child(4) { animation-delay: 0.6s; }
.data-particle:nth-child(5) { animation-delay: 0.8s; }
.data-particle:nth-child(6) { animation-delay: 1s; }
.data-particle:nth-child(7) { animation-delay: 1.2s; }
.data-particle:nth-child(8) { animation-delay: 1.4s; }

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 {
  transition-delay: 0.2s;
}

.animate-on-scroll.delay-2 {
  transition-delay: 0.4s;
}

/* ===== ANIMATIONS ===== */
.floating { 
  animation: float 4s ease-in-out infinite; 
}

@keyframes float { 
  0%, 100% { transform: translateY(0); } 
  50% { transform: translateY(-16px); } 
}

@keyframes heroBlob { 
  0% { transform: scale(1) translateY(0); } 
  100% { transform: scale(1.2) translateY(40px); } 
}

@keyframes particleFloat { 
  0% { transform: translateY(0); } 
  100% { transform: translateY(-24px) scale(1.1); } 
}

/* ===== TIMELINE STYLES ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background: linear-gradient(to bottom, var(--primary-color), var(--primary-dark));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background: var(--primary-color);
  border: 4px solid var(--dark-bg);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item:nth-child(even)::after {
  left: -16px;
}

.timeline-content {
  padding: 20px 30px;
  background: var(--glass-bg);
  position: relative;
  border-radius: 15px;
  border: 1px solid var(--border-color);
}

.timeline-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* ===== TEAM STYLES ===== */
.team-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--primary-color);
}

.team-avatar {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.team-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.team-role {
  color: var(--primary-dark);
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* ===== FORM STYLES ===== */
.contact-form {
  background: var(--glass-bg);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(79, 186, 93, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
}

.error-message {
  color: #ff4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

/* ===== FOOTER ===== */
.footer {
  background: rgba(0, 0, 0, 0.8);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

/* ===== NEW FOOTER STYLES ===== */
.footer-new {
  background: var(--dark-bg);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-icon {
  width: 2rem;
  height: 2rem;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-copyright {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-link {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--primary-color);
}

/* Mobile Footer Styles */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-logo {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-new {
    padding: 2rem 0;
  }
  
  .footer-container {
    padding: 0 1rem;
    gap: 1rem;
  }
  
  .footer-links {
    gap: 0.75rem;
  }
  
  .footer-icon {
    width: 1.5rem;
    height: 1.5rem;
  }
  
  .footer-brand {
    font-size: 1.25rem;
  }
}
