/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a5490;
    --primary-dark: #0f3a5f;
    --primary-light: #2e7bc4;
    --secondary-color: #f39c12;
    --secondary-dark: #d68910;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #1a5490 0%, #2980b9 50%, #3498db 100%);
    --gradient-secondary: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: linear-gradient(180deg, #0a0e1a 0%, #1a1f2e 30%, #1e2332 60%, #151820 100%);
    background-attachment: fixed;
    position: relative;
}

/* Cockpit interior base texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 100, 200, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 150, 255, 0.06) 0%, transparent 50%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 50, 100, 0.03) 2px,
            rgba(0, 50, 100, 0.03) 4px
        );
    background-size: 200% 200%, 150% 150%, 100% 20px;
    background-position: 0% 0%, 100% 100%, 0 0;
    pointer-events: none;
    z-index: 0;
}

/* Instrument panel grid pattern */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 150, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 150, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

/* Scroll animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

/* Elements start hidden for scroll animations */
.section > .container > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.visible > .container > * {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Image Canvas Slideshow */
.image-canvas {
    width: 100%;
    max-height: 50vh;
    height: 50vh;
    position: relative;
    overflow: hidden;
    background-color: #0a0e1a;
    margin-top: 90px; /* Push below fixed navbar - increased for better spacing */
    padding-top: 10px; /* Additional padding for extra clearance */
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid rgba(0, 150, 255, 0.3);
}

.canvas-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0a0e1a;
}

.canvas-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    opacity: 1;
}

/* Navigation - Cockpit control panel style */
.navbar {
    background: linear-gradient(180deg, rgba(15, 20, 30, 0.95) 0%, rgba(10, 15, 25, 0.98) 100%);
    backdrop-filter: blur(15px);
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(0, 150, 255, 0.2);
    position: relative;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 2px solid rgba(0, 150, 255, 0.4);
}

.navbar.scrolled {
    background: linear-gradient(180deg, rgba(10, 15, 25, 0.98) 0%, rgba(5, 10, 20, 0.99) 100%);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(0, 150, 255, 0.3);
    border-bottom: 2px solid rgba(0, 150, 255, 0.6);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand h1 {
    color: #00aaff;
    font-size: 1.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(0, 150, 255, 0.5);
}

.nav-brand h1:hover {
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(0, 150, 255, 0.8);
    color: #00ccff;
}

.nav-brand a {
    text-decoration: none;
    color: inherit;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #b0c4de;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00aaff, #00ccff);
    box-shadow: 0 0 8px rgba(0, 150, 255, 0.6);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #00ccff;
    text-shadow: 0 0 8px rgba(0, 150, 255, 0.6);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero Section - Cockpit windshield view */
.hero {
    height: 100vh;
    background: linear-gradient(180deg, #0a0e1a 0%, #1a1f2e 50%, #1e2332 100%);
    background-image: 
        radial-gradient(circle at 50% 30%, rgba(0, 100, 200, 0.15) 0%, transparent 60%),
        url('images/hero-bg.jpg');
    background-size: 200% 200%, cover;
    background-position: 50% 30%, center;
    background-blend-mode: screen, normal;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
    overflow: hidden;
    border-bottom: 3px solid rgba(0, 150, 255, 0.3);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 98%,
            rgba(0, 150, 255, 0.1) 99%,
            rgba(0, 150, 255, 0.1) 100%
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 98%,
            rgba(0, 150, 255, 0.1) 99%,
            rgba(0, 150, 255, 0.1) 100%
        );
    background-size: 100% 50px, 50px 100%;
    opacity: 0.4;
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

/* Cockpit instrument panel frame effect */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 4px solid rgba(0, 150, 255, 0.3);
    border-radius: 0;
    box-shadow: 
        inset 0 0 50px rgba(0, 100, 200, 0.2),
        0 0 30px rgba(0, 150, 255, 0.1);
    pointer-events: none;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.6;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 150, 255, 0.3);
    border-radius: 8px;
    box-shadow: 
        0 0 30px rgba(0, 150, 255, 0.2),
        inset 0 0 30px rgba(0, 100, 200, 0.1);
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 
        0 0 10px rgba(0, 150, 255, 0.8),
        0 0 20px rgba(0, 150, 255, 0.5),
        2px 2px 8px rgba(0,0,0,0.8);
    animation: fadeInUp 1s ease-out 0.2s both;
    letter-spacing: -0.5px;
    color: #00ccff;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 
        0 0 8px rgba(0, 150, 255, 0.6),
        1px 1px 4px rgba(0,0,0,0.8);
    animation: fadeInUp 1s ease-out 0.4s both;
    font-weight: 300;
    color: #b0c4de;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 36px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: var(--white);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.02);
}

/* Sections - Cockpit instrument panel style */
.section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, rgba(20, 25, 35, 0.85) 0%, rgba(15, 20, 30, 0.9) 100%);
    backdrop-filter: blur(10px);
    margin: 20px 0;
    border-radius: 0;
    border: 1px solid rgba(0, 150, 255, 0.2);
    box-shadow: 
        inset 0 0 30px rgba(0, 100, 200, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.5);
}

.section-alt {
    background: linear-gradient(135deg, rgba(25, 30, 40, 0.85) 0%, rgba(20, 25, 35, 0.9) 100%);
    backdrop-filter: blur(10px);
    position: relative;
    border: 1px solid rgba(0, 150, 255, 0.25);
    box-shadow: 
        inset 0 0 40px rgba(0, 100, 200, 0.15),
        0 4px 20px rgba(0, 0, 0, 0.5);
}

.section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 150, 255, 0.4), transparent);
    box-shadow: 0 0 10px rgba(0, 150, 255, 0.3);
}

.section-title {
    font-size: 2.5rem;
    color: #00aaff;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 0 15px rgba(0, 150, 255, 0.6);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #00aaff, #00ccff);
    border-radius: 2px;
    animation: expandWidth 0.8s ease-out 0.5s both;
    box-shadow: 0 0 10px rgba(0, 150, 255, 0.6);
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d0d8e8;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-image:hover img {
    transform: scale(1.03);
    box-shadow: var(--shadow-xl);
}

/* Membership Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.benefit-card {
    background: linear-gradient(135deg, rgba(20, 25, 35, 0.9) 0%, rgba(15, 20, 30, 0.95) 100%);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 
        var(--shadow-sm),
        inset 0 0 20px rgba(0, 100, 200, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 150, 255, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    color: #e0e8f0;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.05;
    transition: left 0.5s ease;
}

.benefit-card:hover::before {
    left: 0;
}

.benefit-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.benefit-card h3 {
    color: #00aaff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-shadow: 0 0 8px rgba(0, 150, 255, 0.4);
}

/* Events Section */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.event-card {
    background: linear-gradient(135deg, rgba(20, 25, 35, 0.9) 0%, rgba(15, 20, 30, 0.95) 100%);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 
        var(--shadow-sm),
        inset 0 0 20px rgba(0, 100, 200, 0.1);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 150, 255, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    color: #e0e8f0;
}

.event-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.event-card:hover::after {
    opacity: 1;
}

.event-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.event-card h3 {
    color: #00aaff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-shadow: 0 0 8px rgba(0, 150, 255, 0.4);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

.gallery-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.2rem;
}

/* Contact Section */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.contact-item {
    background: linear-gradient(135deg, rgba(20, 25, 35, 0.9) 0%, rgba(15, 20, 30, 0.95) 100%);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 
        var(--shadow-sm),
        inset 0 0 20px rgba(0, 100, 200, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 150, 255, 0.3);
    backdrop-filter: blur(10px);
    color: #e0e8f0;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.contact-item h3 {
    color: #00aaff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-shadow: 0 0 8px rgba(0, 150, 255, 0.4);
}

.contact-item p {
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, rgba(26, 84, 144, 0.9) 0%, rgba(15, 58, 95, 0.95) 100%);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
    border-top: 3px solid rgba(243, 156, 18, 0.5);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer p {
    margin: 0.5rem 0;
}

/* Responsive Design - Tablets */
@media (max-width: 768px) {
    .image-canvas {
        max-height: 50vh;
        height: 50vh;
        margin-top: 150px; /* More space for tablet navbar */
        padding-top: 20px;
    }
    
    .navbar {
        min-height: 90px;
    }
    
    .navbar .container {
        padding: 1.2rem 20px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .hero {
        margin-top: 150px; /* Match image-canvas spacing on tablet */
    }
}

/* Responsive Design - Mobile Phones */
@media (max-width: 480px) {
    .image-canvas {
        max-height: 45vh;
        height: 45vh;
        margin-top: 300px; /* 300px space for mobile phone navbar */
        padding-top: 30px;
    }
    
    .navbar {
        min-height: 110px; /* Taller navbar on phones */
    }
    
    .navbar .container {
        padding: 1.8rem 20px; /* More padding on small phones */
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .nav-brand h1 {
        font-size: 1.4rem; /* Smaller title on phones */
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }

    .hero {
        margin-top: 300px; /* Match image-canvas spacing on mobile */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .benefits-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}
