/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    /* Base Variables (Light Mode Default) - IMPROVED LEGIBILITY */
    --primary-color: #1a252f;
    --accent-color: #ffd700;
    --accent-hover: #ffed4e;
    --text-color: #1a1a1a;
    --text-light: #4a4a4a;
    --bg-color: #ffffff;
    --header-bg: #ffffff;
    --card-bg: #ffffff;
    --modal-bg: #ffffff;
    --gradient-hero: linear-gradient(135deg, #1a252f 0%, #2980b9 100%);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --white: #ffffff;
    --border-color: #e1e5e9;
}

/* Dark Mode Overrides - IMPROVED CONTRAST */
[data-theme="dark"] {
    --primary-color: #ffffff;
    --text-color: #f0f0f0;
    --text-light: #cccccc;
    --bg-color: #0f1419;
    --header-bg: #1a1f24;
    --card-bg: #1e2328;
    --modal-bg: #1e2328;
    --border-color: #2d3748;
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.6);
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--header-bg);
    color: var(--primary-color);
    padding: 10px 0;
    /* Reduced padding */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 24px;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
}

/* Navigation */
header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

header nav li {
    margin-left: 25px;
    /* Adjusted spacing */
    position: relative;
    display: flex;
    /* Ensure alignment */
    align-items: center;
}

header nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

header nav a:hover {
    color: var(--accent-color);
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--header-bg);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    text-align: left;
    /* Ensure text aligns left */
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    padding: 12px 20px;
    display: block;
    color: var(--text-color);
    white-space: nowrap;
    /* Prevent wrapping */
}

.dropdown-content a:hover {
    background-color: #f0f0f0;
    color: var(--accent-color);
}

/* Language Switcher */
.lang-switch {
    margin-left: 20px;
    font-weight: 600;
    border-left: 1px solid #ddd;
    padding-left: 20px;
}

.lang-switch a {
    color: #95a5a6;
    margin: 0 5px;
    text-decoration: none;
}

.lang-switch a.active {
    color: var(--accent-color);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/hero_bg.png');
    /* Parallax Image */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--white);
    padding: 150px 0;
    /* Increased padding per user request for nicer scroll */
    text-align: center;
    position: relative;
    /* Removed clip-path to fix 'weird' gaps */
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Services Section */
.services {
    padding: 80px 0;
}

.services h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 36px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.services h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--header-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 4px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card h3 {
    margin-top: 0;
    font-size: 24px;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 16px;
}

/* About Section */
.about {
    background: var(--header-bg);
    padding: 80px 0;
    text-align: center;
}

.about h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.about p {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 40px 0;
}

footer p {
    opacity: 0.8;
    margin: 10px 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.modal-content {
    background-color: var(--modal-bg);
    margin: 10% auto;
    padding: 40px;
    border: none;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal h2 {
    margin-top: 0;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background: #34495e;
}

/* Media Queries */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    header nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--header-bg);
        box-shadow: var(--shadow-lg);
    }

    header nav.active {
        display: block;
    }

    header nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    header nav a {
        padding: 15px 20px;
        display: block;
    }

    .lang-switch {
        margin: 15px 20px;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        display: none;
        opacity: 1;
        transform: none;
        background: #f9f9f9;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .hero {
        padding: 80px 0;
        clip-path: none;
    }

    .hero h2 {
        font-size: 32px;
    }
}