* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
}
html {
    scroll-behavior: smooth;
}
.wrapper {
   display: grid;
  height: 100vh; 
  grid-template-columns: repeat(11, 1fr);
  grid-template-rows: repeat(10, 1fr);
  gap: 10px;

}
body {
    font-family: Avant Garde, SansSerif, Helvetica;
    background-color: #57062F;
    color: #b5d0ce;
}

.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 100px;
    position: sticky;
    top: 0;
    background-color: #57062F; 
    z-index: 100;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: #BCD0CE;
}

.nav-links a:hover {
    color: #57062F;
    background-color: #BCD0CE;
    padding: 5px 10px;
}

.logo {
    display:grid;
    grid-column: span 1;
    max-height: 30px;
    width: auto;
}
main {
    display: grid;
    grid-template-columns: auto;
}

section {
    padding: 10px;
    margin: 0
    
}
.motto {
    display: grid;
    grid-row-start:2;
    grid-row-end:8;
    grid-column-start:4;
    grid-column-end:9;
    margin: 0;
    z-index:1;
    font-size: 125px;
    text-align: center;

}
.highlight{
    color: white;
}
.aboutme {
    display: grid;
    align-content: center;
    grid-column:span 10;
    grid-row-start:4;
    grid-row-end:8;
    z-index:1;
    font-size: 75px;
    text-align: left;
    margin-left:100px;
}

.pagetitle {
    font-size: 15px;
}

.pagetitle2 {
    font-size: 15px;
    grid-column-start: 2;
}

.pagetitle3 {
    font-size: 15px;
    grid-column-start: 2;
    grid-row-start: 3;
}
.skills{
    margin: 50px, 0px;
}
.skill{
    font-size: 75px;
    grid-column: span 10;
    margin: 0;
    padding: 20px 10px;
}

.skill:hover {
    color: #57062F;
    background-color: #BCD0CE;
}

.clients {
    display: flex;  /* Changed from flex-inline */
    align-items: center;
    grid-column-start: 1;
    grid-column-end: 12;
    grid-row-start: 4;
    grid-row-end: 8;
    justify-content: space-between;
    margin: 20px 0px;
}

.clients-item {
    max-height: 200px;
    width: auto;
}

.clients-item:hover {
    min-height:300px;
}

/* Big top-left */
.projects1 {
  grid-column-start: 2;
  grid-column-end: 7;
  grid-row-start: 2;
  grid-row-end: 6;
  background-color: #BCD0CE;
  border-radius: 20px 0 0 0;
}

/* Top-right */
.projects2 {
  grid-column-start: 7;
  grid-column-end: 11;
  grid-row-start: 2;
  grid-row-end: 5;
  background-color: #BCD0CE;
}

/* Two small middle-left */
.projects34:nth-of-type(3) {
  grid-column-start: 2;
  grid-column-end: 5;
  grid-row-start: 6;
  grid-row-end: 9;
  background-color: #BCD0CE;
}

.projects34:nth-of-type(4) {
  grid-column-start: 5;
  grid-column-end: 7;
  grid-row-start: 6;
  grid-row-end: 9;
  background-color: #BCD0CE;
}

/* Tall middle-right */
.projects5 {
  grid-column-start: 7;
  grid-column-end: 11;
  grid-row-start: 5;
  grid-row-end: 12;
  border-radius: 0 0 20px 0;
  background-color: #BCD0CE;
}

/* Bottom-left wide */
.projects6 {
  grid-column-start: 2;
  grid-column-end: 7;
  grid-row-start: 9;
  grid-row-end: 12;
  background-color: #BCD0CE;
}

.profile{
    grid-column-start: 5;
    grid-column-end: 9;
    grid-row-start:4;
    grid-row-end:8;
    height:500px;
    width: 500px;
    border-radius: 50%;
    background-color: #BCD0CE;
}

.email{
    grid-column-start: 9;
    grid-row-start:3;
    height:150px;
    width:150px;
    border-radius: 50%;
    background-color: #BCD0CE;
}

.resume{
    grid-column-start: 10;
    grid-row-start:5;
    height:150px;
    width:150px;
    border-radius: 50%;
    background-color: #BCD0CE;
}

.linkedin{
    grid-column-start: 9;
    grid-row-start:7;
    height:150px;
    width:150px;
    border-radius: 50%;
    background-color: #BCD0CE;
}

.contact-text{
    grid-column-start:2;
    grid-column-end:6;
    grid-row-start:5;
    grid-row-end:7;
    font-size: 80px;
    text-align: left;
    margin-left:100px;
    z-index:2;
    color: white; 
}

footer{
    align-items: center;
    justify-content: center;
    display: flex;
    grid-column: span 1;
    grid-row:span 1;
    margin: 20px;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal-content {
    display: none;  /* ADD THIS LINE */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #BCD0CE;
    width: 600px;
    height: 400px;
    border-radius: 20px;
    padding: 40px;
    color: #57062F;
    font-size: 24px;
    z-index: 1001;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #BCD0CE;
}

/*media query for mobile devices */
/*media query for mobile devices */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
        position: fixed;  /* Change from sticky to fixed */
        top: 0;
        left: 0;
        right: 0;
        background-color: #57062F;
        z-index: 100;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: fixed;  /* Change from absolute to fixed */
        top: 50px;  /* Height of navbar */
        left: 0;
        right: 0;
        width: 100%;
        background-color: #57062F;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
        z-index: 99;
    }
    
    .nav-links.active {
        display: flex !important;  /* Add !important */
    }
    
    .nav-links h4 {
        margin: 0;  /* Remove default h4 margin */
    }
    
    .nav-links a {
        padding: 15px;
        display: block;
        text-align: center;
    }
    
     .wrapper {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: auto;
        height: auto;
    }
    
    .motto {
        grid-column: 1 / -1;
        grid-row: 2 / 4;
        font-size: clamp(40px, 8vw, 70px);
        padding: 20px;
    }
    
    .aboutme {
        grid-column: 1 / -1;
        grid-row: auto;
        margin-left: 20px;
        margin-right: 20px;
    }
    
    .profile {
        grid-column: 2 / 6;
        grid-row: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        max-width: 400px;
        justify-self: center;
    }
    .clients{
        display:flex;
    }
    
   .clients-item{
       justify-content: space-between;
   } 
    .email,
    .resume,
    .linkedin {
        width: 120px;
        height: 120px;
    }
    
    /* Projects layout for tablets */
    .projects1 {
        grid-column: 1 / 4;
        grid-row: auto;
        border-radius: 10px 10px 0 0;
    }
    
    .projects2 {
        grid-column: 4 / 7;
        grid-row: auto;
    }
    
    .projects34:nth-of-type(3),
    .projects34:nth-of-type(4) {
        grid-column: 1 / 4;
        grid-row: auto;
    }
    
    .projects5 {
        grid-column: 4 / 7;
        grid-row: auto;
        border-radius: 0 0 10px 10px;
    }
    
    .projects6 {
        grid-column: 1 / 7;
        grid-row: auto;
    }
    
    .clients {
        flex-direction: column;
        gap: 20px;
    }
}

}

 