/* Base Variables */
:root {
    --primary: #4361EE;
    --primary-light: #4cc9f0;
    --primary-dark: #3A0CA3;
    --secondary: #7209B7;
    --accent: #F72585;
    
    --dark: #2B2D42;
    --dark-alt: #1F2030;
    --light: #F8F9FA;
    --white: #FFFFFF;
    
    --success: #4CAF50;
    --danger: #F44336;
    --warning: #FF9800;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-float: 0 25px 50px -12px rgba(67, 97, 238, 0.25);
}

/* Global Styles */
body {
    font-family: var(--font-body);
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
}

.font-outfit {
    font-family: var(--font-heading);
}

.text-dark-custom { color: var(--dark); }
.text-primary { color: var(--primary) !important; }
.text-primary-light { color: var(--primary-light) !important; }

/* Custom Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
    color: var(--white);
}

.btn-outline-primary-custom {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary-custom:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.3);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--dark);
    color: var(--dark);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--dark);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-light-custom {
    background-color: var(--white);
    color: var(--primary);
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
}

.btn-light-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    background-color: #f8f9fa;
}

/* Navbar */
.custom-navbar {
    background-color: transparent;
    transition: all 0.4s ease;
    padding: 20px 0;
}

.custom-navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 12px 0;
}

.brand-mari { color: var(--primary); }
.brand-travel { color: var(--dark); }

.navbar-brand {
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: 80px;
    overflow: hidden;
    background-color: var(--light);
}

.hero-bg-shape {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(67,97,238,0.08) 0%, rgba(114,9,183,0.03) 50%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(40px);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge-custom {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.floating-img {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.hero-image-wrapper {
    position: relative;
    z-index: 1;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(67,97,238,0.1), rgba(114,9,183,0.1));
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: blur(20px);
}

/* Typography styles */
.tracking-wide {
    letter-spacing: 2px;
}

/* Services */
.services-section {
    background-color: var(--white);
    position: relative;
}

.service-card {
    border-radius: 20px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-float);
    z-index: 2;
}

.service-card-highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.service-card-highlight:hover {
    transform: scale(1.05) translateY(-15px);
}

@media (max-width: 991px) {
    .service-card-highlight {
        transform: scale(1);
    }
    .service-card-highlight:hover {
        transform: translateY(-15px);
    }
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--accent);
    color: white;
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
}

.card-icon-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.card-icon-wrapper img {
    height: 70px;
    object-fit: contain;
    z-index: 2;
    transition: transform 0.3s ease;
}

.service-card:hover .card-icon-wrapper img {
    transform: scale(1.1);
}

.light-blue-bg { background-color: rgba(67, 97, 238, 0.1); }
.light-purple-bg { background-color: rgba(114, 9, 183, 0.1); }
.glass-bg { 
    background: rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(10px);
}

/* Promo Section */
.promo-section {
    background-color: var(--dark-alt);
    margin-top: 50px;
}

.promo-bg-decor {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(67,97,238,0.2), transparent 40%),
                radial-gradient(circle at bottom left, rgba(247,37,133,0.15), transparent 40%);
    z-index: 0;
}

.promo-card {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.95), rgba(58, 12, 163, 0.95));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.promo-form .promo-input-wrapper {
    transition: all 0.3s ease;
}

.promo-form .promo-input-wrapper:focus-within {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2) !important;
}

.promo-form .form-control:focus {
    box-shadow: none;
    background-color: transparent;
}

/* Contact Us */
.contact-section {
    background-color: var(--white);
    position: relative;
}

.contact-img-wrapper {
    padding: 2rem;
}

.blob-shape {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: var(--light);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite both alternate;
    z-index: 0;
}

@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}

.contact-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-item:hover {
    transform: translateX(10px);
    border-color: rgba(67, 97, 238, 0.1);
    box-shadow: var(--shadow-md) !important;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.bg-light-primary { background-color: rgba(67, 97, 238, 0.1); }
.bg-light-success { background-color: rgba(76, 175, 80, 0.1); }
.bg-light-danger { background-color: rgba(244, 67, 54, 0.1); }
.bg-light-warning { background-color: rgba(255, 152, 0, 0.1); }

/* Footer */
.bg-dark-custom { background-color: var(--dark-alt); }

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: var(--white);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    color: var(--white);
}

.nav-link-hover:hover {
    color: var(--white) !important;
    text-decoration: underline !important;
}

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.6);
}

/* Animations that trigger on scroll */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Media Queries */
@media (max-width: 991.98px) {
    .custom-navbar {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        padding: 10px 0;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }
    .navbar-collapse {
        padding: 1rem 0;
        text-align: center;
    }
    .nav-link::after {
        display: none;
    }
    .contact-img-wrapper {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .blob-shape {
        width: 100%;
        height: 100%;
        top: 0; left: 0;
    }
}

@media (max-width: 767.98px) {
    /* Typographic adjustments */
    .display-4 { font-size: 2.5rem; }
    .display-6 { font-size: 2rem; }
    .hero-title { font-size: 2.5rem !important; }
    
    /* Hero adjustments */
    .hero-section {
        padding-top: 120px;
        padding-bottom: 40px;
        text-align: center;
    }
    .hero-bg-shape {
        width: 150vw;
        height: 150vw;
        top: -10%;
        right: -25%;
    }
    .hero-image-wrapper::before {
        width: 250px;
        height: 250px;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Buttons in Hero */
    .hero-section .d-flex {
        flex-direction: column;
        width: 100%;
    }
    .hero-section .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Promo form */
    .promo-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem !important;
    }
    .promo-content {
        padding-right: 0 !important;
        margin-bottom: 1.5rem !important;
    }
    .promo-form {
        max-width: 100% !important;
    }
    .promo-form .promo-input-wrapper {
        flex-direction: column;
        border-radius: 20px !important;
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
    }
    .promo-form .promo-input-wrapper span {
        display: none;
    }
    .promo-form .form-control {
        border-radius: 50px !important;
        margin-bottom: 15px;
        text-align: center;
        background: rgba(255,255,255,0.1) !important;
        color: white;
        border: 1px solid rgba(255,255,255,0.3) !important;
    }
    .promo-form .form-control::placeholder {
        color: rgba(255,255,255,0.7);
    }
    .promo-form .btn {
        margin: 0 !important;
        width: 100%;
    }
    
    /* Services tweaks */
    .service-card {
        margin-bottom: 20px;
    }
    
    /* Footer */
    .social-links {
        justify-content: center;
        margin-top: 15px;
    }
    .footer-section .d-flex {
        flex-direction: column;
        text-align: center;
    }
    .footer-section .mt-3 {
        margin-top: 15px !important;
    }
}

/* Dark Mode Overrides */
[data-bs-theme="dark"] {
    --dark: #F8F9FA;
    --dark-alt: #0d1117;
    --light: #161b22;
    --white: #21262d;
    --text-muted: #8b949e;
}

[data-bs-theme="dark"] body {
    background-color: var(--light);
}

[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .contact-item {
    background-color: var(--white) !important;
}

[data-bs-theme="dark"] .text-dark,
[data-bs-theme="dark"] .text-dark-custom {
    color: var(--dark) !important;
}

[data-bs-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

[data-bs-theme="dark"] .custom-navbar.scrolled {
    background: rgba(33, 38, 45, 0.9);
}

@media (max-width: 991.98px) {
    [data-bs-theme="dark"] .custom-navbar {
        background: rgba(33, 38, 45, 0.98);
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }
}

[data-bs-theme="dark"] .service-card,
[data-bs-theme="dark"] .contact-item {
    border: 1px solid rgba(255,255,255,0.05);
}

[data-bs-theme="dark"] .promo-input-wrapper {
    background-color: rgba(0,0,0,0.3) !important;
    border: 1px solid rgba(255,255,255,0.1);
}

[data-bs-theme="dark"] .promo-input-wrapper input {
    color: var(--dark) !important;
}

[data-bs-theme="dark"] .input-group-text i {
    color: var(--dark) !important;
}

[data-bs-theme="dark"] .brand-travel,
[data-bs-theme="dark"] .nav-link,
[data-bs-theme="dark"] .navbar-toggler i {
    color: var(--dark) !important;
}

[data-bs-theme="dark"] .btn-outline-custom {
    color: var(--dark);
    border-color: rgba(255,255,255,0.2);
}

[data-bs-theme="dark"] .btn-outline-custom:hover {
    background-color: var(--dark);
    color: var(--light) !important;
}

[data-bs-theme="dark"] .social-links a {
    color: #ffffff !important;
    background: rgba(255,255,255,0.1);
}