/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background: #f5f6fa;
  color: #333;
}

/* Colors */
:root {
  --primary: #4b2e83; /* deep purple */
  --secondary: #1e3a8a; /* navy blue */
  --accent: #7c3aed; /* vivid purple */
  --white: #ffffff;
}

/* Header */
header {
  background: var(--primary);
  color: var(--white);
  padding: 20px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.8rem;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
}

nav ul li a:hover {
  border-bottom: 2px solid var(--accent);
}

/* Intro */
.intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 60px 40px;
  background: var(--secondary);
  color: var(--white);
}

.intro-text {
  flex: 1 1 300px;
  margin-right: 30px;
}

.intro-text p {
  font-size: 1.2rem;
}

.photo {
  flex: 1 1 250px;
}

.photo img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 4px solid var(--accent);
}

/* Skills */
.skills {
  padding: 60px 40px;
  background: var(--white);
}

.skills h2 {
  margin-bottom: 30px;
  color: var(--primary);
  font-size: 1.8rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.skill-box {
  background: var(--secondary);
  color: var(--white);
  padding: 20px 40px;
  border-radius: 8px;
  font-weight: 600;
  flex: 1 1 120px;
  text-align: center;
  transition: transform 0.3s ease;
}

.skill-box:hover {
  transform: translateY(-5px);
  background: var(--accent);
}

/* About */
.about {
  padding: 60px 40px;
  background: var(--light-gray);
}

.about h2 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.about p {
  margin-bottom: 30px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.btn {
  background: var(--white);
  color: var(--white);
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.3s ease;
  cursor: pointer;
}

.upload-btn {
  display: inline-block;
}

.btn:hover {
  background: var(--accent);
}

.github-btn {
  background: var(--secondary);
}

.github-btn:hover {
  background: var(--accent);
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  background: var(--primary);
  color: var(--white);
}

footer p {
  margin: 5px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .intro {
    flex-direction: column;
    text-align: center;
  }

  .intro-text {
    margin-right: 0;
    margin-bottom: 20px;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul li {
    margin: 10px 0 0 0;
  }

  .skills-list {
    flex-direction: column;
  }

  .skill-box {
    flex: 1 1 100%;
  }

  .buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
