/* ========================================
   MODERN DESIGN SYSTEM - ENHANCED VERSION
   With SVG Shape Decorations & Animations
======================================== */

:root {
    --primary: #3f8a68;
    --primary-dark: #2c553f;
    --primary-light: #6abf9a;
    --primary-soft: #d4e9d7;
    --primary-gradient: linear-gradient(135deg, #3f8a68 0%, #6abf9a 100%);
    --secondary: #605DBA;
    --secondary-light: #8a87d4;
    --secondary-gradient: linear-gradient(135deg, #605DBA 0%, #8a87d4 100%);
    --accent: #FAB758;
    --accent-gradient: linear-gradient(135deg, #FAB758 0%, #ffd966 100%);
    --gray: #6c757d;
    --gray-light: #f8f9fc;
    --dark: #1a2e24;
    --dark-soft: #2d3e35;
    --white: #ffffff;
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 35px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 25px 45px rgba(63, 138, 104, 0.15);
    --transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    --border-radius-card: 28px;
    --border-radius-sm: 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Poppins', 'Segoe UI', sans-serif;
    background: var(--white);
    overflow-x: hidden;
    color: var(--dark);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--primary-soft);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========================================
   ENHANCED NAVBAR STYLES
======================================== */
.navbar-modern {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 16px 0;
    transition: var(--transition);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar-modern.scrolled {
    padding: 10px 0;
    background: white;
    box-shadow: var(--shadow-md);
}

.navbar-modern .navbar-brand img {
    height: 48px;
    transition: var(--transition);
}

.navbar-modern .nav-link {
    font-weight: 600;
    color: var(--dark);
    margin: 0 12px;
    transition: var(--transition);
    position: relative;
    font-size: 14px;
}

.navbar-modern .nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2.5px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.navbar-modern .nav-link:hover::after,
.navbar-modern .nav-link.active::after {
    width: 30px;
}

.navbar-modern .nav-link:hover {
    color: var(--primary);
}

.btn-get-started {
    background: var(--primary-gradient);
    color: white;
    padding: 8px 28px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    margin-left: 10px;
    border: none;
    box-shadow: 0 2px 8px rgba(63, 138, 104, 0.2);
    text-decoration: none;
    display: inline-block;
}

.btn-get-started:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(63, 138, 104, 0.3);
    color: white;
    background: var(--primary-dark);
}

.btn-back {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 8px 22px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    background: var(--primary);
    color: white;
    gap: 12px;
    border-color: var(--primary);
}

/* ========================================
   MODULES SECTION
======================================== */
.modules-section {
    position: relative;
    padding: 130px 0 80px;
    background: linear-gradient(180deg, var(--gray-light) 0%, var(--white) 100%);
    overflow: hidden;
    min-height: 100vh;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 16px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Module Cards */
.module-card {
    background: var(--white);
    border-radius: var(--border-radius-card);
    padding: 32px;
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(63, 138, 104, 0.08);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-gradient);
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(250, 183, 88, 0.3);
}

.module-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(63, 138, 104, 0.2);
}

.module-card:hover .module-icon {
    transform: scale(1.05) rotate(3deg);
}

.module-icon i {
    font-size: 32px;
    color: white;
}

.module-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.module-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--dark);
}

.module-description {
    color: var(--gray);
    line-height: 1.65;
    font-size: 14px;
}

.view-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding: 10px 24px;
    background: var(--primary-soft);
    border: none;
    border-radius: var(--border-radius-sm);
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    text-decoration: none;
}

.view-details-btn:hover {
    background: var(--primary);
    color: white;
    gap: 12px;
    transform: translateX(5px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-sm);
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.empty-icon i {
    font-size: 36px;
    color: var(--primary);
}

/* ========================================
   HERO SECTION (Module Details)
======================================== */
.hero-section-module {
    padding: 150px 0 60px;
    background: linear-gradient(135deg, var(--primary-soft) 0%, var(--white) 70%);
    position: relative;
    overflow: hidden;
}

.hero-icon-large {
    width: 90px;
    height: 90px;
    background: var(--primary-gradient);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    box-shadow: var(--shadow-lg);
}

.hero-icon-large i {
    font-size: 42px;
    color: white;
}

.hero-icon-large img {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--primary);
}

.hero-description {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================
   CONTENT SECTION (Module Details)
======================================== */
.content-section-module {
    padding: 60px 0;
    background: var(--white);
}

.module-detail-content {
    max-width: 1100px;
    margin: 0 auto;
}

.detail-section {
    margin-bottom: 48px;
}

.detail-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

.detail-section h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
    margin: 28px 0 16px;
}

.detail-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin: 22px 0 12px;
}

.detail-section p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 20px;
}

.detail-section ul,
.detail-section ol {
    margin: 16px 0;
    padding-left: 26px;
}

.detail-section li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 8px;
}

.detail-section li strong {
    color: var(--primary-dark);
}

.feature-group {
    background: var(--gray-light);
    padding: 28px;
    border-radius: 24px;
    margin-bottom: 28px;
    transition: var(--transition);
    border: 1px solid rgba(63, 138, 104, 0.08);
}

.feature-group:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-soft);
}

.feature-group h3 {
    margin-top: 0;
    color: var(--primary-dark);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.benefit-item {
    text-align: center;
    padding: 28px 20px;
    background: linear-gradient(135deg, var(--primary-soft), var(--white));
    border-radius: 20px;
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.benefit-item i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 16px;
}

.benefit-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.benefit-item p {
    font-size: 13px;
    margin: 0;
}

.lifecycle-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin: 32px 0;
}

.step {
    flex: 1;
    min-width: 110px;
    text-align: center;
    padding: 18px 12px;
    background: linear-gradient(135deg, var(--primary-soft), var(--white));
    border-radius: 16px;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.step-number {
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 700;
    font-size: 14px;
}

.step h4 {
    font-size: 13px;
    margin: 0;
}

.step p {
    font-size: 11px;
    margin: 6px 0 0;
}

.table-custom {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    border-radius: 16px;
    overflow: hidden;
}

.table-custom th,
.table-custom td {
    padding: 12px 16px;
    border: 1px solid var(--primary-soft);
    text-align: left;
}

.table-custom th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.table-custom tr:nth-child(even) {
    background: var(--gray-light);
}

/* ========================================
   CTA SECTION
======================================== */
.cta-section {
    background: var(--primary-gradient);
    padding: 60px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.08)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.btn-cta {
    background: white;
    color: var(--primary);
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    gap: 15px;
    color: var(--primary-dark);
}

/* ========================================
   CONTACT SECTION
======================================== */
.contact-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.2;
}

.contact-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-title {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.contact-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
}

.btn-contact {
    background: white;
    color: var(--primary);
    padding: 14px 38px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    gap: 15px;
    color: var(--primary-dark);
}

/* ========================================
   FOOTER
======================================== */
.footer-modern {
    background: var(--dark);
    padding: 28px 0;
    text-align: center;
}

.footer-modern p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin: 0;
}

/* ========================================
   ENHANCED BACKGROUND SHAPES & DECORATIONS
   Using the provided SVG shapes
======================================== */
.bg-shapes-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.6;
    transition: transform 0.3s ease;
}

/* Individual shape positioning and sizing */
.shape-1 {
    top: 5%;
    left: -3%;
    width: 120px;
    height: auto;
    animation: floatSlow 20s ease-in-out infinite;
}

.shape-2 {
    bottom: 10%;
    right: -2%;
    width: 180px;
    height: auto;
    animation: floatReverse 18s ease-in-out infinite;
}

.shape-3 {
    top: 20%;
    right: 5%;
    width: 100px;
    height: auto;
    animation: rotateShape 30s linear infinite;
}

.shape-4 {
    bottom: 25%;
    left: 2%;
    width: 85px;
    height: auto;
    animation: pulseShape 4s ease-in-out infinite;
}

.shape-5 {
    top: 40%;
    left: 10%;
    width: 60px;
    height: auto;
    animation: floatSlow 15s ease-in-out infinite;
}

.shape-6 {
    bottom: 15%;
    right: 8%;
    width: 140px;
    height: auto;
    animation: rotateShape 25s linear infinite;
}

.shape-7 {
    top: 60%;
    right: 15%;
    width: 70px;
    height: auto;
    animation: floatReverse 22s ease-in-out infinite;
}

.shape-8 {
    top: 75%;
    left: 5%;
    width: 95px;
    height: auto;
    animation: pulseShape 5s ease-in-out infinite;
}

.dot-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary) 1.2px, transparent 1.2px);
    background-size: 35px 35px;
    opacity: 0.04;
    pointer-events: none;
}

/* New Enhanced Animations */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(5deg); }
}

@keyframes floatReverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(25px) rotate(-5deg); }
}

@keyframes rotateShape {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseShape {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

/* ========================================
   SCROLL TO TOP BUTTON
======================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
    border: none;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   RESPONSIVE STYLES
======================================== */
@media (max-width: 1200px) {
    .section-title {
        font-size: 42px;
    }
    .hero-title {
        font-size: 42px;
    }
}

@media (max-width: 991px) {
    .section-title {
        font-size: 36px;
    }
    .hero-title {
        font-size: 36px;
    }
    .modules-section {
        padding: 110px 0 60px;
    }
    .hero-section-module {
        padding: 130px 0 50px;
    }
    .detail-section h2 {
        font-size: 28px;
    }
    .shape-1, .shape-2, .shape-3, .shape-4, .shape-5, .shape-6, .shape-7, .shape-8 {
        transform: scale(0.7);
    }
}

@media (max-width: 768px) {
    .navbar-modern .navbar-brand img {
        height: 40px;
    }
    .btn-get-started {
        margin-left: 0;
        margin-top: 10px;
    }
    .navbar-modern .navbar-collapse {
        text-align: center;
        padding: 15px 0;
    }
    .section-title {
        font-size: 28px;
    }
    .section-subtitle {
        font-size: 14px;
    }
    .hero-title {
        font-size: 28px;
    }
    .modules-section {
        padding: 100px 0 50px;
    }
    .module-card {
        padding: 24px;
    }
    .module-title {
        font-size: 20px;
    }
    .contact-title {
        font-size: 26px;
    }
    .cta-section h2 {
        font-size: 26px;
    }
    .detail-section h2 {
        font-size: 24px;
    }
    .detail-section h3 {
        font-size: 18px;
    }
    .feature-group {
        padding: 20px;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .lifecycle-steps {
        flex-direction: column;
    }
    .step {
        min-width: auto;
    }
    .table-custom th,
    .table-custom td {
        padding: 8px 12px;
        font-size: 13px;
    }
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 24px;
    }
    .hero-title {
        font-size: 24px;
    }
    .contact-title {
        font-size: 22px;
    }
    .cta-section h2 {
        font-size: 22px;
    }
    .module-card {
        padding: 20px;
    }
    .module-icon {
        width: 55px;
        height: 55px;
    }
    .module-icon i {
        font-size: 26px;
    }
}

.btn-hero-primary {
    background: var(--primary-gradient);
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-hero-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}
/* Pointing system (bullet list) styles for module descriptions */
.module-feature-list {
    margin: 0;
    padding-left: 1.2rem;
    list-style: none;
}

.module-feature-list li {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
    color: var(--gray);
    position: relative;
    padding-left: 18px;
}

.module-feature-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 12px;
}

.module-description p {
    margin-bottom: 0;
}