/* Base Styles */
* {
    font-family: 'Source Sans 3', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in-left {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-right {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scale-in {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes wave {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-25%); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-ring { animation: pulse-ring 2s ease-out infinite; }
.animate-slide-up { animation: slide-up 0.8s ease-out forwards; }
.animate-slide-in-left { animation: slide-in-left 0.8s ease-out forwards; }
.animate-slide-in-right { animation: slide-in-right 0.8s ease-out forwards; }
.animate-scale-in { animation: scale-in 0.6s ease-out forwards; }
.animate-rotate-slow { animation: rotate-slow 30s linear infinite; }
.animate-wave { animation: wave 15s linear infinite; }

/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Navigation Styles */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #0ea5e9);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Styles */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 60;
}

.dropdown > .dropdown-menu {
    margin-top: 0 !important;
}

.dropdown:hover > .dropdown-menu,
.dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown.keyboard-open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
}

.dropdown-submenu > .dropdown-menu {
    left: 100%;
    top: 0;
    margin-left: 0;
    transform: translateX(10px);
}

.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.dropdown-submenu::after {
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    width: 12px;
    height: 100%;
}

.dropdown-menu.has-submenu {
    overflow: visible;
}

/* Hero Background Pattern */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(10, 37, 64, 0.05) 0%, transparent 70%);
}

/* Globe Animation */
.globe-container {
    position: relative;
}

.globe-ring {
    position: absolute;
    border: 2px solid rgba(14, 165, 233, 0.3);
    border-radius: 50%;
    animation: rotate-slow 20s linear infinite;
}

/* Card Hover Effects */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(10, 37, 64, 0.15);
}

.service-card .icon-wrapper {
    transition: all 0.4s ease;
}

.service-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #f59e0b, #0ea5e9);
}

/* Route Card */
.route-card {
    transition: all 0.4s ease;
}

.route-card:hover {
    transform: scale(1.02);
    border-color: #f59e0b;
}

.route-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0ea5e9, #f59e0b);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.route-card:hover::before {
    transform: scaleX(1);
}

.faq-content {
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
}

.faq-content p {
    margin: 0.75rem 0;
}

.faq-content a {
    color: #0ea5e9;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.faq-content a:hover {
    color: #0284c7;
    background-color: rgba(14, 165, 233, 0.12);
}

.faq-content ul,
.faq-content ol {
    margin: 0.85rem 0 0.85rem 1.25rem;
    padding: 0;
}

.faq-content li {
    margin: 0.4rem 0;
}

.faq-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.98rem;
}

.faq-content th,
.faq-content td {
    text-align: left;
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid #e2e8f0;
}

.faq-content thead th {
    color: #0a2540;
    background: #f8fafc;
    font-weight: 600;
}

.faq-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

article.content {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.8;
}

article.content h1 {
    color: #0a2540;
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

article.content h2 {
    color: #0a2540;
    font-size: 1.6rem;
    line-height: 1.35;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
}

article.content h3 {
    color: #0a2540;
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
}

article.content > p:first-of-type {
    color: #64748b;
    font-size: 0.95rem;
}

article.content p {
    margin: 0.9rem 0;
}

article.content a {
    color: #0ea5e9;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

article.content a:hover {
    color: #0284c7;
    background-color: rgba(14, 165, 233, 0.12);
}

article.content a:focus-visible {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
    border-radius: 0.2rem;
}

article.content ul,
article.content ol {
    margin: 0.9rem 0 0.9rem 1.25rem;
    padding: 0;
}

article.content li {
    margin: 0.45rem 0;
}

article.content figure {
    margin: 1.8rem 0;
}

article.content img {
    width: 100%;
    border-radius: 0.9rem;
}

article.content figcaption {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.6rem;
}

article.content blockquote {
    margin: 1.6rem 0;
    padding: 1rem 1.2rem;
    border-left: 4px solid #0ea5e9;
    background: #f1f5f9;
    color: #0f172a;
    border-radius: 0.75rem;
}

article.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    font-size: 0.98rem;
}

article.content th,
article.content td {
    text-align: left;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid #e2e8f0;
}

article.content thead th {
    color: #0a2540;
    background: #f8fafc;
    font-weight: 600;
}

article.content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.1rem;
    border-radius: 0.9rem;
    overflow-x: auto;
    margin: 1.4rem 0;
    font-size: 0.95rem;
}

article.content code {
    background: #e2e8f0;
    padding: 0.1rem 0.35rem;
    border-radius: 0.35rem;
    color: #0f172a;
}

article.content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

#toc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-link {
    display: block;
    color: #64748b;
    font-size: 0.95rem;
    padding: 0.35rem 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.toc-link:hover {
    color: #0ea5e9;
    background: #f1f5f9;
}

.toc-link.active {
    color: #ffffff;
    background: #0ea5e9;
}

.toc-link.level-3 {
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.toc-link.level-4 {
    padding-left: 2.2rem;
    font-size: 0.88rem;
}

/* Stats Counter */
.stat-item {
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, rgba(245, 158, 11, 0.5), transparent);
}

.stat-item:last-child::after {
    display: none;
}

/* Testimonial Card */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(10, 37, 64, 0.2);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0a2540 0%, #040f1a 50%, #0a2540 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
    animation: rotate-slow 40s linear infinite;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(245, 158, 11, 0.5);
}

.btn-outline {
    border: 2px solid #0ea5e9;
    color: #0ea5e9;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #0ea5e9;
    color: white;
    transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.mobile-menu.active {
    max-height: 100vh;
}

.mobile-submenu-content {
    display: none;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
a:focus-visible, button:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0ea5e9, #0a2540);
    border-radius: 5px;
}

/* Particle Effect */
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
}
