/* ============================================
   NARI SEA MARITIME - Modern Maritime Website
   Deep Ocean Theme
   ============================================ */

:root {
    --primary: #0a1628;
    --primary-light: #1a2d4a;
    --accent: #2e86ab;
    --accent-light: #5bb5e0;
    --gold: #c9a84c;
    --text: #e8edf3;
    --text-muted: #8fa4b8;
    --bg: #0d1b2a;
    --bg-card: #132238;
    --bg-alt: #0f1f33;
    --border: #1e3a5f;
    --success: #4caf50;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 52px;
    width: auto;
    border-radius: 6px;
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-light);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.lang-toggle {
    background: var(--primary-light);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.lang-toggle:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============ HERO ============ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,22,40,0.8) 0%, rgba(46,134,171,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(46,134,171,0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(46,134,171,0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent-light);
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--primary);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255,255,255,0.3);
}

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

/* ============ SECTIONS ============ */
.section {
    padding: 5rem 0;
}

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

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

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #fff;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.text-center { text-align: center; }

/* ============ SERVICES GRID ============ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

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

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

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

/* ============ ABOUT PREVIEW ============ */
.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-light);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============ ABOUT FULL PAGE ============ */
.about-full {
    max-width: 900px;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.9;
}

.about-services-detail {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.about-services-detail h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.service-detail-item {
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border-left: 3px solid var(--accent);
}

.service-detail-item h4 {
    color: var(--accent-light);
    margin-bottom: 0.3rem;
}

.service-detail-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.about-commitment {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.about-commitment h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

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

.commitment-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
}

.commitment-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.commitment-item h4 {
    color: #fff;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.commitment-item p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============ PRODUCTS ============ */
.filter-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.products-grid, .products-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--primary-light);
}

.product-info {
    padding: 1rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.3rem;
}

.product-category {
    font-size: 0.8rem;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============ CTA SECTION ============ */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: #fff;
    margin-bottom: 0.5rem;
}

.cta-section p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
}

/* ============ CONTACT ============ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2, .contact-form-wrapper h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--accent-light);
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.contact-item p {
    color: var(--text);
    font-size: 0.95rem;
}

.contact-qr {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
}

.contact-qr img {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.contact-qr p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Form */
.contact-form .form-group {
    margin-bottom: 1.2rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(46,134,171,0.2);
}

.form-success {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(76,175,80,0.1);
    border: 1px solid var(--success);
    border-radius: 8px;
    color: var(--success);
    text-align: center;
}

.hidden { display: none; }

/* Map */
.map-placeholder {
    text-align: center;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.map-placeholder p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* ============ PAGE HEADER ============ */
.page-header {
    padding: 8rem 0 3rem;
    text-align: center;
    background: linear-gradient(180deg, var(--primary) 0%, var(--bg) 100%);
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
    margin-bottom: 0.3rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--primary);
    border-top: 1px solid var(--border);
    padding: 3rem 0 0;
}

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

.footer-col h4 {
    color: #fff;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.2rem 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-hamburger { display: flex; }

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

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero { min-height: 500px; }

    .section { padding: 3rem 0; }

    .products-grid, .products-grid-full {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .product-image { height: 150px; }
}

/* ============ NEWS PAGE ============ */
.page-header {
    background: linear-gradient(135deg, #0a1628 0%, #132238 100%);
    padding: 4rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid #1e3a5f;
}
.page-header h1 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.page-header p {
    color: #8fa4b8;
    font-size: 1rem;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    background: #132238;
    border: 1px solid #1e3a5f;
    border-radius: 12px;
    padding: 1.8rem;
    transition: all 0.3s ease;
}
.news-item:hover {
    border-color: #2e86ab;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 134, 171, 0.15);
}

.news-meta {
    margin-bottom: 0.8rem;
}
.news-date {
    display: inline-block;
    background: rgba(46, 134, 171, 0.15);
    color: #5bb5e0;
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.news-title {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.news-excerpt {
    color: #8fa4b8;
    line-height: 1.7;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .page-header { padding: 3rem 0 2rem; }
    .page-header h1 { font-size: 1.6rem; }
    .news-item { padding: 1.2rem; }
    .news-title { font-size: 1.1rem; }
}
