/* ========== Global Reset & Reset Attributes ========== */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.logo-container {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.logo-container:hover {
    opacity: 0.85;
}

/* ========== Modern Mature Header (Midnight Glassmorphism) ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    min-height: 70px;
    height: auto;
    /* Professional Midnight Slate Surface */
    background: rgba(15, 23, 42, 0.98); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Refined Subtle Accent Line */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3182ce, #4299e1, #3182ce);
    opacity: 0.7;
}

.header header {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    min-height: 70px;
}

/* Logo Styling: Refined weight & scale */
.header h1 {
    color: #ffffff; 
    font-size: 20px;
    font-weight: 600; /* Mature semi-bold */
    margin: 0;
    display: flex;
    align-items: center;
    letter-spacing: -0.3px;
    text-shadow: none;
    position: relative;
}

/* Modern Hover Underline for Logo */
.header h1::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3182ce;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.header h1:hover::after {
    width: 100%;
}

/* ========== Main Navigation ========== */
.header nav {
    display: flex;
    align-items: center;
}

.header nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 24px; /* Mature breathable spacing */
    margin: 0;
    padding: 0;
}

.header nav ul li a {
    color: rgba(255, 255, 255, 0.85); /* Off-white for readability */
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
}

.header nav ul li a.active {
    background: rgba(49, 130, 206, 0.2);
    color: #ffffff;
    font-weight: 600;
    border-color: rgba(66, 153, 225, 0.4);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header nav ul li a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.1);
}

/* CTA Button Styling (Primary Action) */
.header nav ul li a.cta-button {
    background: #3182ce;
    color: #ffffff !important;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.header nav ul li a.cta-button:hover {
    background: #2b6cb0;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(49, 130, 206, 0.4);
}

/* Secondary Button Utility */
.header nav ul li a.secondary-button {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.header nav ul li a.secondary-button:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ========== Modern Light Footer (Refined & Professional) ========== */
.footer-contact {
    background: #f8fafc; /* Sophisticated Light Slate */
    margin: 80px 0 0 0;
    padding: 0;
    border-top: 1px solid #e2e8f0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.footer-contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-contact-content img {
    width: 200px;
    height: auto;
    margin-bottom: 24px;
    opacity: 0.85;
}

.footer-contact-content p {
    color: #64748b; /* Muted Slate */
    font-size: 14px;
    line-height: 1.7;
    max-width: 600px;
}

.footer-contact-content a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
}

.footer-contact-content a:hover {
    text-decoration: underline;
    color: #1a365d;
}

.footer-contact-content .notice {
    font-size: 13px;
    color: #4a5568;
    margin-top: 20px;
    padding: 16px 24px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #3182ce;
    max-width: 700px;
}

.footer-copyright {
    border-top: 1px solid #e2e8f0;
    padding: 24px;
    background: #f1f5f9;
}

.footer-copyright p {
    margin: 0;
    color: #94a3b8;
    font-size: 12px;
}

/* ========== Back to Top Button (Midnight Theme) ========== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1a365d;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background: #3182ce;
    transform: translateY(-4px);
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .header header { padding: 0 20px; min-height: 60px; }
    .header nav ul { gap: 12px; }
    .header nav ul li a { padding: 8px 12px; font-size: 13px; }
    .footer-contact-content { padding: 40px 24px 20px; }
}

@media (max-width: 480px) {
    .header h1 { font-size: 18px; }
    .header nav ul { gap: 8px; }
    /* Hide specific nav text if too crowded on mobile */
    .header nav ul li a span { display: none; }
}