@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');


:root {
    --rp-bg-color-dark: hsl(240, 3%, 87%);
    --rp-bg-color-card: hsl(225, 18%, 87%);

    --rp-bg-color-light: hsl(220, 19%, 100%);
    --rp-bg-color-light-a-50: hsla(220, 19%, 100%, 0.3);

    --rp-text-heading: hsl(195, 61%, 15%);
    --rp-text: hsl(195, 61%, 12%);
    --rp-text-muted: hsl(195, 2%, 66%);

    --rp-font-size-regular: 1rem;
    --rp-font-size-title: 3rem;
    --rp-font-size-heading: 2.3rem;
    --rp-font-size-subheading: 1.5rem;

    --rp--section-border: hsla(220, 19%, 30%, 0.0);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: all 0.2s ease-in-out !important;
}

html {
    height: 100vh;
    scroll-behavior: smooth;
    overflow-y: scroll;
    scroll-snap-type: y proximity;
}

body {
    padding: 0;
    margin: 0;
    height: 100vh;
    background-image: url(assets/green-dust-and-scratches.png);
    background-image: linear-gradient(to right, var(--rp-bg-color-dark), var(--rp-bg-color-light));

    color: var(--rp-text);
    /* font-family: "Playfair Display", serif; */
    font-family: Arial, sans-serif;
    font-size: var(--rp-font-size-regular);
    /* background: #f9fbff; */
    /* padding: 40px; */
}

.nav {
    background: var(--rp-bg-color-light-a-50);

    border-radius: 2rem;

    border-top: 2px solid hsl(0, 0%, 100%);
    border-bottom: 2px solid hsl(0, 0%, 100%);
    border-left: none;
    border-right: none;

    box-shadow: 0px 0px 10px hsla(0, 0%, 1%, 0.1),
        inset -4px -4px 20px hsla(220, 19%, 30%, 0.1),
        inset 5px 5px 20px hsla(220, 19%, 30%, 0.1);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    .nav-link {
        color: var(--rp-text);
        font-weight: 300;

        &:hover {
            font-size: 1.02rem;
            font-weight: 500;
        }
    }
}

.home-logo {
    position: fixed;
    top: 20px;     /* distance from top */
    right: 20px;   /* distance from right */
    width: 80px;   /* adjust size */
    height: auto;
    z-index: 10;   /* ensures it stays above background */
}

h1 {
    font-size: var(--rp-font-size-title);
    font-weight: 750;
    color: var(--rp-text-heading);
}

h2 {
    font-size: var(--rp-font-size-heading);
    font-weight: 750;
    color: var(--rp-text-heading);
}

.btn-color {
    background-image: linear-gradient(to bottom, var(--rp-bg-color-light), var(--rp-bg-color-dark));
    color: var(--rp-text-heading);
    font-weight: 600;
    border-width: 0;
    transition: transform 0.3s ease-in-out, background-color 2s ease-in-out;
    box-shadow:
        0px 0px 2px #ace1e1,
        inset -4px -4px 20px hsla(220, 19%, 30%, 0.1),
        inset 5px 5px 20px hsla(220, 19%, 30%, 0.1);

    &.active {
        /* background-image: linear-gradient(to bottom, hsla(220, 19%, 100%, 0.3), hsla(228, 100%, 50%, 0.651)); */
        background-image: linear-gradient(to bottom, hsla(337, 100%, 75%, 0.599), hsla(270, 100%, 29%, 0.651));
    }

}

.btn {
    transition: all 0.15s ease-in-out;
}

.btn:hover {
    scale: 1.02;
}

.section-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 20%;

    p {
        letter-spacing: 2px;
        line-height: 1.5;
        text-align: center;
        margin: 0;
        color: var(--rp-text-muted);
    }
}

section {
    scroll-snap-align: start;
    overflow: hidden;
    border-bottom: 1px solid var(--rp--section-border);
    position: relative;
    /* Needed for pseudo-element positioning */
}

/* Add this for the cubes background texture */
section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url(assets/cubes.png);
    background-repeat: repeat;
    /* background-size: cover; */
    opacity: 0.15;
    /* Adjust for desired transparency */
}

/* Ensure section content is above the background texture */
section>* {
    position: relative;
    z-index: 1;
}

#home {
    height: 100vh !important;
    width: 100%;
    position: relative;
    overflow: hidden;

    padding: 2rem;

    .Heading_name {
        color: var(--rp-text-heading) !important;
        /* color: whitesmoke !important; */
        /* font-size: 4rem; */
        /* transform: translateY(-7rem) translateX(-4rem); */
    }

    p {
        color: var(--rp-text-muted);
        font-size: 1.2rem;
        /* transform: translateY(-6.5rem) translateX(-4rem); */
        letter-spacing: 2px;
        line-height: 1.5;
        text-align: center;
    }

    .main_img {
        position: absolute;
        height: 63%;
        left: 0%;

        bottom: -5%;
        filter: opacity(0.4);
    }

    .canvas {
        height: 100%;
        width: 100%;
    }

    .quote_container {
        position: absolute;
        text-align: center;
        top: 18%;
        left: 45%;
        transform: rotateY(0deg) rotateX(0deg);
        transition: transform 0.2s;

        .center-quote1 {
            font-family: 'Josefin Sans';
            font-size: 200%;
            color: hsl(182, 100%, 20%);
            background-color: transparent;
            font-weight: 50;
        }

        .center-quote2 {
            font-family: 'Josefin Sans';
            font-size: 200%;
            color: hsl(182, 100%, 20%);
            background-color: transparent;
            font-weight: 50;
            padding-top: 2%;
        }

        .center-quote3 {
            font-family: 'Spectral';
            font-size: 500%;
            font-weight: bolder;
            color: hsl(182, 100%, 20%);
            background-color: transparent;
        }

        .center-quote4 {
            position: absolute;
            text-align: center;
            font-family: 'Josefin Sans';
            font-size: 170%;
            font-weight: lighter;
            color: hsl(182, 100%, 20%);
            background-color: transparent;
            top: 47%;
            left: 22%;
        }

        .center-quote5 {
            font-family: 'Caveat';
            font-size: 500%;
            color: hsl(182, 100%, 20%);
            background-color: transparent;
            text-decoration: underline 2%;
        }

        .center-quote6 {
            font-family: 'Courier New', monospace;
            font-size: 200%;
            color: hsl(182, 100%, 20%);
            background-color: transparent;
        }
    }

    .side_img {
        position: absolute;
        height: 25%;
        right: -5%;
        top: 95%;
    }
}

/* Right side with transparent background image */
.about-right-img {
    /* background-image: url("assets/IMG_2_!.jpg"); */
    background-image: url("assets/Profile.png");
    /* background-image: linear-gradient(to right, var(--rp-bg-color-dark), var(--rp-bg-color-light)); */
    background-repeat: no-repeat;
    background-size: 493px auto;
    background-position: right center;
    position: relative;
    min-height: 100vh;
    padding: 3rem;
}

/* Add a transparent overlay */
.about-right-img::before {
    content: "";
    position: absolute;
    inset: 1;
    background: hsla(0, 0%, 100%, 0.08); 
    /* white transparent layer */
    z-index: 1;
}

/* Name text on image */
.about-right-img .about-name {
    font-family : Cambria;
    font-size: 5rem;
    font-weight: 800;
    color: hsl(0, 0%, 84%);
    /* color: var(--rp-text-muted); */
    line-height: 1.1;
    z-index: 2;
    position: absolute;
    left: -22%;
    top: 15%;
    /* font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    z-index: 2;
    position: absolute;
    left: -20%;
    top: 15%;
    background: linear-gradient(to right, black 40%, white 10%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; */
}

.about-right-img .about-name .dot {
    color: var(--rp-text-muted);
}

/* Left side text content */
.about-right {
    display: flex;
    align-items: center;
    padding: 4rem;
    /* background-color: var(--rp-bg-color-light); */
    background-color: transparent;
}

.about-content {
    max-width: 550px;
}

.intro-label {
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--rp-text-muted);
    margin-bottom: 0.5rem;
}

.intro-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--rp-text-heading);
    margin-bottom: 1rem;
}

.intro-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--rp-text);
    text-align: justify;
    margin-bottom: 1.5rem;
}

.intro-line {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--rp-text-muted);
    /* text-align: justify; */
    margin-bottom: 1.5rem;
}

.intro-link {
    font-weight: 600;
    text-decoration: none;
    color: var(--rp-text-heading);
    border-bottom: 2px solid var(--rp-text-heading);
    padding-bottom: 2px;
    transition: color 0.3s, border-color 0.3s;
}

.intro-link:hover {
    color: var(--rp-text-muted);
    border-color: var(--rp-text-muted);
}
/* Responsive */
@media (max-width: 992px) {
    .about-left {
        min-height: 50vh;
    }
    .about-name {
        font-size: 2.5rem;
    }
}


/* Responsive tweaks */
@media (max-width: 992px) {
    .about-modern .about-name {
        font-size: 2.5rem;
    }
    .about-modern .about-img {
        margin-bottom: 1rem;
    }
}

/* Optional: make it more balanced on very large screens */
@media (min-width: 1400px) {
    #about .col-7 {
        padding-left: 6rem;
    }
}


#skills {

    #skill-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
        padding: 2rem;
    }

    .skill-card-glass {
        max-width: 400px;
        padding: 1rem;
        border-radius: 1rem;
        /* background: var(--rp-bg-color-light-a-50); */
        background: linear-gradient(45deg, 20% hsla(220, 19%, 5%, 0.3), var(--rp-bg-color-light-a-50));
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 2px solid hsl(0, 0%, 100%);
        border-bottom: 2px solid hsl(0, 0%, 100%);
        border-left: none;
        border-right: none;
        box-shadow:
            0px 0px 10px hsla(0, 0%, 1%, 0.1),
            inset -4px -4px 20px hsla(220, 19%, 30%, 0.1),
            inset 5px 5px 20px hsla(220, 19%, 30%, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .skill-card-glass:hover {
        transform: scale(1.03);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .skill-heading {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        font-weight: 700;
    }

    .skill-card-glass ul {
        padding-left: 1.2rem;
        margin: 0;
        line-height: 1.6;
    }

    .skill-card-glass li::marker {
        color: var(--rp-text-muted);
    }

    .skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: auto;
    }

    .skill-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    }

    .skill-card i {
    font-size: 40px;
    color: #2c7be5;
    margin-bottom: 15px;
    }

    .skill-card h3 {
    font-size: 1.3rem;
    margin: 10px 0;
    color: #333;
    }

    .skill-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    }
}

#experience.page-section {

    .Timeline {
        position: relative;
        width: 80%;
        margin: 2rem auto;
        padding: 2rem 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow-y: auto;
        max-height: 70vh;
        scrollbar-width: thin;
        scrollbar-color: #072D44 transparent;
        /* thumb color, track color */
    }

    /* Timeline vertical line */
    .Timeline::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
        width: 4px;
        height: 120%;
        background: var(--rp-bg-color-card);
        z-index: 0;
        border-radius: 2px;
    }

    .timeline-event {
        position: relative;
        width: 50%;
        padding: 1.5rem 2rem;
        box-sizing: border-box;
        z-index: 1;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .timeline-event.left {
        left: 0;
        justify-content: flex-end;
        align-self: flex-start;
        text-align: right;
    }

    .timeline-event.right {
        left: 0%;
        justify-content: flex-start;
        align-self: flex-end;
        text-align: left;
    }

    .timeline-event .content {
        background: rgba(8, 32, 54, 0.35);
        /* semi-transparent glassy background */
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
        backdrop-filter: blur(12px) saturate(160%);
        -webkit-backdrop-filter: blur(12px) saturate(160%);
        border-radius: 1rem;
        border: 1.5px solid rgba(255, 255, 255, 0.18);
        /* Optional: subtle border for glass edge */
        min-width: 350px;
        max-width: 550px;
        position: relative;
        padding: 1rem;
    }

    .timeline-event .content::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 1rem;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.555) 0%, rgba(255, 255, 255, 0.095) 100%);
        z-index: 0;
    }

    .timeline-event .content>* {
        position: relative;
        z-index: 1;
    }

    .timeline-event.left .content {
        margin-right: 2rem;
    }

    .timeline-event.right .content {
        margin-left: 2rem;
    }

    /* Timeline dots */
    .timeline-event::before {
        content: '';
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        background: #fff;
        border: 4px solid var(--rp-bg-color-card);
        border-radius: 50%;
        z-index: 2;
    }

    .timeline-event.left::before {
        right: -9px;
    }

    .timeline-event.right::before {
        left: -9px;
    }

    .job-role {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 0.2rem;
    }

    .company-name {
        font-size: 1rem;
        font-weight: 400;
        color: var(--rp-text-muted);
        margin-bottom: 0.2rem;
    }

    .tenure {
        font-size: 0.95rem;
        font-style: italic;
        color: var(--rp-text);
    }

    /* Responsive for mobile */
    @media (max-width: 900px) {
        .Timeline {
            width: 98%;
            padding: 0;
            overflow-x: auto;
        }

        .timeline-event,
        .timeline-event.left,
        .timeline-event.right {
            width: 100%;
            left: 0;
            align-self: center;
            justify-content: center;
            text-align: left;
        }

        .timeline-event .content {
            margin: 0 !important;
        }

        .Timeline::before {
            left: 20px;
        }

        .timeline-event::before {
            left: 0;
            right: auto;
        }
    }
}

/* Custom scrollbar for Webkit browsers (Chrome, Edge, Safari) */
#experience.page-section .Timeline::-webkit-scrollbar {
    width: 8px;
    background: transparent;
}

#experience.page-section .Timeline::-webkit-scrollbar-thumb {
    /* background: linear-gradient(135deg, #5790AB 40%, #064469 100%); */
    border-radius: 8px;
    min-height: 4px;
    opacity: 0.3;
}

#experience.page-section .Timeline::-webkit-scrollbar-track {
    background: transparent;
}

/* Hide scrollbar when not hovered */
#experience.page-section .Timeline::-webkit-scrollbar-thumb {
    opacity: 0.1;
    transition: opacity 0.2s;
}

#experience.page-section .Timeline:hover::-webkit-scrollbar-thumb {
    opacity: 0.6;
}

#projects.page-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 95vh;

    .project-container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-evenly;
    }

    .project-card {
        background-image: linear-gradient(0deg, var(--rp-bg-color-light), transparent 80%);
        width: 300px;
        height: 400px;
        padding: 1rem;
        border-radius: 1rem;
        transition: scale 0.25s ease;


        img {
            width: calc(300px - 2rem);
            border-radius: 1rem;
            height: 250px;

        }


        .project-title {
            font-size: 1.1rem;
            font-weight: 800;
            padding: 0;
            padding-bottom: 0.5rem;
        }

        .project-Sub-title {
            font-size: 0.9rem;
            font-weight: 400;
            line-height: 1.5;
            text-align: justify;
        }
    }

    .project-card:hover {
        scale: 1.02;
    }
}

.card-fade {
    opacity: 0;
    transition: opacity 0.6s;
}

.card-visible {
    opacity: 1;
}

.card-hidden {
    opacity: 0;
}