* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.hamburger{
    display: none;
}

html, body {
    height: 100%;
}

.main-content {
    flex: 1; /* Takes up remaining space */
}

body {
    background-color: #ffffff;
    color: #333;
    padding-top: 70px;
    padding-bottom: 70px;
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between; /* Ensures space between hamburger and nav */
    align-items: center;
    padding: 1rem 2rem;
    background-color: #333;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 65px;
}

nav {
    display: flex !important; /* Navbar visible and stable */
    flex-direction: row; /* Ensure it's in a row format */
    position: relative; /* Ensure the nav doesn't move */
    top: 0.5rem;
    left: auto;
    right: auto;
    width: auto; /* Avoid full-width nav bar on larger screens */
    background: none; /* Transparent background */
    max-height: none; /* No height restrictions */
    justify-content: flex-end; /* Align items to the right */
}


.nav-active {
    display: flex !important; /* Ensure the dropdown works on larger screens */
    max-height: none; /* No height restrictions */
}

nav a {
    font-size: 1.8rem; /* Reduce font size for better proportion */
    color: #ffffff;
    margin: 0 15px; /* Adjust margin for spacing */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease; /* Smooth transition */
    padding: 10px 12px; /* Adds padding for better clickability */
    display: flex;
    align-items: center; /* Ensure links are centered vertically */
    height: 100%; /* Fill the height of the navbar */
}

nav a:hover {
    color: #bad856;
    transform: translateY(-5px); /* Moves the link up by 5px on hover */
}

.hero {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    padding: 0; /* Remove any padding that pushes content down */
    margin-top: -0.7rem; /* Remove any margin that causes extra space */
    background: url('Jaguar.jpg') no-repeat center center/cover;
    position: relative; /* Adjusts positioning relative to the header */
}

@keyframes spinApple {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

#apple-image {
    animation: spinApple 3s linear infinite;
    transform-style: preserve-3d; /* Ensures the 3D effect */
    position: absolute;
    top: 5px; /* Adjust this value based on your header height */
    left: 20px; /* Align it to the left side */
    width: 50px; /* Adjust the size based on your preference */
    z-index: 10; /* Ensure it's above the header background */
}

#apple-image:hover {
    animation-play-state: paused;
}

.intro-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Align items to the left */
    height: 100%;
    padding-left: 10%; /* Add padding to create space from the left edge */
    text-align: left; /* Ensure the text inside is left-aligned */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.hero.loaded .intro-text {
    opacity: 1;
}


@keyframes movingText {
    0% {
        background-position: 100%;
    }
    100% {
        background-position: 0%;
    }
}

.intro-text h1 {
    font-size: 4rem;
    font-weight: bold;
    text-transform: uppercase;
    opacity: 1;
    padding: 15px 30px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 20px;
    text-align: center;

    /* Gradient Animation */
    background: linear-gradient(90deg, #333, #bad856, #ffffff);
    background-size: 300%;
    background-position: 100%;
    
    /* Ensure proper rendering */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;

    /* Animation */
    animation: movingText 3s linear infinite alternate;
}


.intro-text ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0 0 10px;
}

.intro-text li {
    font-size: 1.8rem;
    color: white;
    opacity: 0;
    background-color: rgba(51, 51, 51, 0.7);
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-out forwards;
}

.intro-text li::before {
    content: "•"; /* Unicode bullet */
    color: #bad856; /* Green Apple Theme */
    font-size: 2rem;
    font-weight: bold;
    margin-right: 10px;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-text li:nth-child(1) { animation-delay: 0.5s; }
.intro-text li:nth-child(2) { animation-delay: 1s; }
.intro-text li:nth-child(3) { animation-delay: 1.5s; }
.intro-text li:nth-child(4) { animation-delay: 2s; }
.intro-text li:nth-child(5) { animation-delay: 2.5s; }
.intro-text li:nth-child(6) { animation-delay: 3s; }

/* Hover Effect */
.intro-text li:hover {
    background-color: rgba(186, 216, 86, 0.5); /* Light green background */
    transform: scale(1.05); /* Slight zoom effect */
    box-shadow: 4px 4px 10px rgba(186, 216, 86, 0.5); /* Soft green glow */
    transition: all 0.3s ease-in-out;
}

/* Optional: Change bullet color on hover */
.intro-text li:hover::before {
    color: #ffffff; /* Change bullet color to white */
}

section {
    padding: 4rem 2rem;
    max-width: 100%;
    padding-left: 15%;
    padding-right: 15%;
}

.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 6rem auto;
    max-width: 80%;
}

.centered-heading {
    font-size: 2.8rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2.5rem;
}

.team-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

.team-member {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    gap: 2rem;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out;
    margin: 1rem;
}

.team-member:hover {
    transform: scale(1.02);
}

.team-member img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
}

.team-description {
    max-width: 600px;
    text-align: left;
}

.team-description h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.team-description p {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #333;
}



.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 0 6rem;
    margin-bottom: 6rem;
}

#projects p{
    text-align: center;
}

.project-card {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    cursor: pointer;
    
}


.project-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out; /* Smooth transition effect */
}

.project-card img:hover {
    transform: scale(1.1); /* Zooms the image to 125% on hover */
    z-index: 1; /* Ensure the zoomed image appears above other elements */
}


.project-card button {
    background-color: #bad856;
    color: #333;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    width: auto; /* Set the width to auto to fit the text */
    margin-top: 0.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto; /* Centers the button horizontally */
}


.project-card button:hover {
    background-color: #333;
    color: #bad856;
}

.project-card p {
    margin-top: 0.5rem;
}

.lightbox {
    display: none;
    position: fixed; /* Allows it to move within the viewport */
    top: 10rem;
    left: 20rem;
    width: 65%;
    height: 65%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    cursor: move; /* Changes cursor to indicate the element is draggable */
}


.lightbox img {
    max-width: 75%; /* Adjust the size as needed */
    max-height: 75%; /* Adjust the size as needed */
    object-fit: contain; /* Ensures the image scales properly within the container */
}

.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.lightbox-gif {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.close {
    position: absolute;
    top: 20px; /* Positioning the close button within the lightbox */
    right: 20px;
    font-size: 2.5rem; /* Increase size for better visibility */
    color: #333;
    background-color: #ffffff;
    cursor: pointer;
    padding: 5px 10px; /* Add some padding for a button-like appearance */
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effects */
}

.close:hover {
    background: #ffffff;
    color: #333; 
}


.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: #ffffff;
    cursor: pointer;
    background: none;
    border: none;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.carousel-images {
    display: flex;
    overflow-x: hidden;
}


footer {
    background-color: #333;
    color: #ffffff;
    text-align: center;
    padding: 2rem 0;
    position: relative; /* Change from fixed to relative */
    width: 100%;
    margin-top: auto; /* Ensures it moves to the bottom when content is short */
}

.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 0 6rem;
    margin-bottom: 6rem;
    grid-template-columns: repeat(6, 1fr);
    position: relative;
}

.skill {
    background-color: #333;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 75px; /* Set a fixed height for uniformity */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.skill h3 {
    font-size: 1.5rem;
    color: #bad856;
    margin-bottom: 0rem;
    flex-grow: 1; /* Ensures the title occupies available space evenly */
}

.skill:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.15);
}

.skill::before {
    display: flex;
    font-size: 2rem;
    color: #bad856;
    margin-bottom: 0.2rem;
    transition: transform 0.3s, color 0.3s;
}

.skill:hover::before {
    transform: scale(1.2);
    color: #333;
}

.skill:hover::after {
    content: attr(data-comment); /* Retrieves the comment from the data-comment attribute */
    position: absolute;
    top: -40px; /* Adjust positioning above the skill */
    left: 50%;
    transform: translateX(-50%);
    background-color: #bad856;
    color: #333;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    z-index: 10;
    font-size: 1rem;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    font-size: 12px;
}

#about, #projects, #skills, #contact {
    scroll-margin-top: 80px; 
}

#contact {
    text-align: center;
    padding: 50px 20px;
    background-color: #ffffff; /* White background */
}

.contact-container {
    max-width: 900px; /* Matches width of Projects & Skills sections */
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    border: 1px solid #333; /* Accent color */
}

.contact-description {
    font-size: 16px;
    color: #333; /* Dark text */
    margin-bottom: 20px;
    font-weight: 500;
}

.contact-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.form-group {
    width: 48%;
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    font-size: 14px;
    color: #333; /* Dark text */
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 5px;
    font-size: 14px;
    background-color: #ffffff; /* Light input fields */
}

.full-width {
    width: 100%;
}

.contact-buttons {
    width: 100%;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.primary-btn {
    background-color: #bad856; /* Light green */
    color: #ffffff;
    border: none;
    font-weight: 600;
}

.secondary-btn {
    background-color: #333;
    color: #ffffff; /* Dark text */
    border: 2px solid #bad856;
    font-weight: 600;
}

.secondary-btn:hover {
    background-color: #bad856;
    color: #333;
}


@media (max-width: 768px) {

    header {
        padding: 1rem;
        justify-content: space-between;
        height: 8rem;
    }

    nav {
        display: none; /* Hide navigation links for mobile */
        flex-direction: column; /* Stack menu items vertically */
        position: absolute;
        top: 70px;
        left: 0;
        background-color: #333;
        max-height: 0; /* Hide by default */
        overflow: hidden;
        width: auto; /* Dropdown adjusts to content */
        padding: 0.5rem; /* Minimal padding */
        transition: max-height 0.3s ease-out;
    }

    .nav-active {
        display: flex;
        max-height: 400px;
        width: auto; /* Dropdown with minimal width */
    }

    nav a {
        white-space: nowrap; /* Prevent line breaks */
        padding: 0.5rem;
        font-size: 2rem;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        font-size: 3rem;
        margin: 1rem;
        color: #ffffff;
    }

    /* Adjust main hero section to cover full screen */
    .hero {
        height: 100vh; /* Full viewport height for the home section */
        background: url('Jaguar.jpg') no-repeat center center/cover;
        padding: 5rem 1rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    @keyframes spinApple {
        0% {
            transform: rotateY(0deg);
        }
        100% {
            transform: rotateY(360deg);
        }
    }
    
    #apple-image {
        animation: spinApple 3s linear infinite;
        transform-style: preserve-3d; /* Ensures the 3D effect */
        position: absolute;
        top: 15px;
        right: 10px; /* Move to the right for mobile screens */
        left: auto; /* Disable left positioning */
        width: 50px; /* Resize for mobile */
    }

    .intro-text {
        padding-top: -5rem; /* Adjust this value to push the text down */
        padding-right: 5rem;
        max-width: 100%;
    }

    .intro-text h1 {
        font-size: 2.8rem; /* Smaller text size for mobile */
        color: #ffffff;
        margin: 0.5rem;
    }

    /* Adjust About section */
    
    .about {
        padding-top: 1rem;
        margin-top: 100px;
    }

    .team-container {
        width: 100%;
    }

    .team-member {
        flex-direction: column;
        text-align: center;
        width: 150%;
    }

    .team-member h3 {
        font-size: 1.8rem;
    }

    .team-member img {
        width: 120px;
        height: 120px;
    }

    /* Projects section adjustments */
    .projects {
        grid-template-columns: 1fr; /* Stack project cards vertically */
        margin: 3rem 1rem;
    }

    /* Skills section adjustments */
    .skills {
        grid-template-columns: repeat(2, 1fr); /* 2-column layout */
        gap: 1rem;
        margin: 2rem 1rem;
    }

    .skill h3 {
        font-size: 1.2rem;
    }

    /* Contact form adjustments */
    .contact-container {
        flex-direction: column;
        margin: 2rem 1rem;
        height: auto;
    }

    /* Footer adjustments */
    footer {
        padding: 1rem;
        font-size: 1.8rem;
    }

    .lightbox {
        display: none;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw; /* Full width of the viewport */
        height: 100vh; /* Full height of the viewport */
        background-color: rgba(0, 0, 0, 0.8); /* Background to darken the screen */
        z-index: 9999; /* Ensure it's above other content */
        overflow: hidden; /* Prevent overflowing content */
        transition: opacity 0.3s ease-in-out;
    }

    .lightbox img {
        max-width: 90%; /* Ensure image fits within the screen */
        max-height: 90%; /* Prevent the image from overflowing vertically */
        object-fit: contain; /* Ensure the image scales properly */
    }

    .close {
        position: absolute;
        top: 1rem; /* Position it at the top */
        right: 1rem; /* Position it on the right */
        font-size: 2rem;
        color: #ffffff;
        cursor: pointer;
        z-index: 10000; /* Make sure it stays above everything */
    }

}