/* General Styles */
:root {
    --primary-color: #0a3d62;
    --secondary-color: #f39c12;
    --accent-color: #3498db;
    --text-color: #333;
    --light-color: #f8f9fa;
    --dark-color: #1e3a54;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.primary-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.primary-btn:hover {
    background-color: #e67e22;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.primary-btn:active {
    transform: translateY(-1px);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

section {
    padding: 80px 0;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease;
}

header.scrolled {
    padding: 15px 0;
    background-color: rgba(10, 61, 98, 0.95);
    backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: white;
    font-weight: 600;
    padding: 8px 0;
    position: relative;
    font-size: 1.05rem;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--secondary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    outline: none;
    padding: 10px;
    margin: 0;
    cursor: pointer;
    z-index: 1000;
}

.mobile-menu-btn i {
    font-size: 24px;
    color: white;
    transition: color 0.3s ease;
}

.mobile-menu-btn:hover i {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1590559502090-ff0e939388ea?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 180px 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hero .btn {
    font-size: 1.1rem;
    padding: 15px 30px;
}

/* Services Section */
.services {
    background-color: var(--light-color);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    opacity: 1;
}

.service-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover i {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-card p {
    margin-bottom: 25px;
}

.service-card .btn {
    margin-top: auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.features {
    margin-top: 20px;
}

.features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.features li i {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.2rem;
    background-color: rgba(243, 156, 18, 0.1);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image .image-placeholder {
    width: 100%;
    height: 300px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.about-image .image-placeholder::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    bottom: 20px;
    left: 20px;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    opacity: 0.3;
    pointer-events: none;
}

.about-image .image-placeholder i {
    font-size: 6rem;
    color: var(--primary-color);
    opacity: 0.2;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--primary-color);
    color: white;
    position: relative;
}

.testimonials .section-title {
    color: white;
}

.testimonial {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.testimonial::before {
    content: '\201C';
    font-size: 8rem;
    position: absolute;
    top: -30px;
    left: 20px;
    color: rgba(255, 255, 255, 0.1);
    font-family: Georgia, serif;
}

.stars {
    margin-bottom: 25px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.testimonial p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial h4 {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    background-color: rgba(243, 156, 18, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--light-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2);
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0 0;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 1.5px;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a,
.footer-contact p {
    color: #bdc3c7;
    transition: var(--transition);
}

.footer-links ul li a:hover,
.footer-contact p:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Service Detail Page */
.service-hero {
    background-attachment: fixed !important;
}

/* Animations and Transitions */
.animate-on-scroll {
    opacity: 1;
    transform: none;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: none;
}

.service-card:nth-child(2),
.service-card:nth-child(3),
.service-card:nth-child(4) {
    transition-delay: 0s;
}

.contact-item:nth-child(2),
.contact-item:nth-child(3) {
    transition-delay: 0s;
}

.success-message {
    background-color: rgba(46, 204, 113, 0.1);
    border: 2px solid #2ecc71;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    color: #2ecc71;
    font-weight: 600;
    animation: fadeIn 0.5s ease;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

/* Hover Effect Improvements */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

/* Add better styling for image placeholders */
.about-image .image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover .image-placeholder img {
    transform: scale(1.05);
}

/* Service detail page enhancements */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Testimonial enhancements */
.testimonial {
    position: relative;
    overflow: hidden;
}

.testimonial::after {
    content: '\201D';
    position: absolute;
    bottom: -20px;
    right: 20px;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.1);
    font-family: Georgia, serif;
}

/* Media Queries */
@media (max-width: 992px) {
    .about-content,
    .contact-content,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-image .image-placeholder {
        height: 250px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .logo {
        margin-bottom: 0;
        width: auto;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    /* Mobile Menu Styles */
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--primary-color);
        transition: right 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0s 0.3s;
        padding: 80px 30px 30px;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
    }
    
    nav.active {
        right: 0;
        visibility: visible;
        opacity: 1;
        transition: right 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0s;
    }
    
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    nav ul li {
        margin: 0;
        width: 100%;
        margin-bottom: 15px;
    }
    
    nav ul li a {
        display: flex;
        align-items: center;
        padding: 12px 15px;
        font-size: 1.1rem;
        width: 100%;
        min-height: 44px;
        border-radius: var(--border-radius);
    }
    
    nav ul li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    nav ul li a::after {
        display: none;
    }
    
    /* Overlay for menu open state */
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }
    
    body.menu-open::after {
        opacity: 1;
        visibility: visible;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    /* Mobile-specific improvements */
    input, 
    select, 
    textarea,
    button {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
    }
    
    /* Larger tap targets */
    .btn, 
    nav ul li a,
    .footer-links ul li a,
    .social-icons a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Prevent horizontal scroll */
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Faster transitions on mobile */
    .service-card,
    .feature-card,
    .contact-item,
    .btn {
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    }
    
    /* Mobile layout adjustments */
    .hero {
        padding: 100px 0;
    }
    
    .hero h2 {
        font-size: 2.3rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .service-card {
        padding: 25px;
    }
    
    section {
        padding: 60px 0;
    }
    
    /* Fix button layout for mobile */
    .hero .btn {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Fix form on mobile */
    .form-group label {
        font-size: 1rem;
    }
    
    /* Fix contact items on mobile */
    .contact-info {
        gap: 20px;
    }
    
    /* Footer improvements for mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-links h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .about-image .image-placeholder i {
        font-size: 5rem;
    }
    
    /* Off-road page mobile styles */
    .service-hero {
        padding: 80px 0;
    }
    
    .service-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-card i {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .cta-content .btn {
        display: block;
        width: 100%;
        max-width: 250px;
        margin: 10px auto;
    }
    
    .service-content {
        padding: 15px;
    }
    
    .service-content ol,
    .service-content ul {
        padding-left: 20px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .contact-item {
        padding: 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-item i {
        margin-bottom: 15px;
    }
    
    .testimonial {
        padding: 25px 20px;
    }
    
    /* Fix grid layout for very small screens */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Improve legibility of footer text */
    .footer-bottom p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .about-image .image-placeholder {
        height: 200px;
    }
    
    .about-content {
        gap: 20px;
    }
    
    .about-image .image-placeholder i {
        font-size: 4rem;
    }
    
    /* Off-road page small screen styles */
    .service-hero {
        padding: 60px 0;
    }
    
    .service-hero h2 {
        font-size: 1.8rem;
    }
    
    .service-hero p {
        font-size: 1rem;
    }
    
    .cta-content h3 {
        font-size: 1.5rem;
    }
}

/* Fix iOS-specific issues */
@supports (-webkit-touch-callout: none) {
    /* Fix for iOS 100vh bug */
    .hero, 
    nav {
        height: -webkit-fill-available;
    }
    
    /* Fix for iOS tap highlight */
    a, button {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Touch-specific styles */
.touch-hover {
    transform: scale(0.98) !important;
}

.service-card.touch-hover {
    transform: translateY(-5px) scale(0.98) !important;
}

.feature-card.touch-hover {
    transform: translateY(-5px) !important;
}

.contact-item.touch-hover {
    transform: translateY(-3px) !important;
}

.social-icons a.touch-hover {
    background-color: var(--secondary-color);
} 