:root {
    --primary-color: #003366; /* Navy Blue */
    --secondary-color: #f4f4f4; /* Light Gray */
    --accent-color: #d32f2f; /* Red accent */
    --text-color: #333;
    --white: #ffffff;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 50px; /* Adjust based on actual logo aspect ratio */
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    color: var(--white);
    margin-top: -82px; /* Pull up to cover header height */
    padding-top: 82px; /* Add padding to prevent content from being hidden */
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

/* Ensure content is above the background overlay */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.slider-btn:hover {
    background-color: rgba(0,0,0,0.8);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Animation Classes for Hero Content */
.animate-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.slide.active .animate-up {
    animation-play-state: running;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #b71c1c;
}

/* Sections */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

/* About Section */
.about {
    background-color: var(--secondary-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
}

.about-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
    display: block;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.4); /* Primary color overlay */
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 5px;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-image:hover::after {
    opacity: 1;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid transparent;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: -1;
    transition: width 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,51,102,0.2);
    border-color: var(--primary-color);
}

.service-card:hover::before {
    width: 100%;
}

.service-card:hover h3, 
.service-card:hover p {
    color: var(--white);
    transition: color 0.3s ease;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
}

.service-card p {
    position: relative;
    z-index: 2;
}

/* Contact Section */
.contact {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
}

.contact .section-title {
    color: var(--white);
    margin-bottom: 60px;
}

.contact-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-content {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s, background 0.3s;
}

.contact-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.2);
}

.contact-item h3 {
    margin-bottom: 5px;
    color: var(--accent-color);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item p {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.contact-map {
    flex: 1;
    min-width: 300px;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(20%) contrast(1.1);
    transition: filter 0.3s;
}

.contact-map:hover iframe {
    filter: none;
}


/* Global Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #b0b0b0;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-links, .footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-links h3, .footer-contact h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-bottom {
    width: 100%;
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links h3::after, .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact p {
        justify-content: center;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        text-align: center;
        margin-top: 20px;
    }

    .nav-links li {
        margin: 10px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
}
