/* Global Styles - Shared across all pages */

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Skip Link - Hidden until focused (for keyboard/screen reader users) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #06b6d4;
    color: #000;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    z-index: 10000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Global Button Link Reset - Remove underlines from all button-styled links */
a[class*="btn-"],
a[class*="btn-"]:hover,
a[class*="btn-"]:visited,
a[class*="btn-"]:active,
a[class*="btn-"]:focus {
    text-decoration: none;
}

/* Navigation Bar (shared across pages) */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #0f1729;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo:focus {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
    border-radius: 4px;
}

.logo:focus:not(:focus-visible) {
    outline: none;
}

.logo:active,
.logo:visited {
    text-decoration: none;
}

.logo span {
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    color: white;
}

.logo span {
    font-size: 22px;
    font-weight: bold;
    color: white;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a:focus {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
    border-radius: 4px;
}

.nav-links a:focus:not(:focus-visible) {
    outline: none;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.nav-link-with-dropdown {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    color: #94a3b8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
    transition: color 0.3s ease;
}

.nav-link-with-dropdown:hover {
    color: #ffffff;
}

.nav-link-with-dropdown:focus {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
    border-radius: 4px;
}

.nav-link-with-dropdown:focus:not(:focus-visible) {
    outline: none;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 20px);
    left: 0;
    min-width: 320px;
    background: #1a2234;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.keyboard-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(0, 188, 212, 0.1);
    color: #ffffff;
}

.dropdown-item:focus {
    outline: 2px solid #06b6d4;
    outline-offset: -2px;
    background: rgba(0, 188, 212, 0.1);
    color: #ffffff;
}

.dropdown-item:focus:not(:focus-visible) {
    outline: none;
}

.dropdown-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #00bcd4;
}

.dropdown-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.dropdown-item-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-signin {
    padding: 8px 18px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-signin:hover {
    color: #ffffff;
}

.btn-signin:focus {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
    border-radius: 4px;
}

.btn-signin:focus:not(:focus-visible) {
    outline: none;
}

.btn-signin:active,
.btn-signin:visited {
    text-decoration: none;
}

.btn-get-started {
    padding: 8px 20px;
    background: linear-gradient(135deg, #00bcd4 0%, #2196f3 100%);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-get-started:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.4);
    text-decoration: none;
}

.btn-get-started:active,
.btn-get-started:visited {
    color: white;
    text-decoration: none;
}

.btn-get-started:focus {
    color: white;
    text-decoration: none;
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
}

.btn-get-started:focus:not(:focus-visible) {
    outline: none;
}

/* Footer */
footer {
    padding: 48px 24px 32px 24px;
    background: #070b1a;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand .logo-container {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
    margin-bottom: 16px;
}

.footer-brand .logo {
    margin-bottom: 0;
}

.footer-brand .logo-tagline {
    color: #64748b;
    font-size: 11px;
    font-weight: 400;
    text-align: left;
    margin: -4px 0 0 50px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.footer-brand p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

/* Anniversary Badge - Seal Style */
.anniversary-badge {
    margin-top: 20px;
    display: inline-block;
}

.anniversary-badge svg {
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.anniversary-badge svg text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Social Media Links */
.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    transform: translateY(-2px);
}

.footer-social a:focus {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-column h4 {
    color: white;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #64748b;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #94a3b8;
}

.footer-column a:focus {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
    border-radius: 2px;
}

.footer-column a:focus:not(:focus-visible) {
    outline: none;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
    color: #475569;
    font-size: 13px;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #475569;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #64748b;
}

.footer-links a:focus {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
    border-radius: 2px;
}

.footer-links a:focus:not(:focus-visible) {
    outline: none;
}

/* Mobile Menu Hamburger Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger to X animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

/* Mobile Menu Panel */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, #0f1729 0%, #1a2744 100%);
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-header .logo {
    gap: 8px;
}

.mobile-menu-header .logo span {
    font-size: 18px;
}

.mobile-menu-header .logo-icon {
    width: 32px;
    height: 32px;
}

.mobile-menu-header .logo-icon svg {
    width: 26px;
    height: 26px;
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-close:focus {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
}

.mobile-menu-close svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
}

/* Mobile Menu Navigation */
.mobile-menu-nav {
    padding: 16px 0;
}

.mobile-menu-section {
    padding: 8px 20px;
}

.mobile-menu-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-left: 4px;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus {
    background: rgba(6, 182, 212, 0.1);
    color: #ffffff;
}

.mobile-menu-link:focus {
    outline: 2px solid #06b6d4;
    outline-offset: -2px;
}

.mobile-menu-link svg {
    width: 20px;
    height: 20px;
    color: #06b6d4;
    flex-shrink: 0;
}

.mobile-menu-link-text {
    display: flex;
    flex-direction: column;
}

.mobile-menu-link-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.mobile-menu-link-desc {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

/* Mobile Menu Divider */
.mobile-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 16px 20px;
}

/* Mobile Menu Buttons */
.mobile-menu-buttons {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.mobile-menu-buttons .btn-signin {
    display: block;
    text-align: center;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

.mobile-menu-buttons .btn-signin:hover {
    background: rgba(255, 255, 255, 0.15);
}

.mobile-menu-buttons .btn-get-started {
    display: block;
    text-align: center;
    padding: 14px 20px;
    font-size: 15px;
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .header-buttons {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu,
    .mobile-menu-overlay {
        display: block;
    }

    .header-container {
        padding: 12px 16px;
    }

    .logo span {
        font-size: 18px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand .logo-tagline {
        margin-left: 46px;
    }

    footer {
        padding: 40px 16px 24px 16px;
    }

    .footer-bottom {
        padding-top: 20px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 16px;
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .header-container {
        padding: 12px 24px;
    }

    .dropdown-menu {
        min-width: 280px;
    }
}
