:root {
  --primary-blue: #004080;
  --primary-light: #00c3ff;
  --text-dark: #001A33;
  --text-muted: #666666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --border-radius: 15px;
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Poppins', sans-serif; 
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f8ff 100%);
    color: var(--text-dark); 
    line-height: 1.6; 
    min-height: 100vh;
    display: flex;
    flex-direction: column; 
}

a { text-decoration: none; color: inherit; }

/* NAVBAR FULL FLUID */
.navbar-wrapper { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    padding: 15px 2%; /* Jarak tepi hanya 2% */
    z-index: 1000; 
    transition: all 0.3s ease;
}

.navbar { 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px); 
    border-radius: 50px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 30px; 
    box-shadow: var(--shadow-sm); 
    width: 100%; /* Mengisi penuh wrapper */
}

.brand { display: flex; align-items: center; gap: 15px; }
.logo { width: 45px !important; height: auto !important; }
.brand-text-nav { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text-nav span.title { font-size: 1.1em; font-weight: 700; color: var(--primary-blue); letter-spacing: 0.5px; }
.brand-text-nav span.subtitle { font-size: 0.9em; font-weight: 600; color: var(--text-muted); letter-spacing: 0.5px; }

.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { font-size: 0.9em; font-weight: 500; color: var(--text-muted); transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-blue); font-weight: 600; }

/* HERO SECTION FLUID */
.hero { 
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    position: relative; 
    min-height: 400px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    padding: 160px 2% 80px 2% !important; 
    overflow: hidden;
}

.hero::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(135deg, rgba(0, 195, 255, 0.1) 0%, rgba(0, 64, 128, 0.3) 100%);
    z-index: 1; 
}

.hero-content { position: relative; z-index: 2; width: 96%; }

.hero-title { 
    font-size: clamp(2rem, 5vw, 3.5rem); 
    font-weight: 800; 
    color: var(--primary-blue); 
    margin-bottom: 15px; 
    line-height: 1.2; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-paragraph { 
    font-size: clamp(1rem, 2vw, 1.2rem); 
    color: #001a33; 
    margin-bottom: 30px; 
    font-weight: 500;
}

/* FEATURE CARDS FLUID */
.feature-cards { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 25px; 
    width: 96%; /* Mengisi 96% lebar layar perangkat */
    max-width: 100%; 
    margin: -80px auto 40px auto; 
    position: relative; 
    z-index: 10; 
}
.card-feature { background: var(--white); border-radius: var(--border-radius); padding: 30px 20px; text-align: center; box-shadow: var(--shadow-lg); transition: transform 0.3s; }
.card-feature:hover { transform: translateY(-5px); }
.card-feature i { font-size: 2.5em; color: var(--primary-light); margin-bottom: 15px; }
.card-feature h3 { font-size: 1.1em; font-weight: 600; color: var(--text-dark); }

/* CONTAINERS UMUM FULL FLUID (Mengisi 96% Layar) */
.container, .warning-container, .pelayanan-container, .news-container, .wrapper-container, .cuaca-container { 
    width: 96%; 
    max-width: 100%;
    margin: 0 auto; 
    padding: 40px 0; 
}

.section-title { text-align: center; margin-bottom: 30px; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--text-dark); }

/* CUACA DARAT */
.container-cuaca-darat { display: flex; overflow-x: auto; gap: 20px; padding-bottom: 20px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.card-cuaca-darat { flex: 0 0 220px; scroll-snap-align: start; background: var(--white); border-radius: var(--border-radius); padding: 20px 15px; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid #e2e8f0; }
.weather-time { font-weight: 600; color: var(--primary-blue); }
.weather-icon { width: 60px; height: 60px; margin: 10px auto; }
.weather-temp { font-size: 24px; font-weight: 700; color: var(--text-dark); margin: 5px 0; }

/* MEGA FOOTER FLUID */
.mega-footer { 
    background-color: #0b1a30; 
    color: #cce7ff; 
    padding: 60px 2% 20px 2%; 
    margin-top: auto; 
    border-top: 5px solid var(--primary-light); 
    font-size: 0.95em; 
}
.footer-container { 
    width: 96%; 
    max-width: 100%;
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr; 
    gap: 40px; 
    margin-bottom: 40px; 
}
.footer-brand { background: var(--white); padding: 15px; border-radius: 8px; display: inline-flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.footer-brand img { width: 55px; }
.footer-brand .brand-text { display: flex; flex-direction: column; }
.footer-brand .brand-title { color: #002b5c; font-weight: 700; font-size: 1.15em; line-height: 1.2; }
.footer-brand .brand-subtitle { color: var(--primary-light); font-weight: 600; font-size: 0.9em; }
.footer-desc { line-height: 1.7; opacity: 0.9; }
.footer-heading { color: var(--white); font-size: 1.2em; font-weight: 600; margin-bottom: 20px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #cce7ff; transition: color 0.3s; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-contact-list { list-style: none; padding: 0; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; line-height: 1.6; }
.footer-contact-list i { color: var(--primary-light); font-size: 1.2em; margin-top: 3px; }
.footer-apps-box { background: rgba(0, 0, 0, 0.2); border-radius: 12px; padding: 25px; border: 1px solid rgba(255,255,255,0.05); }
.footer-apps-box h4 { color: #fca311; font-size: 1.1em; margin-bottom: 10px; }
.footer-apps-box p { font-style: italic; font-size: 0.9em; margin-bottom: 15px; opacity: 0.8; }
.app-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.app-btn { background: var(--white); color: var(--text-dark); padding: 10px 15px; border-radius: 6px; font-weight: 600; font-size: 0.85em; display: inline-flex; align-items: center; gap: 8px; transition: 0.3s; }
.app-btn:hover { background: #e2e8f0; }
.footer-bottom { 
    width: 96%; 
    max-width: 100%;
    margin: 0 auto; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 25px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 10px; 
    font-size: 0.9em; 
    opacity: 0.8; 
}

/* STYLE KHUSUS KARTU CUACA MARITIM & TABS */
.section-pelabuhan { margin-bottom: 40px; }
.grid-maritim { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.card-maritim { background: var(--white); border-radius: 12px; padding: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; }
.card-maritim.highlight-wave { border: 2px solid #ff5252; box-shadow: 0 0 15px rgba(255,82,82,0.2); }
.card-maritim .date { font-size: 1.1em; font-weight: 600; color: var(--primary-blue); margin-bottom: 15px; opacity: 0.9; }
.item-maritim { display: flex; justify-content: space-between; margin: 10px 0; font-size: 0.95em; align-items: flex-start; gap: 15px; border-bottom: 1px dashed #f0f0f0; padding-bottom: 10px; }
.item-maritim:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0;}
.item-maritim .label { color: var(--text-muted); flex: 1; display: flex; align-items: center; gap: 8px;}
.item-maritim .value { font-weight: 600; text-align: right; flex: 1.5; color: var(--text-dark); }
.warning-maritim { margin-top: 15px; padding: 10px; border-radius: 8px; background: #ffebee; color: #d32f2f; font-weight: 600; text-align: center; }

.blink { animation: blink 1s infinite; }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

/* Tab Navigasi Maritim FULL FLUID */
.maritim-tabs { 
    width: 96%; 
    max-width: 100%;
    margin: 20px auto 40px auto; 
    position: relative; 
    z-index: 10; 
    display: flex; 
    background: white; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
    overflow: hidden; 
    flex-wrap: wrap; 
}
.maritim-tab-btn { flex: 1; text-align: center; padding: 20px 10px; font-weight: 600; color: #64748b; text-decoration: none; transition: all 0.3s; border-bottom: 3px solid transparent; font-family: 'Poppins', sans-serif;}
.maritim-tab-btn:hover { background: #f8fafc; color: var(--primary-blue); }
.maritim-tab-btn.active { color: var(--primary-blue); border-bottom: 3px solid var(--primary-blue); background: #f0f7ff; }

/* MEDIA QUERIES RESPONSIVE */
@media (max-width: 1200px) {
  .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
  .navbar-wrapper { padding: 10px; }
  .navbar { border-radius: 10px; flex-direction: column; gap: 15px; padding: 15px; }
  .container, .warning-container, .pelayanan-container, .news-container, .wrapper-container, .cuaca-container { width: 95%; }
  .maritim-tabs { width: 95%; }
}

@media (max-width: 768px) {
  .feature-cards, .footer-container { grid-template-columns: 1fr; }
  .maritim-tabs { flex-direction: column; margin: 20px auto; width: 95%; } 
  .maritim-tab-btn { border-bottom: 1px solid #e2e8f0; border-left: 3px solid transparent; } 
  .maritim-tab-btn.active { border-bottom: 1px solid #e2e8f0; border-left: 3px solid var(--primary-blue); } 
  .footer-bottom { justify-content: center; text-align: center; }
  .hero { padding: 140px 5% 60px 5% !important; }
}