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

:root {
  --bg-dark: #0a0a0f;
  --text-primary: #ffffff;
  --text-secondary: #b0b0c0;
  --accent-blue: #4a9eff;
  --accent-cyan: #00d4ff;
  --card-bg: rgba(20, 20, 30, 0.8);
  --card-border: rgba(74, 158, 255, 0.2);
}

html {
  scroll-behavior: smooth;
}

p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

@font-face {
  font-family: "URWClassico-Regular";
  src: url("./static/fonts/URWClassico-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  font-family: "URWClassico-Regular", Inter, system-ui, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

#background-video {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  object-fit: cover;
}

#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(74, 158, 255, 0.1);
  transition: all 0.3s ease;
}

#navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  height: 50px;
  display: flex;
  align-items: center;
}

.logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
  width: 90%;
}

#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-content h1 {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #958783;
  background-clip: text;
  letter-spacing: -2px;
  animation: fadeInUp 1s ease-out;
  margin: 0 auto;
}

.tagline {
  font-size: 3rem;
  color: var(--text-secondary);
  font-weight: 300;
  animation: fadeInUp 1s ease-out 0.2s both;
  width: 90%;
  margin: 0 auto;
  text-align: center;
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  min-height: 100vh;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.container {
  max-width: 90%;
  margin: 0 auto;
  width: 90%;
}

h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
}

.linkedin-link {
  display: none;
  color: #0077b5;
  font-size: 32px;
  margin: 0.5rem 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.linkedin-link:hover {
  color: #005582;
  transform: scale(1.1);
}

.content-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 90%;
}

.content-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 48px rgba(74, 158, 255, 0.2);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin: 0 auto;
  max-width: 600px;
  justify-items: center;
}

.team-member {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-box {
  max-width: 600px;
  margin: 0 auto;
}

.content-box p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  will-change: transform;
}

.content-box p:last-child {
  margin-bottom: 0;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 48px rgba(74, 158, 255, 0.2);
}

.member-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(74, 158, 255, 0.2),
    rgba(0, 212, 255, 0.2)
  );
  border: 3px solid var(--card-border);
  transition: transform 0.3s ease;
}

.team-member:hover .member-photo {
  transform: scale(1.05);
}

.team-member h3 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.member-title {
  font-size: 2rem;
  color: var(--accent-cyan);
  font-weight: 500;
  margin-bottom: 0.25rem;
  text-align: center;
  margin: 0 auto;
}

.member-credentials {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-style: italic;
  min-height: 1.5rem;
}

.member-bio {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 600;
  color: var(--text-secondary);
}

.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
  }

  .nav-links.active {
    display: flex;
  }
}

.contact-content {
  max-width: 700px;
  margin: 0 auto;
}

.contact-intro {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: "URWClassico-Regular", Inter, system-ui, sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 158, 255, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

#formStatus {
  margin-top: 1rem;
  text-align: center;
  font-weight: 500;
}

#formStatus.success {
  color: #4ade80;
}

#formStatus.error {
  color: #f87171;
}

footer {
  background: rgba(10, 10, 15, 0.9);
  border-top: 1px solid var(--card-border);
  padding: 2rem;
  text-align: center;
}

footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  html,
  body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
  }

  .nav-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-links {
    gap: 1.5rem;
    font-size: 0.9rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1.2rem;
    width: 95%; 
    padding: 0 1rem;
  }

  h2 {
    font-size: 2rem;
  }

  section {
    padding: 1rem 1.5rem;
  }

  .content-box,
  .contact-form {
    padding: 2rem;
  }
  
  #team .container {
    max-width: 90% !important;
    padding: 0 !important;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 100% !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .team-member {
    max-width: 90% !important;
    width: 90% !important;
    padding: 1rem !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
  }
  .team-member h3 {
    font-size: 1.8rem !important; 
  }

  .member-title {
    font-size: 1.2rem !important; 
  }

  .member-credentials {
    font-size: 0.85rem !important;
  }

  .member-bio {
    font-size: 0.95rem !important;
  }

  #background-video {
    display: none;
  }

  .fixed-mobile-bg {
    /* CRITICAL: This is what locks it to the viewport on all mobile browsers */
    position: fixed;

    /* Ensure it covers the entire viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* Place it behind all content */
    z-index: -1;

    /* Apply your background styles here */
    background-image: url("./static/background-mobile.jpeg");
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;

    /* Optional: Ensure body and html are full height for proper scrolling */
    html,
    body {
      height: 100%;
    }
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
    letter-spacing: -1px;
  }

  .tagline {
    font-size: 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  h2 {
    font-size: 1.75rem;
  }
}
