@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: linear-gradient(135deg, #049c50 0%, #4b1a1a 50%, #c40b21 100%);
    overflow-x: hidden;
    color: white;
    text-align: center;
}
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 63px;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-lg);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.logo {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.logo img {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.logo span {
    font-weight: 700;
    font-size: 1.25rem;
}
.logo h3{
    font-family: 'Times New Roman', Times, serif;
}
.title{
    font-family: 'Times New Roman', Times, serif;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 250px); /* Fixed width columns */
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center; /* Centers the whole grid */
    justify-items: center;   /* Centers each card */
    align-items: center;

    padding: 20px;
}
.gallery h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--text-color);
    font-size: 4rem;
}

.gallery-grid {
    display: grid;
    gap: 30px;
    padding: 20px;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background-color: var(--secondary-color);
    text-align: center;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}
.book {
    position: relative;
    width: 250px;
    height: 280px;
    perspective: 1500px;
}

.book:hover {
    filter: drop-shadow(0 0 10px #ffffff) drop-shadow(0 0 0px #000000);
}

.cover {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: left;
    transition: transform 1s;
    transform-style: preserve-3d;
}

.cover img {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
}

.pages {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    color: black;
    border-radius: 5px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    flex-wrap: nowrap;
}

.book:hover .cover {
    transform: rotateY(-130deg);
}

.pages h5 {
    margin-bottom: 10px;
    margin-top: -10px;
}

.pages p {
    color: gray;
    font-size: medium;
    justify-content: center;   /* Horizontal center */
    align-items: center;       /* Vertical center */
    text-align: center;
    height: 100%;
}
.hero{
    height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    position:relative;
    overflow:hidden;
    padding:20px;
}

/* Glass Card */

.hero-content{
    max-width:850px;
    padding:60px;
    border-radius:30px;
    backdrop-filter:blur(18px);
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.2);
    animation:fadeUp 1.2s ease;
    z-index:5;
}

/* Welcome */

.tagline{
    color:#ffffffcc;
    letter-spacing:3px;
    text-transform:uppercase;
    font-size:16px;
    margin-bottom:20px;
}

/* Heading */

.hero h1{
    font-size:75px;
    line-height:1.1;
    font-weight:800;
    margin-bottom:25px;
    color:#fff;
}

/* Description */

.description{
    font-size:21px;
    line-height:1.8;
    color:#f5f5f5;
    margin-bottom:40px;
}

/* Buttons */

.buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

.hero-btn,
.hero-btn-outline{

    padding:16px 42px;
    border-radius:50px;
    text-decoration:none;
    font-weight:bold;
    transition:.4s;
}

.hero-btn{

    background:white;
    color:#0c6b3e;
}

.hero-btn:hover{

    transform:translateY(-8px);
    box-shadow:0 12px 25px rgba(0,0,0,.3);
}

.hero-btn-outline{

    border:2px solid white;
    color:white;
}

.hero-btn-outline:hover{

    background:white;
    color:#0c6b3e;
}

/* Typing */

.cursor{
    animation:blink .8s infinite;
}

@keyframes blink{

    50%{
        opacity:0;
    }

}

/* Floating Circles */

.bg-circle{

    position:absolute;
    border-radius:50%;
    filter:blur(10px);
    opacity:.25;
    animation:float 10s ease-in-out infinite;
}

.circle1{

    width:320px;
    height:320px;
    background:#d70b0b;
    top:-80px;
    left:-100px;
}

.circle2{

    width:350px;
    height:350px;
    background:#09f486;
    right:-100px;
    bottom:-120px;
    animation-delay:2s;
}

@keyframes float{

    0%,100%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-30px);
    }

}

/* Scroll */

.scroll-down{

    position:absolute;
    bottom:25px;
    color:white;
    font-size:30px;
    animation:bounce 1.5s infinite;
}

@keyframes bounce{

    0%,100%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(12px);
    }

}

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(40px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}
#typing{
    color: crimson;
}