:root {
    --primary: #002366;
    --primary-rgb: 0, 35, 102;
    --secondary: #3A7BFF;
    --accent: #FFD700;
    --light: #FFFFFF;
    --dark: #333333;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
}

/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader:after {
    content: "";
    width: 60px;
    height: 60px;
    border: 5px solid var(--accent);
    border-top-color: transparent;
    border-radius: 50%;
    animation: loading 1s linear infinite;
}

@keyframes loading {
    to { transform: rotate(360deg); }
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 60px;
    background-color: var(--light);
    padding: 0.3rem 2rem;
    display: flex;
    align-items: center;
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 2px 10px rgba(var(--primary-rgb), 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 60px;
    margin-right: 1rem;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

/* Logo Styling */
.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary); /* Dark blue base */
    margin: 0;
    text-transform: none;
    position: relative;
}

.logo-x {
    color: var(--accent); /* Gold center */
    position: relative;
    display: inline-block;
}

/* Single-letter blended edges */
.logo-x {
    background: linear-gradient(
        90deg,
        var(--primary) 10%,      /* Blue left edge */
        var(--accent) 45% 55%,   /* Gold center */
        var(--primary) 90%       /* Blue right edge */
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none; /* Remove default shadows */
}

.tagline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; /* Bold */
    color: var(--secondary); /* Changed back to secondary */
    font-size: 1rem;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.3),
        0 0 4px rgba(0, 35, 102, 0.3); /* Added blue glow */
}

/* Navigation */
nav {
    background-color: var(--primary);
    padding: 1rem;
    position: sticky;
    top: 60px;
    z-index: 99;
    border-top: 1px solid rgba(255, 215, 0, 0.3); /* Optional: subtle gold separator */
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 1rem;
}

nav a {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    padding: 0.5rem 0;
    position: relative;
    font-size: 1.1rem;
}

nav a:hover {
    color: var(--accent);
}

nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s;
}

nav a:hover:after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    background-image: url('assets/aviation-background.jpg');
    background-size: cover;
    background-position: center 75%;
    color: var(--light);
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,35,102,0.8), rgba(0,35,102,0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    background-color: rgba(0,35,102,0.7);
    border-radius: 8px;
    backdrop-filter: blur(2px);
}

.hero h1 {
    color: var(--light) !important; /* Force white text */
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Services Section */
.services {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-intro {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600; /* Added semi-bold */
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); /* Improved contrast */
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.service-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    background: var(--light);
    text-align: left;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 14px 28px rgba(0,35,102,0.1), 0 10px 10px rgba(0,35,102,0.05);
}

.service-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    background: var(--light);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding: 12px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-icon[data-icon-type="accent"] {
    color: var(--accent);
}

.service-icon[data-icon-type="primary"] {
    color: var(--primary);
}

.service-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-card h3 {
    padding: 1.5rem 1.5rem 0;
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary);
}

.service-card ul {
    padding: 0 1.5rem 2rem;
    margin: 1rem 0 0;
    text-align: left;
    list-style: none;
}

.service-card li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* About & Team Section */
.about {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.about p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.team-section {
    margin-top: 3rem;
    padding: 3rem 2rem;
    background-color: #f5f9ff;
    border-top: 3px solid var(--accent);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.team-card {
    position: relative;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,35,102,0.1);
    transition: all 0.3s ease;
    border-top: 3px solid var(--accent);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,35,102,0.15);
}

.team-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: block;
}

.position {
    color: var(--secondary);
    font-weight: 600;
    margin: 0.5rem 0 1rem;
    font-size: 1.1rem;
    position: relative;
    display: inline-block;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.position::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.bio {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.bio strong {
    color: var(--primary);
    font-weight: 700;
}

.credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.credentials span {
    background-color: rgba(0, 35, 102, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.team-card:hover .credentials span {
    background-color: var(--secondary);
    color: var(--primary);
}

/* Contact Section */
.contact {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
    text-align: center;
}

.contact-container {
    max-width: 1200px;
    margin: 2rem auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    text-align: left;
}

.contact-info {
    padding: 1.5rem;
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.address, .contact-method {
    color: var(--primary);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.address svg, .contact-method svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.address[data-icon-type="accent"] {
    color: var(--accent);
}

/* Ensure paragraphs inside address are blue */
.address p {
    color: var(--primary); /* Force blue text */
}

.contact-method[data-icon-type="primary"] {
    color: var(--primary);
}

.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--light);
    text-align: center;
    padding: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin: 0.5rem 0;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: var(--primary);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
    font-size: 1.1rem;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--accent);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--light);
    border: 2px solid var(--light);
}

.cta-button.secondary:hover {
    background-color: var(--light);
    color: var(--primary);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    header {
        height: 73px; /* Adjusted header height for mobile */
    }
    nav {
        top: 73px; /* Adjusted nav position for mobile */
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    nav {
        top: 73px;
    }
    
    .header-logo {
        height: 50px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 300px;
        order: -1;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .team-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem;
    }
    
    .logo-container {
        flex-direction: column;
        text-align: center;
    }
    
    .header-logo {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .hero {
        min-height: 80vh;
        padding: 1rem;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        padding: 10px;
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
    }
}
