/* w4.css - Professionally Enhanced Styling */

/* Base Typography and Layout */
html,
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    background: #f9f9f9;
    color: #333;
    padding-top: 70px;
    /* space for fixed navbar */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to right, #4b6cb7, #1ac9ec);
    color: white;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 16px 40px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.navbar .logo {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0vw 2vw;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.navbar ul li a {
    font-family: Arial, sans-serif;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.1s ease;
}

.navbar ul li a:hover {
    color: #060100;
    
}

.navbar .hamburger {
    display: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
}

#nav-toggle {
    display: none;
}

@media (max-width: 768px) {
    .navbar ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        text-align: center;
        display: none;
    }

    .navbar ul li {
        padding: 16px 0;
    }

    #nav-toggle:checked+.hamburger+ul {
        display: flex;
    }

    .navbar .hamburger {
        display: block;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1526378722431-d4e0c7ea0d48?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    position: relative;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
    animation: fadeIn 1.5s ease;
}

.hero-overlay h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-overlay p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 30px;
}

.hero-overlay .w3-button {
    font-size: 1rem;
    background: #ff4b2b;
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-overlay .w3-button:hover {
    background: #ff3a1a;
    transform: scale(1.05);
}

/* Scroll-to-top Button */
.scroll-top {
    position: fixed;
    right: 20px;
    bottom: 30px;
    background: #ff4b2b;
    color: white;
    padding: 10px 14px;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 999;
}

.scroll-top:hover {
    background: #e9411f;
}

/* General Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    padding: 80px 20px;
    animation: fadeIn 1s ease-in;
}

/* Buttons */
.w3-button {
    transition: all 0.3s ease-in-out;
}

.w3-button:hover {
    transform: scale(1.1);
    text-decoration: none;
}

/* Responsive Typography */
@media (max-width: 600px) {
    .hero-overlay h1 {
        font-size: 2.2rem;
    }

    .hero-overlay p {
        font-size: 1rem;
    }
}
