/* Ensure the HTML and body cover the full height and no overflow */
html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; 
    font-family: Arial, sans-serif;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overflow-y: scroll;
}

/* Full-screen header */
.main-header {
    width: 100%;
    height: 100vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 960px;
    margin: 0 auto; 
    padding: 20px;
    }
    
@media (max-width: 768px) {
    .main-header {
        height: 100vh; 
    }
    
    #education {
        height: 225vh; 
    }
}

@media (max-width: 425px) {
    .main-header p {
        width: 95%;
    }
    .education-details {
        width: 90% !important;
    }
    .project-images {
        width: 90% !important;
    }
    #work-title {
        font-size: 46px;
        text-align: center;
    }
    .carousel-control {
        top: 93% !important;
    }
    .project-link {
        display: block !important;
        text-align: left !important;
        width: 120% !important
    }
}

section {
    width: 100%;
    height: 100vh;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 0 auto; 
    border-radius: 8px;
    box-sizing: border-box; 
}

/* Background styling for the body
body {
    background: url('../images/background-image.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
} */

.main-header h1 {
    font-size: 48px;
    color: white;
}

.main-header p {
    font-size: 20px;
    color: white;
    line-height: 1.6;
}

/* Styles for Education and Work */
section h1 {
    color: white;
    font-size: 48px;
}

section h2 {
    color: white;
    font-size: 24px;
}

section h3 {
    font-size: 20px;
    color: white;
}

section p, section li {
    font-size: 16px;
    color: white;
    line-height: 1.5;
}

ul {
    list-style-type: none; 
    padding: 0;
}

#education .container {
    display: block;
    max-height: none;
    overflow: visible;
}

.education-details {
    width: 100%;
    padding: 20px;
    overflow-y: auto;
    text-align: center;
}

.project-images {
    width: 100%;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    overflow-y: auto;
}

.project-images img,
.project-images p {
    width: 95%;
    margin-bottom: 0;
}

.project-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.project-link img {
    max-width: 90%; 
    height: auto; 
    transition: transform 0.3s ease; 
}

.project-link p {
    width: 90%; 
    margin-top: 20px; 
    transition: transform 0.3s ease; 
}

.project-link:hover {
    background-color: rgba(200, 200, 200, 0.3); 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /
    transform: scale(1.05); 
}

.project-link:hover img {
    transform: scale(1.1); 
}

.project-link:hover p {
    transform: scale(1.05); 
}


@media (max-width: 768px) {
    .project-images {
        grid-template-columns: 1fr; /* Stack images in one column on smaller screens */
    }
    .container {
        grid-template-columns: 1fr; 
    }
}

/* Carousel Styles */
.carousel {
    position: relative;
    max-width: 900px;
    margin: auto;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    height: 500px;
    align-items: center;
    transition: transform 0.5s ease-in-out;
    text-align: center;
    background-color: rgba(200, 200, 200, 0.3); 
}

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    padding: 20px;
    display: none;
}

.carousel-item.active {
    display: block; 
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-25%);
    color: white;
    padding: 10px;
    cursor: pointer;
    font-size: xx-large;
}


.carousel-control.prev {
    left: 0;
}

.carousel-control.next {
    right: 0;
}

#work-title {
    text-align: center;
}

/* Styles for Home Page Icons */
.social-icons {
    text-align: center; 
    margin-top: 20px; 
    padding: 10px 0; 
}

.social-icons a {
    margin: 0 10px; 
    color: #000;  
    font-size: 24px; 
    text-decoration: none; 
    background-color: #e7e7e7;  
    padding: 10px;  
    border-radius: 15%;  
    display: inline-block; 
    transition: background-color 0.3s, color 0.3s;  
}

.social-icons a:hover {
    color: #555; 
    background-color: #d6d6d6; 
    transform: scale(1.1);  
}

.resume-download {
    text-align: center;
    margin-top: 20px; 
}

.resume-download button {
    padding: 10px 20px; 
    background-color: #4CAF50;  /* Green background */
    color: white; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    transition: background-color 0.3s, transform 0.3s;  
}

.resume-download button:hover {
    background-color: #45a049;  
    transform: scale(1.1);  
}




/* Styling for the Navigation */
nav {
    text-align: left; 
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 10px 20px; 
    background-color: transparent; 
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-right: 20px; 
    background-color: transparent; 
    border: 2px solid white; 
    border-radius: 10px;
    padding: 5px 10px;
}

nav ul li a {
    color: white; 
    text-decoration: none;
    font-size: 16px; 
    transition: color 0.3s, background-color 0.3s; 
}

nav ul li a:hover,
nav ul li a:focus {
    color: #ffa500; 
}

/* Background styling */
body {
    background: url('../images/background-image.jpg') no-repeat center center fixed;
    background-size: cover;
    background-repeat: repeat-x;
    background-attachment: fixed;
    background-width: 100%;
    position: absolute;
}

/* Media Queries for Tablets */
@media (max-width: 768px) {
    .main-header h1 {
        font-size: 32px; 
    }
    .main-header p {
        font-size: 16px; 
    }
    .main-header {
        max-width: 748px;
    }

    #education {
        margin-top: 90px;
    }
}

/* Media Queries for Smartphones */
@media (max-width: 425px) {
    .main-header {
        max-width: 405px;
    }
    .main-header h1 {
        font-size: 24px; 
        color: white;
    }
    .main-header p {
        font-size: 14px;
        color: white;
    }
    body, html {
        height: auto; 
        min-height: 100%;
        display: block; 
    }
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
body {
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        color: black;
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        color: white;
        opacity: 1;
    }
}

.element-slide-in {
    animation: slideInFromLeft 1s ease-out forwards;
}


