:root {
  --primary: #58a6ff;
  --secondary: #bc8cff;
  --success: #3fb950;
  --danger: #f85149;
  --bg-dark: #0d1117;
  --bg-darker: #010409;
  --text-primary: #c9d1d9;
  --text-secondary: #8b949e;
  --border: #30363d;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Particles Background */
.particles-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

/* Header Styles */
.dynamic-header {
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 3.5rem;
  font-weight: 800;
  margin: 0;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.header-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-box {
  background: rgba(88, 166, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 2rem;
  min-width: 120px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Navigation */
.smart-nav {
  background-color: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.nav-links a i {
  font-size: 0.9rem;
}

.nav-actions {
  display: flex;
  gap: 1rem;
}

/* Toggle Switch */
.switch {
  font-size: 14px;
  position: relative;
  display: inline-block;
  width: 4em;
  height: 2em;
  user-select: none;
  margin-left: 10px;
}

.switch .cb {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle {
  position: absolute;
  cursor: pointer;
  width: 100%;
  height: 100%;
  background-color: #373737;
  border-radius: 0.1em;
  transition: 0.4s;
  text-transform: uppercase;
  font-weight: 700;
  overflow: hidden;
  box-shadow: -0.2em 0 0 0 #373737, -0.2em 0.2em 0 0 #373737,
              0.2em 0 0 0 #373737, 0.2em 0.2em 0 0 #373737,
              0 0.2em 0 0 #373737;
}

.toggle > .left {
  position: absolute;
  display: flex;
  width: 50%;
  height: 88%;
  background-color: #f3f3f3;
  color: #373737;
  left: 0;
  bottom: 0;
  align-items: center;
  justify-content: center;
  transform-origin: right;
  transform: rotateX(10deg);
  transform-style: preserve-3d;
  transition: all 150ms;
  font-size: 0.7em;
}

.toggle > .right {
  position: absolute;
  display: flex;
  width: 50%;
  height: 88%;
  background-color: #f3f3f3;
  color: rgb(206, 206, 206);
  right: 1px;
  bottom: 0;
  align-items: center;
  justify-content: center;
  transform-origin: left;
  transform: rotateX(10deg) rotateY(-45deg);
  transform-style: preserve-3d;
  transition: all 150ms;
  font-size: 0.7em;
}

.left::before, .right::before, 
.left::after, .right::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
}

.left::before, .right::before {
  background-color: rgb(206, 206, 206);
}

.left::after, .right::after {
  background-color: rgb(112, 112, 112);
}

.left::before { transform: rotateY(90deg); }
.right::before { transform: rotateY(-90deg); }
.left::after, .right::after { transform: rotateX(90deg); }

.switch input:checked + .toggle > .left {
  transform: rotateX(10deg) rotateY(45deg);
  color: rgb(206, 206, 206);
}

.switch input:checked + .toggle > .right {
  transform: rotateX(10deg) rotateY(0deg);
  color: #487bdb;
}

/* Light Mode */
body.light-mode {
  --bg-dark: #f6f8fa;
  --bg-darker: #ffffff;
  --text-primary: #24292e;
  --text-secondary: #586069;
  --border: #e1e4e8;
  --primary: #0366d6;
  --secondary: #6f42c1;
  background-color: var(--bg-dark);
  color: var(--text-primary);
}

body.light-mode .particles-background {
  background: linear-gradient(135deg, #ffffff 0%, #f6f8fa 100%);
}

body.light-mode .smart-nav {
  background-color: rgba(246, 248, 250, 0.8);
}

body.light-mode .gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

body.light-mode .stat-box,
body.light-mode .feature-card,
body.light-mode .code-window {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: var(--border);
}

body.light-mode .smart-footer {
  background: var(--bg-darker);
}

/* About Page Specific Styles */
.about-hero {
  position: relative;
  padding: 8rem 0 6rem;
  text-align: center;
  overflow: hidden;
}

.profile-container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: flex-start;
  margin-top: 3rem;
}

.profile-image {
  position: sticky;
  top: 120px;
  text-align: center;
}

.profile-pic {
  width: 100%;
  max-width: 300px;
  border-radius: 50%;
  border: 5px solid var(--primary);
  box-shadow: 0 10px 30px rgba(88, 166, 255, 0.2);
  transition: transform 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.05);
}

.tech-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.tech-icons i {
  font-size: 2rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.tech-icons i:hover {
  color: var(--primary);
  transform: translateY(-5px);
}

.about-text {
  background: rgba(13, 17, 23, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.mission-statement {
  background: rgba(88, 166, 255, 0.1);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
}

.mission-statement h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.mission-statement p {
  font-style: italic;
  font-size: 1.1rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background: rgba(13, 17, 23, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
  text-align: center;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(1, 4, 9, 0.3);
  border-color: var(--primary);
}

.value-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.value-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.harvard-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, rgba(1, 4, 9, 0.8) 0%, rgba(13, 17, 23, 0.9) 100%);
  margin: 4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.harvard-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.harvard-text {
  padding-right: 2rem;
}

.harvard-image {
  display: flex;
  justify-content: center;
}

.harvard-pic {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.progress-container {
  margin-top: 2rem;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background-color: var(--bg-darker);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 5px;
  transition: width 2s ease;
}

.progress-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cta-section {
  text-align: center;
  padding: 4rem 0;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-content p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--text-secondary);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-button {
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.2s;
}

.cta-button.primary {
  background-color: var(--primary);
  color: white;
}

.cta-button.secondary {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.cta-button:hover {
  transform: translateY(-2px);
}

/* Footer */
.smart-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-about h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-about p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--text-secondary);
  font-size: 1.25rem;
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--primary);
}

.footer-links h3, .footer-newsletter h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

#newsletter-form {
  display: flex;
  gap: 0.5rem;
}

#newsletter-form input {
  flex: 1;
  padding: 0.75rem;
  background: rgba(1, 4, 9, 0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
}

#newsletter-form button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0 1.5rem;
  border-radius: 6px;
  cursor: pointer;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-bottom i {
  color: var(--danger);
}

/* Responsive Design */
@media (max-width: 992px) {
  .profile-container {
    grid-template-columns: 1fr;
  }
  
  .profile-image {
    position: relative;
    top: auto;
    margin-bottom: 2rem;
  }
  
  .harvard-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .harvard-text {
    padding-right: 0;
    order: 2;
  }
  
  .harvard-image {
    order: 1;
  }
}

@media (max-width: 768px) {
  .header-stats {
    flex-direction: column;
  }
  
  .stat-box {
    width: 100%;
    max-width: 250px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-links {
    display: none;
  }
}