:root {
    --primary: #ff9933; /* Saffron */
    --secondary: #138808; /* Green */
    --accent: #000080; /* Navy Blue */
    --bg-color: #f4f7f6;
    --white: #ffffff;
    --shadow: 0 10px 20px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary), #f3a683);
    color: white;
    text-align: center;
    padding: 60px 0;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    animation: fadeInDown 0.8s ease-out;
}

.search-box {
    margin-top: 25px;
    animation: fadeInUp 0.8s ease-out;
}

#searchInput {
    width: 350px;
    padding: 12px 20px;
    border-radius: 30px;
    border: none;
    font-size: 1rem;
    outline: none;
    box-shadow: var(--shadow);
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    padding: 50px 0;
}

/* Card Design */
.card {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border-bottom: 5px solid var(--primary);
    animation: scaleIn 0.5s ease-out forwards;
    opacity: 0;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border-bottom-color: var(--secondary);
}

.card h3 {
    color: var(--accent);
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9rem;
    color: #666;
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: #aaa;
}

.modal-content h2 {
    color: var(--accent);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.info-row span:first-child {
    font-weight: 600;
    color: #555;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes modalPop {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
