/* Basic Reset & Font */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', 'Montserrat', sans-serif;
    line-height: 1.7;
    color: #e0e0e0; /* Light text for dark mode */
    background-color: #121212; /* Dark background */
}

/* Navigation */
header {
    background-color: #1f1f1f; /* Darker background for nav */
    color: #e0e0e0;
    padding: 0.8rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5); /* Adjusted shadow for dark bg */
    border-bottom: 1px solid #333; /* Darker border */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav .logo a {
    font-size: 1.6rem;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff; /* White logo text */
}

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

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

nav ul li a {
    text-decoration: none;
    color: #cccccc; /* Lighter grey links */
    font-weight: bold;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #66aaff; /* Lighter blue hover */
}

/* Main Content & Sections */
main {
    padding-top: 80px;
}

.content-section {
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.content-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.2rem;
    color: #ffffff; /* White section headers */
    font-weight: 700;
}

.alt-bg {
    background-color: #1f1f1f; /* Slightly different dark for alternate sections */
}

/* Hero Section */
.hero {
    color: #ffffff; /* White text for hero */
    min-height: 70vh; /* Ensure enough height for image */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    position: relative; /* Needed for pseudo-element overlay */
    background-color: #333; /* Fallback background color */

    /* --- COVER IMAGE --- */
    /* --- Replace 'path/to/your/cover-image.jpg' with your actual image path --- */
    background-image: url('cover1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Add a dark overlay for text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6); /* Dark semi-transparent overlay */
    z-index: 1;
}

/* Ensure content is above the overlay */
.hero-content {
    max-width: 700px;
    position: relative; /* Situate above the ::before pseudo-element */
    z-index: 2;
}


.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #ffffff;
}

.hero h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 400;
    color: #e0e0e0; /* Lighter text for subtitle */
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #cccccc; /* Lighter text for description */
}

/* Experience & Project Lists */
.experience-list, .project-list, .competition-list {
    text-align: left;
}

.experience-item, .project-item, .competition-item {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #333; /* Darker separator */
}

.experience-item:last-child,
.project-item:last-child,
.competition-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.experience-item h3, .project-item h3, .competition-item h3 {
    margin-bottom: 0.3rem;
    font-size: 1.3rem;
    color: #66aaff; /* Lighter blue for titles */
}

.experience-item p, .project-item p, .competition-item p {
    margin-bottom: 0.5rem;
    color: #cccccc; /* Lighter paragraph text */
}
.experience-item p strong, .project-item p em, .competition-item p em {
    color: #e0e0e0; /* Slightly brighter for emphasis */
    font-weight: bold;
    font-style: normal;
}
.experience-item ul {
    list-style-position: outside;
    padding-left: 20px;
    margin-top: 0.5rem;
}
.experience-item ul li {
    margin-bottom: 0.4rem;
     color: #cccccc;
}

/* Skills/Domains List */
.skills-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.skills-list li {
    background-color: #333333; /* Dark grey badge background */
    color: #e0e0e0; /* Light text */
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.95rem;
}


/* Contact Section */
#contact ul {
    list-style: none;
    padding: 0;
    text-align: center;
    margin-top: 1rem;
}

#contact li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

#contact a {
    color: #66aaff; /* Lighter blue links */
    text-decoration: none;
}
#contact a:hover {
    text-decoration: underline;
}


/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    background-color: #1f1f1f; /* Consistent dark footer */
    color: #aaaaaa; /* Slightly dimmer footer text */
    font-size: 0.9rem;
}

/* Basic Responsiveness */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    .content-section {
        padding: 3rem 1rem;
    }
    .hero h1 { font-size: 2.5rem; }
    .hero h2 { font-size: 1.4rem; }
    .skills-list { justify-content: flex-start; }
}