/* Custom Global Styling Properties */
:root {
    --bg-dark: #070d19;
    --bg-darker: #040810;
    --turquoise: #00E5FF;
    --turquoise-glow: rgba(0, 229, 255, 0.25);
    --turquoise-deep: #00838F;
    --accent-pink: #D9577D;
    --accent-pink-glow: rgba(217, 87, 125, 0.35);
    --accent-orchid: #DD78A6;
    --accent-orchid-glow: rgba(221, 120, 166, 0.25);
    --text-white: #FFFFFF;
    --text-muted: #94A3B8;
    --font-primary: 'Inter', 'Sarabun', sans-serif;
    --glass-card: rgba(13, 27, 42, 0.45);
    --glass-border: rgba(0, 229, 255, 0.15);
    --glass-border-pink: rgba(217, 87, 125, 0.2);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Base Utility Classes */
.text-turquoise {
    color: var(--turquoise) !important;
}
.text-pink {
    color: var(--accent-pink) !important;
}
.text-orchid {
    color: var(--accent-orchid) !important;
}
.bg-turquoise {
    background-color: var(--turquoise) !important;
}
.bg-pink {
    background-color: var(--accent-pink) !important;
}
.bg-darker {
    background-color: var(--bg-darker) !important;
}
.bg-darker-transparency {
    background-color: rgba(4, 8, 16, 0.6);
}
.bg-pink-light {
    background-color: rgba(217, 87, 125, 0.1) !important;
}
.text-light-muted {
    color: var(--text-muted) !important;
}
.tracking-wider {
    letter-spacing: 0.12em;
}
.section-padding {
    padding: 100px 0;
}

/* Security Notification Banner */
.security-banner {
    background: linear-gradient(90deg, #070d19, #D9577D);
    color: var(--text-white);
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(217, 87, 125, 0.2);
}

/* Navigation Overrides */
.navbar {
    background-color: rgba(7, 13, 25, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}
.brand-badge {
    background-color: var(--turquoise);
    color: #000;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}
.nav-link {
    color: var(--text-muted) !important;
    font-size: 0.95rem;
    margin: 0 5px;
    transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--accent-pink) !important;
}

/* Hero Elements */
.hero-section {
    position: relative;
    min-height: 90vh;
    padding: 140px 0 100px 0;
    background: radial-gradient(circle at 10% 20%, rgba(0, 229, 255, 0.08) 0%, transparent 45%),
                radial-gradient(circle at 90% 80%, rgba(217, 87, 125, 0.1) 0%, transparent 50%);
}
.text-gradient-hybrid {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--turquoise) 50%, var(--accent-orchid) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(60% 60% at 50% 50%, transparent 0%, var(--bg-dark) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Glassmorphism Design Styles */
.info-card-glass {
    background: var(--glass-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.border-turquoise-glowing {
    border: 1px solid rgba(0, 229, 255, 0.3) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), 0 0 15px var(--turquoise-glow);
}
.border-pink-glowing {
    border: 1px solid rgba(217, 87, 125, 0.35) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), 0 0 15px var(--accent-pink-glow);
}
.icon-circle {
    width: 65px;
    height: 65px;
    background-color: rgba(0, 229, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Section Decoration */
.section-title {
    font-size: 2.25rem;
    font-weight: 700;
}
.title-underline-gradient {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--turquoise), var(--accent-pink));
    border-radius: 2px;
}

/* Custom Buttons styling with Hybrid Hover effect */
.btn-turquoise {
    background-color: var(--turquoise);
    color: #040810 !important;
    border-radius: 8px;
    border: 1px solid var(--turquoise);
    box-shadow: 0 2px 10px rgba(0, 229, 255, 0.2);
    transition: all 0.2s ease-in-out;
}
.btn-turquoise:hover {
    background-color: var(--accent-pink);
    border-color: var(--accent-pink);
    box-shadow: 0 5px 18px var(--accent-pink-glow);
    transform: translateY(-2px);
    color: var(--text-white) !important;
}
.btn-pink {
    background-color: var(--accent-pink);
    color: var(--text-white) !important;
    border-radius: 8px;
    border: 1px solid var(--accent-pink);
    box-shadow: 0 2px 10px var(--accent-pink-glow);
    transition: all 0.2s ease-in-out;
}
.btn-pink:hover {
    background-color: var(--accent-orchid);
    border-color: var(--accent-orchid);
    box-shadow: 0 5px 18px var(--accent-orchid-glow);
    transform: translateY(-2px);
}
.btn-outline-light {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.2s ease;
}
.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Topic Dynamic Cards */
.topic-card {
    background-color: rgba(13, 27, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.topic-card:hover {
    border-color: var(--accent-pink);
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 10px var(--accent-pink-glow);
}

/* Custom Secure Timeline Styles */
.timeline {
    position: relative;
    padding: 30px 0;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: rgba(217, 87, 125, 0.2);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}
.timeline-item {
    position: relative;
    width: 50%;
    padding: 10px 40px;
}
.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }
.timeline-badge {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    top: 15px;
    z-index: 2;
}
.badge-turquoise {
    border: 2px solid var(--turquoise);
    color: var(--turquoise);
}
.badge-pink {
    border: 2px solid var(--accent-pink);
    color: var(--accent-pink);
}
.badge-gradient {
    border: 2px solid var(--accent-orchid);
    color: var(--accent-orchid);
    box-shadow: 0 0 8px var(--accent-orchid-glow);
}
.timeline-item.left .timeline-badge { right: -20px; }
.timeline-item.right .timeline-badge { left: -20px; }
.timeline-panel {
    padding: 20px;
    background: rgba(13, 27, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}
.highlight-panel {
    border-color: var(--accent-pink);
    background: linear-gradient(135deg, rgba(217, 87, 125, 0.1) 0%, rgba(13, 27, 42, 0.6) 100%);
    box-shadow: 0 0 12px var(--accent-pink-glow);
}

/* Custom Accordion overrides */
.accordion-custom .accordion-item {
    border: none;
    border-bottom: 1px solid var(--glass-border-pink);
    margin-bottom: 10px;
}
.accordion-custom .accordion-button {
    background-color: transparent !important;
    color: var(--text-white) !important;
    border: none;
    box-shadow: none !important;
    font-weight: 600;
}
.accordion-custom .accordion-button:not(.collapsed) {
    color: var(--accent-pink) !important;
}
.accordion-custom .accordion-button::after {
    filter: invert(1);
}

/* Submission Elements */
.email-icon-box {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.box-turquoise {
    background-color: rgba(0, 229, 255, 0.1);
    color: var(--turquoise);
}
.box-pink {
    background-color: rgba(217, 87, 125, 0.1);
    color: var(--accent-pink);
}

/* Calculator & Tables Style */
.bg-glass-card {
    background-color: rgba(4, 8, 16, 0.6);
    border: 1px solid var(--glass-border-pink);
}
.bg-glass-card-info {
    background-color: rgba(217, 87, 125, 0.03);
    border: 1px solid rgba(217, 87, 125, 0.2);
}
.border-pink-subtle {
    border-bottom: 1px solid rgba(217, 87, 125, 0.15) !important;
}
.table-group-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.calculator-card {
    background: rgba(13, 27, 42, 0.5);
    border-radius: 16px;
    border: 1px solid var(--glass-border-pink);
}
.total-result-container {
    background-color: var(--bg-darker);
    border: 1px solid rgba(217, 87, 125, 0.3);
}

/* Form Styling overrides */
.form-select, .form-control {
    border-color: rgba(217, 87, 125, 0.2) !important;
}
.form-select:focus, .form-control:focus {
    border-color: var(--accent-pink) !important;
    box-shadow: 0 0 0 0.25rem rgba(217, 87, 125, 0.25) !important;
}

/* Responsive Handling overrides */
@media (max-width: 991.98px) {
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item.left { left: 0; text-align: left; }
    .timeline-item.right { left: 0; text-align: left; }
    .timeline-item.left .timeline-badge, 
    .timeline-item.right .timeline-badge { left: 11px; right: auto; }
}
