/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  /* Colors */
  --bg-color: #0d0d0f;
  --surface-color: #16161a;
  --text-primary: #fffffe;
  --text-secondary: #94a1b2;
  --primary-color: #2cb67d;
  /* Soft Green/Teal */
  --secondary-color: #7f5af0;
  /* Soft Purple */
  --accent-color: #2cb67d;

  /* Spacing */
  --section-padding: 5rem 0;

  /* Fonts */
  --body-font: "Outfit", sans-serif;

  /* Transitions */
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================================
   2. UTILITIES & LAYOUT
   ========================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding);
  text-align: center;
  /* Ensures the inline-block title is centered */
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: #249666;
  /* Darker shade */
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  margin-left: 1rem;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* =========================================
   3. NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(13, 13, 15, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.btn-featured {
  padding: 0.5rem 1.5rem;
  background: rgba(44, 182, 125, 0.1);
  color: var(--primary-color);
  border-radius: 50px;
}

.btn-featured:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--text-primary);
  transition: var(--transition);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  /* Offset for fixed nav */
  background: radial-gradient(
    circle at top right,
    rgba(44, 182, 125, 0.1),
    transparent 40%
  );
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap-reverse;
  gap: 2rem;
}

.hero-content {
  flex: 1;
  min-width: 300px;
}

.subtitle {
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: block;
}

.title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.role {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 400;
}

.description {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 500px;
  font-size: 1.1rem;
}

.description strong {
  color: var(--text-primary);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  min-width: 300px;
}

.image-wrapper {
  position: relative;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--surface-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================
   5. ABOUT SECTION
   ========================================= */
.about {
  background-color: var(--surface-color);
}

.about-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.about-content p {
  margin-bottom: 1.5rem;
}

/* =========================================
   6. SKILLS SECTION
   ========================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.skill-card {
  background-color: var(--surface-color);
  padding: 2rem;
  text-align: center;
  border-radius: 10px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: rgba(44, 182, 125, 0.3);
  box-shadow: 0 10px 30px rgba(44, 182, 125, 0.1);
}

.skill-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.skill-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.skill-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* =========================================
   7. PROJECTS SECTION
   ========================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--surface-color);
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.project-image {
  height: 200px;
  background-color: #2a2a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.placeholder-img {
  font-weight: 600;
  letter-spacing: 1px;
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.project-info p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tags span {
  background-color: rgba(44, 182, 125, 0.1);
  color: var(--primary-color);
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.link-btn:hover {
  color: var(--primary-color);
}

/* =========================================
   8. CONTACT SECTION
   ========================================= */
/* =========================================
   8. CONTACT SECTION
   ========================================= */
.contact-info {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-text {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  color: var(--text-primary);
  padding: 0.8rem 1.5rem;
  background-color: var(--surface-color);
  border-radius: 50px;
  transition: var(--transition);
  width: auto;
}

.contact-item:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateX(5px);
  /* Slide right instead of up for list feel */
}

/* Contact Form */
.contact-form {
  background-color: var(--surface-color);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  background-color: var(--bg-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--body-font);
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.02);
}

.contact-form textarea {
  resize: vertical;
}

.submit-btn {
  width: 100%;
  border: none;
  font-size: 1rem;
  padding: 1rem;
}

/* Mobile Responsiveness for Contact */
@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-info {
    text-align: center;
  }

  .contact-links {
    align-items: center;
  }

  .contact-item:hover {
    transform: translateY(-3px);
  }

  .contact-form {
    padding: 1.5rem;
  }
}

/* Map */
.map-container {
  margin-top: 4rem;
  border-radius: 15px;
  overflow: hidden;
  filter: grayscale(100%) invert(92%) contrast(83%);
  /* Dark mode map effect */
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.map-container:hover {
  filter: none;
  /* Show color on hover */
  border-color: var(--primary-color);
}

.map-container iframe {
  border: 0;
  display: block;
}

/* =========================================
   9. FOOTER
   ========================================= */
.footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* =========================================
   10. ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

/* Scroll Reveal Classes (handled by JS) */
.fade-in-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   11. MEDIA QUERIES
   ========================================= */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    z-index: 1001;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    left: -100%;
    top: 0;
    flex-direction: column;
    background-color: var(--bg-color);
    width: 100%;
    height: 100vh;
    /* Full viewport height */
    padding-top: 5rem;
    transition: 0.3s;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    left: 0;
  }

  .hero-container {
    justify-content: center;
    text-align: center;
    padding-top: 2rem;
  }

  .hero-image {
    justify-content: center;
  }

  .hero-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .btn-outline {
    margin-left: 0;
  }

  .title {
    font-size: 2.5rem;
  }

  .image-wrapper {
    width: 280px;
    height: 280px;
  }

  /* Mobile Text Alignment for Sections */
  .section-title {
    font-size: 2rem;
  }

  .about-content,
  .skills-grid,
  .projects-grid,
  .contact-wrapper {
    text-align: center;
  }

  .skill-card,
  .project-card {
    margin: 0 auto;
    /* Center cards if they are max-width restricted */
  }

  .project-info {
    text-align: center;
  }

  .tags {
    justify-content: center;
  }

  .project-links {
    justify-content: center;
  }

  .contact-info {
    text-align: center;
  }

  .contact-links {
    justify-content: center;
  }
}
