/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0a2540;
    --secondary-color: #1e5a8e;
    --accent-color: #3b82f6;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-light: #999;
    --bg-light: #f8f9fa;
    --border-color: #e1e8ed;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #0a2540 0%, #1e5a8e 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(10, 37, 64, 0.65) 0%, rgba(30, 90, 142, 0.45) 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
}

.container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(0.625rem);
    box-shadow: 0 0.125rem 1.25rem rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0.125rem 1.875rem rgba(0, 0, 0, 0.12);
}

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

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 2.5rem;
    width: auto;
    display: block;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.0625rem;
}

.logo-subtitle {
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--secondary-color);
    letter-spacing: 0.1875rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -0.3125rem;
    left: 0;
    width: 0;
    height: 0.125rem;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 0.3125rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 1.5625rem;
    height: 0.125rem;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    background-image: 
        linear-gradient(135deg, rgba(10, 37, 64, 0.5) 0%, rgba(30, 90, 142, 0.3) 100%),
        url('images/grace_header.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 5rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 56.25rem;
    margin: 0 auto;
    padding: 3.75rem 0;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.875rem;
    line-height: 1.2;
    letter-spacing: -0.0625rem;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 3.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 43.75rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 0.125rem solid transparent;
}

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

.btn-primary:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.625rem 1.875rem rgba(255, 255, 255, 0.3);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-0.125rem);
}

/* Services Overview */
.services-overview {
    padding: 6.25rem 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
    gap: 40px;
}

.service-card {
    padding: 3.125rem 1.875rem;
    text-align: center;
    border-radius: 0.75rem;
    background: var(--bg-light);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: var(--white);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: var(--secondary-color);
}

/* Fleet Section */
.fleet-section {
    padding: 7.5rem 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.vessel-feature {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 100px;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    min-height: 500px;
}

.vessel-image {
    position: relative;
    overflow: hidden;
    height: 100%;
    background: linear-gradient(135deg, #0a2540 0%, #1e5a8e 100%);
}

.vessel-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.vessel-feature:hover .vessel-image img {
    transform: scale(1.05);
}

.vessel-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.vessel-details {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vessel-name {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.vessel-type {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.vessel-specs {
    margin-bottom: 40px;
}

.spec-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.spec-label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 150px;
}

.spec-value {
    color: var(--text-secondary);
}

.vessel-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

.vessel-description p {
    margin-bottom: 15px;
}

/* Fleet Gallery */
.fleet-gallery {
    margin-top: 80px;
}

.gallery-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    padding: 20px;
    font-size: 14px;
    font-weight: 500;
}

.gallery-item.placeholder {
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-text {
    text-align: center;
    font-size: 3rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Services Section */
.services-section {
    padding: 7.5rem 0;
    background: var(--white);
}

.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.service-detail {
    padding: 40px;
    background: var(--bg-light);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.service-detail:hover {
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.service-detail h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
}

.service-detail ul {
    list-style: none;
}

.service-detail li {
    padding: 12px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 25px;
}

.service-detail li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 600;
}

/* About Section */
.about-section {
    padding: 7.5rem 0;
    background: var(--bg-light);
}

.about-content {
    max-width: 56.25rem;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.875rem;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.value-item {
    padding: 30px;
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.value-item strong {
    display: block;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.value-item p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

/* Contact Section */
.contact-section {
    padding: 7.5rem 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    margin-top: 60px;
}

.contact-info {
    padding: 40px;
    background: var(--bg-light);
    border-radius: 0.75rem;
}

.contact-info h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 1.875rem;
}

.contact-item {
    margin-bottom: 1.875rem;
}

.contact-item strong {
    display: block;
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.contact-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Contact Form */
.contact-form-container {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 0.75rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0 30px;
}

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

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-description {
        font-size: 18px;
    }

    .vessel-feature {
        grid-template-columns: 1fr;
    }

    .vessel-image {
        min-height: 500px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-title {
        font-size: 36px;
    }

    .services-grid,
    .services-detail-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

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

    .vessel-details {
        padding: 30px 20px;
    }

    .vessel-name {
        font-size: 28px;
    }

    .about-values {
        grid-template-columns: 1fr;
    }
}

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

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}
