/* ============================================
   RESET & VARIABLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7AE3FF;
    --primary-dark: #9BE8FF;
    --sidebar-bg: #0f2a3d;
    --sidebar-text: #FFFFFF;
    --sidebar-text-hover: #FFFFFF;
    --white: #FFFFFF;
    --bg-light: #0b5a7a;
    --secondary-bg: #0c1f3a;
    --text-dark: #FFFFFF;
    --text-muted: #D8EEFF;
    --border-color: rgba(255, 255, 255, 0.12);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --card-shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.38);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--sidebar-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   APP LAYOUT
   ============================================ */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */
.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-header:hover {
    opacity: 0.8;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
}

.logo-text {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--white);
    letter-spacing: -0.3px;
}

.logo-subtext {
    font-size: 0.75rem;
    color: var(--sidebar-text);
    margin-top: 0.15rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-list {
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--sidebar-text-hover);
    border-left-color: var(--primary-color);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--sidebar-text-hover);
    border-left-color: var(--primary-color);
}

.nav-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    flex-shrink: 0;
}

.services-toggle {
    justify-content: space-between;
}

.chevron {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.services-toggle.open .chevron {
    transform: rotate(180deg);
}

.submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
}

.submenu.open {
    max-height: 500px;
}

.submenu-link {
    padding: 0.625rem 1rem 0.625rem 2.75rem !important;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--sidebar-text);
}

.submenu-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--primary-color);
    border-left-color: transparent;
}

.submenu-link.active {
    color: var(--primary-color);
    background-color: rgba(0, 164, 239, 0.1);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.content-wrapper {
    flex: 1;
    overflow-y: auto;
    background-color: #050607;
    padding: 2rem 1.5rem;
    color: var(--white);
    min-width: 0;
}

.top-header {
    background: var(--secondary-bg);
    padding: 2rem 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-content {
    max-width: 100%;
}

.company-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

.content-wrapper {
    flex: 1;
    overflow-y: auto;
    background-color: #050607;
    padding: 2rem 1.5rem;
    color: var(--white);
}

.content-area {
    animation: fadeIn 0.4s ease-in;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CARDS & SECTIONS
   ============================================ */
.card {
    background: var(--secondary-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.card h1 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 800;
}

.card h2 {
    font-size: 1.75rem;
    color: var(--white);
    margin-bottom: 1rem;
    margin-top: 1.75rem;
    font-weight: 700;
}

.card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    margin-top: 1.25rem;
    font-weight: 600;
}

.card hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 1.75rem 0;
}

.card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.card ul, .card ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.card li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-card {
    background: linear-gradient(135deg, #0f2d4a 0%, #112f53 100%);
    color: white;
    text-align: center;
    padding: 3rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.hero-card h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.card table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.card th,
.card td {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
    vertical-align: top;
}

.card th {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.card tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.hero-card .subheadline {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
}

.hero-media {
    margin: 0 auto 2rem;
    max-width: 860px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.hero-media img,
.service-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.service-image {
    margin: 2rem auto;
    max-width: 100%;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.2);
}

.hero-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: var(--white);
    color: var(--primary-dark);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.hero-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ============================================
   TRUST BADGES
   ============================================ */
.trust-section {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.trust-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.badge-icon {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 600;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   SCROLLBAR
   ============================================ */
.sidebar::-webkit-scrollbar,
.content-wrapper::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.content-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.content-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.content-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }

    .content-wrapper {
        padding: 1.5rem 2rem;
    }

    .top-header {
        padding: 1.5rem 2rem;
    }

    .card {
        padding: 1.5rem;
    }

    .hero-card {
        padding: 2rem;
    }

    .hero-card h1 {
        font-size: 2rem;
    }

    .hero-card .subheadline {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        max-height: 60px;
        overflow-x: auto;
        overflow-y: hidden;
        flex-direction: row;
        align-items: center;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sidebar-header {
        padding: 0.75rem 1rem;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        min-width: max-content;
    }

    .logo {
        width: 28px;
        height: 28px;
    }

    .logo-text {
        font-size: 0.85rem;
    }

    .logo-subtext {
        display: none;
    }

    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        flex: 1;
        padding: 0;
    }

    .nav-list {
        display: flex;
        gap: 0;
    }

    .nav-item {
        min-width: max-content;
    }

    .nav-link {
        padding: 0.625rem 0.75rem;
        white-space: nowrap;
        font-size: 0.875rem;
    }

    .nav-icon {
        width: 16px;
        height: 16px;
    }

    .chevron {
        width: 14px;
        height: 14px;
    }

    .submenu {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--sidebar-bg);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        max-height: 200px;
        width: 200px;
        margin-top: 0.5rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    }

    .submenu.open {
        display: block;
    }

    .submenu-link {
        padding: 0.625rem 1rem;
    }

    .content-wrapper {
        flex: 1;
        padding: 1rem;
    }

    .top-header {
        padding: 1rem;
    }

    .company-title {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 0.875rem;
    }

    .card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .card h2 {
        font-size: 1.5rem;
    }

    .card h3 {
        font-size: 1.1rem;
    }

    .card p {
        font-size: 0.95rem;
    }

    .hero-card {
        padding: 1.5rem;
    }

    .hero-card h1 {
        font-size: 1.75rem;
    }

    .hero-card .subheadline {
        font-size: 1rem;
    }

    .badges {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .sidebar {
        max-height: 50px;
    }

    .sidebar-header {
        min-width: 160px;
    }

    .nav-link {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .content-wrapper {
        padding: 0.75rem;
    }

    .top-header {
        padding: 0.75rem;
    }

    .company-title {
        font-size: 1.25rem;
        margin-bottom: 0.1rem;
    }

    .tagline {
        font-size: 0.75rem;
    }

    .card {
        padding: 0.75rem;
    }

    .card h2 {
        font-size: 1.3rem;
    }

    .card h3 {
        font-size: 1rem;
    }

    .hero-card h1 {
        font-size: 1.5rem;
    }

    .hero-card .subheadline {
        font-size: 0.9rem;
    }
}
