:root {
    --primary-color: #66FCF1;
    --primary-dark: #45A29E;
    --dark-bg: #0B0C10;
    --darker-bg: #1F2833;
    --input-bg: #2A2A2A;
    --text-light: #FFFFFF;
    --text-muted: #AAAAAA;
}

/* Particles Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
}

/* General Reset */
body {
    margin: 0;
    background: transparent; /* Let particles show through */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-light);
}

/* Navbar Base */
.navbar {
  background-color: var(--darker-bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  padding: 15px 0 !important;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  
}

/* Navbar when scrolled */
.navbar.scrolled {
  padding: 10px 0;
  background-color: rgba(31, 40, 51, 0.95);
  backdrop-filter: blur(10px);
}

/* Brand Styling */
.navbar-brand {
  color: var(--primary-color) !important;
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 1px;
  transition: color 0.3s ease, transform 0.3s ease;
  text-decoration: none !important;
}

.navbar-brand:hover {
  color: #ffffff !important;
  transform: scale(1.05);
  text-decoration: none !important;
}

/* Nav Link Buttons */
.nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  padding: 10px 15px !important;
  margin: 0 5px;
  border-radius: 20px;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.nav-link:hover {
  color: var(--dark-bg) !important;
  background-color: #ffffff !important;
  text-decoration: none !important;
}

/* Active State (optional styling) */
.active {
  color: var(--dark-bg) !important; /* white text */
  background-color: var(--primary-color) !important;
  border-radius: 20px;
}

/* Navbar Toggler */
.navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  width: 30px;
  height: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.navbar-toggler-icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--primary-color);
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: all 0.3s ease;
}

.navbar-toggler-icon span:nth-child(1) { top: 0; }
.navbar-toggler-icon span:nth-child(2),
.navbar-toggler-icon span:nth-child(3) { top: 10px; }
.navbar-toggler-icon span:nth-child(4) { top: 20px; }

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span:nth-child(1),
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span:nth-child(4) {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span:nth-child(2) {
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span:nth-child(3) {
  transform: rotate(-45deg);
}

/* Signup Section */
.signup-section {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.illustration {
    position: relative;
    padding: 2rem;
}

.illustration img {
    max-width: 100%;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      
}


/* Signup Form */
.signup-form {
    max-width: 450px;
    margin: 0 auto;
    padding: 2.5rem;
    background: rgba(42, 42, 42, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(102, 252, 241, 0.1);
    transition: all 0.3s ease;
}

.signup-form:hover {
    border-color: rgba(102, 252, 241, 0.3);
}

.signup-form h2 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-color);
    position: relative;
}

.signup-form h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Form Elements */
.form-control, .form-select {
    background: var(--input-bg);
    border: 1px solid #444;
    color: var(--text-light);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.form-control:focus, .form-select:focus {
    background: var(--input-bg);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(102, 252, 241, 0.25);
    color: var(--text-light);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Password Input Container */
.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* Checkbox */
.form-check-input {
    background-color: var(--input-bg);
    border-color: #444;
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.2em;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    margin-left: 0.5rem;
    color: var(--text-muted);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color) !important;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem;
    color: var(--dark-bg);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 252, 241, 0.3);
}

/* Social Buttons */
.social-signup {
    margin-top: 1.5rem;
}

.social-signup p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    position: relative;
}

.social-signup p::before,
.social-signup p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.social-signup p::before {
    left: 0;
}

.social-signup p::after {
    right: 0;
}

.social-signup button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.social-signup button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-signup i {
    font-size: 1.2rem;
}

/* Links */
.text-light a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.text-light a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Footer */
footer {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .signup-section {
        padding: 1rem 0;
    }
    
    .illustration {
        display: none;
    }
    
    .signup-form {
        padding: 1.5rem;
    }
}

/* Password Strength Meter */
.password-strength {
    height: 5px;
    background: #444;
    border-radius: 5px;
    margin-top: -10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.password-strength span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* Tooltip for password requirements */
.tooltip-custom {
    --bs-tooltip-bg: var(--primary-color);
    --bs-tooltip-color: var(--dark-bg);
}

/* New Footer Styling */
.custom-footer {
  background: linear-gradient(135deg, #1E1B3A, #2C2A52);
  color: #F8F8F8;
  padding: 2rem 1.5rem;
  font-family: 'Segoe UI', sans-serif;
  backdrop-filter: blur(4px);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  padding-bottom: 1.5rem; /* Removed border-bottom */
}

.footer-box {
  flex: 1;
  min-width: 220px;
  padding-left: 1rem;
}

.footer-box h2 {
  font-size: 1.8rem;
  font-weight: 800; /* Bold CODE-PULSE */
  color: #66FCF1;
  font-family: 'Courier New', monospace;
  margin-bottom: 0.5rem;
}

.footer-box h3 {
  font-size: 1.1rem;
  color: #FFA6F1;
  margin-bottom: 0.7rem;
}

.footer-box p,
.footer-box a {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #EEE;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-box a:hover {
  color: #66FCF1;
  padding-left: 5px;
}

.footer-box i {
  margin-right: 6px;
}

.footer-credits {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 1.2rem;
  color: #BBBBBB;
}

.footer-credits a {
  color: #66FCF1;
  text-decoration: underline;
}
