/* 
Theme Name: Lovish Bhatia
Author: Lovish
Version: 1.3.2.3
Author URI: https://lovishbhatia.com/
Description: Hey, description is being designed
*/

@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');
@import url('https://fonts.googleapis.com/css?family=Nunito+Sans|Playfair+Display:400,400i,700,700i,900,900i');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Playfair+Display:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');

:root {
    --white: #ffffff;
    --light-grey: #edf0f1;
    --violet: #655be1;
    --dark-violet: #5146e1;
    --black: #21232a;
    --dark-black: #333;
    --green-grey: #d3d9d4;
    --blue-grey: #748092;
    --dark-blue-grey: #2E3944;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

body {
    font-family: "Inter", sans-serif;
    /* text-align: center; */
    padding: 0;
    background: var(--light-grey);
    /* color: var(--white); */
    min-height: 100vh;
    overflow-x: hidden;
}


/* MAIN STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */


header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    /* background: rgb(255 255 255 / 50%); */
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* box-shadow: rgb(50 50 93 / 40%) 0 30px 60px 18px,
            rgb(0 0 0 / 15%) 0 18px 36px 18px; */
    z-index: 100;

    /* --- Glassmorphism Effect Starts Here --- */
        background: rgba(255, 255, 255, 0.5);
        /* Semi-transparent background */
        backdrop-filter: blur(10px);
        /* The essential blur effect */
        -webkit-backdrop-filter: blur(10px);
        /* For Safari browser support */
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        /* A subtle border to define the edge */
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        /* A soft shadow to lift the element */
    /* --- Glassmorphism Effect Ends Here --- */
}

.logo {
    color: #333;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.group {
    display: flex;
    align-items: center;
}

header ul {
    position: relative;
    display: flex;
    gap: 30px;
}

header ul li {
    list-style: none;
}

header ul li a {
    position: relative;
    text-decoration: none;
    font-size: 1em;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

header ul li a::after {
    content: attr(data-content);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* height: 100%; */
    opacity: 0.5;
    font-size: 1em;
    /* scale: 1.04 1.3; */
    /* transform: scaleY(1.6);
    transform: scaleX(1.04); */
    text-shadow: 0px 3px rgba(51, 51, 51, 50%);
}

header ul li a:hover::after {
    text-shadow: 0px 6px rgba(51, 51, 51, 50%);
}

header ul li a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: #333;
    transform: scaleX(0);
    transition: transform 0.5s ease-in-out;
    transform-origin: right;
}

header ul li a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

header .search {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    z-index: 10;
    cursor: pointer;
}

/* spiderman */
.vertical-spidy{
    position: fixed;
    top: 0%;
    right: 5%;
    height: 140px;
    width: 140px;
    z-index: 100;
}
.vertical-dotted-line {
    width: 2px;
    border-right: 2px dotted black;
}

 .line-image {
    position: absolute;
        bottom: 4px;

        width: 100px;
        height: 133px;
        transform: translateY(0%);
        /* Aligns the image with the right edge of the container */
        transform: translateX(-51%); 
        filter: drop-shadow(rgba(0,0,0,0.3) 0px 5px);
}
/* .line-image-2 {
     position: absolute;
     bottom: 4px;
     width: 100px;
     height: 133px;
     transform: translateY(10%);
     Aligns the image with the right edge of the container
     transform: translateX(-51%);
     opacity: 50%;
 } */


.searchBox {
    position: absolute;
    right: -47%;
    scale: 0;
    width: 100%;
    height: 100%;
    display: flex;
    background: #fff;
    align-items: center;
    padding: 0 30px;
    transition: 0.5s ease-in-out;
}

.searchBox.active {
    right: 0;
    color: #5146e1;
    scale: 1;
}

.searchBox input {
    width: 100%;
    border: none;
    outline: none;
    height: 50px;
    color: #333;
    font-size: 1.25em;
    background: rgb(255 255 255 / 50%);
    transition: 0.5s ease-in;
    font-family: "Inter", sans-serif;
}

.searchBtn {
    position: relative;
    left: 30px;
    top: 2.5px;
    transition: 0.5s ease-in-out;
}

.searchBtn.active {
    left: 0;
}

.closeBtn {
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
    scale: 0;
}

.closeBtn.active {
    opacity: 1;
    visibility: visible;
    transition: 0.5s;
    scale: 1;
}


/* carousel */
.carousel {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    /* margin-top: -80px; */
    background-color: rgb(255 255 255 / 50%);
    position: relative;
}

.carousel .list .item {
    position: absolute;
    inset: 0 0 0 0;
}

.carousel .list .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.carousel .list .item .content {
    position: absolute;
    top: 16%;
    width: 1140px;
    max-width: 90%;
    height: 540px;
    max-height: 90%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Precise centering */
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
    /* Slightly reduced shadow for better text on glass */

    display: flex;
    flex-direction: column;
    justify-content: center;
    /* This helps center content vertically in the box */
    gap: 15px;
    /* Consistent spacing between all direct children */

    /* --- Glassmorphism Effect Starts Here --- */
    background: rgba(0, 0, 0, 0.25);
    /* A semi-transparent dark background */
    backdrop-filter: blur(12px);
    /* The essential blur effect */
    -webkit-backdrop-filter: blur(12px);
    /* For Safari browser support */
    border-radius: 20px;
    /* Rounded corners are key for the look */
    border: 1px solid rgba(255, 255, 255, 0.18);
    /* A subtle white border to catch the light */
    padding: 40px;
    /* Replaced padding-right with all-around padding for a better panel look */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    /* A soft shadow for depth */
    /* --- Glassmorphism Effect Ends Here --- */


}

/* Style the Author */
.carousel .list .item .content .author {
    font-family: 'Inter', 'IBM Plex Sans', Arial, sans-serif;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 1.2em;
    margin-bottom: -10px;
    /* Nudge it closer to the topic */
}

.carousel .list .item .content .title {
    font-size: 2.5em;
    /* Slightly smaller to prevent awkward wrapping */
    font-weight: bold;
    line-height: 1.2;
    /* Tighter line height for multi-line titles */
    margin: 0;
}

.carousel .list .item .content .des {
    font-size: 1.1em;
    line-height: 1.6;
    /* More space between lines for readability */
    max-width: 75ch;
    /* Limit line length for easier reading */
    margin-top: 10px;
    /* Add a bit of space above it */
}

/* --- HIERARCHY FIX: Repurpose .topic as a stylish category tag --- */
.carousel .list .item .content .topic {
    
    font-size: 0.9em;
    /* Make it small */
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    /* color: var(--blue-grey, #94a3b8); */
    color: #e0e0e0;
    /* opacity: 0.8; */
    margin: 0;
    /* Remove any default margins */
    line-height: 1;
    /* Tighten line height */
}

.carousel .list .item .content .buttons {
    display: flex;
        /* Use flexbox instead of grid here */
        gap: 15px;
        /* Space between buttons */
        margin-top: 20px;
}

.carousel .list .item .content button {
    border: 1px solid rgba(255, 255, 255, 0.8);
        border-radius: 5px;
        /* Slightly rounded corners */
        padding: 12px 25px;
        /* Use padding, NOT fixed width */
        background-color: rgba(255, 255, 255, 0.9);
        color: #111;
        letter-spacing: 1px;
        font-family: "Inter", sans-serif;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        /* Smooth transition for hover */
        text-transform: uppercase;
        font-size: 0.8em;
}

.carousel .list .item .content button:nth-child(2) {
    background-color: transparent;
    color: #eee;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.carousel .list .item .content button:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel .list .item .content button:nth-child(2):hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* thumbail */
.thumbnail {
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}

.thumbnail .item {
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
    /* --- Glassmorphism Effect --- */
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.10);
    overflow: hidden;
    transition: background 0.3s, box-shadow 0.3s;
}
.thumbnail .item:hover {
    background: rgba(101, 91, 225, 0.22);
    box-shadow: 0 8px 32px 0 rgba(101, 91, 225, 0.18);
}
.thumbnail .item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.10);
    pointer-events: none;
    border-radius: 20px;
    z-index: 1;
}

.thumbnail .item img {
    position: relative;
    z-index: 2;
}

.thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.thumbnail .item .content {
    color: #fff;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}

.thumbnail .item .content .title {
    font-weight: 500;
}

.thumbnail .item .content .description {
    font-weight: 300;
}

/* arrows */
.arrows {
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}

.arrows button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee4;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
}

.arrows button:hover {
    background-color: #fff;
    color: #000;
}

/* animation */
.carousel .list .item:nth-child(1) {
    z-index: 1;
}

/* animation text in first item */

/* 1. Define the base animation for all content elements */
.carousel .list .item:nth-child(1) .content .author,
.carousel .list .item:nth-child(1) .content .title,
.carousel .list .item:nth-child(1) .content .topic,
.carousel .list .item:nth-child(1) .content .des,
.carousel .list .item:nth-child(1) .content .buttons {
    transform: translateY(40px);
    filter: blur(8px);
    opacity: 0;
    will-change: transform, opacity, filter;
    /* The animation runs for 0.6s. The DELAY is set per-element below. */
    animation: showContent 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* 2. Define the animation keyframes (this can stay the same) */
@keyframes showContent {
    to {
        transform: translateY(0);
        filter: blur(0);
        opacity: 1;
    }
}

/* 3. Set SHORT, STAGGERED delays for a quick cascade effect */
.carousel .list .item:nth-child(1) .content .author {
    animation-delay: 0.15s;
}

/* Starts almost immediately */
.carousel .list .item:nth-child(1) .content .title {
    animation-delay: 0.2s;
}

.carousel .list .item:nth-child(1) .content .topic {
    animation-delay: 0.25s;
}

.carousel .list .item:nth-child(1) .content .des {
    animation-delay: 0.3s;
}

.carousel .list .item:nth-child(1) .content .buttons {
    animation-delay: 0.35s;
}

/* create animation when next click */
.carousel.next .list .item:nth-child(1) img {
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage .5s linear 1 forwards;
}

@keyframes showImage {
    to {
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.carousel.next .thumbnail .item:nth-last-child(1) {
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}

.carousel.prev .list .item img {
    z-index: 100;
}

@keyframes showThumbnail {
    from {
        width: 0;
        opacity: 0;
    }
}

.carousel.next .thumbnail {
    animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext {
    from {
        transform: translateX(150px);
    }
}

/* running time */
.carousel .time {
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 3px;
    background-color: #f1683a;
    left: 0;
    top: 0;
}

.carousel.next .time,
.carousel.prev .time {
    animation: runningTime 2s linear 1 forwards;
}

@keyframes runningTime {
    from {
        width: 100%
    }

    to {
        width: 0
    }
}


/* prev click */

.carousel.prev .list .item:nth-child(2) {
    z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img {
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
}

@keyframes outFrame {
    to {
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.carousel.prev .thumbnail .item:nth-child(1) {
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}

.carousel.next .arrows button,
.carousel.prev .arrows button {
    pointer-events: none;
}

.carousel.prev .list .item:nth-child(2) .content .author,
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .item:nth-child(2) .content .buttons {
    animation: contentOut 1.2s linear 1 forwards !important;
}

@keyframes contentOut {
    to {
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}

@media screen and (max-width: 678px) {
    .carousel .list .item .content {
        padding-right: 0;
    }

    .carousel .list .item .content .title {
        font-size: 30px;
    }
}

@media only screen and (max-width: 768px) {
    header {
        display: none;
    }
}

/* responsive thumbnail */
@media (max-width: 700px) {
    .thumbnail {
        gap: 10px;
    }

    .thumbnail .item {
        width: 90px;
        height: 120px;
        border-radius: 12px;
    }

    .thumbnail .item img {
        border-radius: 12px;
    }
}

/* end carousel */

/* Hero */
#hero {
    padding: 80px 0;
    min-height: 700px;
    position: relative;
}

.hero-img-container {
    position: absolute;
    left: 0px;
    padding: 0;
}

.hero-img {
    max-width: 540px !important;
    height: 540px;
    overflow: hidden;
    border-radius: 100%;
}

.hero-img img {
    width: 100%;
    height: auto;
}

.hero-title {
    background-color: var(--light-grey);
    ;
    border-radius: 150px;
    padding: 25px 60px;
    padding-right: 10px;
    margin-top: 95px;
    font-family: 'Playfair display';
}

.hero-title h1 {
    font-size: 50px;
    font-weight: bold;
    line-height: 70px;
    color: #000;
    text-decoration: none;
    transition: 500ms;

}

.hero-title a h1:hover {
    transform: scale(1.01);
}

.hero-meta p {
    font-size: 18px;
    line-height: 30px;
    color: #404040;
    font-family: 'Courier New', Courier, monospace;
}

.author-img,
.author-meta {
    display: inline-block;
    vertical-align: top;
}

.author-img {
    margin-right: 10px;
    width: 60px;
    height: 60px;
    border-radius: 100px;
    overflow: hidden;
}

.author-img img {
    max-width: 100%;
    height: auto;
}

.author-meta span {
    display: block;
}

.author-name {
    font-size: 18px;
    margin-top: 5px;
    font-weight: bold;
}

.author-tag {
    font-size: 14px;
    color: #818181;
}

/* Media Queries */

@media(max-width: 1200px) {

    .hero-img {
        width: 500px;
        height: 500px;
    }
}


@media(max-width: 992px) {
    #hero {
        padding: 30px 0 60px;
    }

    .hero-img-container {
        position: static;
        margin: 10px auto;
        text-align: center;
    }

    .hero-img-container .hero-img {
        display: inline-block;
    }

    .hero-title {
        padding: 0;
        margin: 0;
    }

    #hero {
        text-align: center !important;
    }
}

@media(max-width: 585px) {

    .hero-img {
        width: 350px;
        height: 350px;
    }

    .hero-title h1 {
        font-size: 35px;
        line-height: 50px;
        padding: 0px 12px;
    }

    .hero-meta p {
        padding: 0px 25px;
    }
}

@media(max-width: 320px) {
    .hero-img {
        width: 300px;
        height: 300px;
    }
}

/* End Hero */




/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: -30px;
    /* Fix the navigation bar at the bottom of the screen */
    left: 50%;
    /* Center the navigation bar horizontally */
    transform: translateX(-50%);
    /* Center the navigation bar horizontally */
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    padding-bottom: 0px;
    border-radius: 25px 25px 5px 5px;
    margin: 0 auto;
    /* Center the navigation bar horizontally */
    background: transparent;
    /* box-shadow: rgb(50 50 93 / 40%) 0 30px 60px 18px,
        rgb(0 0 0 / 15%) 0 18px 36px 18px; */
    z-index: 100;
}

.bottom-nav [type="checkbox"] {
    position: absolute;
    left: -9999px;
    background: rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
        border: 1px solid rgba(255, 255, 255, 0.18);
}

.bottom-nav [type="checkbox"]+label {
    position: relative;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    z-index: 1;
    border-radius: 50%;
    transform: translateY(-50%);
    transition: all 0.2s;
    /* --- Glassmorphism Effect --- */
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.10);
    color: var(--dark-violet);
}

.bottom-nav [type="checkbox"]+label:hover {
    background: rgba(101, 91, 225, 0.25);
    color: #fff;
}

.menu li {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.4s;
}

.menu li:nth-child(1) {
    transition-delay: 0.2s;
}

.menu li:nth-child(2) {
    transition-delay: 0.15s;
}

.menu li:nth-child(3) {
    transition-delay: 0.1s;
}

.menu li:nth-child(4) {
    transition-delay: 0.05s;
}

.menu li a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.22);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.18);
        box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.10);
        color: var(--dark-violet);
        transition: background 0.3s, color 0.3s, transform 0.2s;
    
}
.menu li a:hover {
    background: rgba(101, 91, 225, 0.25);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
}

.menu li a span {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(calc(-100% - 5px));
    width: 100%;
    font-size: 13px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    color: var(--white);
    font-weight: bold;
}

.bottom-nav input:checked+label {
    background: var(--blue-grey);
    transform: translateY(calc(-50% + 4px));
}

.bottom-nav input:checked~.menu li:nth-child(1) {
    top: -210px;
    transition-delay: 0.1s;
}

.bottom-nav input:checked~.menu li:nth-child(2) {
    top: -160px;
    left: calc(50% - 75px);
    transition-delay: 0.2s;
}

.bottom-nav input:checked~.menu li:nth-child(3) {
    top: -160px;
    left: calc(50% + 75px);
    transition-delay: 0.3s;
}

.bottom-nav input:checked~.menu li:nth-child(4) {
    top: -110px;
    transition-delay: 0.4s;
}

.bottom-nav input:checked~.menu li a span {
    opacity: 1;
    transition-delay: 0.9s;
}

/* FOOTER STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.page-footer {
    position: fixed;
    right: 0;
    bottom: 60px;
    display: flex;
    align-items: center;
    padding: 5px;
    color: var(--black);
}

.page-footer a {
    display: flex;
    margin-left: 4px;
}

@media(min-width:768px) {
    .bottom-nav {
        display: none;
    }
}

/* ---------------- */
/* css */