@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, #1a1a1a, #2c3e50);
    color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* Header Section */
header {
    background: url('https://example.com/twilight-background.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 70px 20px;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 75%, 0 100%);
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

header h1, header p {
    position: relative;
    z-index: 2;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    text-shadow: 2px 2px 5px #000;
    margin: 0;
    animation: fadeInDown 1.5s;
}

header p {
    font-size: 20px;
    margin: 10px 0 0;
    animation: fadeInUp 1.5s;
}

/* Navbar */
nav {
    background-color: rgba(52, 73, 94, 0.8);
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 10;
    clip-path: polygon(0 25%, 100% 0, 100% 100%, 0 75%);
}

nav a {
    color: #f8f9fa;
    text-decoration: none;
    margin: 0 20px;
    font-weight: bold;
    font-size: 18px;
    transition: color 0.3s;
}

nav a:hover {
    color: #e74c3c;
}

/* Main Content */
.main-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 20px;
    background-color: #2c3e50;
}

.card {
    background: #34495e;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(231, 76, 60, 0.7);
    z-index: 1;
    clip-path: circle(0 at center);
    transition: clip-path 0.5s;
}

.card:hover::before {
    clip-path: circle(150% at center);
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

.card img {
    width: 100%;
    border-bottom: 2px solid #e74c3c;
    position: relative;
    z-index: 2;
}

.card a {
    display: block;
    text-decoration: none;
    color: #f8f9fa;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 10px 0;
    transition: color 0.3s;
    position: relative;
    z-index: 2;
}

.card a:hover {
    color: #e74c3c;
}

/* Footer */
footer {
    background-color: #000;
    color: #f8f9fa;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    position: relative;
    clip-path: polygon(0 25%, 100% 0, 100% 75%, 0 100%);
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    color: #f8f9fa;
    margin: 0 10px;
    font-size: 24px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #e74c3c;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
