/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    /* Optional Cursor Glow */
    cursor: url(https://cur.cursors-4u.net/cursors/cur-8/cur757.cur), auto !important;
}

/* Import Futuristic Font */
@import url('https://googledonts.private.coffee/css2?family=Orbitron:wght@400;700&display=swap');

body {
    font-family: 'Garamond','Times New Roman', sans-serif;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('images/background.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Universal Page Margin Wrapper */
.page-container {
    margin-left: 5%;
    margin-right: 5%;
}

/* Banner */
header.banner {
    position: relative;
    display: flex;
    flex-direction: column-reverse; /* ✅ Ensures text is above logo */
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(90deg, #0f2027, #203a43, #2c5364);
    border-bottom: 2px solid #00ffff;
    box-shadow: 0 0 15px #00ffff40;
    text-align: center;
}

/* Banner Text */
.banner-text {
    font-size: 3.5rem;
    font-family:'Orbitron', sans-serif;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
    margin-bottom: 1rem; /* ✅ Adds space between text and logo */
    position: static;    /* ✅ Removes absolute positioning */
}

/* Circle Logo */
.logo {
    position: static; /* ✅ Static positioning to avoid overlapping */
    margin: 0 auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(145deg, #00ffff30, #00666630);
    background-color: #0a0a0a;
    box-shadow:
        0 0 15px #00ffff80,
        0 0 30px #00ffff30,
        inset 0 0 10px #003333;
    overflow: hidden;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: holoSweep 10s linear infinite;
}

.social { 
    position: static;
    margin: 0 auto;
    width: 120px;
    height: 120px;
    border-radius:50%;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 0 6px #00ffff99);
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.03) rotate(1deg);
}

/* Main Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-auto-rows: auto;
    gap: 1px;
    margin-top: 180px;
    background: #1a1a1a;
    padding: 1rem;
}

/* Sidebar */
.sidebar {
    grid-row: span 2;
    padding: 1rem;
    background: #111;
    border-right: 2px solid #00ffff;
    box-shadow: inset -1px 0 8px #00ffff30;
}

/* Buttons */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-family:'Orbitron', sans-serif;
}

.buttons button,
.buttons a {
    display: inline-block;
    background: #0d0d0d;
    color: #00ffff;
    border: 1px solid #00ffff;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 0 10px #00ffff30;
    text-align: center;
    text-decoration: none;
}

.buttons button:hover,
.buttons a:hover {
    background: #00ffff;
    color: #0d0d0d;
    transform: scale(1.05);
    box-shadow: 0 0 15px #00ffff, 0 0 30px #00ffff;
}

/* Text Areas */
.text-area {
    padding: 2rem;
    border: 2px solid #00ffff;
    background: rgba(0, 255, 255, 0.05);
    margin-bottom: 1rem;
    box-shadow: 0 0 10px #00ffff20;
    transition: box-shadow 0.3s;
}

.text-area:hover {
    box-shadow: 0 0 20px #00ffff60;
}

/* Grid Placement Fix */
.primary,
.secondary {
    grid-column: 2;
}

/* Footer */
.footer {
    background: #111;
    padding: 1rem;
    text-align: center;
    border-top: 2px solid #00ffff;
    color: #00ffff;
    box-shadow: inset 0 1px 10px #00ffff30;
    margin-top: 2rem;
}

/* Animation */
@keyframes holoSweep {
    0% {
        box-shadow: 0 0 15px #00ffff80, 0 0 30px #00ffff30, inset 0 0 10px #003333;
        background: linear-gradient(145deg, #00ffff30, #00666630);
    }
    50% {
        box-shadow: 0 0 25px #00ffffaa, 0 0 50px #00ffff50, inset 0 0 15px #004444;
        background: linear-gradient(235deg, #00ffff15, #00555520);
    }
    100% {
        box-shadow: 0 0 15px #00ffff80, 0 0 30px #00ffff30, inset 0 0 10px #003333;
        background: linear-gradient(145deg, #00ffff30, #00666630);
    }
}

table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
    word-wrap: break-word;
    border-collapse: collapse;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


/* ===== Tablet Layout ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    .main-grid {
        grid-template-columns: 150px 1fr;
        margin-top: 140px;
        padding: 0.75rem;
    }

    .sidebar {
        border-right: 1.5px solid #00ffff;
        padding: 0.8rem;
    }

    .buttons button,
    .buttons a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .banner-text {
        font-size: 1.8rem;
    }

    .logo {
        width: 200px;
        height: 200px;
    }

    body {
        font-size: 0.95rem;
    }
}

/* ===== Mobile Layout ===== */
@media (max-width: 768px) {
    .main-grid {
        display: block;
        margin-top: 120px;
        padding: 1rem 1.5rem;
        background: transparent;
    }

    .banner-text {
        display: none;
    }

    .sidebar {
        border-right: none;
        border-bottom: 2px solid #00ffff;
        box-shadow: inset 0 -1px 8px #00ffff30;
        padding: 1rem 0;
        margin-bottom: 1rem;
        background: #111;
    }

    .buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .buttons button,
    .buttons a {
        flex: 1 1 calc(50% - 0.5rem);
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
        box-shadow: 0 0 8px #00ffff20;
    }

    .buttons button:hover,
    .buttons a:hover {
        box-shadow: 0 0 12px #00ffff50, 0 0 20px #00ffff80;
    }

    .text-area {
        padding: 1.5rem;
        font-size: 0.9rem;
    }

    .banner-text {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .logo {
        width: 160px;
        height: 160px;
        margin-bottom: 1rem;
        box-shadow:
            0 0 12px #00ffff80,
            0 0 24px #00ffff40,
            inset 0 0 8px #003333;
    }

    body {
        font-size: 0.9rem;
        overflow-x: visible;
    }

    .footer {
        font-size: 0.85rem;
        padding: 0.8rem;
    }
}

/* Book Feature Section */
.book-feature {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}

.book-image {
    flex: 1 1 300px;
}

img, table {
    max-width: 100%;
    width: 100%;
}

.book-cover {
    max-width: 100%;
    /*width: 100%;*/
    width:auto;
    height: auto;
}

.table-wrapper, table {
    overflow-x: auto;
    display: block;
}

.book-description {
    flex: 2 1 400px;
}

