:root {
    --primary-blue: #1F4475;
    --secondary-blue: #1F4475;
    --seafoam: #EF7E33;
    --coastal-white: #F8F9FA;
    --mist-grey: #E9ECEF;
    --deep-grey: #333333;
    --accent-gold: #D4AF37;
    --header-height: 100px;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--deep-grey);
    background-color: var(--coastal-white);
    overflow-x: hidden;
}

.main-content {
    padding-top: var(--header-height);
    min-height: calc(100vh - 200px); /* Ensure content fills enough space */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* Header & Navigation */
header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

header .container {
    width: 100%;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 30px;
}

.logo img {
    height: 75px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--seafoam);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(31, 68, 117, 0.6), rgba(31, 68, 117, 0.6)), url('../images/DryDock-1925Low.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 0;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 1.2s ease-out;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--seafoam);
    color: white;
    font-weight: 700;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition-slow);
    border-bottom: 5px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 5px solid var(--seafoam);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--seafoam);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

/* Page Headers for Inner Pages */
.page-header h1 {
    color: var(--seafoam) !important;
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-header p {
    color: white !important;
    font-weight: 600;
    letter-spacing: 2px;
}

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

.wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-bg svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
    animation: waveMovement 10s linear infinite alternate;
}

@keyframes waveMovement {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(1.1) translateX(-20px);
    }
}

.wave-bg .shape-fill {
    fill: var(--coastal-white);
}

/* Reveal on Scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    will-change: opacity, transform;
}

.reveal-on-scroll.active-reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Slanted Hero Transition */
.hero {
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
    margin-bottom: -50px; /* Overlap with next section for smoothness */
}

/* Footer */
footer {
    background: var(--primary-blue);
    color: white;
    padding: 100px 0 40px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 180px;
    filter: brightness(0) invert(1);
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: -10px;
}

.social-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.social-icon:hover svg {
    fill: var(--seafoam);
    opacity: 1;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-bottom-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
}



.footer-links h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Service Sections (Page-specific) */
.service-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    margin-bottom: 120px;
}

.service-section:nth-child(even) {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
}

.service-image {
    flex: 1;
}

.service-image img {
    border-radius: 15px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    width: 100%;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.feature-item {
    background: var(--mist-grey);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-blue);
    border-left: 4px solid var(--seafoam);
}

/* Expert Marine Consulting Color Change */
#intro h2 {
    transition: color 0.3s ease;
}

/* Burger Menu Styles */
.burger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--primary-blue);
    transition: var(--transition-fast);
}

/* Responsive */
@media (max-width: 992px) {
    .service-section {
        flex-direction: column !important;
        gap: 40px;
        margin-bottom: 80px;
    }
    
    .service-text, .service-image {
        width: 100%;
    }

    .service-text {
        text-align: left !important;
    }

    .feature-list {
        justify-items: start !important;
    }

    #intro h2 {
        color: var(--seafoam) !important;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    
    .logo img {
        height: 60px;
    }

    .burger-menu {
        display: flex;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.2rem;
        display: block;
        padding: 10px;
    }
}
