/* ==========================================================================
   Galaxy Trip - Custom Improvements CSS
   ========================================================================== */

/* Global Improvements
   ========================================================================== */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Noto Sans Armenian', sans-serif;
    overflow-x: hidden;
}

/* Typography Improvements
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans Armenian', sans-serif;
    font-weight: 600;
}

p {
    line-height: 1.8;
}

/* Navbar Improvements
   ========================================================================== */

.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s ease;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fd5631 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: #fd5631;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Button Improvements
   ========================================================================== */

.btn {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #fd5631 0%, #fd7e54 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(253, 86, 49, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 86, 49, 0.4);
    background: linear-gradient(135deg, #fd7e54 0%, #fd5631 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Card Improvements
   ========================================================================== */

.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Form Improvements
   ========================================================================== */

.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #efecf3;
    transition: all 0.3s ease;
    font-family: 'Noto Sans Armenian', sans-serif;
}

.form-control:focus,
.form-select:focus {
    border-color: #fd5631;
    box-shadow: 0 0 0 0.2rem rgba(253, 86, 49, 0.15);
}

/* Image Improvements
   ========================================================================== */

img {
    max-width: 100%;
    height: auto;
}

.img-hover {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.img-hover:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

/* Footer Improvements
   ========================================================================== */

.footer {
    background: linear-gradient(180deg, #1f1b2d 0%, #2a2540 100%);
}

.footer a {
    transition: color 0.3s ease, padding-right 0.3s ease;
}

.footer a:hover {
    color: #fd5631 !important;
    padding-right: 0.5rem;
}

/* Scroll to Top Button
   ========================================================================== */

.btn-scroll-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.btn-scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.btn-scroll-top:hover {
    background-color: #fd5631;
    transform: translateY(-3px);
}

/* Loading Animation
   ========================================================================== */

.page-loading {
    transition: opacity 0.3s ease;
}

.page-spinner {
    border-color: #fd5631;
    border-right-color: transparent;
}

/* Icon Box Improvements
   ========================================================================== */

.icon-box-mobile {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-box-mobile:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(253, 86, 49, 0.15) !important;
}

.icon-box-media-mobile {
    transition: all 0.3s ease;
}

.icon-box-mobile:hover .icon-box-media-mobile {
    transform: rotate(5deg) scale(1.1);
}

/* Search Form Improvements
   ========================================================================== */

.search-form-mobile .form-control {
    border: 2px solid #efecf3;
}

.search-form-mobile .form-control:focus {
    border-color: #fd5631;
    box-shadow: 0 4px 12px rgba(253, 86, 49, 0.1);
}

.search-form-mobile .btn-search-mobile {
    background: linear-gradient(135deg, #fd5631 0%, #fd7e54 100%);
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Hero Image Improvements
   ========================================================================== */

.hero-mobile-image {
    animation: fadeInUp 0.8s ease-out;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tour Grid Improvements
   ========================================================================== */

.tour-grid article {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.img-box {
    position: relative;
    overflow: hidden;
}

.img-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.img-box:hover::before {
    opacity: 1;
}

/* Content Section Improvements
   ========================================================================== */

.content-section {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-box {
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Page Title Box
   ========================================================================== */

.page-title-box {
    animation: gradientShift 6s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Responsive Improvements
   ========================================================================== */

@media (max-width: 768px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin-bottom: 0.25rem;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background-color: rgba(253, 86, 49, 0.1);
    }
}

/* Accessibility Improvements
   ========================================================================== */

.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(253, 86, 49, 0.2);
}

/* Skip to main content */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1rem;
    background-color: #fd5631;
    color: white;
    text-decoration: none;
}

.skip-to-main:focus {
    left: 50%;
    transform: translateX(-50%);
}

/* Print Styles
   ========================================================================== */

@media print {
    .navbar,
    .footer,
    .btn-scroll-top {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
    }
}

/* Dark Mode Support (Optional)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed in future */
}

/* Performance Optimization
   ========================================================================== */

.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Utility Classes
   ========================================================================== */

.text-gradient {
    background: linear-gradient(135deg, #fd5631 0%, #5d3cf2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.border-radius-lg {
    border-radius: 15px !important;
}

.border-radius-xl {
    border-radius: 20px !important;
}

/* Smooth Scrolling
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

/* Selection Style
   ========================================================================== */

::selection {
    background-color: #fd5631;
    color: white;
}

::-moz-selection {
    background-color: #fd5631;
    color: white;
}

