/* Custom CSS for GGAFlightStudios Website */

:root {
    --primary-color: #1e5799;
    --primary-gradient: linear-gradient(135deg, #1e5799 0%, #2989d8 50%, #3ba8e6 100%);
    --secondary-color: #3ba8e6;
    --accent-color: #00b4d8;
    --dark-color: #0a1e2e;
    --light-gray: #f8f9fa;
    --text-muted: #6c757d;
    --white: #ffffff;
    --success-color: #28a745;
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

.section-title {
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Navigation */
.navbar {
    background: var(--primary-gradient) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

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

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
    /* Ensure smooth scrolling performance */
    will-change: auto;
    transform: translateZ(0); /* Hardware acceleration */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Smooth transition for opacity changes */
    transition: opacity 0.1s ease-out;
}

.hero-logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: logoFloat 3s ease-in-out infinite;
}

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

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.floating-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    animation: cardFloat 4s ease-in-out infinite;
    margin-top: 2rem;
    /* Optimize for smooth parallax transforms */
    will-change: transform;
    transform: translateZ(0); /* Hardware acceleration */
    transition: transform 0.1s ease-out;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Project Showcase */
.project-content {
    padding: 2rem 0;
}

.project-badge {
    margin-bottom: 1rem;
}

.project-badge .badge {
    margin-right: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.project-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.project-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.project-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.feature-item i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.project-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.project-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.showcase-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 400px;
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.3s ease;
}

.showcase-card:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

.metric-display {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.metric-label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.landing-grade {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.grade-label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.grade-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4ade80;
}

/* Service Cards */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Contact Section */
.contact-card {
    text-align: center;
    padding: 1.5rem;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.contact-card h5 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.support-note {
    margin-top: 3rem;
}

.alert-light {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.alert-light .alert-link {
    color: #90cdf4;
    text-decoration: none;
}

.alert-light .alert-link:hover {
    color: white;
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-logo {
        max-width: 150px;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .showcase-card {
        transform: none;
        margin-top: 2rem;
    }
    
    .metric-display {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-right: 0 !important;
    }
    
    .project-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .project-buttons .btn {
        width: 100%;
        margin-right: 0 !important;
    }
}

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

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

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a4a7a 0%, #2380c4 50%, #3298d1 100%);
    color: white;
}

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

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

/* Smooth Animations */
* {
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Loading Animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 2s infinite;
}