/* Global Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #003366;
    --accent-color: #ff6b00;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --text-light: #777;
    --white: #fff;
    --black: #000;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

section {
    padding: 80px 0;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(246, 244, 244, 0);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

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

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.3s ease;
    padding: 80px 30px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    margin-bottom: 20px;
}

.mobile-menu ul li a {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    font-family: var(--font-body);
}

/* Hero Section - HTML Background Version */
.hero {
    position: relative;
    color: var(--white);
    text-align: center;
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden; /* Prevent image overflow */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Quality preservation */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
}

.hero .container {
    position: relative;
    z-index: 1; /* Ensure content stays above background */
    width: 100%;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    background: linear-gradient(90deg, var(--white) 0%, var(--white) 45%, var(--accent-color) 60%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 8px rgba(52, 44, 166, 0.15));
}

/* Services Section */
.services {
    background-color: var(--light-color);
    text-align: center;
}

.services h2 {
    font-size: 36px;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

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

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

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

.service-card i {
    font-size: 50px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 16px;
    color: var(--text-light);
}

/* About Section */
.about {
    background-color: var(--white);
}

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

.about h2 {
    font-size: 36px;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    font-weight: 600;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Service Details Section */
.service-details {
    background-color: var(--light-color);
}

.service-detail {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.service-detail:nth-child(even) {
    flex-direction: row-reverse;
}

.detail-content, .detail-image {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

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

.service-detail h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    background-color: var(--white);
}

.contact h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    font-weight: 600;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

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

.contact-info {
    padding: 30px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: var(--accent-color);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.contact-form {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 8px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 16px;
}

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

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

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

.footer-logo h3 {
    font-size: 24px;
    color: var(--white);
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--white);
    font-family: var(--font-heading);
}

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

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

.footer-links a,
.footer-services a {
    color: #ccc;
    transition: color 0.3s ease;
    font-family: var(--font-body);
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    color: #ccc;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-family: var(--font-body);
}

.footer-contact i {
    margin-right: 10px;
    color: var(--accent-color);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 14px;
    font-family: var(--font-body);
}

/* Responsive Styles */
@media (max-width: 992px) {
    section {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .service-detail {
        flex-direction: column;
    }

    .service-detail:nth-child(even) {
        flex-direction: column;
    }

    .detail-content, .detail-image {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    section {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 32px;
    }

    .services h2,
    .about h2,
    .contact h2 {
        font-size: 30px;
    }

    .btn {
        padding: 10px 20px;
    }
}