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

:root {
    /* Light theme (default) */
    --bg-body: #f4f4f4;
    --bg-header: #fff;
    --text-color: #333;
    --primary-color: #00709b;
    --primary-gradient: linear-gradient(90deg, #00709b, #00BCC8);
    --hero-gradient: linear-gradient(135deg, #002b3a, #00709b, #00BCC8);
    --card-bg: #fff;
    --card-shadow: 0 5px 15px rgba(0,0,0,0.1);
    --section-alt-bg: #f9f9f9;
    --border-color: #e0e0e0;
    --hover-info-bg: rgba(0, 112, 155, 0.9);
    --footer-bg: #1a1a1a;
    --footer-text: #ccc;
    --lang-btn-border: #b380d0;
    --lang-btn-text: #2c1e2e;
    --lang-btn-active-border: #9900cc;
    --lang-btn-active-bg: rgba(153, 0, 204, 0.1);
}

.dark-theme {
    --bg-body: #1a1a1a;
    --bg-header: #2d2d2d;
    --text-color: #e0e0e0;
    --primary-color: #4aa3d1;
    --primary-gradient: linear-gradient(90deg, #4aa3d1, #66ccff);
    --hero-gradient: linear-gradient(135deg, #001f2a, #004466, #0088cc);
    --card-bg: #2d2d2d;
    --card-shadow: 0 5px 15px rgba(0,0,0,0.5);
    --section-alt-bg: #262626;
    --border-color: #444;
    --hover-info-bg: rgba(74, 163, 209, 0.9);
    --footer-bg: #111;
    --footer-text: #aaa;
    --lang-btn-border: #aa80cc;
    --lang-btn-text: #ddd;
    --lang-btn-active-border: #cc88ff;
    --lang-btn-active-bg: rgba(170, 128, 204, 0.2);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Header */
.header {
    background: var(--bg-header);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px 0;
}

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

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

.phone {
    background: var(--primary-gradient);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.phone i {
    font-size: 1.2rem;
}

/* Language switcher and theme toggle in header */
.lang-switcher, .theme-switcher {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.lang-btn, .theme-btn {
    padding: 6px 12px;
    margin: 0;
    background: transparent;
    border: 2px dashed var(--lang-btn-border);
    border-radius: 30px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    color: var(--lang-btn-text);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.lang-btn:hover, .theme-btn:hover {
    border: 2px solid var(--lang-btn-border);
    background: rgba(179, 128, 208, 0.1);
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 0 4px 12px rgba(179, 128, 208, 0.3);
}

.lang-btn:active, .theme-btn:active {
    transform: scale(0.95) rotate(1deg);
    border: 2px solid var(--lang-btn-active-border);
    background: rgba(153, 0, 204, 0.15);
}

.lang-btn.active, .theme-btn.active {
    border: 3px solid var(--lang-btn-active-border);
    background: var(--lang-btn-active-bg);
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 15px rgba(153, 0, 204, 0.5);
    transform: scale(1.05);
}

/* Hero section */
.hero {
    background: var(--hero-gradient);
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background: var(--primary-gradient);
    color: #fff;
    padding: 15px 35px;
    border-radius: 40px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,112,155,0.4);
}

/* Section styles */
.section {
    padding: 60px 20px;
    background: var(--card-bg);
}

.section:nth-child(even) {
    background: var(--section-alt-bg);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

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

.service-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
    position: relative;
}

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

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.service-card .content {
    padding: 20px;
    position: relative;
    z-index: 2;
    background: var(--card-bg);
}

.service-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.service-card p {
    margin-bottom: 0;
    color: var(--text-color);
    opacity: 0.8;
}

/* Hover overlay */
.hover-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--hover-info-bg);
    color: #fff;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
    z-index: 3;
}

.service-card:hover .hover-info {
    transform: translateY(0);
}

/* About section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-content img {
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 20px;
}

.icon-list {
    list-style: none;
    margin-top: 20px;
}

.icon-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-list i {
    color: #00BCC8;
    font-size: 1.2rem;
}

/* Contact section */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    text-align: center;
}

.contact-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    min-width: 250px;
}

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

.contact-item h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.contact-item p {
    color: var(--text-color);
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 30px 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .about-content { grid-template-columns: 1fr; }
    .header .container { flex-direction: column; text-align: center; }
    .lang-switcher, .theme-switcher { margin-top: 10px; }
}
