/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: #ffffff;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #f1f5f9;
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav__logo {
    height: 40px;
    width: auto;
}

.nav__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav__link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav__link:hover {
    color: #3b82f6;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background-color: #64748b;
    margin: 3px 0;
    transition: 0.3s;
}

/* Language Menu */
.lang-menu {
    display: flex;
    gap: 0.25rem;
    background-color: #f8fafc;
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.lang-btn {
    padding: 0.5rem 0.75rem;
    background: none;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background-color: #e2e8f0;
    color: #334155;
}

.lang-btn.active {
    background-color: #3b82f6;
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero__actions {
    display: flex;
    gap: 1rem;
}

.hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__sensor {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn--primary {
    background-color: #3b82f6;
    color: white;
}

.btn--primary:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn--outline {
    background-color: transparent;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.btn--outline:hover {
    background-color: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: white;
}

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

.feature {
    text-align: center;
    padding: 2rem;
    background-color: #f8fafc;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

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

.feature__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature p {
    color: #64748b;
    font-size: 0.95rem;
}

/* Section Headers */
.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section__subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Sensors Section */
.sensors {
    padding: 100px 0;
    background-color: white;
}

.sensors__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sensors__text h3 {
    font-size: 1.75rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.sensors__text p {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.sensors__benefits {
    list-style: none;
    space-y: 1rem;
}

.sensors__benefits li {
    color: #64748b;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.sensors__sensor {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Solutions Section */
.solutions {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

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

.solution {
    background-color: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.solution:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.solution__icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.solution h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.solution p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.solution ul {
    list-style: none;
}

.solution li {
    color: #64748b;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: white;
}

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

.service {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background-color: #f8fafc;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.service:hover {
    transform: translateY(-5px);
    border-color: #e2e8f0;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.service__icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.service p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.about__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about__text h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 2rem;
    font-weight: 700;
}

.about__text p {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.7;
}

.about__cta {
    margin-top: 2.5rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: white;
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact__item h3 {
    color: #1e293b;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact__label {
    font-weight: 600;
    color: #3b82f6;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact__detail span,
.contact__detail a {
    color: #64748b;
    text-decoration: none;
    line-height: 1.5;
}

.contact__detail a:hover {
    color: #3b82f6;
}

/* Form Styles */
.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form__group {
    display: flex;
    flex-direction: column;
}

.form__input,
.form__textarea {
    padding: 1rem;
    border: 2px solid #f1f5f9;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background-color: #fafafa;
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: white;
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: #1e293b;
    color: white;
    padding: 3rem 0 2rem;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer__logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer__brand p {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.footer__links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer__links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: white;
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
}

.footer__bottom p {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav__menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        order: 3;
        flex-basis: 100%;
    }

    .nav__menu.active {
        transform: translateX(0);
    }

    .nav__toggle {
        display: flex;
        order: 2;
    }

    .lang-menu {
        order: 1;
        margin-left: auto;
    }

    .hero__content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .sensors__content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .contact__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .footer__links {
        justify-content: center;
    }

    .solutions__grid {
        grid-template-columns: 1fr;
    }

    .services__grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
    }

    .section__title {
        font-size: 2rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .feature,
    .service,
    .solution {
        padding: 1.5rem;
    }

    .lang-menu {
        gap: 0.125rem;
        padding: 0.125rem;
    }

    .lang-btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Animation for scroll reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__content,
.feature,
.service,
.solution {
    animation: fadeInUp 0.8s ease-out;
}

/* Language switching animation */
.lang-switching {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.lang-switching * {
    transition: opacity 0.2s ease;
}