html, body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: rgb(40, 3, 35);
    color: white;
    max-width: 100%;
    overflow-x: hidden;
}

header {
    background-color: #6c0683;
    color: white;
    padding: 20px 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1px 30px;
    background-color: #6c0683; 
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
    color: white;
    font-weight: bold;
}

/* Link style (text only) */
.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ddd; /* hover effect */
}

/* Vertical divider */
.divider {
    color: white;
    font-weight: normal;
    padding: 0 5px;
    user-select: none;
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    height: 40px;
    border: 2px solid white;
    border-radius: 5px;
}

.nav-button {
    background-color: #fff;
    color: #6c0683;
    border: 3px solid rgb(40, 3, 35);
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-button:hover {
    background-color: rgb(40, 3, 35);
    color: #fff;
}

main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

main p {
    font-size: 18px;
    color: white;
    margin-bottom: 20px;
}

.left-side, .right-side {
    flex-basis: 100%;
    text-align: center;
    margin-bottom: 20px;
}


.button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;
    align-items: center;
    max-width: 540px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.main-button {
    background-color: #fff;
    color: #6c0683;
    border: 2px solid #6c0683;
    width: 250px;
    height: 45px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    margin-top: 10px;
    align-self: center;
    display: inline-flex; 
    justify-content: center;
    align-items: center;
}


.main-button:hover {
    background-color: #6c0683;
    color: #fff;
}

.gmail-container {
    text-align: flex;
}

.gmail-address {
    text-align: center;
    display: block;
    margin-right: 68px;
    margin-top: 30px;
    font-size: 16px;
    color: white;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    justify-content: center;
}

.image-grid img {
    width: 80%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

@media (min-width: 600px) {
    .left-side, .right-side {
        flex-basis: 48%;
        text-align: left;
    }
}

/* Projects page */

.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    width: 100%;
}

.project-item {
    width: 48%;
    box-sizing: border-box;
}

.collapsible {
    background-color: #6c0683;
    color: white;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;    
    border-radius: 5px 5px 3px 3px;
    box-sizing: border-box;
}

.active, .collapsible:hover {
    background-color: #5a056d;
}

.content {
    padding: 0 18px;
    background-color: #6c0683;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    border: 2px solid rgb(40, 3, 35);
    border-radius: 0 0 10px 10px;
    margin-top: -2px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .projects-container {
        flex-direction: column;
    }
    .project-item {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .projects-container {
        flex-direction: column;
    }
    .project-item {
        width: 100%;
    }
}

/* Modules */

.about-me {
    max-width: 1300px;
    margin: 50px auto;
    padding: 20px;
    background-color: #6c0683;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.about-me h1, .about-me h2 {
    color: white;
}

.about-me p {
    font-size: 1.1em;
    line-height: 1.6;
}

.about-me ul {
    list-style-type: disc;
    padding-left: 20px;
}

.modules-container {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 20px;
}

.module-year {
    flex: 1;
    min-width: 200px;
    color: white;
}

.module-year h3 {
    margin-top: 0;
    color: #fff;
}

.module-year ul li {
    margin-bottom: 13px;
}

/* Final Project page */

.dissertation-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px;
    max-width: 1300px;
    margin: 0 auto;
    gap: 100px;
}


.dissertation-container .left-side {
    flex: 1 1 50%;
    text-align: left;
}

.dissertation-container .right-side {
    flex: 1 1 40%;
    text-align: center;
}


.dissertation-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid white;
}

/* Apie Mane page */

.about-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1000px; /* limit overall width */
    margin: 0 auto;
    padding: 40px 20px;
}

.about-section {
    display: flex;
    align-items: center;
    justify-content: space-between; /* space evenly */
    gap: 30px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-section.reverse {
    flex-direction: row-reverse;
}

.about-image {
    flex: 0 0 35%; /* fix image width */
    display: flex;
    justify-content: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid white;
}

.about-text {
    flex: 1; /* take remaining space */
    color: white;
}

.about-text h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.about-text p {
    font-size: 1.1em;
    line-height: 1.6;
}

/* Skills page */



/* Mobile layout */
@media (max-width: 768px) {
    .dissertation-container {
        flex-direction: column;
        align-items: center;
    }

    .dissertation-container .left-side, 
    .dissertation-container .right-side {
        flex-basis: 100%;
        text-align: center;
    }

    .about-section,
    .about-section.reverse {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        flex: unset;
        width: 100%;
    }

    .about-image img {
        width: 80%;
        max-width: 300px;
    }
}

/* Skills */
.skills {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

.skills h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}


.skills-card {
  background: #6c0683;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.skills-card h3 {
  margin-top: 0;
  margin-bottom: 15px;
}

.skills-card ul {
  padding-left: 20px;
}

.skills-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.skills-card:last-child {
  grid-column: 2;
}

/* Hero section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Buttons layout */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
}

/* Social links */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.social-links img {
  width: 50px;
  height: auto;
  border-radius: 6px;
  transition: transform 0.3s;
}

.social-links img:hover {
  transform: scale(1.1);
}

/* Gmail */
.gmail-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gmail-address {
  margin-top: 10px;
  font-size: 0.95rem;
  color: white;
}

/* Footer
.site-footer {
  text-align: center;
  padding: 20px;
  background: #5a056d;
  font-size: 0.9rem;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
} */