/* home.css */

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

body {
    font-family: var(--font-family-sans);
    background: url('../../images/ExploreTheWorld.jpg') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

header {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: var(--spacing-md) var(--spacing-lg);
    box-shadow: var(--shadow-md);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color var(--transition-fast);
}

header.scrolled {
    background-color: var(--color-secondary);
}

header h1 {
    margin: 0;
    font-size: var(--font-size-h2);
}

header nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin-right: var(--spacing-md);
}

header nav ul li a {
    color: var(--color-text-light);
    transition: color var(--transition-fast);
}

header nav ul li a:hover, header nav ul li a:focus {
    color: var(--color-accent);
}

#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-text-light);
    background: rgba(0, 0, 0, 0.5);
    padding: var(--spacing-lg);
    animation: fadeIn 2s ease-in-out;
}

#hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 5em;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

#hero p {
    font-size: 1.5em;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

#intro, #featured-topics {
    text-align: center;
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.9);
    margin-top: -var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    animation: slideUp 1s ease-in-out;
    font-family: 'Roboto', sans-serif; /* Ensure body text is readable */
}

#intro h2, #featured-topics h2 {
    font-size: var(--font-size-h2);
    margin-bottom: var(--spacing-md);
    font-family: 'Orbitron', sans-serif; /* Applying futuristic font to headings */
}

#intro p, #featured-topics p {
    font-size: var(--font-size-h4);
    margin-bottom: var(--spacing-md);
}

#featured-topics .topic {
    background: rgba(10, 63, 129, 0.8);
    color: var(--color-text-light);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), background-color var(--transition-fast);
    margin-bottom: var(--spacing-md);
}

#featured-topics .topic h3 {
    font-family: 'Orbitron', sans-serif; /* Applying futuristic font to topic headings */
    font-size: var(--font-size-h3);
    margin-bottom: var(--spacing-sm);
}

#featured-topics .topic h3 a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

#featured-topics .topic h3 a:hover, #featured-topics .topic h3 a:focus {
    color: var(--color-highlight); /* Ensuring text color remains visible on hover */
}

#featured-topics .topic p {
    font-family: 'Roboto', sans-serif; /* Body text remains readable */
}

#featured-topics .topic:hover {
    background-color: var(--color-accent);
    transform: translateY(-10px);
}

footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    text-align: center;
    padding: var(--spacing-md);
    position: fixed;
    bottom: 0;
    width: 100%;
    box-shadow: var(--shadow-md);
}

footer p {
    margin: 0;
}

footer a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

footer a:hover, footer a:focus {
    color: var(--color-accent);
}

/* Animations */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
