* {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1af0; /* Dark background color */
    color: #f0f0f0; /* Light text color for better contrast */
}

html {
    scroll-behavior: smooth;
}

p {
    color: rgb(85, 85, 85);
}

/* TRANSITION */
a, .btn {
    transition: all 300ms ease;
}

/* Desk Nav */

nav, .nav-links {
    display: flex;
    background-color: rgba(0, 0, 0, 0.911);
}

nav {
    justify-content: space-around;
    align-items: center;
    height: 17vh;
}

.nav-links {
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
}

a {
    color: #f0f0f0;
    text-decoration: none;
    text-decoration-color: white;
}

a:hover {
    color: gray;
    text-decoration: underline;
    text-underline-offset: 1rem; 
    text-decoration-color: rgb(181, 181, 181);
}

.logo {
    font-size: 2rem;
}

.logo:hover {
    cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
    display: none;
  }
  
  .hamburger-menu {
    position: relative;
    display: inline-block;
  }
  
  .hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
  }
  
  .hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: #f0f0f0;
    transition: all 0.3 ease-in-out;
  }
  
  .menu-links {
    position: absolute;
    top: 12%;
    right: 8%;
    background-color: black;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3 ease-in-out;
  }
  
  .menu-links a {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: #f0f0f0;
    text-decoration: none;
    transition: all 0.3 ease-in-out;
  }
  
  .menu-links li {
    list-style: none;
  }
  
  .menu-links.open {
    max-height: 300px;
  }
  
  .hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(10px, 5px);
  }
  
  .hamburger-icon.open span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(10px, -5px);
  }
  
  .hamburger-icon span:first-child {
    transform: none;
  }
  
  .hamburger-icon span:first-child {
    opacity: 1;
  }
  
  .hamburger-icon span:first-child {
    transform: none;
  }
  
  /* SECTIONS */
  
  section {
    padding-top: 4vh;
    height: 96vh;
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
  }
  
  .section-container {
    display: flex;
  }
  
  /* PROFILE SECTION */
  
  #profile {
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
  }
  
  .section_pic-container {
    width: 50%; /* or any percentage fitting your design */
    height: auto; /* Automatically adjust height */
    aspect-ratio: 1 / 1; /* Ensure the image container remains a square */
    margin: 0 auto 2rem;
}
  
  .section_pic-container img {
    width: 100%; /* Make the image fill the container */
    height: 100%; /* Make the image fill the container */
    border-radius: 50%; /* This makes the image rounded */
    object-fit: cover; /* This ensures the image covers the container without distortion */
    object-position: top; /* Center the image within the container */
  }
  
  .section_text {
    align-self: center;
    text-align: center;
  }
  
  .section_text p {
    font-weight: 600;
  }
  
  .section_text_p1 {
    text-align: center;
  }
  
  .section_text_p2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .title {
    font-size: 3rem;
    text-align: center;
  }
  
  #socials-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
  }
  
  /* ICONS */
  
  .icon {
    cursor: pointer;
    height: 2rem;
  }
  
  /* BUTTONS */
  
  .btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
  }
  
  .btn {
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
    color: #f0f0f0;
  }
  
  .btn-color-1,
  .btn-color-2 {
    border: rgb(53, 53, 53) 0.1rem solid;
  }
  
  .btn-color-1:hover,
  .btn-color-2:hover {
    cursor: pointer;
  }
  
  .btn-color-1,
  .btn-color-2:hover {
    background: rgb(53, 53, 53);
    color: white;
  }
  
  .btn-color-1:hover {
    background: rgb(0, 0, 0);
  }
  
  .btn-color-2 {
    background: none;
  }
  
  .btn-color-2:hover {
    background: white;
    color: black;
  }
  
  .btn-container {
    gap: 1rem;
  }

 /* ABOUT SECTION */

#about {
  position: relative;
}



.about-pic {
  border-radius: 2rem;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}


/* New styles for headings and text */
.details-container h3 {
  color: black; /* Change heading color to black */
}

.text-container {
  font-size: 1.2rem; /* Increase font size for the description */
  line-height: 1.4; /* Adjust line height for better readability */
}

.section-container {
  gap: 4rem;
  height: 80%;
}

.section_pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
}

  
/* EXPERIENCE SECTION */

#experience {
  position: relative;
  margin-top: 3rem;
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 1rem; /* Adjusted margin for better spacing */
}

.experience-details-container {
  display: flex;
  flex-wrap: wrap; /* Allow items to wrap to the next line */
  justify-content: center; /* Center items horizontally */
  gap: 2rem; /* Space between items */
}

.about-containers {
  display: flex;
  flex-wrap: wrap; /* Allow items to wrap */
  justify-content: center; /* Center items */
  gap: 2rem; /* Space between items */
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.details-container {
  flex: 1 1 45%; /* Allow each item to take up to 45% of the width */
  min-width: 300px; /* Set a minimum width for responsiveness */
  background: white; /* Optional: Add background for better visibility */
  border-radius: 1rem; /* Optional: Add border radius for styling */
  padding: 1rem; /* Optional: Add padding for spacing */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add shadow for depth */
}

.article-container {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* Adjusted gap for better spacing */
}

article {
  display: flex;
  align-items: center; /* Aligns items vertically in the center */
  gap: 0.5rem; /* Space between icon and text */
}

article .icon {
  cursor: default;
  width: 1.5rem; /* Adjust icon size as needed */
  height: 1.5rem; /* Adjust icon size as needed */
}

article h3 {
  margin: 0; /* Remove default margin */
}

article p {
  margin: 0; /* Remove default margin */
  line-height: 1.5; /* Adjust line height for better readability */
}

  /* PROJECTS SECTION */

#projects {
  position: relative;
  margin-top: 3rem; /* Add margin to separate from previous section */
}

.color-container {
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
  border-radius: 1rem; /* Rounded corners for the project boxes */
  padding: 1rem; /* Padding inside the project boxes */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add shadow for depth */
  width: 45%; /* Set a width for the boxes to fit two in a row */
  max-width: 300px; /* Set a maximum width for the boxes */
  text-align: center; /* Center text within the project boxes */
}

.project-img {
  border-radius: 1rem; /* Rounded corners for images */
  width: 100%; /* Make the image fill the container */
  height: 150px; /* Set a fixed height for images */
  object-fit: cover; /* Ensure the image covers the container without distortion */
}

.project-title {
  margin: 1rem 0; /* Adjusted margin for better spacing */
  color: black;
  font-size: 1.2rem; /* Adjust font size for project titles */
}

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
  margin-top: 1rem; /* Add margin above the button */
}

  /* CONTACT */

#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 70vh;
  }
  
  .contact-info-upper-container {
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    background: (250, 250, 250);
    margin: 2rem auto;
    padding: 0.5rem;
  }
  
  .contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem;
  }
  
  .contact-info-container p {
    font-size: larger;
  }
  
  .contact-icon {
    cursor: default;
  }
  
  .email-icon {
    height: 2.5rem;
  }
  
  /* FOOTER SECTION */
  
  footer {
    height: 26vh;
    margin: 0 1rem;
  }
  
  footer p {
    text-align: center;
  }

  /* Timeline Styles */
    .timeline-container {
        max-width: 800px;
        margin: 0 auto;
        padding: 2rem 0;
    }

    .timeline {
        position: relative;
        padding-left: 2rem;
    }

    .timeline::before {
        content: '';
        position: absolute;
        left: 15px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: linear-gradient(to bottom, #553c9a, #ee2a7b);
    }

    .timeline-item {
        position: relative;
        margin-bottom: 2rem;
        padding-left: 2rem;
    }

    .timeline-dot {
        position: absolute;
        left: -2rem;
        top: 0.5rem;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #553c9a;
        border: 3px solid white;
        box-shadow: 0 0 0 3px #553c9a;
        z-index: 1;
    }

    .timeline-content {
        background: white;
        border-radius: 8px;
        padding: 1.5rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        border-left: 4px solid #553c9a;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .timeline-content:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .timeline-date {
        color: #553c9a;
        font-weight: bold;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .timeline-content h3 {
        margin: 0 0 0.5rem 0;
        color: #333;
        font-size: 1.2rem;
    }

    .timeline-content p {
        margin: 0;
        color: #666;
        line-height: 1.5;
    }

    /* Project Toggle Styles */
    .project-toggle-container {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin: 2rem 0;
    }

    .project-toggle-btn {
        padding: 0.75rem 1.5rem;
        border: 2px solid #553c9a;
        background: transparent;
        color: #553c9a;
        border-radius: 25px;
        cursor: pointer;
        font-weight: bold;
        transition: all 0.3s ease;
        font-size: 1rem;
    }

    .project-toggle-btn:hover {
        background: #553c9a;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(85, 60, 154, 0.3);
    }

    .project-toggle-btn.active {
        background: #553c9a;
        color: white;
        box-shadow: 0 4px 15px rgba(85, 60, 154, 0.3);
    }

    .project-category {
        display: none;
        animation: fadeIn 0.5s ease-in-out;
    }

    .project-category.active {
        display: block;
    }

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

    .project-description {
        color: #666;
        font-style: italic;
        margin: 0.5rem 0;
        text-align: center;
    }

    /* Enhanced Visual Styles */
    .details-container.color-container {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .details-container.color-container:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .project-img {
        transition: transform 0.3s ease;
    }

    .details-container.color-container:hover .project-img {
        transform: scale(1.05);
    }

    /* Mobile Timeline Styles */
    @media screen and (max-width: 600px) {
        .timeline {
            padding-left: 1rem;
        }

        .timeline::before {
            left: 8px;
        }

        .timeline-dot {
            left: -1.5rem;
            width: 10px;
            height: 10px;
        }

        .timeline-item {
            padding-left: 1.5rem;
        }

        .timeline-content {
            padding: 1rem;
        }

        .project-toggle-container {
            flex-direction: column;
            align-items: center;
        }

        .project-toggle-btn {
            width: 80%;
            max-width: 250px;
        }
    }

    .compact-horizontal {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.compact-card {
  flex: 1;
  padding: 1rem !important;
  text-align: center;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.small-icon {
  width: 1.5rem !important;
  height: 1.5rem !important;
  margin-bottom: 0.5rem;
}

.compact-card h4 {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #553c9a;
}

.compact-card p {
  font-size: 0.85rem;
  margin: 0.25rem 0;
  line-height: 1.4;
}

.enhanced-about {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #553c9a;
}

.about-highlight-box h3 {
  color: #553c9a;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}


/* Enhanced Cards */
.enhanced-section-container {
  max-width: 900px;
  margin: 2rem auto;
}

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

.enhanced-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #553c9a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.enhanced-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.card-icon {
  font-size: 2rem;
  min-width: 50px;
  text-align: center;
}

.card-content h3 {
  color: #553c9a;
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.card-content p {
  color: #666;
  margin: 0;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
  .compact-horizontal {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .enhanced-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .enhanced-card {
    padding: 1rem;
  }
  
  .about-skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .enhanced-about {
    padding: 1.5rem;
  }
  
  .about-skills-grid {
    grid-template-columns: 1fr;
  }
}