:root {
    --bg: #ffffff;
    --text: #333333;
    --accent: #0066cc;
    --header-bg: #f8f9fa;
    --card-bg: #f8f9fa;
    --border: #ddd;
}

[data-theme="dark"] {
    --bg: #121212;
    --text: #e0e0e0;
    --accent: #4da6ff;
    --header-bg: #1e1e1e;
    --card-bg: #1e1e1e;
    --border: #444;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

header {
    background: var(--header-bg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
    transform: translateY(0);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    width: 80px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

.logo-link:hover .logo-img {
    transform: scale(1.1);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

nav a:hover,
nav a.active {
    border-bottom: 3px solid var(--accent);
    color: var(--accent);
}

.lang-switch-nav {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.lang-switch-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    border-radius: 4px;
}

.lang-switch-nav a:hover,
.lang-switch-nav a.active {
    color: var(--accent);
    border-bottom: 3px solid var(--accent);
}

.lang-switch-nav .separator {
    color: var(--text);
    opacity: 0.6;
    pointer-events: none;
}

#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    transition: transform 0.3s;
    margin-left: 1rem;
}

#theme-toggle:hover {
    transform: rotate(20deg);
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url('/assets/images/hero-pildike.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 150px 20px;
    min-height: 555px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 { font-size: 3.5rem; margin-bottom: 20px; }
.hero p { font-size: 1.8rem; margin: 20px 0; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover { transform: translateY(-10px); }

.card img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 25px;
}

.card h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.why-us .card img {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.why-us strong {
    font-size: 1.4rem;
    color: var(--accent);
    display: block;
    margin-bottom: 10px;
}

.contact form {
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.contact input,
.contact textarea {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s;
}

.contact textarea {
    min-height: 150px;
    resize: vertical;
    overflow-y: hidden;
}

.contact input:focus,
.contact textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

.btn {
    background: var(--accent);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.btn:hover {
    background: #0055aa;
    transform: translateY(-2px);
}

.services, .why-us, .contact {
    padding: 80px 20px;
    text-align: center;
}

.message.success { color: green; }
.message.error { color: red; }

footer {
    background: var(--header-bg);
    padding: 30px;
    text-align: center;
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 20px;
        min-height: 400px;
        background-position: center top;
    }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.4rem; }

    header .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding: 12px 0;
    }

    .logo-img { width: 60px; }
    .logo-text { font-size: 1.5rem; }

    nav ul {
        flex-direction: row;
        gap: 1.8rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    nav a {
        font-size: 1rem;
        padding: 8px 12px;
    }
    .lang-switch-nav {
        margin-left: 0;
        justify-content: center;
        gap: 1.2rem;
        font-size: 1.1rem;
        width: 100%;
        display: flex;
        align-items: center;
    }

    #theme-toggle {
        font-size: 1.6rem;
        width: 48px;
        height: 48px;
        background: var(--card-bg);
        border: 2px solid var(--accent);
        border-radius: 50%;
        margin-left: 1rem;
        box-shadow: 0 3px 8px rgba(0,0,0,0.1);
        transition: all 0.3s;
    }

    #theme-toggle:hover {
        transform: scale(1.1);
    }
}

.hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    width: 1px;
    height: 1px;
}

