
.projects {
    position: relative;
    text-align: center;
    padding: 50px 10%;
    color: white;
    overflow: hidden; /* Prevents unnecessary scrollbars */
    background: rgba(15, 15, 15, 0.9);
}



/* 🔹 Projects Quote Section */
.projectsquote-section {
    text-align: center;
    margin-bottom: 60px; /* Adds space between the quote and the projects */
}

/* 🔹 Projects Grid Layout */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* 🔹 Individual Project Card */
.project-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* 🔹 Project Image */
.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

/* 🔹 Project Content */
.project-content {
    padding: 15px 10px;
}

/* 🔹 Project Title */
.project-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
}

/* 🔹 Project Description */
.project-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* 🔹 Hover Effect - Expand Card */
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* 🔹 Hover Effect - Image Zoom */
.project-card:hover img {
    transform: scale(1.05);
}

/* Hide the description by default */
.project-description {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    margin-top: 10px;
    border-radius: 5px;
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.6;
    text-align: left; /* Left-aligned text */
}

.project-description strong {
    font-weight: bold;
    color: #ffffff; /* Ensures the bold text is brighter and more noticeable */
}


/* Style the toggle button */
.toggle-description-btn {
    background: #444;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.toggle-description-btn:hover {
    background: #666;
}

/* 🔹 GitHub Link Styling */
.project-description a {
    color: #ffffff; /* White color for link */
    text-decoration: underline; /* Underlined for visibility */
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

/* 🔹 Hover Effect for GitHub Link */
.project-description a:hover {
    color: #cccccc;
}

/* 🔹 GitHub Call-to-Action */
.GitHub-cta {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background: rgba(51, 51, 51, 0.2); /* Subtle GitHub-themed background glow */
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(51, 51, 51, 0.5); /* Lighter grayish-black glow */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease-in-out;
}

/* 🔹 GitHub CTA Text */
.GitHub-cta p {
    font-size: 1.4rem;
    font-weight: 500;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* 🔹 GitHub Button */
.Github-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(51, 51, 51, 0.3); /* GitHub-like background */
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 1);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 20px rgba(51, 51, 51, 0.8); /* GitHub-themed glow */
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* 🔹 Hover Effect */
.Github-button:hover {
    background: #333; /* GitHub color */
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(51, 51, 51, 0.9); /* Darker GitHub-themed glow */
    border: 2px solid rgba(255, 255, 255, 0.8);
}

/* 🔹 Responsive CTA */
@media (max-width: 768px) {
    .GitHub-cta {
        max-width: 90%;
        padding: 20px;
    }

    .Github-button {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* 🔹 Cursor Container */
.cursor-highlight {
    position: absolute;
    top: 90px; /* Moves the arrow further down */
    left: -80px; /* Adjusts it more to the right */
    display: flex;
    align-items: center;
    flex-direction: column; /* Ensures the label is above the arrow */
    gap: 10px; /* Adds spacing */
    z-index: 1; /* Keeps it behind other elements */
}

/* 🔹 Cursor Text (Most Featurable Box) */
.cursor-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 6px 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    transform: rotate(-15deg);
    position: absolute;
    top: -50px; /* Moves the text box up */
    left: -30px; /* Aligns it where the arrow previously was */
    z-index: 2; /* Keeps the text behind the arrow */
    transform: rotate(-28deg); /* Rotate counterclockwise */
}

/* 🔹 Cursor Image (Arrow) */
.cursor-image {
    width: 120px; /* Increased size */
    height: auto;
    transform: rotate(110deg) scaleX(-1);
    filter: invert(1);
    z-index: 2; /* Ensures cursor remains above the text */

    background: none !important; /* Ensures no background */
    box-shadow: none !important; /* Removes any shadows */
    border: none !important; /* Ensures no border */
    display: block; /* Prevents inline display issues */
}


/* 🔹 Responsive Adjustments */
@media (max-width: 768px) {
    .cursor-highlight {
        top: 20px;
        left: 5%;
    }

    .cursor-text {
        font-size: 1.2rem;
        padding: 5px 10px;
    }

    .cursor-image {
        width: 45px;
    }
}

/* 🔹 Glowing Effect for Most Featurable, Cursor, and Wandermate Box */
@keyframes glowEffect {
    0% { text-shadow: 0 0 8px rgba(255, 255, 255, 0.4); box-shadow: 0 0 8px rgba(255, 255, 255, 0.4); }
    50% { text-shadow: 0 0 18px rgba(255, 255, 255, 0.8), 0 0 25px rgba(255, 255, 255, 0.6); box-shadow: 0 0 18px rgba(255, 255, 255, 0.8), 0 0 25px rgba(255, 255, 255, 0.6); }
    100% { text-shadow: 0 0 8px rgba(255, 255, 255, 0.4); box-shadow: 0 0 8px rgba(255, 255, 255, 0.4); }
}

/* 🔹 Apply Glow Effect to Other Elements (EXCLUDING Quote) */
.cursor-text, /* Most Featurable Box */
.cursor-image, /* Cursor */
.wandermate-box { /* Wandermate Project Box */
    animation: glowEffect 1.2s infinite alternate;

}

/* 🔹 Separate Glowing Effect for Project Quote Only */
@keyframes projectQuoteGlowEffect {
    0% { text-shadow: 0 0 8px rgba(255, 255, 255, 0.4); }
    50% { text-shadow: 0 0 18px rgba(255, 255, 255, 0.8), 0 0 25px rgba(255, 255, 255, 0.6); }
    100% { text-shadow: 0 0 8px rgba(255, 255, 255, 0.4); }
}

/* 🔹 Apply Glow Effect Only to the Projects Quote */
.projectsquote-section .projects-left, 
.projectsquote-section .projects-right {
    animation: projectQuoteGlowEffect 1.2s infinite alternate;
}

/* 🔹 Keep Other Quotes Independent */
.quote-left, .quote-right,
.insight-left, .insight-right,
.Experience-left, .Experience-right,
.resume-left, .resume-right,
.credentials-left, .credentials-right,
.contact-left, .contact-right {
    animation: glowEffect 1.2s infinite alternate;
}


/* 🔹 Video Background */
.video-container {
    position: absolute; /* Keeps it behind the content */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Fixed height */
    overflow: hidden; /* Prevents resizing */
    pointer-events: none;  /* Disables user interaction */
    user-select: none;  /* Prevents selection */
    -webkit-user-drag: none;  /* Prevents dragging on Safari */
}


.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; /* Ensures full screen width */
    height: 220vh; /* Increased height to extend further */
    overflow: hidden; /* Prevents scrolling issues */
    z-index: -1; /* Ensures it stays in the background */
    pointer-events: none;  /* Disables user interaction */
    user-select: none;  /* Prevents selection */
    -webkit-user-drag: none;  /* Prevents dragging on Safari */
}


.video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw; /* Full width */
    height: 220vh; /* Extended height */
    object-fit: cover; /* Ensures video covers the entire section */
    transform: translate(-50%, -50%); /* Centers the video properly */
}

/* 🔹 Overlay to Improve Readability */
.projects::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Darkens video for better text contrast */
    z-index: 0;
}

/* 🔹 Projects Content */
.projects-content {
    position: relative;
    z-index: 2; /* Ensures content stays above video */
}


/* xs */
@media (max-width: 475px) {
    .container {
        width: 100%;
        padding: 0 10px; /* Adjust padding for better spacing */
    }

    /* Projects Section */
    .projects {
        padding: 30px 5%;
        text-align: center;
    }

    /* Projects Quote Section */
    .projectsquote-section {
        margin-bottom: 40px;
    }

    /* Projects Grid Layout */
    .projects-container {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 15px;
        max-width: 100%;
    }

    /* Individual Project Card */
    .project-card {
        padding: 15px;
    }

    /* Project Image */
    .project-card img {
        height: 140px; /* Adjusted height */
    }

    /* Project Title */
    .project-content h3 {
        font-size: 1.2rem;
    }

    /* Project Description */
    .project-content p {
        font-size: 0.9rem;
    }

    /* GitHub CTA */
    .GitHub-cta {
        max-width: 90%;
        padding: 15px;
        text-align: center;
    }

    /* GitHub Button */
    .Github-button {
        font-size: 14px;
        padding: 8px 16px;
    }

    /* Cursor Adjustments - Moves "Flagship Project" further down & left */
    .cursor-highlight {
        top: 100px; /* Moves further down */
        left: -30px; /* Shifts left */
    }

    .cursor-text {
        font-size: 1rem;
        padding: 5px 8px;
        top: -35px;
        left: -15px;
    }

    .cursor-image {
        width: 90px; /* Slightly smaller arrow */
    }

    /* Video Background */
    .video-container {
        height: 150vh; /* Adjusted height */
    }

    .video-container video {
        height: 150vh; /* Adjusted video size */
    }

    /* Overlay */
    .projects::before {
        background: rgba(0, 0, 0, 0.6); /* Darker overlay for readability */
    }
}

/* sm */
@media (max-width: 640px) {
    .container {
        max-width: 475px;
        padding: 0 15px; /* Adjust padding for better spacing */
    }

    /* Projects Section */
    .projects {
        padding: 40px 7%;
        text-align: center;
    }

    /* Projects Quote Section */
    .projectsquote-section {
        margin-bottom: 50px;
    }

    /* Projects Grid Layout */
    .projects-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Smaller cards in responsive grid */
        gap: 18px;
        max-width: 100%;
    }

    /* Individual Project Card */
    .project-card {
        padding: 18px;
    }

    /* Project Image */
    .project-card img {
        height: 160px; /* Adjusted height */
    }

    /* Project Title */
    .project-content h3 {
        font-size: 1.3rem;
    }

    /* Project Description */
    .project-content p {
        font-size: 1rem;
    }

    /* GitHub CTA */
    .GitHub-cta {
        max-width: 85%;
        padding: 20px;
        text-align: center;
    }

    /* GitHub Button */
    .Github-button {
        font-size: 15px;
        padding: 10px 18px;
    }

    /* Cursor Adjustments */
    .cursor-highlight {
        top: 130px; /* Moves further down */
        left: -25px; /* Shifts slightly left */
    }

    .cursor-text {
        font-size: 1.1rem;
        padding: 6px 9px;
    }

    .cursor-image {
        width: 85px;
    }

    /* Video Background */
    .video-container {
        height: 170vh; /* Adjusted height */
    }

    .video-container video {
        height: 170vh; /* Adjusted video size */
    }

    /* Overlay */
    .projects::before {
        background: rgba(0, 0, 0, 0.55); /* Dark overlay for readability */
    }
}

/* md */
@media (max-width: 768px) {
    .container {
        max-width: 640px;
        padding: 0 20px; /* Adjusted padding for better spacing */
    }

    /* Projects Section */
    .projects {
        padding: 50px 8%;
        text-align: center;
    }

    /* Projects Quote Section */
    .projectsquote-section {
        margin-bottom: 55px;
    }

    /* Projects Grid Layout */
    .projects-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Ensures a smooth grid layout */
        gap: 20px;
        max-width: 100%;
    }

    /* Individual Project Card */
    .project-card {
        padding: 20px;
    }

    /* Project Image */
    .project-card img {
        height: 170px; /* Adjusted height */
    }

    /* Project Title */
    .project-content h3 {
        font-size: 1.4rem;
    }

    /* Project Description */
    .project-content p {
        font-size: 1.05rem;
    }

    /* GitHub CTA */
    .GitHub-cta {
        max-width: 80%;
        padding: 25px;
        text-align: center;
    }

    /* GitHub Button */
    .Github-button {
        font-size: 16px;
        padding: 12px 22px;
    }

    /* Cursor Adjustments */
    .cursor-highlight {
        top: 120px;
        left: -20px;
    }

    .cursor-text {
        font-size: 1.2rem;
        padding: 7px 10px;
    }

    .cursor-image {
        width: 80px;
    }

    /* Video Background */
    .video-container {
        height: 190vh; /* Adjusted height */
    }

    .video-container video {
        height: 190vh; /* Adjusted video size */
    }

    /* Overlay */
    .projects::before {
        background: rgba(0, 0, 0, 0.5); /* Softened overlay for readability */
    }
}

/* lg */
@media (max-width: 1024px) {
    .container {
        max-width: 768px;
        padding: 0 30px; /* Adjusted padding for better spacing */
    }

    /* Projects Section */
    .projects {
        padding: 60px 10%;
        text-align: center;
    }

    /* Projects Quote Section */
    .projectsquote-section {
        margin-bottom: 50px;
    }

    /* Projects Grid Layout */
    .projects-container {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Slightly larger columns */
        gap: 25px;
        max-width: 90%;
    }

    /* Individual Project Card */
    .project-card {
        padding: 25px;
    }

    /* Project Image */
    .project-card img {
        height: 180px; /* Adjusted height */
    }

    /* Project Title */
    .project-content h3 {
        font-size: 1.6rem;
    }

    /* Project Description */
    .project-content p {
        font-size: 1.1rem;
    }

    /* GitHub CTA */
    .GitHub-cta {
        max-width: 85%;
        padding: 30px;
        text-align: center;
    }

    /* GitHub Button */
    .Github-button {
        font-size: 17px;
        padding: 14px 24px;
    }

    /* Cursor Adjustments */
    .cursor-highlight {
        top: 110px;
        left: -15px;
    }

    .cursor-text {
        font-size: 1.3rem;
        padding: 8px 12px;
    }

    .cursor-image {
        width: 75px;
    }

    /* Video Background */
    .video-container {
        height: 200vh; /* Adjusted height */
    }

    .video-container video {
        height: 200vh; /* Adjusted video size */
    }

    /* Overlay */
    .projects::before {
        background: rgba(0, 0, 0, 0.4); /* Softened overlay for readability */
    }
}

@media (min-width: 1440px){
    .cursor-highlight {
        top: 140px;  /* Moves it further down */
        left: 30px;  /* Moves it more to the right */
    }

    .cursor-text {
        top: -40px; /* Keeps the text aligned with the arrow */
        left: -20px; /* Adjusts horizontal alignment */
    }

    .cursor-image {
        width: 130px;  /* Ensures arrow size remains proportional */
    }
}

@media (min-width: 2560px) {
    .cursor-highlight {
        top: 220px;  /* Moves it further down */
        left: 590px;  /* Moves it more to the right */
    }

    .cursor-text {
        top: -50px; /* Keeps the text aligned with the arrow */
        left: -10px; /* Adjusts horizontal alignment */
        font-size: 1.8rem; /* Slightly larger for better readability */
    }

    .cursor-image {
        width: 180px;  /* Increases arrow size to remain proportional */
    }
}
