/* Base Styles */
:root {
    --primary-color: #e74c3c;
    --primary-dark: #c0392b;
    --secondary-color: #3498db;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --gray-color: #95a5a6;
    --success-color: #27ae60;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}



/* Hide Google banner */
body {
    top: 0 !important;
}

/* Fix page jump */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-heading);
}

#translation-notice {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide Google's default widget */
#google_translate_element,
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Style for custom translate buttons */
.custom-translate {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.custom-translate button {
    margin: 0 5px;
    padding: 5px 10px;
    cursor: pointer;
    border: 1px solid #ddd;
    background: #f5f5f5;
    border-radius: 3px;
}

.translation-notice {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 12px 20px;
    border-radius: 5px;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-out;
    display: flex;
    align-items: center;
}

.translation-notice.success {
    background: #4CAF50;
    color: white;
}

.translation-notice.error {
    background: #f44336;
    color: white;
}

.close-btn {
    margin-left: 15px;
    cursor: pointer;
    font-size: 18px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading overlay */
body.loading-translation::after {
    content: "Translating...";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    z-index: 9999;
}

.custom-translate button.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* Hide Google's default UI */
.goog-te-banner-frame,
.goog-te-menu-frame {
    display: none !important;
    visibility: hidden !important;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #2980b9;
    color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

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

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

.logo h1 {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 0;
}

.logo span {
    font-size: 14px;
    color: var(--gray-color);
    display: block;
    margin-top: -5px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 16px;
    position: relative;
}

.main-nav a.active {
    color: var(--primary-color);
}

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

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* About Page Styles */
.about-page {
    padding-top: 120px;
    padding-bottom: 80px;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 60px 0;
    background-color: #f9f9f9;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.about-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-content p {
    margin-bottom: 20px;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mission-values {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.value-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    border-radius: 50%;
    color: var(--primary-color);
    position: relative;
    /* Added for precise centering */
}

/* Icon Sizing */
.value-icon i {
    font-size: 48px;
    line-height: 1;
    /* Removes extra spacing */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.value-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
    font-size: 1.5rem;
}

.value-card p {
    font-size: 1rem;
    color: var(--gray-color);
}

.team-section {
    padding: 60px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.team-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    list-style: none;
}

.team-stats li {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.certifications {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.certifications-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.certification-item {
    text-align: center;
}

.certification-item img {
    height: 60px;
    margin-bottom: 15px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.certification-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.certification-item p {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
}

.cta-section h2 {
    color: white;
    margin-bottom: 15px;
}

.cta-section p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Responsive Styles */
@media (max-width: 992px) {

    .about-grid,
    .team-grid {
        gap: 30px;
    }
}

@media (max-width: 768px) {

    .about-grid,
    .value-icon {
        width: 80px;
        height: 80px;
    }

    .value-icon i {
        font-size: 36px;
    }

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

    .about-image,
    .team-image {
        order: -1;
    }

    .team-stats {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

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

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/4.jpg') no-repeat center center/cover;
    color: white;

    padding: 180px 0 100px;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Centered Icon Styles - Matching About Page */
.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    border-radius: 50%;
    color: var(--primary-color);
    position: relative;
}

.service-icon i {
    font-size: 48px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
    font-size: 1.5rem;
}

.service-card p {
    font-size: 1rem;
    color: var(--gray-color);
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: var(--dark-color);
    color: white;
}

.testimonials .section-title {
    color: white;
}

.testimonials .section-title::after {
    background-color: var(--primary-color);
}

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

/* CTA Section */
.cta {
    padding: 60px 0;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
}

.cta h2 {
    color: white;
    margin-bottom: 15px;
}

.cta p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Footer Styles */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light-color);
}

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

.footer-contact p {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Estimate Page Styles */
.estimate-page {
    padding-top: 120px;
    padding-bottom: 80px;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
}

.estimate-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 40px;
}

.form-section h2 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input {
    margin-right: 8px;
}

.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(231, 76, 60, 0.05);
}

.upload-instructions p {
    margin-bottom: 5px;
}

.upload-instructions .small {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.file-preview {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    min-height: 60px;
}

.file-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.file-preview-item:last-child {
    border-bottom: none;
}

.file-preview-item .file-info {
    display: flex;
    align-items: center;
}

.file-preview-item .file-icon {
    margin-right: 10px;
    color: var(--primary-color);
}

.file-preview-item .remove-file {
    color: var(--gray-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.file-preview-item .remove-file:hover {
    color: var(--primary-color);
}

.form-submit {
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .service-icon {
        width: 80px;
        height: 80px;
    }

    .service-icon i {
        font-size: 36px;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav li {
        margin: 15px 0;
    }

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

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .estimate-form {
        padding: 30px 20px;
    }

    .file-upload-area {
        padding: 30px 15px;
    }
}

/* Estimate Form Enhancements */
.file-upload-area .fa-cloud-upload-alt {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.file-preview ul {
    list-style: none;
}

.file-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 8px;
}

.file-preview-item .file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-preview-item .fa-file-pdf {
    color: var(--primary-color);
}

.remove-file {
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    padding: 5px;
}

.remove-file:hover {
    color: var(--primary-color);
}

.form-submit {
    margin-top: 30px;
    text-align: center;
}

.form-submit button {
    position: relative;
}

.spinner {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.spinner.hidden {
    display: none;
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.alert.error {
    background-color: #fde8e8;
    color: #c0392b;
    border-left: 4px solid #c0392b;
}

.alert.success {
    background-color: #e8f8f0;
    color: #27ae60;
    border-left: 4px solid #27ae60;
}

.alert i {
    margin-right: 10px;
}

/* SweetAlert Customization */
/* SweetAlert Customization */
.sweetalert-custom {
    font-family: 'Arial', sans-serif;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.sweetalert-title {
    color: #e74c3c;
    font-size: 24px;
    font-weight: 600;
}

.sweetalert-confirm {
    background-color: #e74c3c !important;
    padding: 10px 24px !important;
    border-radius: 4px !important;
    font-weight: 500;
    transition: background-color 0.3s;
}

.sweetalert-confirm:hover {
    background-color: #c0392b !important;
}

/* File Upload Preview Styles */
.file-upload-area {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.file-upload-area.dragover {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

.file-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.file-item i {
    color: #e74c3c;
    margin-right: 10px;
}

.file-size {
    margin-left: auto;
    color: #777;
    font-size: 0.9em;
}

/* Contact Page Styles */
/* Add this to your global CSS */
.contact-page {
    padding-top: 100px;
    /* Adjust this value based on your navbar height */
}

.contact-content {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
}

.contact-info h2 {
    color: #e74c3c;
    margin-bottom: 20px;
    font-size: 24px;
}

.info-card {
    display: flex;
    margin-bottom: 25px;
}

.info-card i {
    color: #e74c3c;
    font-size: 20px;
    margin-right: 15px;
    margin-top: 3px;
}

.info-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.info-card p,
.info-card a {
    color: #666;
    line-height: 1.6;
}

.info-card a:hover {
    color: #e74c3c;
}

.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    color: #e74c3c;
    margin-bottom: 20px;
    font-size: 24px;
}

.map-section {
    padding: 40px 0 60px;
    background: #f5f5f5;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form {
        padding: 20px;
    }
}