/* Custom CSS for AOC Abu Dhabi Website */

/* Root Variables */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --white-color: #ffffff;
    --gradient-primary: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    --gradient-secondary: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 700;
}

/* Navigation */
.navbar {
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background-color: white !important;
}

.navbar.bg-white {
    background-color: white !important;
}

.navbar.bg-transparent {
    background-color: white !important;
}

/* Ensure navbar text colors are correct */
.navbar-light .navbar-nav .nav-link {
    color: rgba(0, 0, 0, 0.55) !important;
}

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

.navbar-light .navbar-brand {
    color: var(--primary-color) !important;
}

.navbar-light .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Airline Logo Styles */
.airline-logo img {
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    cursor: pointer;
    background: white;
    padding: 4px;
}

.airline-logo img:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow);
    filter: brightness(1.1);
}

/* Card hover effects for member directory */
.card:hover .airline-logo img {
    transform: scale(1.12);
}

.navbar-brand h5 {
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
}



.hero-content {
    position: relative;
    z-index: 10;
}

.hero-buttons .btn {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    border-radius: 6px;
}

.hero-content h1 {
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
}

.hero-content .lead {
    font-size: 1.125rem;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    opacity: 0.95;
    line-height: 1.5;
}

.airplane-animation {
    animation: float 3s ease-in-out infinite;
    transform: scale(0.8);
}

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

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

/* Rotating Banner Styles */
.banner-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    /* Fallback background for when images don't load */
    background-color: var(--primary-color);
    /* Ensure images are crisp and visible */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.banner-slide.active {
    opacity: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.3) 0%, rgba(11, 94, 215, 0.3) 100%);
    z-index: 2;
}

/* Banner Navigation Dots */
.banner-dots {
    z-index: 10;
    display: flex;
    gap: 10px;
    align-items: center;
    bottom: 2rem;
    position: absolute;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.banner-dot.active {
    background-color: white;
    border-color: var(--primary-color);
    transform: scale(1.2);
}

/* Stats Section */
.stat-icon {
    transition: var(--transition);
}

.stat-icon:hover {
    transform: scale(1.1);
}

.counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Cards */
.card {
    transition: var(--transition);
    border: none;
    border-radius: var(--border-radius-lg);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

.feature-card {
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Mission Section */
.mission-icon {
    width: 60px;
    height: 60px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mission-icon:hover {
    background: var(--primary-color);
    color: white !important;
}

/* Chairman Message */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.chairman-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
}

.btn-primary:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
    color: white !important;
}

/* Member Login Button Specific Styles */
.navbar-nav .btn-primary,
.navbar-nav .btn-primary.text-white {
    color: white !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.navbar-nav .btn-primary:hover,
.navbar-nav .btn-primary.text-white:hover {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    background-color: #0b5ed7 !important;
    border-color: #0b5ed7 !important;
}

/* Override any conflicting Bootstrap styles */
.navbar-nav .nav-link.btn.btn-primary {
    color: white !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.navbar-nav .nav-link.btn.btn-primary:hover {
    color: white !important;
    background-color: #0b5ed7 !important;
    border-color: #0b5ed7 !important;
}

.btn-warning {
    background: var(--warning-color);
    border-color: var(--warning-color);
    color: var(--dark-color);
    text-shadow: none;
    font-weight: 600;
}

.btn-warning:hover {
    background: #e0a800;
    border-color: #e0a800;
    color: var(--dark-color);
}

.btn-outline-light:hover {
    background: var(--white-color);
    color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--dark-color) !important;
    color: white !important;
    position: relative;
    z-index: 10;
}

footer a {
    transition: var(--transition);
    color: #d1d5db !important;
}

footer a:hover {
    color: var(--primary-color) !important;
}

footer .text-muted {
    color: #9ca3af !important;
}

footer h6 {
    color: #fbbf24 !important;
}

.social-links a {
    transition: var(--transition);
    color: #d1d5db !important;
}

.social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Form Controls */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Animations */
.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

.animate__fadeInRight {
    animation-name: fadeInRight;
}

.animate__delay-1s {
    animation-delay: 0.3s;
}

.animate__delay-2s {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 45vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-buttons .btn {
        margin-bottom: 0.5rem;
        width: auto;
    }
    
    .airplane-animation {
        transform: scale(0.6);
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 40vh;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content .lead {
        font-size: 0.95rem;
    }
    
    .counter {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.border-custom {
    border: 2px solid var(--primary-color);
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #0b5ed7;
    transform: translateY(-3px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
}

/* Print Styles */
@media print {
    .navbar,
    .hero-section,
    .footer,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        break-inside: avoid;
    }
} 