@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@700&display=swap');

:root {
  --primary: #2563eb;
  --text: #1f2937;
  --light: #f8fafc;
  --gray: #64748b;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--light);
}

h1, h2 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); }
h2 { font-size: 2.4rem; margin-bottom: 1rem; }

nav {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo { font-size: 1.8rem; font-weight: 700; color: var(--primary); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.nav-links a:hover { color: var(--primary); }

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Hero */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background: 
    linear-gradient(
      135deg, 
      rgba(15, 23, 64, 0.60) 0%, 
      rgba(37, 99, 235, 0.50) 100%
    ), 
    url('https://images.unsplash.com/photo-1461749280684-dccba630e2f6?w=2000&q=80') center/cover no-repeat;
  padding: 2rem;
}
/* About - Circular Profile */
.about {
  max-width: 1100px;
  margin: 5rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.profile-photo {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border: 8px solid white;
}

/* Skills */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

/* Projects - CSS Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.gallery-item:hover { transform: translateY(-8px); }

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.overlay {
  padding: 1.5rem;
  background: rgba(0,0,0,0.75);
  color: white;
}

/* Contact */
.contact {
  max-width: 700px;
  margin: 5rem auto;
  padding: 0 2rem;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.contact-form button {
  background: var(--primary);
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Footer */
footer {
  background: #1e2937;
  color: white;
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 4rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    align-items: center;
    padding-top: 4rem;
    transition: 0.4s;
  }
  .nav-links.active { left: 0; }
  .menu-toggle { display: block; }
  
  .about { grid-template-columns: 1fr; text-align: center; }
}
