/* Container Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: 2rem;
  padding-left: 2rem;
}

section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(3, 3, 7, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: background var(--transition-fast), padding var(--transition-fast);
}

.header.scrolled {
  background: rgba(3, 3, 7, 0.9);
  padding: 0.5rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: height var(--transition-fast);
}

.header.scrolled .nav-container {
  height: 64px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-header);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-high);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background-image: url('../images/logo.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text span {
  color: var(--color-primary);
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-mid);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--text-high);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width var(--transition-medium);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-login {
  color: var(--text-high);
  font-weight: 500;
}

.nav-login:hover {
  color: var(--color-primary);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-nav-toggle span {
  width: 28px;
  height: 2px;
  background-color: var(--text-high);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Footer Section */
.footer {
  background: #020204;
  border-top: 1px solid var(--border-glass);
  padding: 6rem 0 3rem 0;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1.5rem;
  color: var(--text-mid);
  max-width: 320px;
}

.footer-newsletter {
  margin-top: 2rem;
}

.footer-newsletter h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.newsletter-form {
  display: flex;
  max-width: 360px;
  position: relative;
}

.newsletter-input {
  width: 100%;
  padding: 0.75rem 1.25rem;
  padding-right: 4.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  color: var(--text-high);
  font-size: 0.9rem;
}

.newsletter-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.newsletter-btn {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  background: var(--gradient-brand);
  color: #030307;
  border-radius: 50px;
  width: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.newsletter-btn:hover {
  transform: scale(1.05);
}

.footer-col h4 {
  color: var(--text-high);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

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

.footer-links a {
  color: var(--text-mid);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-low);
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

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

/* Dynamic Grid / Common layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem auto;
}

.section-header h2 {
  margin-bottom: 1.5rem;
}

.section-header p {
  color: var(--text-mid);
  font-size: 1.15rem;
}

/* Forms general */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-high);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  color: var(--text-high);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

/* Mobile Media Queries */
@media (max-width: 1024px) {
  section { padding: 6rem 0; }
  .grid-2, .grid-3, .grid-4 { gap: 2rem; }
  .footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); }
  .footer-grid .footer-col:last-child { display: none; }
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(3, 3, 7, 0.95);
    backdrop-filter: blur(24px);
    border-left: 1px solid var(--border-glass);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    transition: right var(--transition-medium);
    z-index: 1000;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-actions {
    display: none;
  }
  
  .grid-2 { grid-template-columns: 1fr; gap: 3rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}
