/* css/main.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

body {
  font-family: 'Inter', sans-serif;
  color: #e0e0e0;
  background: #0f0f1a;
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background: #00d4ff;
  color: #000;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s ease;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 25, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

header.scrolled {
  padding: 1rem 5%;
  background: rgba(10, 10, 25, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(90deg, #00d4ff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

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

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -8px;
  left: 0;
  background: #00d4ff;
  transition: 0.4s;
}

nav a:hover::after {
  width: 100%;
}

/* Enhanced Hamburger with X transformation */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 1001;
  transition: all 0.4s ease;
}

.hamburger span {
  width: 32px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* Active state → becomes X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0.1);
}

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

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(10, 10, 25, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.5s ease;
  z-index: 999;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  font-size: 2.5rem;
  margin: 1rem 0;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.5s;
}

.mobile-menu.active a {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  background: #0a0a16;
  padding: 4rem 5% 2rem;
  border-top: 1px solid rgba(0, 212, 255, 0.2);
  margin-top: 5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.social-links a {
  color: #00d4ff;
  font-size: 1.8rem;
  margin-right: 1rem;
  transition: 0.3s;
}

.social-links a:hover {
  transform: translateY(-5px);
  color: #7c3aed;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  nav { display: none; }
  .logo { font-size: 1.6rem; }
}