:root {
    --primary: #ff6b35;
    --secondary: #004e89;
    --accent: #f7b801;
    --dark: #1a1a1a;
    --light: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 1.2rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-link {
    color: #fff !important;
    margin: 0 15px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover:after {
    width: 100%;
}

.btn-contact {
    background: var(--primary);
    color: #fff;
    padding: 10px 30px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-contact:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(0, 78, 137, 0.9), rgba(255, 107, 53, 0.8)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23004e89" width="1200" height="600"/></svg>');
    height: 90vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(15deg);
}

.hero-content {
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 20px;
    animation: fadeInUp 1s;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s;
}

.hero-buttons {
    animation: fadeInUp 1.4s;
}

.btn-primary-custom {
    background: var(--primary);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    margin-right: 15px;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

.btn-secondary-custom {
    background: transparent;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    border: 2px solid white;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary-custom:hover {
    background: white;
    color: var(--secondary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: #fff;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
}

.about-img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    width: 500px;
}

.about-img:hover {
    transform: scale(1.05);
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    margin-bottom: 30px;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.service-card:hover:before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
}

.service-card h4 {
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-details {
    transition: max-height 0.3s;
}

.service-card:hover .service-details {
    max-height: 300px;
}

.service-details ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.service-details li {
    padding: 8px 0;
    color: #666;
}

.service-details li:before {
    content: '✓ ';
    color: var(--primary);
    font-weight: bold;
    margin-right: 8px;
}

.btn-service {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-service:hover {
    background: var(--secondary);
}

/* Horizontal Home Warranty Card */
.home-warranty-card {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-top: 40px;
    border-left: 6px solid var(--primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.home-warranty-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.home-warranty-card:hover:before {
    left: 100%;
}

.home-warranty-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-right: 25px;
    transition: transform 0.3s;
}

.home-warranty-card:hover .home-warranty-icon {
    transform: rotateY(360deg);
}

.home-warranty-content h4 {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--dark);
}

.home-warranty-content p {
    color: #555;
    margin-bottom: 15px;
}

.home-warranty-content ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.home-warranty-content li {
    padding: 6px 0;
    color: #666;
}

.home-warranty-content li:before {
    content: '✓ ';
    color: var(--primary);
    font-weight: bold;
    margin-right: 6px;
}

.btn-home-warranty {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    transition: all 0.3s;
}

.btn-home-warranty:hover {
    background: var(--secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .home-warranty-card {
        flex-direction: column;
        text-align: center;
    }

    .home-warranty-icon {
        margin-bottom: 15px;
        margin-right: 0;
    }
}


/* Service Colors */
.service-card:nth-child(1) {
    border-top: 5px solid #ff6b35;
}

.service-card:nth-child(1) .service-icon {
    color: #ff6b35;
}

.service-card:nth-child(2) {
    border-top: 5px solid #004e89;
}

.service-card:nth-child(2) .service-icon {
    color: #004e89;
}

.service-card:nth-child(3) {
    border-top: 5px solid #f7b801;
}

.service-card:nth-child(3) .service-icon {
    color: #f7b801;
}

.service-card:nth-child(4) {
    border-top: 5px solid #00a878;
}

.service-card:nth-child(4) .service-icon {
    color: #00a878;
}

.service-card:nth-child(5) {
    border-top: 5px solid #e63946;
}

.service-card:nth-child(5) .service-icon {
    color: #e63946;
}

.service-card:nth-child(6) {
    border-top: 5px solid #9b59b6;
}

.service-card:nth-child(6) .service-icon {
    color: #9b59b6;
}

.service-card:nth-child(7) {
    border-top: 5px solid #e74c3c;
}

.service-card:nth-child(7) .service-icon {
    color: #e74c3c;
}

.service-card:nth-child(8) {
    border-top: 5px solid #3498db;
}

.service-card:nth-child(8) .service-icon {
    color: #3498db;
}

.service-card:nth-child(9) {
    border-top: 5px solid #16a085;
}

.service-card:nth-child(9) .service-icon {
    color: #16a085;
}

/* Why Choose Us */
.why-choose {
    padding: 100px 0;
    background: white;
}

.feature-box {
    text-align: center;
    padding: 30px;
    transition: all 0.3s;
    border: 1px solid var(--primary);
    border-radius: 10px;
}

.feature-box:hover {
    transform: translateY(-10px);
    background-color: var(--primary);
    color: #fff;
}


.feature-box:hover .feature-icon {
    transform: rotate(15deg);
    color: #fff;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: 0.3s ease;
}

/* Newsletter */
.newsletter {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
}

.newsletter-form input {
    padding: 15px;
    border-radius: 10px;
    border: none;
    margin-bottom: 15px;
    width: 100%;
}

.btn-subscribe {
    background: var(--accent);
    color: var(--dark);
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
    width: 100%;
}

.btn-subscribe:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Blog Section */
.blog-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    margin-bottom: 30px;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.blog-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-content {
    padding: 30px;
}

.blog-card h4 {
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--dark);
}

.btn-read-more {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    transition: all 0.3s;
}

.btn-read-more:hover {
    background: var(--secondary);
}

.blog-overlay-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 15px;
    margin: 20px 0;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-overlay-image:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: white;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark);
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    padding: 0 25px;
}

.faq-answer.active {
    max-height: 500px;
    padding: 0 25px 25px;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    width: 100%;
}

.contact-info {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-right: 20px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 60px 0 20px;
}

.footer h5 {
    color: var(--primary);
    margin-bottom: 25px;
    font-weight: bold;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 10px;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    overflow-y: auto;
}

.overlay-content {
    background: white;
    max-width: 800px;
    margin: 50px auto;
    padding: 50px;
    border-radius: 20px;
    position: relative;
}

.close-overlay {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark);
}

.alert-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.alert-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    animation: bounceIn 0.5s;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.loading-text {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: bold;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}