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

:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #f093fb;
  --text-dark: #2d3748;
  --text-light: #718096;
  --bg-light: #f7fafc;
  --white: #ffffff;
  --border-color: #e2e8f0;
}

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

/* Header & Navigation */
header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--white);
  text-decoration: none;
}

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

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.nav-links a.active {
  background-color: var(--accent-color);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 6rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: slideInDown 0.8s ease;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  animation: slideInUp 0.8s ease;
  color: rgba(255, 255, 255, 0.9);
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--text-dark);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Main Content */
main {
  min-height: 70vh;
  padding: 3rem 2rem;
}

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

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

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

.card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--primary-color);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card p {
  color: var(--text-light);
  line-height: 1.8;
}

/* Achievement Section */
.achievement-item {
  background: var(--white);
  padding: 1.5rem;
  border-left: 4px solid var(--secondary-color);
  margin-bottom: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.achievement-item h4 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.achievement-item p {
  color: var(--text-light);
}

/* Technology Tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.tech-tag {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Section Margin */
.section-margin {
  margin-top: 4rem;
}

/* Bio Box */
.bio-box {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 3rem;
  line-height: 1.8;
  color: var(--text-light);
}

.bio-box p {
  margin-top: 1rem;
}

/* Card Link */
.card-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  display: inline-block;
}

.card-link:hover {
  color: var(--secondary-color);
}

/* Info Box */
.info-box {
  margin-top: 4rem;
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.info-box p {
  color: var(--text-light);
  margin: 1rem 0;
}

/* Proficiency Section */
.proficiency-section {
  margin-top: 4rem;
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
}

.proficiency-heading {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.proficiency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.proficiency-item h4 {
  margin-bottom: 1rem;
}

.proficiency-item ul {
  list-style: none;
  color: var(--text-light);
}

/* Key Subjects */
.key-subjects {
  margin-top: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* Tech Tags Wrapper */
.tags-wrapper {
  margin-top: 1rem;
}

/* Summary Content */
.summary-content {
  color: var(--text-light);
  line-height: 1.8;
}

.summary-text {
  margin-bottom: 1rem;
}

.summary-list {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.summary-item {
  margin-bottom: 0.5rem;
}

/* Projects */
.project-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.project-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
}

.project-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.project-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.project-links a:hover {
  color: var(--secondary-color);
}

/* Education */
.education-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.education-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.education-item .institution {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.education-item .year {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.education-item p {
  color: var(--text-light);
}

/* Footer */
footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.social-links {
  margin-bottom: 1rem;
}

.social-links a {
  color: var(--white);
  text-decoration: none;
  margin: 0 1rem;
  transition: color 0.3s ease;
  font-weight: 600;
}

.social-links a:hover {
  color: var(--accent-color);
}

/* Animations */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .nav-links {
    display: none;
    gap: 1rem;
  }

  .nav-links a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links.active {
    display: flex;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
  }

  .nav-links.active a {
    padding: 0.75rem 1rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1rem;
  }

  main {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .tech-tags {
    flex-direction: column;
  }

  .tech-tag {
    width: 100%;
    text-align: center;
  }
}
