/*
A Documentation website about the organization: PROJECT TEST
Copyright (C) 2024  ProjectTEST

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

/* CSS Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #10A2D7;
  --primary-light: #2dc0f5;
  --primary-dark: #0882b2;
  --accent: #E91E63;
  --background: #0a0a10;
  --surface: #16161e;
  --surface-light: #21212d;
  --text: #f0f0f5;
  --text-secondary: #a0a0b0;
  --success: #4CAF50;
  --info: #03A9F4;
  --purple: #9C27B0;
}

/* General Styles */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

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

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 16, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  background: linear-gradient(90deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-menu li a {
  text-decoration: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--purple));
  transition: width 0.3s ease;
}

.nav-menu li a:hover {
  color: var(--primary-light);
}

.nav-menu li a:hover::after {
  width: 100%;
}

/* Fixed modernized nav style */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 16, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.3s ease;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--purple));
  transition: width 0.3s ease;
}

nav ul li a:hover {
  color: var(--primary-light);
}

nav ul li a:hover::after {
  width: 100%;
}

/* Hero with animated background */
.hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

#nnCanvas {
  width: 100%;
  height: 100%;
}

/* Main Content */
main {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 120px auto 3rem;
  padding: 2.5rem;
  background: rgba(22, 22, 30, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

h1::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--purple));
  bottom: -10px;
  left: 0;
  border-radius: 4px;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

a:hover {
  color: var(--primary-light);
  transform: translateX(3px);
}

/* Contact Links */
.contact-links {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface-light);
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-link:hover {
  background: rgba(16, 162, 215, 0.1);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.contact-link-icon {
  font-size: 1.5rem;
  color: var(--primary);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--surface-light);
  color: var(--text);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 1.2rem;
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-5px);
}

/* Footer styling to ensure consistency across all pages */
.footer {
  background: var(--surface);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: inline-block;
  color: var(--text);
  text-decoration: none;
}

.footer-logo span {
  background: linear-gradient(90deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
}

.footer-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  color: var(--text);
}

.footer-column h4::before {
  content: '';
  position: absolute;
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--purple));
  bottom: -10px;
  left: 0;
  border-radius: 3px;
}

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

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer .social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface-light);
  color: var(--text);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer .social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

/* Header & Navigation Styles */
.menu-toggle {
  display: none; /* Hide by default on larger screens */
  background: transparent;
  border: none;
  color: var(--text); /* Use your theme's text color */
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001; /* Ensure it's clickable when shown */
}

/* Responsive Styles */
@media (max-width: 768px) {
  nav ul {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  
  main {
    margin-top: 140px;
    padding: 1.5rem;
    margin-left: 1rem;
    margin-right: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .menu-toggle {
    display: block; /* Show only on smaller screens */
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 999;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    padding: 2rem;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu li {
    width: 100%;
    text-align: center;
  }
  
  .nav-menu li a {
    display: block;
    padding: 1rem 0;
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  nav {
    padding: 1rem 0;
  }
  
  main {
    padding: 1.5rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  p {
    font-size: 1rem;
  }
  
  .social-links {
    justify-content: center;
  }
}
