/* Modern Base Styles */
:root {
  --primary: #4361ee;
  --secondary: #3f37c9;
  --accent: #4cc9f0;
  --dark: #1a1a2e;
  --light: #f8f9fa;
  --success: #4caf50;
  --warning: #ff9800;
  --danger: #f44336;
  --gray: #6c757d;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--dark);
  background-color: var(--light);
  scroll-behavior: smooth;
}

/* Modern Header */
header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.logo {
  display: block; /* <-- Add this */
  font-size: 1.2rem;
  /* font-weight: 700; */
  text-decoration: none;
  background: none !important;
  color: transparent !important; /* <-- Force override */
}


.logo span#typed-logo {
  background: linear-gradient(90deg, #d428c8, #e6f238, #00ffea);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 650;
  font-size: 1.4rem;
  display: inline-block;
  white-space: nowrap;
  animation: shine 3s linear infinite;
}


@keyframes shine {
  to {
    background-position: 200% center;
  }
}


nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav ul li a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav ul li a:hover, nav ul li a.active {
  color: white;
  background: rgba(255,255,255,0.15);
}

nav ul li a i {
  font-size: 0.9rem;
}

/* Section Styling */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  text-align: center;
  margin-bottom: 3.5rem;
  color: var(--dark);
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}


/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: var(--dark);
  color: white;
}

footer p {
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.social-links a {
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}



/* Mobile Navbar Styles */
@media (max-width: 768px) {
  nav {
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem;
    position: relative;
  }

  .logo {
    margin-bottom: 0;
    z-index: 1001;
  }

  nav ul {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(26, 26, 46, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    transform: translateY(-100%);
    transition: transform 0.5s ease-in-out;
    z-index: 1000;
  }

  nav ul.show {
    transform: translateY(0);
  }

  nav ul li {
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    padding: 1.2rem;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 100%;
    justify-content: center;
    transition: all 0.3s ease;
  }

  nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    z-index: 1001;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    transition: all 0.3s ease;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Prevent scrolling when menu is open */
  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 576px) {
  .logo {
    max-width: 90%;  /* Limit width so it doesn’t fight with hamburger */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .logo span#typed-logo {
    font-size: 1.3rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  
  nav ul li a {
    justify-content: center;
    padding: 0.8rem;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .section h2 {
    font-size: 1.8rem;
  }
}

@supports not (-webkit-background-clip: text) {
  .logo span#typed-logo {
    color: var(--primary);
  }
}