/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

html {
    scrollbar-color: #1e293b #1e293b00;
}

body {
    background-color: #38bff86b;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

.navbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    padding: 0 1rem;
    background: linear-gradient(90deg, #1e293b, #0f172a);
    box-shadow: 0 4px 6px rgba(0,0,0,0.4);
    z-index: 1200;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: clamp(0.5rem, 2vw, 2rem);
    white-space: nowrap;
}

.nav-links li a {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 700;         
    font-size: 1.1rem;        
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
}

.nav-links li a.active {
    background-color: #2563eb; 
    color: #ffffff;
    transform: translateY(-2px);
}

.nav-links li a:hover {
    background-color: #1e40af; 
    color: #ffffff;
    transform: translateY(-2px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    position: absolute;       
    right: 20px;              
    top: 50%;                 
    transform: translateY(-50%);
    z-index: 1100;            
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #e0e0e0;
    border-radius: 3px;
    transition: all 0.5s ease;
    transform-origin: center;
}

.logo-link {
    display: flex;            
    align-items: center;      
    gap: 1rem;                
    text-decoration: none;
    white-space: nowrap;      
}

.logo img {
    height: 100px;           
    width: auto;
    object-fit: contain;
}

.logo-text {
    color: #ffffff;          
    font-weight: 900;        
    font-size: 1.4rem;       
    letter-spacing: 1px;     
    font-family: 'Helvetica Neue', Arial, sans-serif;  
    white-space: nowrap;      
}

.logo img:hover {
    transform: scale(1.05); 
}

.contact-section {
    max-width: 600px;
    margin-top: 1rem;
    margin-bottom: 2rem;       
    margin-left: auto; 
    margin-right: auto;
    padding: 1.5rem;            
    background-color: rgba(30, 41, 59, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    text-align: center;
}

.contact-section h2 {
    display: inline-block;
    color: #ffffff;                        
    font-size: 1.8rem;                     
    font-weight: 900;
    padding: 0.5rem 1rem;                  
    border-radius: 10px;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-align: center; 
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;               
}

.contact-form label {
    color: #e0e0e0;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    padding: 0.5rem 0.75rem;    
    border-radius: 5px;
    border: none;
    font-size: 0.95rem;         
    width: 100%;
    outline: none;
    background-color: #1e293b;
    color: #ffffff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background-color: #2563eb;
    color: #ffffff;
}

.contact-form button {
    padding: 0.6rem 1rem;        
    background-color: #2563eb;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #1e40af;
}
.location-text {
    text-align: center;       
    color: #ffffff;           
    font-size: 1rem;          
    font-weight: 300;         
    margin-bottom: 1rem;      
}

.footer-banner {
    background: linear-gradient(90deg, #1e293b, #0f172a);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 0.5rem 0;
    box-shadow: 0 -4px 6px rgba(0,0,0,0.4);
}

.footer-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: invert(1); 
}

.footer-icon:hover {
    transform: scale(0.85);
    filter: invert(0.6);
}

.footer-banner {
    background: linear-gradient(90deg, #1e293b, #0f172a);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    box-shadow: 0 -4px 6px rgba(0,0,0,0.4);
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: invert(1);
    transition: transform 0.2s, filter 0.2s;
}

.footer-icon:hover {
    transform: scale(1.1);
}

.footer-copyright {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 400;
    margin-top: 0rem;
    text-align: center;
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
    padding-bottom: 1.5rem;
}

.project-card {
    background: rgba(30, 41, 59, 0.95);
    border-radius: 10px;
    padding: 1.25rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.project-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #60a5fa;
}

.project-dates {
    font-size: 0.9rem;
    color: #cbd5f5;
    margin-bottom: 0.5rem;
}

.project-short {
    font-size: 0.95rem;
    color: #e0e0e0;
}

.project-details {
    display: none;
    margin-top: 1rem;
}

.project-card.expanded .project-details {
    display: block;
}

.project-details img,
.project-details video {
    max-width: 100%;
    border-radius: 6px;
    margin: 0.75rem 0;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.modal-title{
    color: #60a5fa;
}

.modal-links{
    margin-bottom: 0.5rem;
}

.skill {
    background: #2563eb;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.projects-section, .about-section {
    text-align: center; 
}

.projects-section .section-heading  {
    display: inline-block;                 
    background-color: rgba(30, 41, 59, 0.9); 
    color: #ffffff;                        
    font-size: 1.8rem;                     
    font-weight: 900;
    padding: 0.5rem 1rem;                  
    border-radius: 10px;                   
    margin-top: 1rem;
    letter-spacing: 1px;
    text-align: center;                     
}

.project-modal {
    display: none;
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    padding: 1rem;
    overflow-y: auto;
    z-index: 2000;
}

.project-modal.open {
    display: flex;
}

.project-modal-content {
    background-color: rgba(30,41,59,0.95);
    color: #ffffff;
    border-radius: 10px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    animation: fadeIn 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: rgb(255, 255, 255) #1e293b00;  
    overscroll-behavior: contain;
    scroll-behavior: smooth;
}

.project-content p {
    margin-bottom: 0.8rem;
}

.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    font-weight: bold;
    color: #ffffff;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem;
    border-radius: 5px;
    background-color: rgba(30,41,59,0.5);
    transition: background-color 0.2s;
}

#modal-prev {
    left: 0rem;
}

#modal-next {
    right: 0rem;
}

.modal-nav:hover {
    background-color: rgba(30,41,59,0.8);
}

/* Project Controls */
.project-controls {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; 
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

/* Discipline buttons */
.discipline-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    width: fit-content;
    max-width: 100%;
    justify-content: flex-start;
}

.discipline-btn {
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  background-color: #1e293b;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.2s, transform 0.2s;
  flex: 1 1 120px;
  min-width: 120px;
}

.discipline-btn:hover,
.discipline-btn.active {
  background-color: #2563eb;
  transform: translateY(-2px);
}

.filter-control {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  align-items: center;
  justify-content: flex-start;
  margin-top: 16px;
  margin-left: 10px;
  margin-right: 10px;
}

.filter-control label {
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
}

.filter-control select {
  padding: 0.3rem 0.5rem;
  border-radius: 5px;
  border: none;
  background-color: #1e293b;
  color: #ffffff;
  font-size: 0.95rem;
  flex-shrink: 1;
  min-width: 100px;
}

.multi-select {
  position: relative;
  width: 280px; 
  z-index: 1; 
}

.multi-select-input {
  background: #1e293b;
  color: #ffffff;
  padding: 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  z-index: 1; 
}

.multi-select-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1e293b;
  border-radius: 5px;
  margin-top: 0.2rem;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.multi-select-dropdown label {
  display: flex;
  align-items: center;
  padding: 0.3rem 0.5rem;
  color: white;
  cursor: pointer;
}

.multi-select-dropdown label input {
  margin-right: 0.5rem;
}

.hero-container-wide {
  position: relative;
  width: 100%;
  margin-top: 0rem;
}

.hero-container-wide {
  position: relative;
  width: 100%;
  margin-top: 0rem;
}

.hero-image-wide {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.hero-image-wide img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  filter: brightness(0.6);
}

@media (max-width: 900px) {
  .hero-image-wide {
    height: 280px;
  }
}

@media (max-width: 600px) {
  .hero-image-wide {
    height: 200px;
  }
}

@media (max-width: 400px) {
  .hero-image-wide {
    height: 120px;
  }
}

.hero-text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  max-width: 900px;
  text-align: center;
  padding: 0 1rem;
}

.hero-text-overlay h1 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.hero-text-overlay h2 {
  font-size: 1.2rem;
  color: #60a5fa; 
  margin-bottom: 1rem;
}

.hero-text-overlay p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.hero-content {
    background-color: rgba(30, 41, 59, 0.9); 
    padding: 1.5rem 0.7rem;                  
    width: 100%;                             
    margin: 1.5rem 0;                  
    text-align: center;                     
    box-sizing: border-box;                 
}

.hero-content h2 {
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.hero-content p {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;  
    gap: 1rem;                
    margin-top: 1.5rem;
}

.hero-buttons .button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #2563eb;
  color: #ffffff;
  border-radius: 6px;
  font-weight: 700;
  margin-right: 1rem;
  text-decoration: none;
  transition: 0.2s;
}

.hero-buttons .button:hover {
  background: #1e40af;
}

.hero-buttons .button.secondary {
  background: #ffffff;
  color: #2563eb;
  border: 2px solid #2563eb;
}

.hero-buttons .button.secondary:hover {
  background: #2563eb;
  color: #ffffff;
}

.no-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex: 0 0 auto;
}

.subheading {
    font-size: 1.4rem;
    font-weight: 800;
    color: #60a5fa; /* matches your accent color */
    margin-bottom: 0.5rem;
}

.about-intro,
.about-achievements,
.about-volunteering,
.about-hobbies {
    background-color: rgba(30, 41, 59, 0.9);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin: 1.5rem auto;
    max-width: 1200px;
}

.about-intro ul,
.about-achievements ul,
.about-volunteering ul,
.about-hobbies ul {
    margin-top: 0.5rem;
    padding-left: 1.2rem;
    line-height: 1.6;
}

.top-contact-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 0rem;
    flex-wrap: wrap;
}

.top-contact-bar .contact-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #ffffff;
    background-color: rgba(30, 41, 59, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    transition: transform 0.2s, background-color 0.2s;
    width: 300px;
    text-align: center;
}

.top-contact-bar .contact-item a:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    color: #ffffff;
}

.top-contact-bar .top-contact-icon {
    width: 24px;
    height: 24px;
    filter: invert(1); 
}

.about-to-portfolio-button {
    display: flex;
    justify-content: center;
    gap: 1rem;                
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-to-portfolio-button .button {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background: #2563eb;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
    max-width: 90vw;
    text-align: center;
    word-wrap: break-word;
    margin-right: 0;
}

.volunteering-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.volunteering-content ul {
    flex: 1;
}

.Index-Open-Day-Image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.Index-Open-Day-Image img {
    max-height: 350px;
    width: auto;
    border-radius: 10px;
}

.hobbies-images {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.hobbies-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hobbies-image img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

@media (max-width: 400px) {
    .hobbies-images {
        flex-direction: column;
    }

    .hobbies-image img {
        max-width: 100%;
        max-height: 300px;
    }
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.accordion-item {
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f1f1f1;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    transition: background 0.2s, color 0.2s;
}

.accordion-toggle:hover {
    background: #38bff86b;
}

.accordion-toggle .icon {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.accordion-toggle .chevron {
    transition: transform 0.3s;
}

.accordion-toggle .chevron {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #111;
  margin-left: 0.75rem;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-toggle .chevron {
  transform: rotate(180deg);
}


.accordion-content {
    display: none;
    padding: 0.5rem 1rem 0.75rem 1rem;
    color: #111827;
}

.accordion-item.active .accordion-content {
    display: block;
    background: #38bff86b;
}

.accordion-item.active .accordion-toggle {
    background: #38bff86b; 
}

@media (max-width: 500px) {
    .about-to-portfolio-button .button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

.about-to-portfolio-button .button:hover {
    background: #1e40af;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1088px) {
  .project-controls {
    flex-direction: column;       
    align-items: center;
  }

  .discipline-buttons,
  .filter-control {
    justify-content: center;      
    flex-wrap: wrap;
  }

  .filter-control {
    gap: 0.5rem;   
  }
}

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 455px) {
    .projects-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 350px) {
    .no-wrap {
        flex-direction: column;
        align-items: stretch;
        white-space: normal;
    }

    .no-wrap label {
        text-align: center;
    }
}

@media (max-width: 370px) {
    .navbar .logo img {
    display: none;
  }
}

@media (max-width: 840px) {
    .nav-links {
        position: absolute;
        top: 100px; 
        right: 0;
        background: #1e293b;
        flex-direction: column;
        width: 200px;
        padding: 1rem;
        gap: 1rem;
        border-radius: 0 0 0 10px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        white-space: normal;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .hamburger {
        display: flex;
    }

    .logo img {
        height: 100px;        
    }
    .logo-text {
        font-size: 1.4rem;   
    }

    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}