/* /assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Space+Grotesk:wght@600;700&display=swap');

:root {
    --deep-blue: #0D1B3E;
    --primary-bg: #111827;
    --secondary-bg: #1F2937;
    --singapore-red: #EE2536;
    --covalent-teal: #00A7B5;
    --light-text: #F3F4F6;
    --medium-text: #D1D5DB;
    --dark-text: #9CA3AF;
    --border-color: #374151;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--deep-blue);
    color: var(--light-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--light-text);
}

/* --- Navigation --- */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(13, 27, 62, 0.8); /* var(--deep-blue) with opacity */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(55, 65, 81, 0.3); /* var(--border-color) with opacity */
}

.navbar-logo {
    font-family: 'Audiowide', cursive;
}

/* Material Icons Sizing Fix */
.material-icons.text-xs {
    font-size: 0.75rem !important;
    line-height: 1rem !important;
}

.material-icons.text-sm {
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
}

.material-icons.text-base {
    font-size: 1rem !important;
    line-height: 1.5rem !important;
}

.material-icons.text-lg {
    font-size: 1.125rem !important;
    line-height: 1.75rem !important;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-red {
    background-color: var(--singapore-red);
    color: white;
}

.btn-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(238, 37, 54, 0.3), 0 4px 6px -2px rgba(238, 37, 54, 0.2);
}

.btn-teal {
    background-color: var(--covalent-teal);
    color: white;
}

.btn-teal:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 167, 181, 0.3), 0 4px 6px -2px rgba(0, 167, 181, 0.2);
}

.btn-outline-teal {
    border-color: var(--covalent-teal);
    color: var(--covalent-teal);
}

.btn-outline-teal:hover {
    background-color: var(--covalent-teal);
    color: white;
}

/* --- Sections & Cards --- */
.bg-grid {
    background-image:
        linear-gradient(rgba(0, 167, 181, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 167, 181, 0.07) 1px, transparent 1px);
    background-size: 2.5rem 2.5rem;
}

.process-step-card {
    background-color: var(--secondary-bg);
    padding: 2rem;
    border-radius: 0.75rem;
    border-top: 4px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.process-step-card:hover {
    border-color: var(--covalent-teal);
    transform: translateY(-5px);
}

.step-circle-lg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    background-color: var(--covalent-teal);
    color: white;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background-color: var(--covalent-teal);
    color: white;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* --- Example Tabs --- */
.example-tab {
    transition: all 0.2s ease-in-out;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
}

.example-tab[aria-selected="true"] {
    background-color: var(--singapore-red);
    color: white;
}

.example-tab[aria-selected="false"] {
    background-color: var(--secondary-bg);
    color: var(--medium-text);
}

.example-tab[aria-selected="false"]:hover {
    background-color: var(--border-color);
}

/* --- Prose & Content Styling --- */
.prose-custom {
    color: var(--medium-text);
}

.prose-custom h1, .prose-custom h2, .prose-custom h3, .prose-custom h4, .prose-custom h5 {
    color: var(--light-text);
    font-family: var(--font-heading);
}

.prose-custom code {
    color: #FBBF24;
    background-color: var(--secondary-bg);
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
}

.prose-custom strong {
    color: var(--light-text);
}

.prose-custom blockquote {
    border-left: 4px solid var(--covalent-teal);
    padding-left: 1rem;
    font-style: italic;
    color: var(--dark-text);
}
.prose-custom ul > li {
    padding-left: 1.5em;
    position: relative;
}

.prose-custom ul > li::before {
    content: '';
    position: absolute;
    left: 0.25em;
    top: 0.6em;
    width: 0.4em;
    height: 0.4em;
    border-radius: 50%;
    background-color: var(--covalent-teal);
}

/* --- Dropdown Menu Styles --- */
.dropdown-menu {
    white-space: nowrap;
}

.dropdown-item:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
}

/* --- Cascading Submenu Styles --- */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .submenu-indicator {
    display: inline-flex;
    align-items: center;
    width: 100%;
}

.dropdown-submenu > .submenu-indicator .material-icons {
    margin-left: auto;
    font-size: 18px;
}

.dropdown-submenu-menu {
    position: absolute;
    left: 100%;
    top: -1px;
    margin-left: 0.25rem;
    min-width: 16rem;
}

.dropdown-submenu:hover > .dropdown-submenu-menu {
    opacity: 1;
    visibility: visible;
}

/* Add max height and scroll for long submenu lists */
.dropdown-submenu-menu {
    max-height: 80vh;
    overflow-y: auto;
}

/* Custom scrollbar for submenu */
.dropdown-submenu-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-submenu-menu::-webkit-scrollbar-track {
    background: #1F2937;
    border-radius: 3px;
}

.dropdown-submenu-menu::-webkit-scrollbar-thumb {
    background: #4B5563;
    border-radius: 3px;
}

.dropdown-submenu-menu::-webkit-scrollbar-thumb:hover {
    background: #6B7280;
}

/* --- Active Navigation States --- */
.nav-link.active {
    color: var(--covalent-teal);
}

.dropdown .nav-link.active {
    color: var(--covalent-teal);
}

/* Prevent button focus from looking like active state */
.nav-link:focus {
    outline: none;
}

.nav-link:focus:not(.active) {
    color: inherit;
}

/* --- Custom Section Dividers --- */
.section-divider-v {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.section-divider-v::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-bg) 50%, var(--secondary-bg) 50%);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.section-divider-wave {
    position: relative;
    height: 80px;
    overflow: hidden;
}

.section-divider-wave::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--secondary-bg);
    clip-path: ellipse(150% 80px at 50% 0%);
}

.section-divider-zigzag {
    position: relative;
    height: 60px;
    overflow: hidden;
}

.section-divider-zigzag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--secondary-bg);
    clip-path: polygon(0 0, 10% 100%, 20% 0, 30% 100%, 40% 0, 50% 100%, 60% 0, 70% 100%, 80% 0, 90% 100%, 100% 0, 100% 100%, 0 100%);
}

/* --- Alternative Section Colors --- */
.bg-dark-gray {
    background-color: #1a1a1a;
}

.bg-darker-primary {
    background-color: #0a1426;
}

.bg-charcoal {
    background-color: #2d2d2d;
}

/* --- Watermark Styles --- */
.watermark-container {
    position: relative;
    display: inline-block;
}

.watermark-container::after {
    content: 'EXAMPLE';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 10;
    letter-spacing: 2px;
}

/* Breadcrumb Navigation Styles */
.breadcrumb-nav {
    background-color: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(4px);
    border-top: 1px solid rgba(75, 85, 99, 0.3);
}

#breadcrumb {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

#breadcrumb li {
    display: flex;
    align-items: center;
}

#breadcrumb li a {
    transition: color 0.2s ease;
}

#breadcrumb li span.material-icons {
    font-size: 1rem;
    margin: 0 0.25rem;
}

/* Hide breadcrumb on mobile for cleaner interface */
@media (max-width: 640px) {
    .breadcrumb-nav {
        display: none;
    }
}

/* Show breadcrumb on tablets and up */
@media (min-width: 641px) {
    .breadcrumb-nav {
        display: block;
    }
}

/* Hero Section Adjustments for Fixed Header with Breadcrumb */
.hero-section-with-header {
    /* Account for navbar (approx 80px) + breadcrumb (approx 50px) + extra spacing */
    padding-top: 12rem !important; /* 160px = 10rem + 2rem to fix overlap */
}

@media (max-width: 640px) {
    .hero-section-with-header {
        /* On mobile, breadcrumb is hidden, so only account for navbar + spacing */
        padding-top: 8rem !important; /* 96px = 6rem + 2rem to fix overlap */
    }
}

/* Section After Hero - Reduced Top Padding */
.section-after-hero {
    padding-top: 3rem !important; /* 48px instead of default 96px */
}

@media (max-width: 640px) {
    .section-after-hero {
        padding-top: 2rem !important; /* 32px on mobile */
    }
}
