/* Import modern fonts (Poppins and Bungee Inline) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bungee+Inline&display=swap');

/* Base theme variables */
:root {
    --background: 210 17% 98%;
    --foreground: 250 24% 9%;
    --card: 0 0% 100%;
    --card-foreground: 250 24% 9%;
    --primary: 252 66% 57%;
    --primary-foreground: 0 0% 100%;
    --border: 250 24% 90%;
    --muted-foreground: 250 24% 40%;
    --radius: 1rem;
    --transition-duration: 0.3s;
    --container-max-width: 1200px;
}

/* Dark mode colors */
[data-theme="dark"] {
    --background: 250 24% 9%;
    --foreground: 0 0% 100%;
    --card: 250 24% 11%;
    --card-foreground: 0 0% 100%;
    --border: 250 24% 15%;
    --muted-foreground: 250 24% 70%;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    padding: 1rem 2rem;
    background: hsla(var(--background) / 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: hsl(var(--foreground));
    transition: color var(--transition-duration) ease;
}

.logo i {
    color: hsl(var(--primary));
    font-size: 1.75rem;
    margin-right: 0.5rem;
    transition: transform var(--transition-duration) ease;
}

.logo:hover i {
    transform: rotate(-10deg) scale(1.1);
}

.logo-text {
    font-family: 'Bungee Inline', cursive;
    font-size: 2rem;
    color: hsl(var(--primary));
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px hsla(var(--primary) / 0.2);
    background: linear-gradient(
        135deg,
        hsl(var(--primary)) 0%,
        hsl(var(--primary) / 0.8) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all var(--transition-duration) ease;
}

.logo:hover .logo-text {
    letter-spacing: 0.075em;
    text-shadow: 0 4px 8px hsla(var(--primary) / 0.3);
    transform: translateY(-1px);
}

/* Navigation links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    position: relative;
    padding: 0.75rem 1rem;
    color: hsl(var(--foreground));
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--transition-duration) ease;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.nav-link:hover,
.nav-link:focus {
    color: hsl(var(--primary));
    transform: translateY(-2px);
    outline: none;
}

.nav-link.active {
    color: hsl(var(--primary));
}

.nav-link.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: hsl(var(--primary));
    position: absolute;
    bottom: 0;
    left: 0;
}

/* Theme toggle */
.theme-toggle {
    background: none;
    border: none;
    color: hsl(var(--foreground));
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: background-color var(--transition-duration) ease;
    white-space: nowrap;
}

.theme-toggle:hover,
.theme-toggle:focus {
    background: hsl(var(--primary) / 0.1);
    outline: none;
}

.theme-toggle i {
    transition: transform var(--transition-duration) ease;
}

.theme-toggle:hover i {
    transform: scale(1.1);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: hsl(var(--foreground));
    cursor: pointer;
    padding: 0.5rem;
    transition: color var(--transition-duration) ease;
    font-weight: 700;
}

/* Mobile menu */
.mobile-menu {
    display: none;
    width: 100%;
    padding: 1rem;
    background: hsl(var(--background));
    border-top: 1px solid hsl(var(--border));
    text-align: left;
    transition: all var(--transition-duration) ease;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .mobile-menu {
    background: hsla(250, 24%, 15%, 0.95);
}

.mobile-menu .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 1rem;
}

.mobile-menu.hidden {
    display: none;
}

.mobile-menu.visible {
    display: block;
    animation: slideIn 0.3s ease forwards;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(
        90deg,
        transparent,
        hsla(var(--primary) / 0.4),
        transparent
    );
    padding: 10rem 2rem 4rem;
    margin-top: 0;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(
        to bottom,
        hsla(var(--background), 0.8),
        transparent
    );
    pointer-events: none;
}

[data-theme="dark"] .hero::before {
    background: linear-gradient(
        to bottom,
        hsla(250, 24%, 9%, 0.8),
        transparent
    );
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: hsl(var(--muted-foreground));
    font-weight: 400;
}

.hero-description-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
    background: hsla(var(--card), 0.9);
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.hero-description-box p {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.8;
    margin: 0;
}

.hero-description-box strong {
    color: hsl(var(--primary));
    font-weight: 600;
}


/* Features Section Styles */
.features {
    padding: 3rem 2rem;
    background: hsl(var(--background));
}

.features-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Card Grid for 2x2 Layout */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid */
    gap: 1.5rem; /* Gap between cards */
}

/* Modern Card Styles */
.index-card {
    background: hsl(var(--card));
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid hsl(var(--border));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.index-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Card Icon */
.card-icon {
    font-size: 2rem;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
}

/* Card Heading */
.index-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

/* Card Description */
.index-card p {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Card List Items */
.card-items {
    list-style: none; /* Remove default bullets */
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.card-items li {
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid hsl(var(--border) / 0.3); /* Subtle separator */
}

.card-items li:last-child {
    border-bottom: none; /* Remove border from last item */
}

.card-items li a {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Space between icon and text */
}

.card-items li a:hover {
    color: hsl(var(--primary));
    padding-left: 0.5rem; /* Indent on hover for interaction feedback */
}

/* View More Button */
.view-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* Space between text and icon */
    padding: 0.75rem 1.5rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    width: fit-content;
}

.view-more:hover {
    background: hsl(var(--primary) / 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px hsla(var(--primary) / 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr; /* Single column on tablets and mobile */
    }

    .index-card {
        padding: 1.25rem;
    }

    .index-card h3 {
        font-size: 1.25rem;
    }

    .index-card p {
        font-size: 0.9rem;
    }
}
/* Footer Styles */
footer {
    background: linear-gradient(135deg, hsla(var(--primary) / 0.1), hsla(var(--background)));
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid hsl(var(--border));
    color: hsl(var(--muted-foreground));
}

.footer-content {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section {
    text-align: left;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: hsl(var(--primary));
}

.footer-section p {
    margin-bottom: 1rem;
    color: hsl(var(--muted-foreground));
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: hsl(var(--primary));
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: hsl(var(--muted-foreground));
    font-size: 1.5rem;
    transition: color var(--transition-duration) ease;
}

.social-links a:hover {
    color: hsl(var(--primary));
}

.support-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition-duration) ease;
    font-weight: 500;
}

.support-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px hsla(var(--primary) / 0.3);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--border));
    color: hsl(var(--muted-foreground));
}

.footer-bottom a {
    color: hsl(var(--primary));
    text-decoration: none;
    transition: color var(--transition-duration) ease;
}

.footer-bottom a:hover {
    color: hsl(var(--primary) / 0.8);
}

/* Responsive styles */
@media (max-width: 960px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-container {
        justify-content: space-between;
    }

    .logo {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 0.5rem;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .index-card {
        padding: 1.5rem;
    }

    .index-card h3 {
        font-size: 1.5rem;
    }

    .index-card p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.5rem;
    }

    header {
        padding: 10px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .index-card {
        padding: 1rem;
    }

    .index-card h3 {
        font-size: 1.25rem;
    }

    .index-card p {
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* News Section Styles */
.news {
    padding: 4rem 2rem;
    background: hsl(var(--background));
}

.news .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.news h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: hsl(var(--foreground));
    text-align: center;
}

.news .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news .card {
    background: hsl(var(--card));
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid hsl(var(--border));
    transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.news .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.news .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: hsl(var(--primary));
}

.news .card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.news .card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: hsl(var(--muted-foreground));
}

.news .card-link {
    display: inline-block;
    color: hsl(var(--primary));
    text-decoration: none;
    transition: all var(--transition-duration) ease;
    font-weight: 500;
}

.news .card-link:hover {
    transform: translateX(5px);
}

/* Responsive Styles for News Section */
@media (max-width: 768px) {
    .news {
        padding: 2rem 1rem;
    }

    .news .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .news .card {
        padding: 1.5rem;
    }

    .news .card h3 {
        font-size: 1.25rem;
    }

    .news .card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .news .card-grid {
        grid-template-columns: 1fr;
    }

    .news .card {
        padding: 1rem;
    }

    .news .card h3 {
        font-size: 1.25rem;
    }

    .news .card p {
        font-size: 0.9rem;
    }
}

/* Books Section Styles */
.books {
    padding: 4rem 2rem;
    background: hsl(var(--background));
}

.books .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.books h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: hsl(var(--foreground));
    text-align: center;
}

.books .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.books .card {
    background: hsl(var(--card));
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid hsl(var(--border));
    transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.books .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.books .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: hsl(var(--primary));
}

.books .card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.books .card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: hsl(var(--muted-foreground));
}

.books .card-link {
    display: inline-block;
    color: hsl(var(--primary));
    text-decoration: none;
    transition: all var(--transition-duration) ease;
    font-weight: 500;
}

.books .card-link:hover {
    transform: translateX(5px);
}

/* Responsive Styles for Books Section */
@media (max-width: 768px) {
    .books {
        padding: 2rem 1rem;
    }

    .books .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .books .card {
        padding: 1.5rem;
    }

    .books .card h3 {
        font-size: 1.25rem;
    }

    .books .card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .books .card-grid {
        grid-template-columns: 1fr;
    }

    .books .card {
        padding: 1rem;
    }

    .books .card h3 {
        font-size: 1.25rem;
    }

    .books .card p {
        font-size: 0.9rem;
    }
}

/* Books Section Styles */
.books {
    padding: 4rem 2rem;
    background: hsl(var(--background));
}

.books .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.books h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: hsl(var(--foreground));
    text-align: center;
}

.books .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Book Card Styles */
.book-card {
    background: hsl(var(--card));
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
    overflow: hidden;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.book-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.book-details {
    padding: 1.5rem;
    text-align: left;
}

.book-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.book-author, .book-revision, .book-summary {
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.75rem;
}

.book-summary {
    line-height: 1.5;
}

.view-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition-duration) ease;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.view-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px hsla(var(--primary) / 0.3);
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: hsla(0, 0%, 0%, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: hsl(var(--card));
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: hsl(var(--muted-foreground));
}

.close-btn:hover {
    color: hsl(var(--primary));
}

.buy-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition-duration) ease;
    font-weight: 500;
    margin-top: 1rem;
}

.buy-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px hsla(var(--primary) / 0.3);
}

/* Responsive Styles for Books Section */
@media (max-width: 768px) {
    .books {
        padding: 2rem 1rem;
    }

    .books .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .book-details {
        padding: 1rem;
    }

    .book-details h3 {
        font-size: 1.25rem;
    }

    .book-author, .book-revision, .book-summary {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .books .card-grid {
        grid-template-columns: 1fr;
    }

    .book-details {
        padding: 1rem;
    }

    .book-details h3 {
        font-size: 1.25rem;
    }

    .book-author, .book-revision, .book-summary {
        font-size: 0.8rem;
    }
}

/* Books Section Styles */
.books {
    padding: 4rem 2rem;
    background: hsl(var(--background));
}

.books .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.books h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: hsl(var(--foreground));
    text-align: center;
}

.books .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Book Card Styles */
.book-card {
    background: hsl(var(--card));
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
    overflow: hidden;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.book-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.book-details {
    padding: 1.5rem;
    text-align: left;
}

.book-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.book-author, .book-revision, .book-summary {
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.75rem;
}

.book-summary {
    line-height: 1.5;
}

/* Book Tags */
.book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Book Actions (View More and Buy Now) */
.book-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.view-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition-duration) ease;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.view-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px hsla(var(--primary) / 0.3);
}

.buy-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition-duration) ease;
    font-weight: 500;
}

.buy-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px hsla(var(--primary) / 0.3);
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: hsla(0, 0%, 0%, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: hsl(var(--card));
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: hsl(var(--muted-foreground));
}

.close-btn:hover {
    color: hsl(var(--primary));
}

/* Responsive Styles for Books Section */
@media (max-width: 768px) {
    .books {
        padding: 2rem 1rem;
    }

    .books .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .book-details {
        padding: 1rem;
    }

    .book-details h3 {
        font-size: 1.25rem;
    }

    .book-author, .book-revision, .book-summary {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .books .card-grid {
        grid-template-columns: 1fr;
    }

    .book-details {
        padding: 1rem;
    }

    .book-details h3 {
        font-size: 1.25rem;
    }

    .book-author, .book-revision, .book-summary {
        font-size: 0.8rem;
    }
}

/* Book Actions (View More and Buy Now) */
.book-actions {
    display: flex;
    justify-content: space-between; /* Aligns View More to the left and Buy Now to the right */
    align-items: center;
    margin-top: 1rem;
}

.view-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f7ca00;
    color: hsl(var(--primary-foreground));
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition-duration) ease;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.view-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px hsla(var(--primary) / 0.3);
}

.buy-now {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #FFD814; /* Amazon's yellow color */
    color: #000; /* Black text for contrast */
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition-duration) ease;
    font-weight: 500;
    border: 1px solid #FCD200; /* Slightly darker yellow for border */
}

.buy-now:hover {
    background: #F7CA00; /* Darker yellow on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 216, 20, 0.3); /* Yellow shadow */
}

/* Job Listings Section */
.job-listings {
    padding: 4rem 2rem;
    background: hsl(var(--background));
}

.job-listings .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.job-listings h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: hsl(var(--foreground));
    text-align: center;
}

.job-listings .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Job Card Styles */
.job-card {
    background: hsl(var(--card));
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.job-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.company-name {
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.job-details {
    margin-bottom: 1.5rem;
}

.job-details p {
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.job-details strong {
    color: hsl(var(--foreground));
}

.key-skills {
    margin-top: 1rem;
}

.key-skills strong {
    display: block;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.skill {
    display: inline-block;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.job-actions {
    text-align: right;
}

.apply-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition-duration) ease;
    font-weight: 500;
}

.apply-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px hsla(var(--primary) / 0.3);
}

/* Responsive Styles for Job Cards */
@media (max-width: 768px) {
    .job-listings {
        padding: 2rem 1rem;
    }

    .job-listings .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .job-card {
        padding: 1rem;
    }

    .job-header h3 {
        font-size: 1.25rem;
    }

    .company-name {
        font-size: 0.85rem;
    }

    .job-details p {
        font-size: 0.85rem;
    }

    .skill {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .job-listings .card-grid {
        grid-template-columns: 1fr;
    }

    .job-card {
        padding: 1rem;
    }

    .job-header h3 {
        font-size: 1.25rem;
    }

    .company-name {
        font-size: 0.85rem;
    }

    .job-details p {
        font-size: 0.85rem;
    }

    .skill {
        font-size: 0.75rem;
    }
}

/* News Section Styles */
.news {
    padding: 4rem 2rem;
    background: hsl(var(--background));
}

.news .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.news h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: hsl(var(--foreground));
    text-align: center;
}

.article-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Article Card Styles */
.article-card {
    background: hsl(var(--card));
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start; /* Align items to the top */
    transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
    padding: 1.5rem;
    gap: 1.5rem; /* Add gap between image and content */
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.article-image {
    flex: 0 0 100px; /* Fixed width for the image (approx. 4 lines of text) */
    height: 100px; /* Fixed height for the image */
    overflow: hidden;
    border-radius: var(--radius); /* Rounded corners */
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the space without distortion */
}

.article-content {
    flex: 1; /* Take up remaining space */
}

.article-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: hsl(var(--foreground));
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.article-summary {
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #FFD814; /* Amazon's yellow color */
    color: #000; /* Black text for contrast */
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition-duration) ease;
    font-weight: 500;
    border: 1px solid #FCD200; /* Slightly darker yellow for border */
}

.read-more:hover {
    background: #F7CA00; /* Darker yellow on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 216, 20, 0.3); /* Yellow shadow */
}

/* Responsive Styles for Article Cards */
@media (max-width: 768px) {
    .article-card {
        flex-direction: column; /* Stack content and image vertically on smaller screens */
        padding: 1rem;
    }

    .article-image {
        flex: 0 0 100%; /* Full width for the image on smaller screens */
        max-width: 100%;
        height: 150px; /* Larger height for mobile */
        border-radius: var(--radius) var(--radius) 0 0; /* Rounded corners at the top */
    }

    .article-content h3 {
        font-size: 1.25rem;
    }

    .article-meta {
        font-size: 0.85rem;
    }

    .article-summary {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .article-grid {
        gap: 1rem;
    }

    .article-card {
        padding: 0;
    }

    .article-content {
        padding: 1rem;
    }

    .article-image {
        height: 120px; /* Smaller height for mobile */
    }

    .article-content h3 {
        font-size: 1.25rem;
    }

    .article-meta {
        font-size: 0.85rem;
    }

    .article-summary {
        font-size: 0.85rem;
    }
}
/* Interviews Section Styles */
.interviews {
    padding: 4rem 2rem;
    background: hsl(var(--background));
}

.interviews .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.interviews h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: hsl(var(--foreground));
    text-align: center;
}

.interview-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Interview Card Styles */
.interview-card {
    background: hsl(var(--card));
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
}

.interview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.interview-image {
    flex: 0 0 30%; /* Fixed width for the image block */
    max-width: 30%;
    height: 200px; /* Fixed height for the image */
    overflow: hidden;
    border-radius: var(--radius) 0 0 var(--radius); /* Rounded corners on the left side */
}

.interview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the space without distortion */
}

.interview-content {
    flex: 1;
    padding: 1.5rem;
}

.interview-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: hsl(var(--foreground));
}

.industry {
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.75rem;
}

.topic-covered {
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.75rem;
}

.topic-covered strong {
    color: hsl(var(--foreground));
}

.summary {
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.view-interview {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #FFD814; /* Amazon's yellow color */
    color: #000; /* Black text for contrast */
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition-duration) ease;
    font-weight: 500;
    border: 1px solid #FCD200; /* Slightly darker yellow for border */
}

.view-interview:hover {
    background: #F7CA00; /* Darker yellow on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 216, 20, 0.3); /* Yellow shadow */
}

/* Responsive Styles for Interview Cards */
@media (max-width: 768px) {
    .interviews {
        padding: 2rem 1rem;
    }

    .interview-card {
        flex-direction: column; /* Stack content and image vertically on smaller screens */
    }

    .interview-image {
        flex: 0 0 100%; /* Full width for the image on smaller screens */
        max-width: 100%;
        height: 150px; /* Smaller height for mobile */
        border-radius: var(--radius) var(--radius) 0 0; /* Rounded corners at the top */
    }

    .interview-content {
        padding: 1rem;
    }

    .interview-content h3 {
        font-size: 1.25rem;
    }

    .industry, .topic-covered, .summary {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .interview-grid {
        gap: 1rem;
    }

    .interview-card {
        padding: 0;
    }

    .interview-content {
        padding: 1rem;
    }

    .interview-image {
        height: 120px; /* Smaller height for mobile */
    }

    .interview-content h3 {
        font-size: 1.25rem;
    }

    .industry, .topic-covered, .summary {
        font-size: 0.85rem;
    }
}

/* Donate Section Styles */
.donate-section {
    padding: 6rem 2rem 4rem; /* Added top padding to avoid overlap with the header */
    background: linear-gradient(135deg, #ff9a9e, #fad0c4, #fbc2eb, #a6c1ee, #f6d365);
    background-size: 400% 400%;
    animation: gradientAnimation 10s ease infinite;
    text-align: center;
    color: hsl(var(--foreground));
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.donate-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.donate-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
}

/* Donation Options */
.donation-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.donation-card {
    background: hsla(var(--card), 0.9); /* Semi-transparent white background for cards */
    border-radius: var(--radius);
    padding: 2rem;
    width: 300px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
    text-align: center;
}

.donation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: hsl(var(--primary));
}

.donation-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: hsl(var(--foreground));
}

.donation-card p {
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

.donation-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition-duration) ease;
    font-weight: 500;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.donation-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Thank You Message */
.thank-you-message {
    margin-top: 3rem;
    padding: 2rem;
    background: hsla(var(--card), 0.9);
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.thank-you-message h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.thank-you-message p {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.8;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .donation-options {
        flex-direction: column;
        align-items: center;
    }

    .donation-card {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .donate-section {
        padding: 4rem 1rem 2rem; /* Adjusted padding for smaller screens */
    }

    .donate-content h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .thank-you-message {
        padding: 1rem;
    }

    .thank-you-message h2 {
        font-size: 1.5rem;
    }

    .thank-you-message p {
        font-size: 0.9rem;
    }
}

@font-face {
    font-family: 'Inter';
    src: url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
    font-display: swap;
}
@font-face {
    font-family: 'Bungee Inline';
    src: url('https://fonts.googleapis.com/css2?family=Bungee+Inline&display=swap');
    font-display: swap;
}




/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: hsla(0, 0%, 0%, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4, #fbc2eb, #a6c1ee, #f6d365);
    background-size: 400% 400%;
    animation: gradientAnimation 10s ease infinite;
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #333;
    border: 2px solid #fff;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.popup-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.popup-content p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.popup-content strong {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.close-btn:hover {
    color: #ff6f61;
}

.popup-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #ff6f61;
    color: #fff;
    border: none;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.popup-button:hover {
    background: #ff4a3d;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}
