/* ==========================================
   Managing IHM Maintenance for Mixed-Fleet Ships - CSS
   Design: Modern, Professional, Animated
   ========================================== */

:root {
    --primary-color: #0052cc;
    --secondary-color: #003d99;
    --accent-color: #ff6b35;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --light-bg: #f8f9fa;
    --dark-text: #1a1a1a;
    --light-text: #666666;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark-text);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 80px 20px;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 82, 204, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInLeft 0.8s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark-text);
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 16px;
    color: var(--light-text);
    margin-bottom: 30px;
    line-height: 1.8;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-image {
    animation: fadeInRight 0.8s ease-out;
}

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

.banner-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.banner-img:hover {
    transform: scale(1.05);
}

/* ==========================================
   Section Styles
   ========================================== */

section {
    padding: 80px 20px;
    animation: fadeInUp 0.8s ease-out;
}

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

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

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.icon-accent {
    color: var(--primary-color);
    font-size: 48px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 20px auto 0;
    border-radius: 2px;
    animation: expandWidth 0.6s ease-out;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 80px; }
}

/* ==========================================
   Overview Section
   ========================================== */

.overview-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eef7 100%);
}

.overview-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--light-text);
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.overview-text:hover {
    color: var(--primary-color);
}

.overview-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* ==========================================
   Content Section
   ========================================== */

.content-section {
    background: white;
}

.content-section:nth-child(even) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eef7 100%);
}

.content-body {
    max-width: 900px;
    margin: 0 auto;
}

.content-body p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--light-text);
    margin-bottom: 20px;
}

.content-body strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* ==========================================
   Custom Lists
   ========================================== */

.custom-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
}

.custom-list li {
    position: relative;
    padding: 10px 0 10px 30px;
    font-size: 16px;
    color: var(--light-text);
    line-height: 1.7;
    transition: all 0.3s ease;
}

.custom-list li:hover {
    color: var(--primary-color);
    padding-left: 35px;
}

.dot-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
}

/* ==========================================
   Numbered Challenge Cards
   ========================================== */

.challenge-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 30px 0;
}

.challenge-card {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 25px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.challenge-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(10px);
}

.challenge-number {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    min-width: 70px;
    height: 70px;
    box-shadow: var(--shadow-sm);
}

.challenge-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.challenge-content h3 i {
    color: var(--secondary-color);
    font-size: 22px;
}

.challenge-content p {
    color: var(--light-text);
    line-height: 1.8;
    font-size: 16px;
    margin: 0;
}

/* ==========================================
   Support Cards Grid
   ========================================== */

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.support-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.support-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.support-card:hover h3,
.support-card:hover p {
    color: white;
}

.support-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.support-card:hover .support-icon {
    color: white;
    transform: scale(1.2);
}

.support-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.support-card p {
    color: var(--light-text);
    line-height: 1.8;
    transition: color 0.3s ease;
}

/* ==========================================
   Conclusion Section
   ========================================== */

.conclusion-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eef7 100%);
}

.conclusion-box {
    background: white;
    border-left: 5px solid var(--primary-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

.conclusion-box p {
    font-size: 17px;
    line-height: 1.9;
    color: var(--light-text);
    margin-bottom: 20px;
}

.conclusion-box p:last-child {
    margin-bottom: 0;
}

.conclusion-box strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* ==========================================
   Contact Us Section
   ========================================== */

.contact-us-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.contact-us-title {
    color: white !important;
}

.contact-us-title i {
    color: white !important;
    animation: none;
}

.contact-us-underline {
    background: white !important;
}

.contact-us-body {
    max-width: 700px;
    margin: 0 auto;
}

.contact-us-text {
    font-size: 18px;
    color: white !important;
    margin-bottom: 20px;
    opacity: 0.95;
    line-height: 1.8;
}

.contact-us-subtext {
    font-size: 16px;
    color: white !important;
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-us-link {
    color: white !important;
    text-decoration: underline;
    font-weight: 600;
}

.contact-us-link:hover {
    opacity: 0.85;
}

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

.contact-us-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   CTA Button Large
   ========================================== */

.cta-button-large {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 16px 50px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.cta-button-large:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   Responsive Design
   ========================================== */

/* Large tablets and small desktops */
@media (max-width: 991px) {
    .hero {
        padding: 60px 20px;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .hero-subtitle {
        font-size: 20px;
    }

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

    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets */
@media (max-width: 768px) {
    .hero {
        padding: 50px 15px;
    }

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

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

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

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

    .challenge-card {
        grid-template-columns: 55px 1fr;
        gap: 15px;
        padding: 20px;
    }

    .challenge-number {
        font-size: 28px;
        min-width: 55px;
        height: 55px;
    }

    section {
        padding: 50px 15px;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }

    .conclusion-box {
        padding: 25px;
    }

    .content-body p {
        font-size: 15px;
    }

    .overview-text {
        font-size: 16px;
    }

    .contact-us-text {
        font-size: 16px;
    }

    .contact-us-subtext {
        font-size: 14px;
    }

    .cta-button-large {
        padding: 14px 35px;
        font-size: 16px;
    }
}

/* Small tablets and large phones */
@media (max-width: 576px) {
    .hero {
        padding: 40px 15px;
    }

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

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.6;
    }

    .section-title {
        font-size: 22px;
        flex-direction: column;
        gap: 8px;
    }

    .icon-accent {
        font-size: 36px;
    }

    .section-header {
        margin-bottom: 30px;
    }

    section {
        padding: 40px 12px;
    }

    .challenge-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 18px;
    }

    .challenge-number {
        margin: 0 auto;
        font-size: 24px;
        min-width: 50px;
        height: 50px;
    }

    .challenge-content h3 {
        font-size: 17px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .challenge-content p {
        font-size: 14px;
    }

    .support-card {
        padding: 25px 20px;
    }

    .support-icon {
        font-size: 36px;
    }

    .support-card h3 {
        font-size: 17px;
    }

    .support-card p {
        font-size: 14px;
    }

    .conclusion-box {
        padding: 20px;
    }

    .conclusion-box p {
        font-size: 15px;
    }

    .custom-list li {
        font-size: 14px;
        padding: 8px 0 8px 25px;
    }

    .content-body p {
        font-size: 14px;
    }

    .overview-text {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 14px;
    }

    .cta-button-large {
        padding: 12px 30px;
        font-size: 15px;
    }

    .contact-us-section {
        padding: 40px 12px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .hero-title {
        font-size: 22px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

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

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

    .icon-accent {
        font-size: 30px;
    }

    section {
        padding: 35px 10px;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    .hero {
        padding: 30px 10px;
    }

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

    .hero-subtitle {
        font-size: 13px;
    }

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

    .challenge-content h3 {
        font-size: 15px;
    }

    .conclusion-box {
        padding: 15px;
        border-left-width: 3px;
    }

    .cta-button-large {
        padding: 10px 25px;
        font-size: 14px;
    }
}
