* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #121212;
    color: #e5e7eb;
    line-height: 1.8;
    font-size: 16px;
    letter-spacing: 0.03rem;
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

/* Header Styling */
header {
    background: url('../img/giphy.gif') no-repeat center center/cover;
    height: 100vh; /* Full viewport height for cleaner look */
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.6); /* Slightly darker overlay for better contrast */
    z-index: 1;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem; /* More padding for a cleaner look */
    position: fixed; /* Sticky header */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensure it stays above other content */
    background: rgba(17, 24, 39, 0.9); /* Slightly more opaque background */
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

nav.sticky {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); /* Shadow when sticky */
}

nav .logo img {
    height: 85px; /* Slightly larger logo */
    transition: transform 0.3s ease-in-out;
}

nav .logo img:hover {
    transform: scale(1.15); /* Smoother scaling on hover */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem; /* More spacing between nav items */
    margin: 0;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem; /* Slightly larger font */
    transition: color 0.3s ease-in-out, text-shadow 0.3s ease, transform 0.3s ease;
}

nav ul li a:hover {
    color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
    transform: translateY(-2px);
}

nav ul li a:visited {
    color: #ffffff;
}

nav .auth-buttons button {
    background: #1f2937;
    border: 1px solid #374151;
    color: #ffffff;
    padding: 0.6rem 1.5rem;
    margin-left: 1rem;
    cursor: pointer;
    border-radius: 10px; /* Smoother corners */
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

nav .auth-buttons button:hover {
    background: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

nav .auth-buttons button:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

.hero {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    animation: fadeIn 1.2s ease-out;
}

.hero h1 {
    font-size: 4rem; /* Larger heading for impact */
    font-weight: 800;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.03rem;
    animation: slideInUp 1s ease-out;
}

.hero p {
    font-size: 1.5rem; /* Larger paragraph text */
    font-weight: 300;
    margin: 1rem 0;
    color: #d1d5db;
    animation: slideInUp 1s ease-out 0.3s both;
}

/* Learn Today Section */
.learn-today {
    padding: 6rem 2rem; /* More padding for a spacious look */
    background: url('../img/giphy.gif') no-repeat center center/cover;
    position: relative;
    overflow: hidden;
}

.learn-today::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.85); /* Slightly lighter overlay */
    z-index: 0;
}

.container {
    max-width: 1280px; /* Wider container for modern look */
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.learn-today h2 {
    font-size: 3rem; /* Larger heading */
    font-weight: 700;
    text-align: center;
    margin-top: 5rem;
    margin-bottom: 1rem;
    color: #10b981;
    text-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
    line-height: 1.3;
    white-space: normal;
    overflow: visible;
    display: block;
    animation: fadeIn 1s ease-out;
}

.subtitle {
    font-size: 1.25rem; /* Larger subtitle */
    font-weight: 300;
    text-align: center;
    color: #b0b0b0;
    margin-bottom: 4rem;
    max-width: 700px; /* Wider max-width for better readability */
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 1s ease-out 0.3s both;
}

.courses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Wider cards */
    gap: 2rem; /* More spacing between cards */
    animation: fadeInUp 1s ease-out 0.5s both;
}

.course-card {
    background: url('../img/giphy.gif') no-repeat center center/cover;
    padding: 2rem;
    border-radius: 16px; /* Smoother corners */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid #374151;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 340px; /* Slightly taller cards */
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px; /* Thicker top border */
    background: #10b981;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover::before {
    opacity: 1;
}

.course-card:hover {
    transform: translateY(-10px); /* More pronounced lift */
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.3);
    border-color: #10b981;
}

.course-card img {
    height: 90px; /* Larger image */
    width: 90px;
    margin: 0 auto 1.5rem;
    padding: 1rem;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
}

.course-card:hover img {
    transform: scale(1.1) rotate(5deg);
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
}

.course-card h3 {
    font-size: 1.6rem; /* Larger heading */
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    line-height: 1.3;
    max-height: 4.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.course-card p {
    font-size: 1rem; /* Slightly larger text */
    font-weight: 300;
    color: #9ca3af;
    line-height: 1.6;
    margin: 0;
    max-height: 4.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Footer Styling */
footer {
    padding: 4rem 2rem; /* More padding for a spacious look */
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem; /* More spacing between footer sections */
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    z-index: 0;
}

footer > * {
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    gap: 2rem; /* More spacing between social links */
    align-items: center;
}

.social-links a img {
    height: 32px; /* Larger icons */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-links a img:hover {
    transform: scale(1.3); /* More pronounced scaling */
    filter: brightness(1.3) drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
}

.footer-links {
    display: flex;
    gap: 4rem; /* More spacing between footer links */
    flex-wrap: wrap;
}

.footer-links div {
    display: flex;
    flex-direction: column;
    min-width: 180px; /* Wider columns */
}

.footer-links h4 {
    font-size: 1.3rem; /* Larger heading */
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 1rem; /* Larger text */
    margin-bottom: 0.75rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover {
    color: #10b981;
    transform: translateX(5px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.2rem;
    }

    .learn-today h2 {
        font-size: 2.5rem;
    }

    .courses {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    header {
        height: 80vh; /* Reduced height for smaller screens */
    }

    nav {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.2rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .learn-today {
        padding: 4rem 1.5rem;
    }

    .learn-today h2 {
        font-size: 2rem;
    }

    .course-card {
        min-height: 300px;
    }

    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 3rem 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .learn-today h2 {
        font-size: 1.8rem;
    }

    .course-card h3 {
        font-size: 1.4rem;
    }

    .course-card p {
        font-size: 0.95rem;
    }

    nav .logo img {
        height: 70px;
    }
}