/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #2c2c2c;
    color: #ffffff;
    min-height: 100vh;
}

/* Header styles */
header {
    padding: 6rem 1rem 2rem 1rem;
    text-align: center;
}

header h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: lowercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Main content */
main {
    padding: 3rem 1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Navigation styles */
nav {
    margin-top: 3rem;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}


nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Desktop: underline only on hover */
@media (min-width: 769px) {
    nav a:hover {
        text-decoration: underline;
        text-decoration-color: #ffffff;
        text-decoration-style: dashed;
        text-decoration-thickness: 1px;
        text-underline-offset: 6px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }
}

/* Mobile: always show dashed underline */
@media (max-width: 768px) {
    nav a {
        text-decoration: underline;
        text-decoration-color: #cccccc;
        text-decoration-style: dashed;
        text-underline-offset: 4px;
    }
    
    nav a:hover {
        text-decoration-color: #ffffff;
        text-decoration-style: solid;
        text-underline-offset: 4px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }
}

nav a:focus {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

/* Responsive design */
@media (max-width: 768px) {
    header {
        padding: 5.25rem 1rem 1.5rem 1rem !important;
    }
    
    header h1 {
        font-size: 2.4rem;
        letter-spacing: 1px;
    }
    
    main {
        padding: 2rem 1rem;
    }
    
    nav a {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 5.25rem 1rem 1rem 1rem !important;
    }
    
    header h1 {
        font-size: 2.16rem;
        letter-spacing: 0.5px;
    }
    
    main {
        padding: 1.5rem 0.5rem;
    }
    
    nav a {
        font-size: 1rem;
    }
}

/* Hover effects for better interactivity */
header h1:hover {
    color: #f0f0f0;
    transition: color 0.3s ease;
}

/* Focus styles for accessibility */
header h1:focus {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}