/* Base Styling */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0; /* Improved text color for dark mode */
}
body.dark-mode .card {
    background-color: #1e1e1e;
    color: #e0e0e0; /* Improved card text color for dark mode */
}
body.dark-mode h2,
body.dark-mode .card-title,
body.dark-mode .card-description,
body.dark-mode .modal-content {
    color: #e0e0e0; /* Ensuring all text in dark mode is readable */
}
body::-webkit-scrollbar {
    width: 10px;
}
body::-webkit-scrollbar-thumb {
    background: #502143;
    border-radius: 10px;
}
body.dark-mode::-webkit-scrollbar-thumb {
    background: #9f0000;
}

/* Header Section */
header {
    background: linear-gradient(135deg, #502143, #9f0000);
    padding: 120px 0;
    color: white;
    text-align: center;
    position: relative;
    z-index: 10;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}
header h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}
header p {
    font-size: 1.25rem;
    font-weight: 400;
    color: #f1f1f1;
}


/* Improved Search Bar */
.search-bar {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.search-bar input {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    border: 2px solid #502143;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #333;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.search-bar input:focus {
    border-color: #9f0000;
    box-shadow: 0px 5px 15px rgba(196, 75, 112, 0.4);
}

/* Dark Mode Support */
body.dark-mode .search-bar input {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border-color: #9f0000;
}

body.dark-mode .search-bar input:focus {
    box-shadow: 0px 5px 15px rgba(196, 75, 112, 0.6);
}

/* Optional: Add a Search Button */
.search-bar button {
    background: linear-gradient(135deg, #502143, #9f0000);
    border: none;
    color: white;
    padding: 12px 18px;
    font-size: 1rem;
    border-radius: 30px;
    margin-left: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-bar button:hover {
    background: linear-gradient(135deg, #9f0000, #502143);
}

/* Sections */
section {
    padding: 80px 0;
}
h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}
h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: #502143;
    margin: 10px auto;
}

/* Cards */
.card {
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    cursor: pointer; /* Indicate clickable zoom */
}
.card-body {
    padding: 20px;
    text-align: center;
}
.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}
.card-description {
    font-size: 1rem;
    color: #555;
    margin-top: 10px;
}
.card-btn {
    background: linear-gradient(135deg, #502143, #9f0000);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1rem;
    margin-top: 15px;
    transition: background 0.3s ease;
}
.card-btn:hover {
    background: linear-gradient(135deg, #9f0000, #502143);
}

/* Modal Content */
.modal-content {
    background-color: #1e1e1e; /* Dark background for modals */
    color: #e0e0e0; /* Light text color for modals */
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #502143, #9f0000);
    color: #fff;
    border-radius: 50%;
    padding: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
.theme-toggle:hover {
    background: linear-gradient(135deg, #9f0000, #502143);
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 2rem;
    }
    .card-title {
        font-size: 1.2rem;
    }
    .card-description {
        font-size: 0.9rem;
    }
}





