/* ==========================================
   Reset & Base
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --marine-blue: #0a2e4d;
    --marine-blue-dark: #061e33;
    --marine-blue-light: #1a4d73;
    --accent: #f0a500;
    --accent-light: #ffc233;
    --text-light: #ffffff;
    --text-gray: #b8c9d9;
    --bg-light: #f4f7fa;
    --shadow: 0 10px 30px rgba(10, 46, 77, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: #1e2a3a;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ==========================================
   Header
   ========================================== */
.main-header {
    background-color: var(--marine-blue);
    color: white;
    padding: 18px 0;
    border-bottom: 4px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
    width: 50px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #1e88e5, #00bcd4);
    padding: 4px;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
}

.logo h1 {
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 1px;
    line-height: 1.1;
}

.logo h1 span {
    color: var(--accent);
}

.logo p {
    font-size: 0.7rem;
    opacity: 0.8;
    letter-spacing: 2px;
}

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

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

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

.btn-header {
    background: linear-gradient(135deg, #1e88e5, #00bcd4);
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
}

.btn-header:hover {
    background: linear-gradient(135deg, #00bcd4, #1e88e5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
}


/* ==========================================
   Hero
   ========================================== */
.hero {
    background: linear-gradient(135deg, var(--marine-blue-dark) 0%, var(--marine-blue) 100%);
    color: white;
    padding: 60px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 30, 51, 0.85) 0%, rgba(10, 46, 77, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero h2 span {
    color: var(--accent);
}

.hero p {
    max-width: 750px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    opacity: 0.95;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 38px;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: var(--marine-blue);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(240, 165, 0, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--marine-blue);
    transform: translateY(-3px);
}

/* ==========================================
   Section Title
   ========================================== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--marine-blue);
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title h3::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 4px;
}

.section-title p {
    margin-top: 25px;
    color: #5a6b7d;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   Services
   ========================================== */
.services {
    padding: 100px 0;
    background: var(--bg-light);
}

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

.service-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eaeef3;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(10, 46, 77, 0.2);
}

.card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: var(--marine-blue);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 40%, rgba(6, 30, 51, 0.7) 100%);
}

.card-icon {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(240, 165, 0, 0.4);
    transition: transform 0.3s;
}

.service-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-icon i {
    font-size: 2rem;
    color: var(--marine-blue);
}

.card-body {
    padding: 25px 25px 30px;
}

.card-body h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--marine-blue);
    margin-bottom: 12px;
    line-height: 1.3;
    min-height: 52px;
}

.card-body p {
    color: #5a6b7d;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
    min-height: 110px;
}

.btn-card {
    display: inline-block;
    background: transparent;
    color: var(--marine-blue);
    border: 2px solid var(--marine-blue);
    padding: 8px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-card:hover {
    background: var(--marine-blue);
    color: white;
}

/* ==========================================
   Stats
   ========================================== */
.stats {
    background: linear-gradient(135deg, var(--marine-blue) 0%, var(--marine-blue-light) 100%);
    padding: 80px 0;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h4 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* ==========================================
   Contact
   ========================================== */
.contact {
    padding: 100px 0;
    background: white;
}

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

.contact-card {
    background: var(--bg-light);
    padding: 35px 25px;
    border-radius: 18px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

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

.contact-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 18px;
}

.contact-card h4 {
    font-size: 1.2rem;
    color: var(--marine-blue);
    margin-bottom: 12px;
    font-weight: 700;
}

.contact-card a {
    color: var(--marine-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    word-break: break-word;
}

.contact-card a:hover {
    color: var(--accent);
}

.contact-card p {
    color: #5a6b7d;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================
   Footer
   ========================================== */
.main-footer {
    background: var(--marine-blue-dark);
    color: var(--text-gray);
    padding: 35px 0 25px;
    border-top: 4px solid var(--accent);
}

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

.footer-content p {
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: var(--text-gray);
    font-size: 1.2rem;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.footer-social a:hover {
    color: var(--marine-blue);
    background: var(--accent);
    transform: translateY(-3px);
}

/* ==========================================
   Modal Gallery
   ========================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 30, 51, 0.95);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    max-width: 1100px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--marine-blue);
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent);
}

.modal-content h3 {
    font-size: 1.8rem;
    color: var(--marine-blue);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.modal-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(10, 46, 77, 0.3);
}

.modal-gallery .no-images {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #8a9bab;
    font-size: 1.1rem;
}

.modal-gallery .no-images i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero h2 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .hero { padding: 70px 0; min-height: 500px; }

    .header-content { flex-direction: column; text-align: center; }
    .logo { flex-direction: column; text-align: center; }
    .btn-header { width: 100%; text-align: center; }

    .services-grid { grid-template-columns: 1fr; }
    .card-body h3, .card-body p { min-height: auto; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .stat-item h4 { font-size: 2.5rem; }

    .footer-content { flex-direction: column; text-align: center; }

    .modal-content { padding: 25px; margin: 10% auto; }
    .modal-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h2 { font-size: 1.7rem; }
    .section-title h3 { font-size: 1.8rem; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* ===== Hero photo (responsive) ===== */
.hero::before { display: none; }

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-overlay {
    background: linear-gradient(135deg, rgba(6, 30, 51, 0.70) 0%, rgba(10, 46, 77, 0.45) 100%);
}
.hero-content { width: 100%; }
.hero h2, .hero p { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45); }

@media (min-width: 769px) {
    .hero { min-height: clamp(500px, 75vh, 720px); }
}
@media (max-width: 768px) {
    .hero-bg img { object-position: 60% center; }
    .hero-overlay {
        background: linear-gradient(180deg, rgba(6, 30, 51, 0.75) 0%, rgba(6, 30, 51, 0.55) 100%);
    }
}
