:root {
    --primary-color: #0d1b2a;
    /* Deep Ocean Blue */
    --secondary-color: #1b263b;
    /* Lighter Blue */
    --accent-color: #e0e1dd;
    /* Metallic Silver/White */
    --highlight-color: #d6ad60;
    /* Muted Gold */
    --text-color: #333;
    --text-light: #f0f0f0;
    --transition: all 0.3s ease;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: #f4f4f4;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    /* Light background for logo visibility */
    backdrop-filter: blur(15px);
    padding: 0.8rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo img {
    height: 50px;
    /* Slightly larger on light bg */
    width: auto;
    filter: none;
    /* Reset any filters */
}

.nav-menu {
    display: flex;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--primary-color);
    /* Dark text for light bg */
    font-weight: 700;
    position: relative;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--highlight-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--highlight-color);
    text-shadow: none;
}

.top-contact-icon {
    display: flex;
    align-items: center;
    gap: 15px;
}

.webmail-btn {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(13, 27, 42, 0.2);
}

.webmail-btn:hover {
    background: var(--highlight-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(214, 173, 96, 0.4);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Full screen */
    overflow: hidden;
    margin-top: 0;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Slide Content Animation */
.slide .hero-content {
    max-width: 800px;
    padding: 0 20px;
    color: #fff;
    transform: translateY(50px);
    opacity: 0;
    transition: transform 1s ease 0.5s, opacity 1s ease 0.5s;
    /* Delay for smooth entrance */
}

.slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e0e1dd;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--highlight-color);
    color: var(--primary-color);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

/* Indicators */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--highlight-color);
    transform: scale(1.2);
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--highlight-color);
    color: var(--primary-color);
    font-weight: bold;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(214, 173, 96, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(214, 173, 96, 0.6);
    background-color: #fff;
}

/* Features/Services Section */
.services {
    padding: 5rem 5%;
    background-color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--highlight-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    group: hover;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-img-wrapper {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-btn {
    color: #fff;
    border: 2px solid var(--highlight-color);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
}

.service-btn:hover {
    background: var(--highlight-color);
    color: var(--primary-color);
}

.service-content {
    padding: 25px;
    text-align: center;
}

.service-content h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 4rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
}

.footer-col h3 {
    color: var(--highlight-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
}

.footer-links a:hover {
    color: var(--highlight-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    color: #ccc;
    font-size: 0.9rem;
}

.bottom-bar {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 1rem 20px;
    }

    .nav-menu {
        display: none;
        /* Mobile menu to be implemented with JS */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .mobile-toggle {
        display: block;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
    }
}

/* Internal Pages */
.page-header {
    height: 400px;
    /* Shorter than home hero */
    background: linear-gradient(rgba(13, 27, 42, 0.8), rgba(13, 27, 42, 0.8)), url('../imgs/banner_interior.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
    /* Add top margin for fixed header */
    padding-top: 80px;
    color: #fff;
    margin-bottom: 4rem;
}

.page-header h1 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-section {
    padding: 0 5% 4rem;
    background: #fff;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-intro {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Text (left) gets more space, Visual (right) less */
    gap: 50px;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.about-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--highlight-color);
    margin-top: 10px;
}

.about-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: #fff;
    /* Changed to white as requested */
    border-radius: 15px;
    /* Removed inset shadow for cleaner white look */
    /* box-shadow: inset 0 0 20px rgba(0,0,0,0.03); */
}

.about-visual .main-img {
    width: 100%;
    max-width: 250px;
    /* Reduced size as requested */
    border-radius: 8px;
    /* Removed shadow from image itself to be cleaner */
}

.visual-separator {
    width: 50px;
    height: 2px;
    background-color: var(--highlight-color);
}

.about-visual .support-logo {
    width: 180px;
    /* Logo size */
    opacity: 0.8;
    filter: grayscale(100%);
    /* Make it subtle */
    transition: var(--transition);
}

.about-visual:hover .support-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mv-card {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    border-left: 5px solid var(--highlight-color);
    transition: var(--transition);
}

.mv-card:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.mv-card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mv-card p {
    color: #666;
    line-height: 1.7;
}

/* Responsive adjustments for internal pages */
@media (max-width: 768px) {
    .about-intro {
        grid-template-columns: 1fr;
    }

    .page-header {
        height: 300px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }
}

/* Services Detail Page */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    /* Slightly wider min-width for horizontal cards */
    gap: 30px;
}

.service-item {
    display: flex;
    flex-direction: row;
    /* Side by side */
    align-items: center;
    /* Vertically center */
    background: #fff;
    padding: 25px;
    /* Add padding around the whole card */
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    gap: 20px;
    /* Space between image and text */
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-detail-img {
    width: 140px;
    /* Fixed thumbnail width */
    height: 140px;
    /* Fixed thumbnail height */
    flex-shrink: 0;
    /* Don't shrink */
    border: none;
    border-radius: 8px;
    /* Rounded corners for image container */
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    /* Shadow for the image itself */
}

.service-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Crop nicely to square */
    transition: transform 0.5s ease;
}

.service-item:hover .service-detail-img img {
    transform: scale(1.1);
}

.service-detail-text {
    padding: 0;
    /* Remove padding as parent has it */
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-detail-text h2 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.service-link {
    display: inline-block;
    color: var(--highlight-color);
    font-weight: 600;
    margin-bottom: 0.8rem;
    position: relative;
    padding-bottom: 2px;
    align-self: flex-start;
    font-size: 0.85rem;
}

.service-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: var(--highlight-color);
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.service-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.service-detail-text p {
    color: #555;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.service-detail-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .service-list {
        grid-template-columns: 1fr;
    }

    .service-item {
        flex-direction: column;
        /* Stack vertically on mobile */
        text-align: center;
        padding: 30px;
    }

    .service-detail-img {
        width: 180px;
        /* Larger image on mobile stack */
        height: 180px;
        margin-bottom: 15px;
    }

    .service-detail-text {
        text-align: center;
        align-items: center;
    }

    .service-link {
        align-self: center;
    }
}

/* Contact Page */
.contact-section {
    padding: 0 5% 4rem;
    background: #fff;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-form-wrapper h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.contact-form-wrapper p {
    color: #666;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: #f9f9f9;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--highlight-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(214, 173, 96, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card {
    background: var(--primary-color);
    color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(13, 27, 42, 0.2);
}

.contact-card h3 {
    color: var(--highlight-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.info-item i {
    color: var(--highlight-color);
    font-size: 1.2rem;
    margin-top: 5px;
}

.info-item p {
    color: #e0e1dd;
    line-height: 1.6;
}

.info-item strong {
    color: #fff;
    display: block;
    margin-bottom: 3px;
}

.map-container {
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 30px;
    }
}