/* Reset and Base Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #003366;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --spacing-unit: 1rem;
    --header-height: 80px;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--spacing-unit);
    line-height: 1.2;
}

/* Header and Navigation */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

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

.nav__logo {
    height: 50px;
}

.nav__logo a {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav__menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav__menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav__menu a:hover {
    color: var(--primary-color);
}

.nav__menu a:hover::after {
    width: 100%;
}

.nav__contact {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 4px;
    transition: background-color 0.3s ease !important;
}

.nav__contact:hover {
    background-color: var(--secondary-color);
}

.nav__contact::after {
    display: none !important;
}

.nav__mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

.nav__language {
    position: relative;
}

.language-switcher {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    font-size: 1rem;
}

.language-switcher i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
    min-width: 150px;
    z-index: 1000;
}

.nav__language:hover .language-dropdown {
    display: block;
}

.nav__language:hover .language-switcher i {
    transform: rotate(180deg);
}

.language-dropdown li {
    display: block;
}

.language-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.language-dropdown a:hover {
    background-color: #f5f5f5;
}

/* Mobile styles */
@media (max-width: 768px) {
    .header {
        height: auto;
    }

    .nav {
        flex-direction: column;
        padding: 1rem;
    }

    .nav__logo {
        margin-bottom: 1rem;
    }

    .nav__menu {
        display: none;
        padding: 1rem 0;
    }

    .nav__menu.active {
        display: flex;
    }

    .nav__contact {
        background-color: transparent;
        color: var(--text-color) !important;
        padding: 0.5rem 0 !important;
    }

    .nav__contact:hover {
        background-color: transparent;
        color: var(--primary-color) !important;
    }

    .nav__mobile-toggle {
        display: block;
        position: absolute;
        right: 2rem;
        top: 1.5rem;
    }

    .about__content,
    .brand__content {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 6rem 1rem 3rem;
    }

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

    .language-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
    }
    
    .language-dropdown a {
        padding: 0.5rem 1rem;
    }
}

/* Hero Section */
.hero {
    position: relative;
    padding: 0;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.hero__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: left;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
}

.hero__buttons {
    display: flex;
    gap: 1.5rem;
}

.hero__button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero__button--primary {
    background-color: var(--primary-color);
    color: white;
}

.hero__button--primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.hero__button--secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.hero__button--secondary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 500px;
        padding: 8rem 1rem 4rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.2rem;
    }

    .hero__buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero__button {
        text-align: center;
    }
}

/* Sections */
section {
    padding: 4rem 2rem;
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* Features Grid */
.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.feature-card h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 0.5rem 0 1rem;
}

.feature-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-button {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
}

.feature-button i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.feature-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.feature-button:hover i {
    transform: translateX(5px);
}

/* About Section */
.about {
    padding: 4rem 2rem;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.about__item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
    align-items: center;
}

.about__item:last-child {
    margin-bottom: 0;
}

.about__item--reverse {
    direction: rtl;
}

.about__item--reverse .about__text {
    direction: ltr;
}

.about__image {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.about__image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.about__image:hover img {
    transform: scale(1.05);
}

.about__text {
    padding: 1rem;
}

.about__text h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about__text p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.about__link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.about__link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.about__link:hover {
    color: var(--secondary-color);
}

.about__link:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .about__item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about__item--reverse {
        direction: ltr;
    }
    
    .about__image {
        order: -1;
    }
}

/* Blog Section */
.blog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Advantages Section */
.advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Brand Section */
.brand__content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 2rem 2rem;
}

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

.footer__bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Utility Classes */
.button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #2980b9;
}

/* 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: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.modal__content {
    position: relative;
    background-color: white;
    width: 90%;
    max-width: 600px;
    margin: auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.active .modal__content {
    transform: translateY(0);
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 0.5rem;
    line-height: 1;
}

.modal h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.modal__subtitle {
    color: #666;
    margin-bottom: 2rem;
}

/* Form Styles */
.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.submit-button {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    grid-column: 1 / -1;
}

.submit-button:hover {
    background-color: var(--secondary-color);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Success Message */
.success-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1200;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}
