/* ====================
   RESET & BASE STYLES
======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9f9;
  color: #222;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

/* ====================
     TYPOGRAPHY
======================= */
h1, h2, h3 {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.section-title span {
  color: #0d6efd;
}

/* ====================
     HEADER
======================= */
.site-header {
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 999;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.brand-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0d6efd;
  text-decoration: none;
}

.brand-logo .name {
  color: #222;
}

#toggle-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
}

.main-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.main-navigation a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: #0d6efd;
}

/* ====================
     HERO SECTION
======================= */
.hero-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 2rem;
  background: #eef5fc;
}

.hero-content {
  flex: 1;
  padding: 1rem 2rem;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content .highlighted-name {
  color: #0d6efd;
}

.hero-content .animated-text h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.hero-buttons a {
  display: inline-block;
  margin: 0.5rem 1rem 0.5rem 0;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-primary {
  background: #0d6efd;
  color: #fff;
}

.btn-primary:hover {
  background: #084298;
}

.btn-secondary {
  border: 2px solid #0d6efd;
  color: #0d6efd;
  background: transparent;
}

.btn-secondary:hover {
  background: #0d6efd;
  color: #fff;
}

.hero-image-wrapper {
  flex: 1;
  padding: 1rem;
  text-align: center;
}

.glow-effect img {
  border-radius: 50%;
  border: 5px solid #0d6efd;
  box-shadow: 0 0 25px rgba(13, 110, 253, 0.4);
}

/* ====================
     ABOUT SECTION
======================= */
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
  align-items: center;
}

.about-photo img {
  border-radius: 8px;
}

.about-description p {
  margin-bottom: 1rem;
}

/* ====================
     SKILLS SECTION
======================= */
.skills-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.skill-category {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
}

.skills-tags {
  margin-top: 1rem;
}

.skills-tags span {
  display: inline-block;
  background: #0d6efd;
  color: #fff;
  padding: 0.4rem 0.75rem;
  margin: 0.3rem;
  border-radius: 5px;
  font-size: 0.85rem;
}

/* ====================
     PORTFOLIO SECTION
======================= */
.portfolio-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.project-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.project-image img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.project-item:hover .project-image img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  color: #fff;
  opacity: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.project-item:hover .project-overlay {
  opacity: 1;
}

.project-links {
  margin-top: 1rem;
}

.project-links a {
  color: #fff;
  margin-right: 1rem;
  font-size: 1.25rem;
}

/* ====================
     CONTACT SECTION
======================= */
.contact-section {
  padding: 2rem;
}

.contact-form {
  max-width: 700px;
  margin: auto;
  display: grid;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form button {
  background: #0d6efd;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #084298;
}

.contact-details {
  text-align: center;
  margin-top: 2rem;
}

.contact-card i {
  color: #0d6efd;
  margin-right: 0.5rem;
}

/* ====================
     FOOTER
======================= */
.site-footer {
  background: #0d6efd;
  color: #fff;
  text-align: center;
  padding: 1rem;
  position: relative;
}

.scroll-top {
  position: absolute;
  top: 10px;
  right: 20px;
  text-decoration: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ====================
     RESPONSIVE
======================= */
@media (max-width: 768px) {
  .about-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-section {
    flex-direction: column;
    text-align: center;
  }

  .main-navigation {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 1rem;
    border: 1px solid #ddd;
    box-shadow: 0 0 12px rgba(0,0,0,0.05);
  }

  .main-navigation.open {
    display: flex;
  }

  #toggle-menu {
    display: block;
  }
}
