/* Base styles (mobile-first) */
:root {
    --primary-color: #ffffff;
    --secondary-color: #3498db;
    --accent-color: #2980b9;
    --text-color: #333333;
    --light-bg: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.9);
    --heading-color: #2c3e50;
    --menu-color: #2c3e50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Orbitron', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    padding-top: 60px;
}

header {
    background: var(--primary-color);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 60px;
}

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

nav .logo {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--accent-color);
    font-size: 1.5rem;
    padding: 0.5rem;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 2000;
    line-height: 1;
    text-align: center;
}

.hamburger:hover {
    color: var(--accent-color);
}

.nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: var(--primary-color);
    padding: 2rem 1rem;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 1999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-links.show {
    display: flex !important;
}

.nav-links a {
    color: var(--text-color);
    font-size: 1.2rem;
    width: 100%;
    text-align: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-links a:last-child {
    border-bottom: none;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
    width: 100%;
    position: relative;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-color);
    background: transparent;
    color: var(--text-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 44px;
    min-height: 44px;
}

.lang-btn.active {
    background: var(--accent-color);
    color: white;
}

.hero h1 {
    font-size: 2rem;
}

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

.service-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
}

.modal-content {
    width: 95%;
    margin: 1rem;
    padding: 1rem;
    max-height: 90vh;
    overflow-y: auto;
}

.form-group input,
.form-group textarea {
    font-size: 16px;
    padding: 0.7rem;
}

.submit-button {
    padding: 0.8rem;
    font-size: 1rem;
}

/* Tablet Navigation */
/* Desktop styles */
@media (min-width: 769px) {
    .hamburger {
        display: none;
    }

    .nav-links {
        display: flex !important;
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        flex-direction: row;
        gap: 2rem;
        background: none;
        overflow: visible;
    }

    .lang-switcher {
        margin-top: 0;
        margin-left: 2rem;
        width: auto;
    }

    .modal-content {
        padding: 2rem;
        width: 600px;
        margin: 0;
    }

    .about-content {
        padding: 2rem;
        max-width: 1200px;
    }

    .about-description {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    -webkit-overflow-scrolling: touch;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: 1rem;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

.modal.show .modal-content {
    transform: translateY(0);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
    background-color: white;
    color: var(--text-color);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(41, 128, 185, 0.1);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-button:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.close-modal:hover {
    opacity: 1;
}

main {
    margin-top: 4rem;
}

.hero {
    position: relative;
    color: var(--heading-color);
    text-align: center;
    padding: 8rem 2rem;
    background-image: linear-gradient(135deg, rgba(245, 245, 245, 0.7), rgba(52, 152, 219, 0.7));
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/background.jpg');
    background-position: center;
    background-size: cover;
    opacity: 0.4;
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    margin-top: 2rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

section {
    padding: 5rem 2rem;
    margin: 0 auto;
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--heading-color);
    width: 100%;
}

.services, .expertise {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
    gap: 2rem;
    padding: 2rem 0;
    justify-content: center;
    width: 100%;
}

.service-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 300px;
    gap: 1rem;
}

.service-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin: 1rem 0;
    line-height: 1.3;
    word-wrap: break-word;
    hyphens: auto;
    width: 100%;
    flex-shrink: 0;
}

.service-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    text-align: center;
    width: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.expertise .service-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-info div {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
}

.lang-switcher {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    padding: 0.3rem 0.6rem;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-btn:hover, .lang-btn.active {
    background-color: var(--accent-color);
    color: white;
}

footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

.about {
    background-color: var(--light-bg);
    padding: 4rem 2rem;
    text-align: center;
}

.about-content {
    padding: 1rem;
    max-width: 100%;
    margin: 0 auto;
}

.personal-intro {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profile-image {
    flex-shrink: 0;
}

.founder-image {
    width: 250px;
    height: 250px;
    border-radius: 15px;
    object-fit: cover;
    border: 4px solid var(--accent-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.intro-text {
    text-align: left;
    flex-grow: 1;
}

.about-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    color: var(--text-color);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.feature {
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.feature i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature h3 {
    color: var(--heading-color);
    font-size: 1.2rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.expertise-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 300px;
    gap: 1rem;
    max-width: 350px;
    margin: 0 auto;
    width: 100%;
}
