/* =====================================================
  AEGIS CAPITAL - UNIVERSAL STYLESHEET V3.0 (Final Mobile Fix)
===================================================== */

/* ===== GLOBAL RESET & ROOT VARIABLES ===== */
:root {
    --brand1: #00baff;
    --brand2: #7ce0ff;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    padding-top: 70px;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: #f9f9f9;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo-container { display: flex; align-items: center; gap: 10px; }
.logo { height: 40px; width: auto; }
.logo-text { font-size: 18px; font-weight: bold; color: #000; white-space: nowrap; }
.nav-menu { display: flex; gap: 30px; }
.nav-menu a { font-size: 16px; color: #0f0808; text-decoration: none; font-weight: 600; transition: color 0.3s ease; }
.nav-menu a:hover, .nav-menu a.active { color: var(--brand1); }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; padding: 0; color: #333; }

/* =====================================================
  HOME PAGE STYLES
===================================================== */
.main-background-wrapper {
    background: url('../images/1.png') no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
}
.main-background-wrapper > section {
    background-color: rgba(0, 0, 0, 0.5); 
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    color: white;
    position: relative;
}
.hero-section { text-align: center; padding-top: 90px; background-color: transparent; }
.hero-content { max-width: 800px; }
.hero-title { font-size: 3.2rem; font-weight: bold; margin-bottom: 5px; line-height: 1.1; }
.hero-title span { color: var(--brand1); }
.hero-logo { margin: 10px 0; }
.hero-logo img { max-width: 400px; width: 100%; }
.hero-subtitle { font-size: 1.4rem; font-style: italic; margin-top: 10px; }

.platform-section, .short-description-section { background-color: transparent; overflow: hidden; }
.platform-container { max-width: 1200px; width: 100%; text-align: left; }
.platform-header-card { 
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 20px; 
    padding: 40px 50px; 
}
.platform-header-card h2 { 
    font-size: 3rem;
    font-size: clamp(2.5rem, 6vw, 4.5rem); 
    font-weight: 700; color: #FFFFFF; margin: 0 0 15px 0; 
}
.platform-title { font-size: 1.5rem; font-weight: 400; line-height: 1.6; color: #dcdcdc; margin: 0; max-width: 800px; }
.short-description-table { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; max-width: 1100px; gap: 80px; }
.short-description-table .left-cell { flex: 1; min-width: 300px; max-width: 650px; }
.short-description-table h3 { font-size: 2.6rem; font-weight: 700; line-height: 1.3; margin-bottom: 24px; }
.highlight-blue { background: linear-gradient(90deg, var(--brand1), var(--brand2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.short-description-table .right-cell { flex: 1; display: flex; justify-content: center; }
.tilt-img { max-width: 220px; height: auto; transition: transform 0.2s ease-out; }
.tilt-img:hover { transform: rotateY(10deg) rotateX(4deg) scale(1.04); }

.values-section { background-color: rgba(0, 0, 0, 0.7); display: flex; align-items: center; gap: 50px; justify-content: center; flex-wrap: wrap; }
.values-section > h2 { flex-basis: 300px; flex-grow: 1; font-size: 3.5rem; font-weight: 700; text-align: left; color: #ffffff; margin: 0; line-height: 1.2; }
.values-grid { flex-basis: 500px; flex-grow: 2; display: flex; flex-direction: column; gap: 25px; }
.value-card { background: rgba(255, 255, 255, 0.08); border: 1px solid var(--brand1); border-radius: 16px; padding: 25px 30px; text-align: left; display: flex; align-items: center; gap: 25px; box-shadow: 0 4px 12px rgba(0, 186, 255, 0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.value-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 6px 18px rgba(0, 186, 255, 0.25); }
.value-card img { width: 45px; height: 45px; object-fit: contain; margin: 0; }
.value-card .card-content { flex: 1; }
.value-card h3 { font-size: 1.4rem; margin: 0 0 8px 0; color: #00cfff; }
.value-card p { font-size: 1rem; color: #f0f0f0; line-height: 1.6; margin: 0; }

/* =====================================================
  ABOUT PAGE STYLES
===================================================== */
.about-page-wrapper {
    background: url('../images/about.png') no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
}
.about-page-wrapper > section {
    background-color: rgba(0, 0, 0, 0.65);
    padding: 120px 40px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.about-section1 .about-container { justify-content: center; text-align: center; max-width: 1200px; margin: 0 auto; width: 100%; }
.about-section1 .about-text { flex-basis: 700px; flex-grow: 0; }
.about-section1 .about-text h2 { font-size: 2.8rem; color: #58a6ff; margin-bottom: 25px; }
.about-section1 .about-text p { font-size: 1.2rem; line-height: 1.8; color: #e0e0e0; margin-bottom: 20px; }
.about-section1 .section1-quote { margin-top: 30px; font-size: 1.3rem; font-style: italic; }
.about-section1 .about-text strong { font-weight: 700; color: #ffffff; }

.about-section2 .about-container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 40px; max-width: 1200px; margin: 0 auto; width: 100%; }
.about-section2 .about-text { flex: 1 1 500px; }
.about-section2 .about-text h2 { font-size: 2.3rem; margin-bottom: 20px; font-weight: 600; color: #58a6ff; }
.about-section2 .about-text p { line-height: 1.8; margin-bottom: 15px; font-size: 1.05rem; }
.about-section2 .about-text strong { font-weight: bold; color: #ffffff; }
.about-section2 .about-image { flex: 1 1 300px; text-align: center; }
.about-section2 .about-image img { max-width: 300px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4); transition: transform 0.6s ease; }
.about-section2 .about-image img:hover { transform: scale(1.08) rotate(2deg); }

.about-section4 .about-container { display:block; max-width: 1200px; margin: 0 auto; width: 100%; }
.section4-head--center { text-align: center; margin-bottom: 12px; }
.section4-big { 
    display: inline-block; margin: 0; font-weight: 800; 
    font-size: 42px;
    font-size: clamp(32px, 5vw, 54px); 
    line-height: 1.05; background: linear-gradient(90deg, #ffffff 0%, #aee9ff 50%, #7cd8ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; padding-bottom: 10px; 
}
.section4-big::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 120px; height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--brand1), var(--brand2)); }
.wwd-surface { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10); border-radius: 22px; padding: 28px; }
.wwd-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; align-items: stretch; }
.wwd-card { position: relative; display: flex; flex-direction: column; gap: 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; padding: 24px 26px 22px; }
.wwd-card .highlight-strip { position: absolute; top: 0; left: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--brand1), var(--brand2)); }
.wwd-card h3 { 
    margin: 6px 0; 
    font-size: 20px;
    font-size: clamp(18px, 2.2vw, 22px); 
    line-height: 1.35; font-weight: 700; color: #fff; 
}
.wwd-list { list-style: none; display: grid; gap: 10px; }
.wwd-item { position: relative; padding-left: 26px; line-height: 1.55; }
.wwd-item::before { content: ""; position: absolute; left: 0; top: 0.55em; transform: translateY(-50%); width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--brand2), var(--brand1)); }

.journey-layout { display: flex; align-items: stretch; gap: 70px; max-width: 1200px; width: 100%; }
.journey-title-card { flex: 0 0 60px; display: flex; align-items: center; justify-content: center; border-right: 2px solid rgba(88, 166, 255, 0.5); padding-right: 30px; }
.journey-title-card h2 { color: #58a6ff; font-size: 2.5rem; font-weight: 600; margin: 0; white-space: nowrap; writing-mode: vertical-rl; transform: rotate(180deg); }
.journey-content-wrapper { flex: 1; display: flex; align-items: center; gap: 40px; }
.journey-text { flex: 2; }
.journey-text p { line-height: 1.8; margin-bottom: 20px; font-size: 1.1rem; color: #dcdcdc; text-align: justify; }
.journey-text p strong { display: block; font-size: 1.6rem; font-weight: 700; margin-bottom: 10px; background: linear-gradient(90deg, #ffffff, #aae9ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.journey-image-card { flex: 1; background-color: rgba(255, 255, 255, 0.05); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.1); padding: 20px; text-align: center; }
.journey-image-card img { width: 100%; border-radius: 12px; margin-bottom: 20px; object-fit: cover; }
.journey-caption h4 { margin: 0 0 5px 0; font-size: 1.2rem; font-weight: 600; color: #fff; }
.journey-caption p { margin: 0; font-size: 1rem; color: #aae9ff; }

/* =====================================================
  PORTFOLIO PAGE STYLES
===================================================== */
.portfolio-hero {
    background-image: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)), url('../images/portofolio_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 100vh;
    padding: 72px 24px 96px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}
.portfolio-secondary { min-height: auto; padding-top: 0; }
.portfolio-wrap { width: 100%; max-width: 1280px; margin: 0 auto; }
.portfolio-heading { text-align: center; margin: 0 0 36px; font-size: 40px; font-weight: 700; color: #58a6ff; }
.portfolio-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
.p-card { background: #fff; border: 0; border-radius: 24px; height: 180px; padding: 24px 28px; box-shadow: 0 12px 28px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; transition: transform .18s ease, box-shadow .18s ease; cursor: pointer; }
.p-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.22); }
.p-card img { max-height: 70%; max-width: 80%; height: auto; width: auto; object-fit: contain; }
.grid-3-cols { grid-template-columns: repeat(3, 1fr); max-width: 900px; margin: 0 auto; }
.p-modal { position: fixed; inset: 0; display: none; justify-content: center; align-items: center; z-index: 2000; }
.p-modal.is-open { display: flex; }
.p-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); cursor: pointer; }
.p-modal__dialog { position: relative; z-index: 1; width: 92%; max-width: 640px; background: #fff; border-radius: 16px; box-shadow: 0 24px 64px rgba(0,0,0,.3); padding: 28px 24px; display: flex; flex-direction: column; align-items: center; }
.p-modal__close { position: absolute; right: 12px; top: 12px; font-size: 24px; background: transparent; border: 0; cursor: pointer; color: #333; }
.p-modal__media { margin-bottom: 16px; }
.p-modal__media img { height: 120px; width: auto; object-fit: contain; }
.p-modal__content { text-align: center; color: #1f2937; }
.p-modal__content h3 { margin: 0 0 8px; font-size: 22px; font-weight: 700; }
.p-modal__content p { margin: 0; font-size: 16px; line-height: 1.7; }

/* =====================================================
  INSIGHTS PAGE STYLES
===================================================== */
.ins-page {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(120% 120% at 10% 0%, rgba(0,186,255,.10), transparent 55%),
        linear-gradient(180deg, rgba(8,19,45,.30), rgba(8,19,45,.65)),
        url('../images/BACKGROUND.png') center/cover no-repeat;
    background-attachment: scroll;
}
.ins-page::before { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.10)); pointer-events:none; z-index:0; }
.ins-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ins-hero { padding: 84px 0 36px; color: #fff; text-align: center; position: relative; z-index: 1; }
.ins-hero h1 { 
    font-size: 44px;
    font-size: clamp(32px, 6vw, 56px); 
    font-weight: 800; letter-spacing: .01em; margin: 0 0 6px; 
}
.ins-reports { padding: 22px 0 88px; color: #fff; position: relative; z-index: 1; }
.ins-reports .ins-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); justify-content: center; gap: 28px; }
.report-card { --radius: 20px; position: relative; width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 28px rgba(0,0,0,0.25); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.report-card:hover { transform: translateY(-6px); box-shadow: 0 16px 46px rgba(0,0,0,0.32); border-color: rgba(0,186,255,0.35); }
.report-top { position: relative; padding: 12px 12px 0; }
.report-cover { aspect-ratio: 16/9; border-radius: calc(var(--radius) - 4px); background: linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.25)), var(--cover, linear-gradient(135deg,#0b234a,#0f335e)) center/cover no-repeat; background-color: #0b1a35; outline: 1px solid rgba(255,255,255,0.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04); }
.report-body { padding: 14px 16px; }
.report-title { font-size: 19px; margin: 4px 0 6px; font-weight: 700; color: #fff; }
.report-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chip { padding: 4px 10px; font-size: 12px; font-weight: 700; border-radius: 999px; color: #08132d; background: linear-gradient(90deg, var(--brand2), var(--brand1)); }
.chip-soft { color: #cfefff; background: rgba(124,224,255,.14); border: 1px solid rgba(124,224,255,.3); }
.report-desc { margin-top: 6px; color: #dbe8ff; opacity: .9; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.report-footer { padding: 0 16px 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.22); color: #e9f6ff; text-decoration: none; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(0,186,255,.5); transform: translateY(-2px); }
.btn-download { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; cursor: pointer; white-space: nowrap; text-decoration: none; color: #08132d; background: linear-gradient(90deg, var(--brand1), var(--brand2)); box-shadow: 0 10px 26px rgba(0,186,255,.35); font-weight: 800; font-size: 14px; transform: translateZ(0); }
.btn-download:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* =====================================================
  FOOTER STYLES
===================================================== */
.site-footer {
    background-color: #ffffff;
    padding: 40px 20px 20px 20px;
    border-top: 1px solid #ddd;
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}
.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-logo { width: 40px; }
.footer-company {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    margin: 0;
}
.footer-social { margin-top: 4px; }
.footer-social .social-icon { width: 18px; }
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-left: 2px solid var(--brand1);
}
.footer-right a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer-right a:hover {
    color: var(--brand1);
    transform: translateX(5px);
}
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    font-size: 13px;
    color: #888;
    border-top: 1px solid #e0e0e0;
    margin-top: 30px;
}

/* =========================================
  RESPONSIVE STYLES
========================================= */
@media (max-width: 992px) {
    .values-section { flex-direction: column; gap: 40px; text-align: center; }
    .values-section > h2 { text-align: center; font-size: 2.5rem; }
}

@media (max-width: 900px) {
    .about-page-wrapper > section { padding: 80px 20px; }
    .about-section2 .about-container, .journey-content-wrapper { flex-direction: column; }
    .about-section2 .about-container { text-align: center; }
    .about-section2 .about-text, .journey-text { padding-right: 0; margin-bottom: 40px; }
    .journey-layout { flex-direction: column; align-items: center; gap: 30px; }
    .journey-title-card { flex-basis: auto; border-right: none; padding-right: 0; border-bottom: 2px solid rgba(88, 166, 255, 0.5); padding-bottom: 20px; width: 100%; text-align: center; }
    .journey-title-card h2 { writing-mode: horizontal-tb; transform: none; }
    .wwd-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .nav-menu { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; width: 100%; background-color: #f9f9f9; box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1); padding: 10px 0; }
    .nav-menu a { padding: 15px 20px; text-align: center; width: 100%; }
    .nav-menu.is-active { display: flex; }
    .nav-toggle { display: block; }

    .main-background-wrapper > section { padding: 80px 25px; }
    .hero-title { font-size: 2.2rem; }
    .hero-logo img { max-width: 220px; }
    .hero-subtitle { font-size: 1.1rem; }
    .platform-header-card { padding: 30px 25px; }
    .platform-header-card h2 { 
        font-size: 2.2rem;
        font-size: clamp(2rem, 10vw, 2.5rem); 
        text-align: center; 
    }
    .platform-title { font-size: 1.1rem; text-align: center; }
    .short-description-table { flex-direction: column; gap: 40px; }
    .short-description-table h3 { font-size: 1.8rem; white-space: normal; text-align: center; }
    .tilt-img { max-width: 150px; }

    .hero-title span { display: block; }
    .platform-title strong { display: block; margin-top: 10px; }

    /* ===== MOBILE CARD LAYOUT ===== */
    .portfolio-grid, .grid-3-cols, .ins-reports .ins-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .p-card {
        height: 160px;
        padding: 20px;
    }
    .values-grid .value-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 25px;
    }
    
    .footer-container { flex-direction: column; align-items: center; text-align: center; }
    .footer-left, .footer-right { align-items: center; }
    .footer-right { border-left: none; border-top: 2px solid var(--brand1); padding: 20px; width: 80%; }
}

@media (max-width: 520px) {
    .ins-hero { padding: 64px 0 28px; }
}