* {
    box-sizing: border-box;
}
  
body, html {
    max-width: 100%;
    overflow-x: hidden;
}
    
html {
    scroll-behavior: smooth;
}

.bg-video {
position: fixed;
top: 0;
left: 0;
min-width: 100vw;
min-height: 100vh;
object-fit: cover;
z-index: -1;
}

#wrapper {
    background-image: url('../images/main.jpg');
    background-size: cover;
}

#wrapperHeader {
    background-image: url('../images/main.jpg');
    background-size: cover;
    
}

header {
    display: flex;
    flex-direction: row;
    background-color: transparent;
    color: black;
    padding: 50px 30px 30px 30px;
    justify-content: space-between;
    align-items: center;
    position: sticky;   
}

.logo {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 30px;
    text-decoration: none;
    color: black; 
}

.navbar {
    list-style: none; /*remove bullet*/
    margin: 0;
    padding: 0;
    display: flex;
    padding-right: 50px;
    gap: 50px; 
    flex-direction: row;
}

.navbar li {
    position: relative;
}

.navbar a {
    color: black;
    text-decoration: none;
    font-family: monospace;
    font-weight: bold;
    font-size: 20px;
    padding: 10px;
    display: block;
}

.navbar a:hover {
    color: #a5311d;
}

.dropdown-content {
    display: none; /*hide the menu*/
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 20px;
}

.dropdown-content li a {
    padding: 10px 20px;
    white-space: nowrap; /*Prevents the link text from breaking onto multiple lines*/
}

.dropdown:hover .dropdown-content {
    display: block; /*displaying hidden menu*/
}

body {
    background-color: rgb(239, 237, 237);
    margin: 0;
    padding: 0;
}

#intro {
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
}

#intro h1 {
    font-size: 6vw;

}

#intro p {
    font-size: 2vw;
   
}
.intro-text {
    text-align: center;
    line-height: 0.2;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.3s; 
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-arrow {
    width: 30px;
    position: absolute;
    bottom: 10px;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(10px);
    }
}

#about {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    display: flex;
    align-items: center;
    padding: 70px;
    background-color: rgb(255, 255, 255);
    
  
}
.about-image {
    margin: 100px;
}

.about-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover; 
}

.about-text {
    font-size: x-large;
    text-align: left;
    width: 60%;
}

#background {
    background-color: rgb(255, 255, 255);
    font-size: x-large;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    display: flex;
    padding: 40px 150px;
    gap: 30px;
}

.bg-title {
    padding-right: 20px;
    
}

.timeline {
    position: relative;
    padding-left: 40px;
    border-left: 3px solid #847983;
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
}

.timeline-date {
    font-weight: bold;
    color: #847983;
    margin-bottom: 5px;
}

.timeline-content h3 {
    margin: 0;
    font-size: 1.2em;
    color: #2c3e50;
}

.timeline-content p {
    margin: 5px 0;
    color: #555;
}

#skills {
    background-color: rgb(255, 255, 255);
    font-size: x-large;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    padding: 40px 150px; 
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-top: 25px;
    text-align: center;
} 

.skill-item img {
    width: 80px;  
    height: 80px;
    margin-bottom: 0px;
    margin-top: 5px;
    object-fit: cover;
    
}

.skill-item p{
    margin-top: 0px;
    padding-top: 0px;
}

#projects {
    font-size: large;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    margin: 50px ;
    display: flex;
    gap: 20px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 100px;
}

.project-card {
    display: flex;
    background-color: white;
    border-radius: 20px;
    padding: 20px;
    width: 800px; 
    height: 300px;
    align-items: stretch;
    margin-bottom: 20px;
    overflow: hidden;
    flex-wrap: nowrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card img {
    max-height: 400px;
    width: 300px;
    border-radius: 10px;
    object-fit: cover;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
  }

.project-info {
    display: flex;
    flex-direction: column;
    background-color: white;
    width: 60%;
    margin-left: 20px;
    padding: 20px;
    text-align: justify ;
    justify-content: space-between; 
}

.project-btn {
    background-color: pink;
    text-decoration: none;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    justify-content: space-between;
    width: 100%;
}

.project-btn:hover {
    background-color: rgb(252, 152, 169);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
  
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

#footer {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    width: 100%;
    margin-top: 10px;
    padding-top: 20px;
    text-align: center;
    background-color: rgb(196, 194, 194);
}

.copyright {
    color: rgb(90, 90, 90);
    padding: 10px;
    padding: 20px;
    font-family: monospace;
}

.social-links img {
    width: 40px;
    height: 40px;
    margin: 20px;
    border-radius: 10px;
}

#email-form {
    background-color: #f9f9f9; 
    padding: 20px;
    border-radius: 10px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    width: 100%;
    max-width: 800px; 
    margin: 20px auto; 
    font-family: Arial, sans-serif;
    opacity: 0;
    animation: fadeUp 1s ease-in-out both;
    display: none; 
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#email-form p {
    text-align: left;
    margin: 0px;
    padding: 0px;
    color: grey;
}

#email-form input,
#email-form textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ababab;
    border-radius: 10px;
    box-sizing: border-box; 
    font-size: 16px;
    resize: none;
}

#email-form button {
    background-color: pink;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 10px;
    width: 20%;
}
#email-form button:hover {
    background-color: rgb(252, 152, 169);
}

main {
    padding: 40px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

#overview {
    padding: 0px 200px;
    font-size: x-large;
    margin-bottom: 50px;
} 

#overview h1 {
    text-align: center;
}

#overview img {
    width: 800px;
    height: auto;
}

.content-wrapper {
    padding-top: 30px;
}

.image-wrapper {
    text-align: center; 
}

.screenshots-gallery {
    display: flex;
    height: auto;          
    width: 100%;             
    gap: 20px;                
    justify-content: center; 
    align-items: center; 
}
.screenshots-gallery img {
    height: 100%;            
    width: auto;             
    max-width: 100%;      
}

.link-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 8px 0;
    font-size: 16px;
    font-family: monospace;
    font-weight: bold;
    text-decoration: none;
    color: black;
    background-color: #a2e242;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
  
.link-button:hover {
    background-color: rgb(11, 180, 11);
    color: white;
}

.link-button2 {
    display: inline-block;
    padding: 10px 20px;
    margin: 8px 0;
    font-size: 16px;
    font-family: monospace;
    font-weight: bold;
    text-decoration: none;
    color: black;
    background-color: rgb(190, 166, 234);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
.link-button2:hover {
    background-color: rgb(100, 77, 140);
    color: white;
}

@media screen and (max-width: 768px) {
    #wrapperHeader {
        width: 100%;
        padding-bottom: 30px;
    }

    header {
        flex-direction: column; 
        justify-content: space-between;
        align-items: center;
        padding: 50px 30px 30px 30px;
    }

    .navbar {
        list-style: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 70vw;
        background-color: rgb(255, 255, 255, 0.6);
        position: relative;
        top: 30px;
        border-radius: 15px;
        margin: 0; 
        padding: 0; 
        gap: 0;
    }

    .navbar li {
        list-style: none;
        display: flex;
        justify-content: center;
        text-align: center;
        width: 100%; 
        margin: 0 ; 
        box-sizing: border-box;
        padding: 10px;
    }

    .intro-text p {
        margin: 10px 0;
        line-height: 1.4;
    }

    .navbar.active {
        display: flex;
    }

    .dropdown {
        position: relative;
        opacity: 1;
    }

    .dropdown-content {
        background-color: white;
        z-index: 1000;
        display: none;
        position: absolute;
        padding: 0;
        left: 0;
        right: 0;
        margin: 0 20px;
    }

    #about {
        flex-direction: column;
        align-items: center;
    }

    .about-image {
        margin: 0 0 20px 0; 
    }

    .about-image img {
        width: 150px;
        height: 150px;
    }

    .about-text {
        width: 95%;
        font-size: 3vw;
        text-align: justify;
    }

    .about-text h2{
        text-align: center;

    }

    #background {
        flex-direction: column;
        padding: 30px;
        font-size: 3vw;
    }

    .bg-title {
        padding-right: 0;
        margin-bottom: 20px;
        text-align: center;
    }
    
    #skills {
        font-size: 3vw;
        padding: 30px;
        text-align: center;
    }

}

@media screen and (max-width: 768px) {
   
    #intro {
        flex-direction: column; 
        height: auto;
        padding: 40px 20px;
    }

    .scroll-arrow {
        position: static; /* So it doesn’t overlap text */
        margin-top: 20px;
        animation: bounce 2s infinite;
    }
    #intro h1 {
      font-size: 8vw;
    }
  
    #intro p {
      font-size: 4vw;
    }
  
    .project-card {
      flex-direction: column;
      width: 100%;
      height: auto;
    }
  
    .project-card img {
      width: 100%;
      height: auto;
    }
  
    .project-info {
      width: 100%;
      align-items: flex-start;
      margin-left: 0;
    }

    .project-btn {
        width: 100%; 
        text-align: center;
        font-size: 14px;
    }
  
    #projects {
      padding: 20px;
    }
  
    footer {
      padding: 20px;
    }

    #email-form {
        padding: 20px;
        width: 80%;       
        max-width: 90%;       /* override the 800px limit */
    }
    
    #email-form button {
        width: 100%;        
    }

  
    #overview {
        padding: 20px 15px; /* reduce horizontal padding */
        font-size: large;   
        margin-bottom: 30px;
    }
    
    .content-wrapper {
        padding-top: 20px;
        display: flex;
        flex-direction: column;
        text-align: justify; 
    }
  
    .image-wrapper iframe{
        width: 100%;   
        height: auto;  
        max-width: 100%; /* prevent overflow */
        aspect-ratio: 16 / 9; /* keep video aspect ratio */
    }

    .image-wrapper img {
        width: 100%;  
        height: auto;  
        display: block;   /* Removes bottom space/gap under image */
        max-width: 100%;  /* Prevents image from growing larger than container */
    }
    
    .screenshots-gallery {
        flex-direction: column;
        gap: 15px;
    }

    .screenshots-gallery img {
        width: 100%;
        height: auto;
        max-width: 90vw; 
    }

    .project-links {
        display: flex;
        flex-direction: column;
    }
 
}


