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

:root {
    --primary-color: #991b1b;
    --primary-dark: #7f1d1d;
    --secondary-color: #1e293b;
    --text-dark: #0f172a;
    --text-gray: #475569;
    --text-light: #94a3b8;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --bg-dark: #1e293b;
    --border-color: #e5e7eb;
    --accent-color: #991b1b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

body.menu-open {
    overflow: hidden;
}

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

/* Navigation */
.nav {
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

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

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.lang-switch {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: transparent;
    color: var(--text-dark);
    padding: 6rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.7em 1.7em;
    border-radius: 0.5em;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s;
    border: solid 2px var(--primary-color);
    cursor: pointer;
    user-select: none;
    box-shadow: 0px 4px 12px rgba(153, 27, 27, 0.3);
}

.cta-button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0px 6px 16px rgba(153, 27, 27, 0.4);
    transform: translateY(-2px);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0px 2px 8px rgba(153, 27, 27, 0.3);
}

/* Problem Section */
.problem {
    padding: 5rem 0;
    background: transparent;
}

.problem h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: center;
}

.problem p {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
}

/* Services Section */
.services {
    padding: 5rem 0;
}

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

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

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(153, 27, 27, 0.12);
    border-color: var(--primary-color);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--bg-light);
}

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

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    gap: 2.5rem;
}

.about-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.about-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
    margin: 0;
}

.about-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
}

.contact h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

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

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item strong {
    color: var(--text-dark);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.125rem;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-item span {
    color: var(--text-gray);
    font-size: 1.125rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0px 0px 20px -18px;
}

.contact-form input:hover,
.contact-form textarea:hover {
    border: 2px solid var(--border-color);
    box-shadow: 0px 0px 20px -17px;
}

.contact-form input:active,
.contact-form textarea:active {
    transform: scale(0.99);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border: 2px solid var(--primary-color);
}

.contact-form input.error,
.contact-form textarea.error {
    border: 2px solid #ef4444;
    box-shadow: 0px 0px 20px -15px rgba(239, 68, 68, 0.5);
}

.contact-form input.error:focus,
.contact-form textarea.error:focus {
    border: 2px solid #dc2626;
}

.contact-form input.error::placeholder,
.contact-form textarea.error::placeholder {
    color: #ef4444;
    opacity: 1;
}

.contact-form textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: transparent;
    color: var(--text-gray);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.875rem;
}

/* Custom Notification */
.notification {
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    transition: top 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification.show {
    top: 2rem;
}

.notification-content {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 40px rgba(153, 27, 27, 0.25);
    min-width: 300px;
    max-width: 500px;
}

.notification-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.notification-content p {
    margin: 0;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
}

@keyframes slideDown {
    from {
        top: -200px;
    }
    to {
        top: 2rem;
    }
}

@keyframes slideUp {
    from {
        top: 2rem;
    }
    to {
        top: -200px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .hamburger {
        display: flex;
    }

    /* Mobile menu overlay */
    .nav-links::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: -1;
    }

    .nav-links.active::before {
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: white;
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        padding: 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 100;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.25rem;
        padding: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    .lang-switch {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1.125rem;
    }

    /* Other responsive styles */
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
    }
}

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

    .hero {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .services,
    .about,
    .contact,
    .problem {
        padding: 3rem 0;
    }

    .notification-content {
        min-width: auto;
        max-width: 90vw;
        padding: 1rem 1.5rem;
    }

    .notification-icon {
        width: 24px;
        height: 24px;
    }

    .notification-content p {
        font-size: 0.9rem;
    }
}
