@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Orbitron:wght@400;700&display=swap');

:root {
    --primary-color: #0275d8;
    --secondary-color: #dc3545;
    --accent-color: #00c2ff;
    --dark-bg: #1a1a2e;
    --light-text: #f1f1f1;
    --shadow-color: rgba(0, 0, 0, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 22px;
    text-shadow: 1px 1px 2px var(--shadow-color);
    display: flex;
    align-items: center;
}

.logo::before {
    content: "{ ";
    margin-right: 2px;
    color: var(--secondary-color);
}

.logo::after {
    content: " }";
    margin-left: 2px;
    color: var(--secondary-color);
}

.logo-prefix {
    color: var(--primary-color);
    /* Blue color for "Cyber_" */
}

.logo-suffix {
    color: var(--secondary-color);
    /* Red color for "Squad6351" */
}

.header-text {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.header-text-blue {
    color: var(--primary-color);
    /* Blue color for "Mastery In Code" */
}

.header-text-red {
    color: var(--secondary-color);
    /* Now blue color for "And Cyber Security" as requested */
}

/* Search Bar Styles */
.search-container {
    margin: 30px auto;
    max-width: 700px;
    position: relative;
}

.search-bar {
    width: 100%;
    height: 55px;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    padding: 0 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
    position: relative;
}

.search-bar:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-bar:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(2, 117, 216, 0.2);
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    height: 100%;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    padding-right: 15px;
    color: #333;
    background: transparent;
}

.search-bar input::placeholder {
    color: #888;
    font-weight: 300;
}

.search-icon {
    width: 25px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 18px;
    transition: all 0.3s ease;
}

.search-bar:focus-within .search-icon {
    color: var(--primary-color);
}

/* Animated bottom border */
.search-bar::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: center;
}

.search-bar:focus-within::after {
    transform: scaleX(1);
}

/* Book List Section - Improved Aesthetics */
.book-list {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.book-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    padding: 18px;
    position: relative;
    border: 1px solid rgba(2, 117, 216, 0.05);
}

.book-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
    border-color: rgba(2, 117, 216, 0.1);
}

.book-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: center;
}

.book-card:hover::after {
    transform: scaleX(1);
}

.book-image {
    width: 110px;
    height: 140px;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 18px;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.book-card:hover .book-image img {
    transform: scale(1.08);
}

.book-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px 0;
}

.book-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
    line-height: 1.3;
    position: relative;
    padding-bottom: 8px;
}

.book-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.book-description {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.5;
}

.book-meta {
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
    gap: 10px;
}

.book-meta div {
    display: flex;
    align-items: center;
}

.book-meta div i {
    margin-right: 5px;
    color: var(--primary-color);
}

.book-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-delete {
    background-color: #fff;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.btn-delete:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-learn {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 8px rgba(2, 117, 216, 0.2);
}

.btn-learn:hover {
    background-color: #0069d9;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(2, 117, 216, 0.3);
}

.main-content {
    display: flex;
    margin-top: 40px;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.left-column {
    flex: 2;
    min-width: 300px;
}

.right-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 200px;
}

.hero-title {
    text-align: left;
    margin-bottom: 30px;
    position: relative;
}

.hero-title h1 {
    color: black margin-bottom: 10px;
    font-size: 2.5rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.hero-title h1::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.hero-title h2 {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    line-height: 1.3;
}

.description {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-color);
}

.description p {
    margin-bottom: 15px;
}

.description p:last-child {
    margin-bottom: 0;
}

.highlight {
    color: var(--secondary-color);
    font-weight: 600;
}

.cta-buttons {
    display: flex;
    gap: 10px;
    /* Reduced gap between buttons */
    margin-top: 35px;
    flex-wrap: nowrap;
    /* Prevent wrapping on wider screens */
    justify-content: flex-start;
}

.cta-button {
    padding: 12px 24px;
    /* Smaller padding */
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 13px;
    /* Smaller font */
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    width: auto;
    min-width: 130px;
    /* Smaller minimum width */
    max-width: 160px;
    /* Maximum width to limit size */
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-primary {
    background: var(--secondary-color);
    color: white;
}

.cta-primary:hover {
    background: #c82333;
    transform: translateY(-3px);
}

.cta-secondary {
    background: var(--primary-color);
    color: white;
}

.cta-secondary:hover {
    background: #0069d9;
    transform: translateY(-3px);
}

.cyber-logo {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, var(--dark-bg), #000);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
    font-size: 50px;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-15deg);
    transition: all 0.5s ease;
    border: 1px solid rgba(0, 194, 255, 0.3);
    margin: 0 auto;
}

.cyber-logo:hover {
    transform: perspective(1000px) rotateY(0deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 194, 255, 0.2);
}

.cyber-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0));
    transform: rotate(45deg);
    animation: shine 6s infinite;
}

.cyber-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
}

.cyber-badge::before {
    content: '\f13e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

@keyframes shine {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }

    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

.arrow {
    font-family: 'Orbitron', sans-serif;
    font-size: 60px;
    font-weight: bold;
}

.arrow::after {
    content: '_';
    font-size: 30px;
    position: relative;
    top: -20px;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(2, 117, 216, 0.08), transparent 30%),
        radial-gradient(circle at 90% 90%, rgba(220, 53, 69, 0.08), transparent 30%),
        linear-gradient(135deg, rgba(240, 242, 245, 0.9), rgba(255, 255, 255, 0.9));
    z-index: -1;
}

.cyber-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(to right, rgba(2, 117, 216, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(2, 117, 216, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
}

/* Book label badges */
.book-label {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.book-card:hover .book-label {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

/* IMPROVED RESPONSIVE STYLES */
@media (max-width: 992px) {
    .container {
        padding: 15px;
    }

    .main-content {
        gap: 30px;
    }

    .hero-title h1 {
        font-size: 2.2rem;
    }

    .hero-title h2 {
        font-size: 1.8rem;
    }

    .description {
        padding: 20px;
    }

    .search-container {
        max-width: 600px;
    }

    .book-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .main-content {
        flex-direction: column-reverse;
        gap: 25px;
    }

    .hero-title {
        text-align: center;
    }

    .hero-title h1 {
        font-size: 2rem;
    }

    .hero-title h2 {
        font-size: 1.6rem;
    }

    .hero-title h1::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .left-column,
    .right-column {
        width: 100%;
        flex: none;
    }

    .cyber-logo {
        width: 180px;
        height: 180px;
        font-size: 40px;
        margin-bottom: 15px;
    }

    .cyber-badge {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .description {
        padding: 15px;
        font-size: 0.95rem;
    }

    .cta-buttons {
        justify-content: center;
        gap: 10px;
        /* Keep buttons close together */
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 12px;
        width: auto;
        /* Don't force full width */
        max-width: 160px;
    }

    .search-container {
        max-width: 100%;
    }

    .search-bar {
        height: 50px;
    }

    .book-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .header-text {
        font-size: 14px;
    }

    .logo {
        font-size: 20px;
    }

    .hero-title h1 {
        font-size: 1.7rem;
    }

    .hero-title h2 {
        font-size: 1.4rem;
        letter-spacing: 0.5px;
    }

    .cyber-logo {
        width: 150px;
        height: 150px;
        font-size: 35px;
    }

    .description {
        padding: 12px;
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .cta-buttons {
        flex-direction: row;
        /* Keep buttons side by side */
        justify-content: center;
        gap: 8px;
        /* Even smaller gap on mobile */
    }

    .cta-button {
        padding: 10px 18px;
        font-size: 11px;
        width: auto;
        min-width: auto;
        /* Allow buttons to be smaller on mobile */
        max-width: none;
        /* Don't restrict width */
    }

    .arrow {
        font-size: 40px;
    }

    .arrow::after {
        font-size: 20px;
        top: -15px;
    }

    .search-bar {
        height: 45px;
        padding: 0 15px;
    }

    .search-bar input {
        font-size: 14px;
    }

    .book-image {
        width: 90px;
        height: 120px;
    }
}


