:root {
    --accent-color-1: #E57A57; /* Orange from logo */
    --accent-color-2: #57B39D; /* Teal from logo */

    /* Light Mode */
    --background-light: #f8f8f8;
    --text-light: #333;
    --hero-bg-light: #efefef;
    --nav-bg-light: #ffffff;
    --button-bg-light: var(--accent-color-2);
    --button-text-light: #ffffff;
    --hero-image-bg-light: #f8f8f8; /* Black background for image side */

    /* Dark Mode */
    --background-dark: #1a1a1a;
    --text-dark: #f0f0f0;
    --hero-bg-dark: #2a2a2a;
    --nav-bg-dark: #111111;
    --button-bg-dark: var(--accent-color-1);
    --button-text-dark: #ffffff;
    --hero-image-bg-dark: #1a1a1a; /* Keep black for image side */

    /* Default to Light Mode */
    --background: var(--background-light);
    --text: var(--text-light);
    --hero-bg: var(--hero-bg-light);
    --nav-bg: var(--nav-bg-light);
    --button-bg: var(--button-bg-light);
    --button-text: var(--button-text-light);
    --hero-image-bg: var(--hero-image-bg-light);
}

body {
    font-family: sans-serif;
    margin: 0;
    background-color: var(--background);
    color: var(--text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    --background: var(--background-dark);
    --text: var(--text-dark);
    --hero-bg: var(--hero-bg-dark);
    --nav-bg: var(--nav-bg-dark);
    --button-bg: var(--button-bg-dark);
    --button-text: var(--button-text-dark);
    --hero-image-bg: var(--hero-image-bg-dark);
}

header {
    background-color: var(--nav-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

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

.logo img {
    height: 40px; /* Adjust as needed */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-color-1);
}

.cta-button {
    background-color: var(--button-bg);
    color: var(--button-text);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
    opacity: 0.9;
    color: var(--button-text); /* Ensure text color remains on hover */
}

.nav-toggles { /* Style the container for the toggles */
    display: flex;
    align-items: center;
    gap: 0.8rem; /* Space between buttons */
}

.language-selector { /* Container for dropdown */
    position: relative; /* Needed for absolute positioning of dropdown */
}

#languageToggleBtn, /* Style the new flag button */
#darkModeToggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem; /* Slightly larger for flags */
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0; /* Remove default padding */
    /* font-weight: bold; /* Remove bold if not needed for flags */
    line-height: 1; /* Ensure flag aligns well */
}

#languageToggleBtn:hover,
#darkModeToggle:hover {
     color: var(--accent-color-2); /* Keep hover effect, though color won't apply to emoji */
     opacity: 0.8; /* Add opacity change for visual feedback */
}

.dark-mode #languageToggleBtn:hover,
.dark-mode #darkModeToggle:hover {
     color: var(--accent-color-1); /* Keep hover effect */
     opacity: 0.8;
}

/* Dropdown Styles */
.language-dropdown {
    position: absolute;
    top: 100%; /* Position below the button */
    right: 0; /* Align to the right */
    background-color: var(--nav-bg);
    border: 1px solid var(--text-light); /* Simple border */
    border-radius: 4px;
    list-style: none;
    margin: 0.5rem 0 0; /* Add some space above */
    padding: 0.5rem 0;
    min-width: 120px; /* Minimum width */
    z-index: 1001; /* Ensure it's above other nav items */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.dark-mode .language-dropdown {
    border-color: var(--text-dark);
}

.language-dropdown[hidden] {
    display: none; /* Hide by default */
}

.language-dropdown li button { /* Style buttons inside dropdown */
    background: none;
    border: none;
    color: var(--text);
    padding: 0.5rem 1rem;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    display: flex; /* Align flag and text */
    align-items: center;
    gap: 0.5rem; /* Space between flag and text */
}

.language-dropdown li button:hover {
    background-color: var(--hero-bg); /* Use hero background for hover */
}

.hero {
    display: flex;
    background-color: var(--hero-bg); /* This should be the lighter/darker gray */
    /* Ensure it takes full viewport height */
    min-height: 100vh;
    align-items: stretch; /* Make columns equal height */
    width: 100%; /* Ensure hero section spans full width */
}

.hero-text {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--text); /* Ensure heading color contrasts */
}

.hero-text h2 {
    font-size: 1.5rem;
    font-weight: normal;
    color: #00000077;
    margin-bottom: 2rem;
}

.dark-mode .hero-text h2 {
    color: #FFFFFF77;
}

.social-links a {
    color: var(--text);
    font-size: 1.8rem;
    margin-right: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color-2);
}
.dark-mode .social-links a:hover {
    color: var(--accent-color-1);
}


.hero-image {
    flex: 1;
    background-color: var(--hero-image-bg); /* This should be black */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Prevents image overflow */
    transition: background-color 0.3s ease;
    /* Add clip-path for oblique border */
    /* Adjust the second point's X value (e.g., 90%, 85%) to change the angle */
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0 100%);
}

.hero-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover; /* Cover the container */
}

/* Basic styles for other sections */
section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 2rem auto;
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--accent-color-2);
}

.dark-mode section h2 {
     color: var(--accent-color-1);
}


/* Responsive adjustments */
@media (max-width: 768px) {
    nav ul {
        display: none; /* Hide nav links on smaller screens for simplicity, implement hamburger later if needed */
    }
    /* Ensure toggles remain visible */
    .nav-toggles {
        /* Adjust styling if needed for mobile */
    }
    .hero {
        flex-direction: column-reverse; /* Stack image on top of text on mobile */
        min-height: auto;
    }
    .hero-text {
        padding: 2rem;
        text-align: center; /* Keep centered on mobile */
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
     .hero-text h2 {
        font-size: 1.2rem;
    }
    .social-links {
        justify-content: center;
        display: flex; /* Center icons */
    }
    .hero-image {
        min-height: 300px; /* Give image some height */
        /* Reset or adjust clip-path for mobile if needed */
        clip-path: none; /* Remove the slant on mobile */
    }
    .hero-image img {
       width: 100%; /* Make image take full width */
       height: auto;
    }
    section {
        padding: 2rem 1rem;
    }
}
