/* Base styles (your current desktop-first styles) */
@font-face {
    font-family: sujal;
    src: url(./font/NeueMachina-Regular.otf);
}
* {
    font-family: sujal;
    margin: 0;
    padding: 0;
    color: white;
    scroll-behavior: smooth;
    box-sizing: border-box; 
}
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    cursor: none;
    background: black;
}
body::before {
    content: "";
    position: fixed; /* Use fixed for background overlay so it stays */
    width: 100%;
    height: 100%;
    background: url("../../public/images/noise.jpg") repeat;
    opacity: 0.1;
    pointer-events: none;
    z-index: -10;
    background-size: cover;
}
.overlay {
    background-color: rgba(0, 0, 0, 0.415);
    padding: 0;
}
a {
    cursor: none;
    text-decoration: none;
    color: white;
}

/* Custom Cursor Styles (keep as is, handled by JS and touch media query) */
.cursor {
    width: 35px;
    height: 35px;
    border: 2px solid rgb(255, 255, 255);
    position: fixed; /* fixed for consistent behavior */
    border-radius: 50%;
    z-index: 5;
    opacity: 0;
    pointer-events: none; /* Changed to none as JS handles interaction */
}
#cursor2 {
    width: 35px;
    height: 35px;
    border: 2px solid rgb(255, 255, 255);
    position: fixed; 
    border-radius: 50%;
    z-index: 5;
    opacity: 0;
    pointer-events: none; 
}
.cursor, .tilted-div {
    will-change: transform;
}
html > *:not(:hover) .cursor {
    display: none;
}

/* ----------- Header -------------- */

.nav-link {
    color: white;
}
.nav-link:hover {
    color: yellow;
}
/* Ensure the collapsed navbar has a background for readability */
@media (max-width: 991.98px) { 
    .navbar-collapse {
        background-color: #343a40; 
        padding-bottom: 1rem; 
    }
}


/* ----------------------- sec 1 ------------------ */
main {
    padding-top: 100px;
    height: 90vh;
}
.sec1 {
    padding-left: 100px;
}
.tilted-div {
    width: fit-content;
}
.home-left h2 {
    font-size: 70px;
    font-weight: bolder;
    letter-spacing: 5px;
}
.home-left button {
    width: 300px;
    height: 80px;
    font-size: 25px;
}
.social-media {
    top: 250px;
    right: 30px;
}
.social-media a i {
    color: white;
    font-size: 30px;
}


/* ------------------ sec 2 ---------------- */
.about-main {
    margin: 0 170px 0 170px;
}
.about-me, .tech-stack, .learning-journey, .certificates, .approach {
    padding-top: 170px;
}
.tech-stack, .learning-journey {
    padding-bottom: 50px;
}
.tech-stack ul li {
    font-size: 80px;
    padding: 5px 2px;
    width: 100%;
}
.tech-stack-line {
    width: 100%;
    margin: 5px 0;
    border: 1px solid rgba(255, 255, 255, 0.207);
}
.learning-journey-description {
    letter-spacing: 1px;
}

.certificate-item-div {
    font-size: 55px;
    overflow: hidden;
}
.certificates ul li div p span {
    border: 1px solid rgba(255, 255, 255, 0.207);
    border-radius: 35px;
    padding: 7px 10px;
    letter-spacing: 1.3px;
    font-size: 14px;
}
.certificates ul li:nth-child(3) div p, .certificates ul li:nth-child(4) div p {
    margin-top: 20px;
}
.certificates-line {
    border-top: 1px solid rgba(255, 255, 255, 0.207);
}
.certificate-item {
    position: relative;
    padding: 25px 0;
}
.certificates img {
    position: absolute;
    width: 400px;
    display: none;
    height: 250px;
    z-index: 3;
}
.approach {
    height: 100vh;
}
.approach-dialogue {
    font-size: 6.04vw; /* This is already fluid, good! */
    line-height: 100px;
    font-weight: bolder;
}

/* --------------------- sec 3 -------------------- */
.sec3 {
    margin-top: 150px;
    padding-top: 20px;
    height: fit-content;
    padding-bottom: 15rem;
}
.project-main {
    position: relative;
}
.project-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.projects img {
    opacity: 0.2;
    scale: 0.95;
    width: 60vw;
    height: 38vw; 
}

/* -------------------- sec 4 ---------------  */
.sec4 {
    margin: 0 190px;
}
.lets-talk {
    font-size: 100px;
    font-weight: bold;
}
footer div {
    border-top: 1px solid rgba(255, 255, 255, 0.207);
    padding-top: 50px;
    margin-top: 80px;
    padding-bottom: 100px;
}

/* --- Media Queries for Smaller Screens (Adjusting Sizes Only) --- */

/* For devices up to 1024px (e.g., larger tablets in portrait) */
@media (max-width: 1024px) {
    .sec1 {
        padding-left: 50px; 
    }
    .home-left h2 {
        font-size: 50px;
    }
    .home-left button {
        width: 250px;
        height: 70px;
        font-size: 20px;
    }
    .about-main {
        margin: 0 100px; 
    }
    .tech-stack ul li {
        font-size: 60px; 
    }
    .certificate-item-div {
        font-size: 40px; 
    }
    .certificates img {
        width: 300px; 
        height: auto;
    }
    .lets-talk {
        font-size: 70px; 
    }
    .sec4 {
        margin: 0 100px;
    }
}

/* For devices up to 768px (e.g., most tablets in portrait) */
@media (max-width: 768px) {
    .navbar-brand {
        margin-left: 20px !important; 
        width: 100px; 
        height: auto;
    }
    .sec1 {
        padding-left: 30px; 
    }
    main {
        height: auto; 
        padding-top: 80px; 
    }
    .home-left h2 {
        font-size: 40px; 
        letter-spacing: 3px;
    }
    .home-left button {
        width: 220px;
        height: 60px;
        font-size: 18px;
    }
    .social-media {
        top: 150px;
        right: 15px;
    }
    .social-media a i {
        font-size: 25px;
    }

    .about-main {
        margin: 0 50px;
    }
    .about-me-heading, .tech-stack-heading, .learning-journey-heading, .certificates-heading, .approach-heading {
        font-size: 35px;
    }
    .about-me-description, .learning-journey-description {
        font-size: 18px !important;
    }
    .tech-stack ul li {
        font-size: 45px;
    }
    .certificate-item-div {
        font-size: 30px;
    }
    .certificates ul li div p span {
        font-size: 12px;
        padding: 5px 8px;
    }
    .certificates img {
        width: 250px;
    }
    .approach-dialogue {
        font-size: 8vw;
        line-height: 80px;
    }
    .sec3 {
        padding-bottom: 8rem;
    }
    .projects img {
        width: 75vw;
        height: auto;
    }
    .sec4 {
        margin: 0 50px;
    }
    .lets-talk {
        font-size: 50px;
    }
    #footer-mail {
        font-size: 1rem !important;
        padding: 10px 15px !important;
    }
    footer div {
        padding-top: 30px;
        margin-top: 50px;
        padding-bottom: 50px;
    }
}

/* For devices up to 480px (e.g., older phones in portrait) */
@media (max-width: 480px) {
    .navbar-brand {
        margin-left: 10px !important;
        width: 80px;
    }
    .sec1 {
        padding-left: 0px !important; 
    }
    .home-left{
        margin-left: 0 !important;
        padding-left: 0 I !important;
    }
    .tilted-div{
        padding: 0 !important;
    }
    .home-left h2 {
        font-size: 17px !important;
        letter-spacing: 1px;
    }
    .home-left button {
        width: 150px;
        height: 40px;
        font-size: 13px;
    }
    .social-media {
        top: 100px;
        right: 10px;
    }
    .social-media a i {
        font-size: 20px;
    }

    .about-main {
        margin: 0 20px;
    }
    .about-me{
        padding-top: 100px !important;
    }
    .about-me-description, .learning-journey-description {
        font-size: 16px !important;
    }
    .tech-stack ul li {
        font-size: 30px;
    }
    .certificate-item-div {
        font-size: 20px;
    }
    .certificates ul li div p span {
        font-size: 10px;
        padding: 3px 6px;
    }
    .learning-journey,.certificates{
        padding-top: 100px !important;
    }
    .approach{
        padding-top: 0px;
        height: 60vh !important;
    }
    .sec3{
        margin-top: 0px !important;
    }
    .certificates img {
       display: none !important; 
    }

    .approach-dialogue {
        font-size: 10vw; 
        line-height: 60px;
    }
    .sec3 {
        padding-bottom: 5rem; 
    }
    .projects img {
        width: 90vw; 
        opacity: 1;
    }
    .sec4 {
        margin: 0 20px;
    }
    .lets-talk {
        font-size: 35px; 
    }
    #footer-mail {
        font-size: 0.8rem !important; 
        padding: 8px 12px !important;
    }
    .project-heading, .about-me-heading,.approach-heading,.tech-stack-heading, .certificates-heading, .learning-journey-heading{
        font-size: 10px !important;
        color: yellow !important;
        font-weight: normal !important;
        letter-spacing: 1.5px;
    }
}


/* Hide custom cursor on touch devices (small screens) */
@media (hover: none) and (pointer: coarse) {
    .cursor, #cursor2 {
        display: none !important;
    }
    body {
        cursor: auto; /* Restore default cursor */
    }
}