
:root {
  --primary-glow: #00e5ff;
  --secondary-glow: #00ff99;
  --text-primary: #e0f7fa;
  --text-secondary: #b2ebf2;
  --background-main: #020a10;
  --background-card: rgba(13, 37, 51, 0.5);
  --background-nav: rgba(2, 10, 16, 0.8);
  --border-color: rgba(0, 229, 255, 0.3);
  --border-hover: var(--primary-glow);
  --shadow-color: rgba(0, 229, 255, 0.2);
  --backdrop-blur: 10px;

  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
}


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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--background-main);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0, 255, 153, 0.2) 1px, transparent 0);
  background-size: 25px 25px;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ADDED: Prevents scrolling when mobile menu is active */
body.no-scroll {
  overflow: hidden;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Navigation Bar --- */
.navbar {
  background-color: var(--background-nav);
  backdrop-filter: blur(var(--backdrop-blur));
  -webkit-backdrop-filter: blur(var(--backdrop-blur));
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px var(--shadow-color);
}

.nav-brand h2 {
  font-family: var(--font-heading);
  color: var(--primary-glow);
  font-weight: 700;
  text-shadow: 0 0 8px var(--primary-glow);
}

.nav-brand a { text-decoration: none; color: inherit; }

.nav-menu { list-style: none; display: flex; gap: 2rem; align-items: center; }
.nav-item { position: relative; }

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: 600;
  letter-spacing: 1px;
}

.nav-link:hover, .nav-link:focus-visible {
  background: var(--shadow-color);
  color: var(--text-primary);
  text-shadow: 0 0 5px var(--primary-glow);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--background-main);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  min-width: 180px;
  z-index: 1001;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  backdrop-filter: blur(var(--backdrop-blur));
}

.dropdown:hover .dropdown-content { display: block; }

.dropdown-content a {
  color: var(--text-secondary);
  padding: 0.75rem 1rem;
  text-decoration: none;
  display: block;
  transition: all 0.2s;
  font-weight: 600;
}

.dropdown-content a:hover {
  background-color: var(--shadow-color);
  color: var(--text-primary);
  padding-left: 1.5rem;
}

/* --- Hero Section --- */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: var(--primary-glow);
  margin-bottom: 1rem;
  animation: text-flicker 4s linear infinite;
}

.hero-quote {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  margin-bottom: 2rem;
  font-style: italic;
  color: var(--text-secondary);
  opacity: 0.9;
}

/* --- Content & About Sections --- */
.content-section, .about-section {
  flex: 1;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-header, .about-content { text-align: center; width: 100%; }

.page-header h1, .about-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: var(--primary-glow);
  text-shadow: 0 0 12px var(--primary-glow);
  margin-bottom: 1rem;
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin-top: 3rem;
  width: 100%;
}

.subject-card {
  background-color: var(--background-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(5px);
}

.subject-card:hover, .subject-card:focus-within {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 30px var(--shadow-color);
  border-color: var(--border-hover);
}

.subject-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--primary-glow);
  margin-bottom: 0.75rem;
}

.subject-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--secondary-glow);
  background: transparent;
  color: var(--secondary-glow);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 600;
}

.subject-link:hover {
  background: var(--secondary-glow);
  color: #000;
  box-shadow: 0 0 15px var(--secondary-glow);
}

.about-description {
    max-width: 700px;
    margin: 1rem auto 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.project-signature {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 2px;
  margin: 2rem 0;
  color: var(--text-primary);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.project-signature .sujay-link {
  background: linear-gradient(90deg, var(--primary-glow), var(--secondary-glow));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  animation: gradient-pan 3s ease-in-out infinite;
  background-size: 200% 200%;
  text-shadow: none;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: auto;
  background: var(--background-main);
}


@keyframes text-flicker {
  0% { opacity: 0.8; } 5% { opacity: 0.5; } 10% { opacity: 0.9; }
  15% { opacity: 0.4; } 20% { opacity: 1; } 100% { opacity: 1; }
}

@keyframes gradient-pan {
  0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Mobile Responsiveness --- */

/* --- MOBILE STYLES (max-width: 768px) --- */
@media (max-width: 768px) {
  /* Hamburger Menu Button */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
    background: none; border: none; z-index: 1001;
    height: 24px;
    padding: 0;
  }
  .menu-toggle span {
    height: 3px; width: 25px; background: var(--primary-glow);
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
  }
  .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

  /* The slide-out menu container */
  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--background-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    gap: 1rem;
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-link {
    font-size: 1.5rem;
  }

  /* Dropdown positioning for MOBILE */
  .dropdown-content {
    top: 0;
    left: 100%; /* Position to the right of the parent */
  }

  /* "Cursor Gap" Fix for MOBILE */
  .nav-item {
    padding-right: 20px;
  }
  .dropdown-content {
    margin-left: -20px;
  }
}