/* Base Styles */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --text-color: #333;
  --light-text: #777;
  --bg-color: #f9f9f9;
  --card-bg: #fff;
  --border-color: #e0e0e0;
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

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

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  position: relative;
}

.section-title span {
  color: var(--primary-color);
}

.bg-light {
  background-color: #f5f5f5;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
  margin-left: 15px;
}

.btn-secondary:hover {
  background-color: #1a252f;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Navigation */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 8%;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
  letter-spacing: 1px;
}

.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.hamburger .line {
  width: 28px;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Menu */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    flex-direction: column;
    background: white;
    width: 220px;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .hamburger {
    display: flex;
  }
}


/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('Background.jpeg') no-repeat center center/cover;
  color: white;
  position: relative;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
  z-index: 1;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: fadeInDown 1s ease;
}

.hero-subtitle {
  font-size: 1.8rem;
  margin-bottom: 40px;
  font-weight: 300;
  animation: fadeInUp 1s ease;
}

.hero-buttons {
  animation: fadeIn 1.5s ease;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

.about-section {
  background-color: #f8f9fa;
  padding: 80px 0;
}

.section-title span {
  color: #007bff;
}

.about-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.about-image .image-wrapper {
  max-width: 280px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.profile-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.about-content {
  flex: 1;
  min-width: 300px;
}

.role-title {
  font-size: 1.5rem;
  color: #343a40;
  margin-bottom: 15px;
}

.about-description {
  font-size: 1rem;
  color: #555;
  margin-bottom: 25px;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.detail-box h4 {
  color: #333;
  margin-bottom: 10px;
  font-weight: 600;
}

.detail-entry {
  margin-bottom: 15px;
}

.detail-entry h5 {
  margin: 5px 0;
  color: #007bff;
  font-size: 1rem;
}

.institution,
.company,
.duration {
  font-size: 0.9rem;
  color: #666;
}



.contact-cv-box {
  margin-top: 30px;
}

.personal-info p {
  margin: 5px 0;
  font-size: 0.95rem;
  color: #333;
}

.download-cv {
  margin-top: 15px;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.download-cv:hover {
  background-color: #0056b3;
}


/* Skills Section */
.skills-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.skills-container:hover {
  transform: translateY(-5px);
}

.skills-category {
  flex: 1;
  min-width: 300px;
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.skills-category:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.9);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.category-header:hover {
  transform: scale(1.02);
}

.category-header i {
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.category-header:hover i {
  color: var(--secondary-color);
  transform: rotate(5deg);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-item {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.skill-item:hover {
  background-color: rgba(52, 152, 219, 0.1);
  transform: translateX(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.skill-icon i {
  font-size: 2rem;
  transition: all 0.3s ease;
}

.skill-item:hover .skill-icon i {
  color: var(--primary-color);
  transform: scale(1.2);
}

.skill-info h4 {
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.skill-item:hover .skill-info h4 {
  color: var(--primary-color);
}

.skill-level {
  font-size: 0.85rem;
  color: var(--light-text);
  transition: all 0.3s ease;
}

.skill-item:hover .skill-level {
  color: var(--text-color);
  font-weight: 500;
}

.soft-skills-section {
  margin-top: 60px;
}

.skills-subtitle {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  transition: all 0.3s ease;
}

.skills-subtitle:hover {
  transform: scale(1.05);
}

.skills-subtitle span {
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.skills-subtitle:hover span {
  text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.soft-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.soft-skill-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.soft-skill-item:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(52, 152, 219, 0.1) 100%);
}

.soft-skill-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.soft-skill-item:hover i {
  color: var(--secondary-color);
  transform: rotate(15deg) scale(1.2);
}

.soft-skill-item h4 {
  transition: all 0.3s ease;
}

.soft-skill-item:hover h4 {
  color: var(--primary-color);
  letter-spacing: 1px;
}

/* Projects Section */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-info {
  padding: 25px;
}

.project-info h3 {
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.project-info p {
  margin-bottom: 20px;
  color: var(--light-text);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.project-tech span {
  background-color: #e0e0e0;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.project-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Contact Section */
.contact-container {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.contact-info p {
  margin-bottom: 30px;
  color: var(--light-text);
}

.contact-details {
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 5px;
}

.social-links h4 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0f0f0;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-5px);
}

.contact-form {
  flex: 1;
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.3s ease;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.submit-btn {
  width: 100%;
}

/* Footer */
.footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 60px 0 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-brand {
  flex: 1;
  min-width: 250px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 20px;
  display: block;
}

.footer-brand p {
  color: #bbb;
}

.footer-links {
  flex: 1;
  min-width: 200px;
}

.footer-links h4 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-contact {
  flex: 1;
  min-width: 250px;
}

.footer-contact h4 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-contact ul {
  list-style: none;
}

.footer-contact li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #bbb;
}

.footer-contact i {
  color: var(--primary-color);
  width: 20px;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  color: #bbb;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: #888;
  font-size: 0.9rem;
}

.back-to-top {
  color: white;
  background-color: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background-color: #2980b9;
  transform: translateY(-5px);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  width: 90%;
  max-width: 900px;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideIn 0.4s ease;
  overflow: hidden;
}

.modal-header {
  padding: 20px 30px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: var(--secondary-color);
  font-size: 1.5rem;
}

.close-modal {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--secondary-color);
}

.modal-body {
  padding: 30px;
  display: flex;
  gap: 30px;
}

.modal-image {
  flex: 1;
  min-width: 300px;
}

.modal-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-text {
  flex: 1.5;
}

.modal-text h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.1rem;
  margin-top: 20px;
}

.modal-text h4:first-child {
  margin-top: 0;
}

.modal-text p {
  color: #555;
  margin-bottom: 15px;
  line-height: 1.7;
}

.modal-text ul {
  padding-left: 20px;
  margin-bottom: 20px;
  color: #555;
}

.modal-text li {
  margin-bottom: 8px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }

  40% {
    transform: translateY(-10px) translateX(-50%);
  }

  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* -------------------------------------------
 RESPONSIVE MEDIA QUERIES
------------------------------------------- */

/* Tablet & Smaller Laptops (max-width: 1024px) */
@media screen and (max-width: 1024px) {
  .section-title {
    font-size: 2.2rem;
  }

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

  .about-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-image {
    margin-bottom: 30px;
  }

  .about-content {
    width: 100%;
  }

  .about-details {
    align-items: center;
  }

  .detail-box {
    width: 100%;
    max-width: 600px;
  }

  .contact-container {
    flex-direction: column;
  }

  .contact-info,
  .contact-form {
    width: 100%;
  }

  .modal-body {
    flex-direction: column;
  }

  .modal-image {
    min-width: 100%;
  }
}

/* Mobile Devices (max-width: 768px) */
@media screen and (max-width: 768px) {

  /* Navigation */
  .nav-container {
    padding: 15px 5%;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    right: -100%;
    /* Fully hide off-screen initially */
    height: calc(100vh - 60px);
    width: 70%;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: right 0.4s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  /* Hero Section */
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .btn {
    display: block;
    width: 100%;
    margin: 10px 0;
    text-align: center;
  }

  .btn-secondary {
    margin-left: 0;
  }

  /* General Sections */
  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  /* Skills */
  .skills-container {
    gap: 20px;
  }

  .skills-category {
    padding: 20px;
  }

  /* Projects */
  .project-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-content {
    gap: 30px;
    text-align: center;
  }

  .footer-brand,
  .footer-links,
  .footer-contact {
    flex: 100%;
    align-items: center;
  }

  .footer-links h4::after,
  .footer-contact h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-contact li {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  /* Modals */
  .modal-content {
    margin: 15% auto;
    width: 95%;
  }

  .modal-header {
    padding: 15px 20px;
  }

  .modal-body {
    padding: 20px;
  }
}

/* Small Mobile (max-width: 480px) */
@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

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

  .nav-links {
    width: 100%;
  }

  .about-image .image-wrapper {
    max-width: 100%;
  }

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

  .contact-form {
    padding: 25px;
  }
}



@media (max-width: 576px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .btn-secondary {
    margin-left: 0;
  }
}

/* Project Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
}

.modal-content {
  background-color: var(--card-bg);
  margin: 5% auto;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  width: 80%;
  max-width: 900px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.close-modal {
  color: var(--light-text);
  font-size: 2rem;
  font-weight: bold;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.modal-body {
  display: flex;
  gap: 30px;
}

.modal-image {
  flex: 1;
}

.modal-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-text {
  flex: 2;
}

.modal-text h4 {
  margin: 20px 0 15px;
  color: var(--secondary-color);
  font-size: 1.3rem;
}

.modal-text ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.modal-text li {
  margin-bottom: 8px;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    width: 90%;
    margin: 10% auto;
  }

  .modal-body {
    flex-direction: column;
  }

  .modal-image {
    margin-bottom: 20px;
  }
}

/* Experience Section */
#experience {
  background-color: var(--bg-color);
  padding: 80px 0;
}

.experience-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.detail-box {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.detail-box h4 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-box h4 i {
  color: var(--primary-color);
  font-size: 1.3rem;
}

.detail-entry {
  margin-bottom: 30px;
  border-left: 3px solid var(--primary-color);
  padding-left: 20px;
  position: relative;
}

.detail-entry:last-child {
  margin-bottom: 0;
}

.detail-entry h5 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--text-color);
}

.company {
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.duration {
  color: var(--light-text);
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: inline-block;
  background-color: rgba(52, 152, 219, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
}

.experience-details {
  margin-left: 20px;
  margin-top: 5px;
  color: #444;
  font-size: 0.95rem;
  list-style: none;
  padding-left: 0;
}

.experience-details li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
  line-height: 1.6;
}

.experience-details li:before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* Animation */
.detail-entry {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.detail-entry.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Typing Animation Styles */
.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  min-height: 4.5rem;
  /* Prevent layout shift */
}

.cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--primary-color);
  margin-left: 5px;
  animation: blink 0.2s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* For the subtitle - fade in after typing completes */
.hero-subtitle {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease 2.5s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}