/* Reset and Base Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #000;
    color: #fff;
}

html {
    scroll-behavior: smooth;
}

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

/* Header Styles */
header {
    background: #000;
    padding: 10px 0;
    position: relative;
}

.logo-container {
    max-width: 150px;
    margin: 0 auto;
}

.logo {
    width: 100%;
    height: auto;
}

.lang-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.lang-btn .globe-icon {
    font-size: 1.1rem;
}

.lang-btn .lang-text {
    font-weight: 500;
}

/* Services Grid Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 30px 10px;
}

.service-card {
    position: relative;
    background-color: transparent;
    border-radius: 8px;
    overflow: visible;
    height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.service-card.heading-top {
    justify-content: flex-start;
}

.service-card.heading-bottom {
    justify-content: flex-end;
}

.service-card.heading-bottom .image-container {
    margin-bottom: 8px;
}

.service-card.heading-top .image-container {
    margin-top: 8px;
}

.service-card h2 {
    position: relative;
    z-index: 2;
    background: linear-gradient(145deg, #f30000, #d60000);
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 12px;
    text-transform: uppercase;
    text-align: center;
    border-radius: 8px;
    margin: 0 10px;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid #cc0000;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card h2:hover {
    background: linear-gradient(145deg, #d60000, #f30000);
    transform: translateY(-3px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.image-container {
    width: calc(100% - 20px);
    height: 330px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5),
                0 4px 8px rgba(0, 0, 0, 0.3);
    margin: 0 10px;
    cursor: pointer;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.image-container:hover img {
    transform: scale(1.05);
}

.image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 60px auto;
    text-align: center;
    padding: 0 20px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.input-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
    max-width: 700px;
}

input {
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    background-color: #222;
    color: white;
    font-size: 0.9rem;
    flex: 1;
    width: 100%;
    max-width: 220px;
    min-width: 0;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

button[type="submit"] {
    padding: 15px 30px;
    background: linear-gradient(145deg, #f30000, #d60000);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    min-width: 250px;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(243, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

button[type="submit"]:hover {
    background: linear-gradient(145deg, #d60000, #f30000);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

button[type="submit"]:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(243, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Footer Styles */
footer {
    background-color: #000;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icon {
    color: white;
    font-size: 24px;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #e92429;
}

footer p {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        padding: 30px 10px;
    }

    .service-card {
        height: 350px;
    }

    .image-container {
        height: 250px;
    }

    input {
        width: 100%;
    }

    button[type="submit"] {
        width: 100%;
        font-size: 1rem;
        padding: 12px 20px;
    }

    .lang-btn {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Responsive Design for Form */
@media (max-width: 768px) {
    .form-container {
        padding: 0 15px;
    }

    .input-group {
        flex-direction: column;
        gap: 10px;
    }

    input {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    button[type="submit"] {
        width: 100%;
        max-width: 100%;
        margin-top: 15px;
    }
}

.form-container h5 {
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 25px 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    line-height: 1.4;
}

.form-container h5 span {
    display: inline;
}

.form-container h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #f30000;
}

@media (max-width: 768px) {
    .form-container h5 {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .form-container h5 span {
        display: block;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #111;
    margin: 15% auto;
    padding: 40px;
    border: 1px solid #333;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    text-align: center;
    color: white;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.success-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #f30000, #d60000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: white;
    box-shadow: 0 4px 15px rgba(243, 0, 0, 0.3);
}

.modal-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: white;
}

.modal-content p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.modal-content .follow-up {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #666;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #f30000;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 30% auto;
        padding: 30px 20px;
    }
    
    .success-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .modal-content h2 {
        font-size: 20px;
    }
    
    .modal-content p {
        font-size: 14px;
    }
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-container button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}