:root {
    --primary-color: #00A3A8;
    /* Turquoise */
    --primary-dark: #007A7E;
    --secondary-color: #0B2545;
    /* Deep Navy */
    --accent-color: #EE6C4D;
    /* Burnt Orange */
    --light-bg: #F0F4F8;
    --white: #ffffff;
    --text-color: #2D3142;
    --text-light: #7E8691;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    --container-width: 1200px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utils */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.highlight {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 163, 168, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 163, 168, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    /* Glassmorphism initial state optional here, but usually added on scroll */
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: block;
    padding: 5px 0;
}

.logo-img {
    height: 50px;
    /* Initial height */
    width: auto;
    transition: var(--transition);
    /* Ensure the logo is visible against both dark and light backgrounds. 
       If the logo is dark text on transparent/white bg, we might need a filter for the transparent hero state 
       OR rely on the navbar background becoming white on scroll. 
       Assuming the jpg has a background or is compatible. 
       If it's a solid block .jpg, we might want border-radius. */
    border-radius: 5px;
}

.navbar.scrolled .logo-img {
    height: 40px;
    /* Shrink slightly on scroll */
}


/* Previous text logo styles removed */

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.navbar.scrolled .nav-link {
    color: var(--secondary-color);
}

.nav-link.btn-contact {
    padding: 0.5rem 1.2rem;
    background: var(--white);
    color: var(--secondary-color);
    border-radius: 20px;
}

.nav-link.btn-contact:hover {
    background: var(--primary-color);
    color: var(--white);
}

.nav-link.btn-contact::after {
    display: none;
}

.navbar.scrolled .nav-link.btn-contact {
    background: var(--secondary-color);
    color: var(--white);
}

.navbar.scrolled .nav-link.btn-contact:hover {
    background: var(--primary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--white);
}

.navbar.scrolled .bar {
    background-color: var(--secondary-color);
}


/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: var(--white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1560703650-ef3e0f254ae0?q=80&w=2560&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 37, 69, 0.4) 0%, rgba(11, 37, 69, 0.7) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.alt-bg {
    background-color: var(--light-bg);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 0.5rem auto 0;
}

.section-desc {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

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

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(0, 163, 168, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background: var(--primary-color);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* Split Content */
.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-split.reverse .text-block {
    order: 2;
}

.text-block h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.text-block p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.feature-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-color);
}

.feature-list li i {
    color: var(--primary-color);
}

.image-block {
    height: 400px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Feature Grid Small */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.feature-item {
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-family: var(--font-body);
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    background: url('https://images.unsplash.com/photo-1596392994467-376510e19445?auto=format&fit=crop&q=80&w=2560') no-repeat center center/cover;
    position: relative;
    padding: 8rem 0;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 37, 69, 0.85);
    /* Dark overlay */
}

.contact-wrapper {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    color: var(--white);
}

.contact-info h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.info-item i {
    color: var(--primary-color);
    margin-top: 0.3rem;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 163, 168, 0.1);
}

.full-width {
    width: 100%;
    text-align: center;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 2rem 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    margin-left: 2rem;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Tablet & Mobile */
@media (max-width: 968px) {
    .content-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-split.reverse .text-block {
        order: 1;
        /* Reset order for mobile */
    }

    .image-block {
        height: 300px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--secondary-color);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--secondary-color);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        height: 100vh;
        /* height: 100% can be problematic on mobile browsers due to address bar */
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        justify-content: center;
        gap: 2rem;
        padding-top: 0;
        /* Center vertically */
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        color: var(--secondary-color);
        font-size: 1.2rem;
    }

    .navbar .logo {
        z-index: 1001;
        position: relative;
    }

    .navbar.scrolled .logo,
    .navbar .logo {
        /* ensure logo is visible over white menu */
        color: var(--secondary-color);
    }

    /* Override initial white logo for mobile menu open state if needed, 
       but simplified: always make logo secondary color when menu open? 
       Actually, simplistic approach: toggle class active on navbar too.
    */
}