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

:root {
  --primary: #6c63ff;
  --dark: #1a1a2e;
  --light: #f5f5f5;
  --text: #333;
  --white: #fff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 100;
}

nav .logo {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: bold;
}

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

nav ul a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

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

/* HERO */
.hero {
  height: 100vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

/* BUTTONS */
.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s, transform 0.2s;
}

.btn:hover {
  background: #574fd6;
  transform: translateY(-2px);
}

.btn-small {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.btn-small:hover {
  background: #574fd6;
}

/* SECTIONS */
.section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

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

.section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.bg-light {
  background: var(--light);
  max-width: 100%;
  padding: 5rem 2rem;
}

.bg-light .section {
  padding: 0;
}

/* ABOUT */
.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.skill-card {
  background: var(--white);
  border: 2px solid var(--primary);
  color: var(--primary);
  text-align: center;
  padding: 1rem;
  border-radius: 10px;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}

.skill-card:hover {
  background: var(--primary);
  color: var(--white);
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--light);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.project-card p {
  margin-bottom: 1rem;
  color: #555;
}

/* CONTACT */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.9rem 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-form .btn {
  align-self: center;
}

/* FOOTER */
footer {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 1.5rem;
  opacity: 0.9;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  nav ul {
    gap: 1rem;
  }
}
