/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  background-color: #0d1117;
  color: #c9d1d9;
  line-height: 1.6;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Variables */
:root {
  --primary-color: #58a6ff;
  --accent-color: #79c0ff;
  --background-dark: #0d1117;
  --background-light: #161b22;
  --text-light: #c9d1d9;
  --text-dark: #8b949e;
  --success-color: #2ea043;
  --error-color: #f85149;
}

/* Utility */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--background-dark);
  padding: 1rem 0;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background-color: var(--background-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}
.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
  text-decoration: none;
}
.logo-dot {
  color: var(--accent-color);
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}
.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  width: 25px;
  height: 20px;
  justify-content: center;
}
.hamburger .bar {
  height: 3px;
  background-color: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Show hamburger on small screens */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 60px;
    right: 0;
    background-color: var(--background-dark);
    height: calc(100vh - 60px);
    width: 220px;
    flex-direction: column;
    padding-top: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.7);
  }
  .nav-menu.active {
    transform: translateX(0);
  }
  .nav-link {
    font-size: 1.25rem;
    padding: 1rem 1.5rem;
  }
  .hamburger {
    display: flex;
  }
  
  /* Keep the background image on mobile but adjust it */
  .hero-bg-image {
    width: 500px;  /* Smaller on mobile */
    max-width: 90%;
    opacity: 0.2;  /* Make it slightly more transparent on mobile */
  }
}




/* Hero Section */
.hero {
  min-height: 100vh;
  padding-top: 60px;
  background: linear-gradient(135deg, #161b22, #0d1117);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}



.hero-bg-image {
  position: absolute;
  top: 60px;                  /* 👈 Starts just below your sticky menu bar */
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  opacity: 0.3;
  width: 600px;               /* 👈 Adjust image size */
  max-width: 80%;
  pointer-events: none;
}

.hero-bg-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
}


.hero-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 1rem;
}
.hero-text {
  flex: 1 1 500px;
  max-width: 600px;
  position: relative;
  z-index: 2;
}
.greeting {
  font-size: 1.125rem;
  color: var(--accent-color);
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.name-last {
  color: var(--accent-color);
}
.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-subtitle i {
  color: var(--primary-color);
}
.hero-description {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  max-width: 480px;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
}
.btn-primary {
  background-color: var(--primary-color);
  color: #0d1117;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--accent-color);
  outline: none;
}
.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--primary-color);
  color: #0d1117;
  outline: none;
}

/* Social Links in Hero */
.social-links {
  display: flex;
  gap: 1.5rem;
  font-size: 1.5rem;
}
.social-link {
  color: var(--text-light);
  transition: color 0.3s ease;
}
.social-link:hover,
.social-link:focus {
  color: var(--primary-color);
  outline: none;
}

/* Profile Card */
.profile-card {
  background-color: var(--background-light);
  padding: 2rem;
  border-radius: 12px;
  width: 320px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.profile-img {
  position: relative;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
  color: #0d1117;
  margin: 0 auto;
  box-shadow: 0 0 12px var(--primary-color);
}
.status-indicator {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background-color: #2ea043;
  border: 2px solid var(--background-light);
  border-radius: 50%;
  box-shadow: 0 0 6px #2ea043;
}
.contact-quick {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent-color);
}
.contact-item i {
  font-size: 1.25rem;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
  animation: bounce 2s infinite;
}
.mouse {
  width: 25px;
  height: 40px;
  border: 2px solid var(--text-dark);
  border-radius: 15px;
  position: relative;
}
.wheel {
  width: 4px;
  height: 8px;
  background-color: var(--text-dark);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: wheelMove 2s infinite;
}
@keyframes wheelMove {
  0%, 100% { top: 8px; opacity: 1; }
  50% { top: 20px; opacity: 0; }
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* Sections Titles */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  border-bottom: 3px solid var(--accent-color);
  padding-bottom: 0.25rem;
}

/* About Section */
.about-description {
  max-width: 720px;
  margin-bottom: 2rem;
  color: var(--text-dark);
  font-size: 1rem;
}
.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.highlight-item {
  background-color: var(--background-light);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 220px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.5);
}
.highlight-item i {
  font-size: 1.5rem;
}

/* Experience Section */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 720px;
}
.timeline-item {
  background-color: var(--background-light);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  display: flex;
  gap: 1.5rem;
  position: relative;
  box-shadow: 0 6px 15px rgba(0,0,0,0.5);
}
.timeline-date {
  position: absolute;
  top: 10px;
  left: -100px;
  font-weight: 700;
  color: var(--accent-color);
  font-size: 1rem;
  width: 90px;
  text-align: right;
  user-select: none;
}
.timeline-content {
  flex: 1;
}
.timeline-content h3 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.timeline-content h4 {
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}
.timeline-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}
.timeline-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.skill-tag {
  background-color: var(--primary-color);
  color: #0d1117;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}
.timeline-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  align-self: center;
}

/* Skills Section */
.skills-grid {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
  max-width: 720px;
}
.skills-category {
  flex: 1 1 300px;
}
.skills-category h3 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
}
.skill-item {
  margin-bottom: 1rem;
}
.skill-info {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.skill-percentage {
  color: var(--accent-color);
}
.skill-bar {
  width: 100%;
  height: 10px;
  background-color: var(--background-dark);
  border-radius: 6px;
  overflow: hidden;
}
.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 6px;
}

/* Language skills */
.language-skills {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.language-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: var(--accent-color);
}
.language-item i {
  font-size: 1.5rem;
}
.language-info {
  display: flex;
  flex-direction: column;
}
.language-name {
  font-weight: 700;
}
.language-level {
  font-size: 0.875rem;
  color: var(--text-dark);
}

/* Education Section */
.education-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1100px;
}
.education-card {
  background-color: var(--background-light);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  flex: 1 1 320px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.5);
  position: relative;
}
.education-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.education-year {
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}
.education-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}
.education-card h4 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.education-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
}
.education-status {
  position: absolute;
  top: 15px;
  right: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  color: var(--background-light);
}
.education-status.completed {
  background-color: var(--success-color);
}

/* Contact Section */
.contact-content {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 900px;
}
.contact-info {
  flex: 1 1 350px;
  color: var(--text-light);
}
.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 700;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.contact-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
  min-width: 30px;
  text-align: center;
}
.contact-label {
  font-weight: 600;
  color: var(--accent-color);
}
.contact-value {
  color: var(--text-light);
  text-decoration: none;
}
.contact-value:hover,
.contact-value:focus {
  color: var(--primary-color);
  outline: none;
}
.social-contact h4 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}
.social-links-contact {
  display: flex;
  gap: 1rem;
  font-size: 1.5rem;
}
.social-link-contact {
  color: var(--text-light);
  transition: color 0.3s ease;
}
.social-link-contact:hover,
.social-link-contact:focus {
  color: var(--primary-color);
  outline: none;
}

/* Contact Form */
.contact-form {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent-color);
}
.contact-form input,
.contact-form textarea {
  background-color: var(--background-dark);
  border: 1.5px solid var(--background-light);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--text)
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .hero-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    gap: 2rem;
  }

  .hero-content {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .hero-text {
    max-width: 400px;
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center !important;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  /* Center the icon and "Software Developer" text */
  .hero-subtitle {
    font-size: 1.25rem;
    justify-content: center !important;  /* ← Center the flex content */
    text-align: center !important;       /* ← Center the text */
    width: 100% !important;              /* ← Full width for centering */
  }

  .hero-description {
    font-size: 0.95rem;
    max-width: 100%;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    align-items: center;
  }

  .hero-buttons .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
    width: auto;
    min-width: 160px;
  }

  .profile-card {
    width: 100%;
    padding: 1.5rem;
  }

  .greeting,
  .hero-title,
  .hero-subtitle,
  .hero-description {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
  }

  .social-links {
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

  



/* Styled Send Message Button (Blueish Theme, Glow Only on Hover) */
.contact-form button.send-btn {
  background: linear-gradient(90deg, #58a6ff, #79c0ff);
  color: #0d1117;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.125rem;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: none; /* no glow by default */
}

.contact-form button.send-btn:hover,
.contact-form button.send-btn:focus {
  background: linear-gradient(90deg, #79c0ff, #58a6ff);
  box-shadow: 0 8px 20px rgba(121, 192, 255, 0.8); /* glow on hover */
  transform: translateY(-2px);
  outline: none;
}

