/* Global Styles */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #166088;
    --accent-color: #4fc3f7;
    --text-color: #333;
    --light-color: #f4f4f4;
    --dark-color: #333;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --max-width: 1200px;
    --bg-color: #fff;
    --card-bg-color: #fff;
    --header-bg-color: #fff;
    --header-shadow: rgba(0, 0, 0, 0.1);
    --white-text: #fff;
    --toggle-light: #f6f6f6;
    --toggle-dark: #222;
}

/* Dark mode styles - only apply when .dark-theme is not manually set */
@media (prefers-color-scheme: dark) {
    body:not(.dark-theme):not(.light-theme) {
        --primary-color: #7289da;
        --secondary-color: #5865f2;
        --accent-color: #99aab5;
        --text-color: #e0e0e0;
        --light-color: #2c2c2c;
        --dark-color: #1a1a1a;
        --bg-color: #121212;
        --card-bg-color: #1e1e1e;
        --header-bg-color: #1a1a1a;
        --header-shadow: rgba(0, 0, 0, 0.3);
        --white-text: #fff;
        --toggle-light: #f6f6f6;
        --toggle-dark: #222;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    overflow: hidden;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-text);
    padding: 0.8rem 1.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
    transition: opacity 0.2s ease-in;
}

.btn:hover {
    opacity: 0.9;
}

section {
    padding: 5rem 0;
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Header */
header {
    background-color: var(--header-bg-color);
    box-shadow: 0 2px 5px var(--header-shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

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

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    align-items: center;
}

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

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white-text);
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white-text);
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

/* About Section */
.about {
    background-color: var(--light-color);
}

.about p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-size: 1.2rem;
}

.values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-item {
    background: var(--card-bg-color);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px var(--header-shadow);
    text-align: center;
    transition: transform 0.3s;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-item h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Services Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-item {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 5px;
    text-align: center;
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.kotlin-logo {
    height: 3rem;
    width: auto;
    margin-bottom: 1rem;
    fill: var(--primary-color);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.service-item h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Contact Section */
.contact {
    background-color: var(--light-color);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    background: var(--card-bg-color);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px var(--header-shadow);
    text-align: center;
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.map-container {
    width: 100%;
    overflow: hidden;
    margin-top: 1rem;
}

.contact-form {
    background: var(--card-bg-color);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px var(--header-shadow);
    max-width: 800px;
    margin: 0 auto;
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--light-color);
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--white-text);
    padding: 2rem 0;
    text-align: center;
}

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

.social-links a {
    color: var(--white-text);
    margin-left: 1rem;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Theme Toggle */
.theme-toggle-container {
    display: flex;
    align-items: center;
    margin-left: 1.5rem;
}

.theme-toggle {
    position: relative;
    display: inline-block;
}

.theme-toggle-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.theme-toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 50px;
    height: 26px;
    background-color: var(--toggle-dark);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    padding: 5px;
    transition: background-color 0.3s;
}

.theme-toggle-label .fa-sun {
    color: #f39c12;
    font-size: 14px;
}

.theme-toggle-label .fa-moon {
    color: #f1c40f;
    font-size: 14px;
}

.theme-toggle-ball {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background-color: var(--toggle-light);
    border-radius: 50%;
    transition: transform 0.3s;
}

.theme-toggle-checkbox:checked + .theme-toggle-label .theme-toggle-ball {
    transform: translateX(24px);
}

.theme-toggle-checkbox:checked + .theme-toggle-label {
    background-color: var(--primary-color);
}

/* Light Theme Class */
body.light-theme {
    --primary-color: #4a6fa5;
    --secondary-color: #166088;
    --accent-color: #4fc3f7;
    --text-color: #333;
    --light-color: #f4f4f4;
    --dark-color: #333;
    --bg-color: #fff;
    --card-bg-color: #fff;
    --header-bg-color: #fff;
    --header-shadow: rgba(0, 0, 0, 0.1);
    --white-text: #fff;
    --toggle-light: #f6f6f6;
    --toggle-dark: #222;
}

/* Dark Theme Class */
body.dark-theme {
    --primary-color: #7289da;
    --secondary-color: #5865f2;
    --accent-color: #99aab5;
    --text-color: #e0e0e0;
    --light-color: #2c2c2c;
    --dark-color: #1a1a1a;
    --bg-color: #121212;
    --card-bg-color: #1e1e1e;
    --header-bg-color: #1a1a1a;
    --header-shadow: rgba(0, 0, 0, 0.3);
    --white-text: #fff;
    --toggle-light: #f6f6f6;
    --toggle-dark: #222;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 1rem;
        justify-content: center;
    }

    .theme-toggle-container {
        margin-left: 1rem;
        margin-top: 0.5rem;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    footer .container {
        flex-direction: column;
    }

    .social-links {
        margin-top: 1rem;
    }

    .social-links a {
        margin: 0 0.5rem;
    }
}
