/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #0f0f11;
  color: #e1e1ff;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(90%, 1280px);
  margin: 0 auto;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.1;
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(90deg, #a78bfa, #7dd3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  background: rgba(15,15,17,0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(167,139,250,0.1);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.logo span {
  color: #a78bfa;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: #d1d5db;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #c084fc;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 8rem 0 4rem;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.name {
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  margin: 0.5rem 0;
}

.tagline {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: #9ca3af;
  font-weight: 400;
}

.highlight {
  color: #c084fc;
  font-weight: 600;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.35s ease;
}

.primary {
  background: #a78bfa;
  color: #000;
}

.primary:hover {
  background: #c084fc;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -10px rgba(167,139,250,0.5);
}

.outline {
  border: 1px solid #a78bfa;
  color: #a78bfa;
}

.outline:hover {
  background: #a78bfa;
  color: #000;
}

.floating-image-container {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-25px); }
}

.floating-img {
  max-width: 100%;
  border-radius: 50%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.skills-list {
  list-style: none;
}

.skills-list li {
  margin-bottom: 0.5rem;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
}

.tech-item {
  background: rgba(167,139,250,0.1);
  padding: 0.75rem;
  text-align: center;
  border-radius: 8px;
  font-weight: 500;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #1a1a1d;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  padding: 1.5rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.project-tags span {
  background: rgba(167,139,250,0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-links a {
  color: #a78bfa;
  text-decoration: none;
}

/* Contact */
.contact {
  text-align: center;
}

.big-email-link {
  display: block;
  font-size: 1.8rem;
  color: #c084fc;
  text-decoration: none;
  margin: 2rem 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-links a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #c084fc;
}

/* Footer */
footer {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(167,139,250,0.1);
  margin-top: 4rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-container, .about-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0f0f11;
    padding: 1rem;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
}