/* Resetting defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body, html {
    height: 100%;
    /* overflow: hidden; Removed to allow scrolling on small mobile devices */
}

.main-container {
    min-height: 100vh; /* Changed from height to min-height for content expansion */
    background: linear-gradient(135deg, #1e1e2f 0%, #2a2a40 100%);
    color: white;
    display: flex;
    flex-direction: column;
}

/* Navigation */
nav {
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allows items to wrap on very small screens */
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #64ffda;
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 10%; /* Adjusted padding for better mobile spacing */
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4rem); /* Fluid typography: scales between 2.5rem and 4rem */
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: #64ffda;
}

.hero-content p {
    font-size: 1.1rem;
    color: #a8b2d1;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Buttons */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Buttons stack on small screens */
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.4s;
    min-width: 160px; /* Ensures consistent button size */
}

.btn-primary {
    background: #64ffda;
    color: #1e1e2f;
    border: none;
}

.btn-secondary {
    background: transparent;
    border: 1px solid #64ffda;
    color: #64ffda;
}

button:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1.5rem 5%;
    }

    nav ul {
        margin-top: 10px;
    }

    nav ul li {
        margin: 0 1rem;
    }

    .hero-content h1 {
        margin-top: 2rem;
    }
}

@media (max-width: 400px) {

    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        align-items: center; 
    }

    .custom-alert {
        width: 100%; 
        min-width: unset; 
        font-size: 0.85rem; /* Smaller font for mobile */
        padding: 10px 15px; /* Compact padding */
        text-align: center;
        border-left: 3px solid #FF1A1A; /* Slimmer border */
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }

    .btn-secondary {
        width: 100%;
    }
}



/* ... keep all your previous desktop styles the same ... */


/* Notification remains the same */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 20px; /* Added left to help center on mobile if needed */
    pointer-events: none;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.custom-alert {
    pointer-events: auto;
    background-color: #E0E0E0;
    color: #FF1A1A;
    padding: 16px 24px;
    border-radius: 8px;
    border-left: 4px solid #FF1A1A;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-weight: 500;
    max-width: 100%;
    width: fit-content;
    animation: slideIn 0.5s ease forwards, fadeOut 0.5s ease 3.5s forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}