/* Global Dark Theme with Enhanced Gradients */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
    color: #e0e0e0;
    overflow-x: hidden;
    transition: all 0.5s ease;
    line-height: 1.6; /* Better readability */
    overflow: scroll; /* Enable scrolling */
}

/* Pages */
.page {
    height: 100vh;
    position: relative;
}
.page.active {
    display: block;
}

/* Welcoming Page */
#welcome {
    background: url('Phantom_Guard_wedge.png') no-repeat center cover; /* Replace with background image URL */
    background-blend-mode: overlay;
    background-color: linear-gradient(90deg, #2c3e50, #34495e);
}
#welcome-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: -1;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.9);
}
.welcome-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    animation: fadeIn 2s ease-in;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(249, 249, 249, 0.5);
    background-color: rgba(42, 42, 42, 0.663);
    border-radius: 5px;
}
.logo {
    margin-bottom: 20px;
    border: 10px;
}

/* Glass Slab Button Style (Applied to All Buttons) */
/* Star Wars-Themed Advanced Black/White Glass Slab Buttons */
/* Star Wars-Themed Advanced Black/White Glass Slab Buttons */
.btn, .btn-launch, .gallery-btn {
    background: 
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.05) 0%, transparent 50%),
        linear-gradient(135deg, rgba(0,0,0,0.98) 0%, rgba(10,10,10,1) 50%, rgba(0,0,0,0.98) 100%);
    border: 3px solid rgba(255,255,255,0.8); /* White imperial border */
    color: #ffffff; /* White text for contrast */
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother transition */
    box-shadow: 
        0 0 15px rgba(255,255,255,0.2), /* Subtle white halo */
        inset 0 0 15px rgba(255,255,255,0.03); /* Inner white reflection */
    transform: skew(-12deg) perspective(500px) rotateX(3deg); /* Parallelogram with Star Wars depth */
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace; /* Monospace for tech feel */
    clip-path: polygon(8% 0%, 92% 0%, 100% 100%, 0% 100%); /* Sleek imperial shape */
    animation: imperialBreathe 4s ease-in-out infinite; /* Subtle breathing like a console */
}

.btn::before, .btn-launch::before, .gallery-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%), /* White light sweep */
        radial-gradient(circle, rgba(0,150,255,0.2) 0%, transparent 70%); /* Subtle blue Jedi glow */
    transition: left 0.8s ease;
    z-index: 1;
    animation: hologramRipple 3s linear infinite; /* Holographic ripple effect */
}

.btn::after, .btn-launch::after, .gallery-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180%;
    height: 180%;
    background: 
        repeating-conic-gradient(from 0deg, rgba(255,0,0,0.05) 0deg 15deg, transparent 15deg 30deg), /* Red Sith energy lines */
        radial-gradient(circle, rgba(0,150,255,0.1) 0%, transparent 50%); /* Blue force field */
    transform: translate(-50%, -50%) rotate(0deg);
    transition: transform 0.6s ease;
    z-index: 0;
    animation: forceField 5s linear infinite; /* Rotating force field */
    opacity: 0.4;
}

.btn:hover, .btn-launch:hover, .gallery-btn:hover {
    border-color: rgba(0,150,255,0.9); /* Blue Jedi border on hover */
    box-shadow: 
        0 0 30px rgba(0,150,255,0.5), /* Blue glow */
        inset 0 0 30px rgba(255,255,255,0.1); /* Enhanced white inner light */
    transform: skew(-12deg) perspective(500px) rotateX(8deg); /* Deeper 3D on hover (no scale to prevent movement) */
    animation: forcePulse 1.2s ease-in-out infinite alternate; /* Pulsing like a lightsaber */
}

.btn:hover::before, .btn-launch:hover::before, .gallery-btn:hover::before {
    left: 150%;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%), /* Brighter white sweep */
        radial-gradient(circle, rgba(0,150,255,0.4) 0%, transparent 70%); /* Stronger blue glow */
}

.btn:hover::after, .btn-launch:hover::after, .gallery-btn:hover::after {
    transform: translate(-50%, -50%) rotate(180deg) scale(1.1);
    opacity: 0.7;
    background: 
        repeating-conic-gradient(from 180deg, rgba(255,0,0,0.1) 0deg 15deg, transparent 15deg 30deg), /* Red energy shift */
        radial-gradient(circle, rgba(0,150,255,0.2) 0%, transparent 50%);
}

.btn:active, .btn-launch:active, .gallery-btn:active {
    border-color: rgba(255,0,0,0.9); /* Red Sith border on click */
    transform: skew(-12deg) perspective(500px) rotateX(3deg); /* No scale to prevent movement */
    box-shadow: 
        0 0 20px rgba(255,0,0,0.6), /* Red shockwave */
        inset 0 0 25px rgba(255,255,255,0.2);
    animation: darkSideShock 0.4s ease-out; /* Sith-like feedback */
}

.btn-launch::before { /* Custom icon with Star Wars flair */
    content: '▶';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    text-shadow: 0 0 10px rgba(0,150,255,0.8); /* Blue glow for icon */
    animation: saberIgnite 2.5s ease-in-out infinite alternate; /* Lightsaber ignition effect */
}

.gallery-btn {
    padding: 12px 20px;
    font-size: 20px;
    margin: 0 8px;
    clip-path: polygon(12% 0%, 88% 0%, 100% 100%, 0% 100%); /* Tighter imperial shape */
}

/* Keyframe Animations for Star Wars Effects */
@keyframes imperialBreathe {
    0%, 100% { box-shadow: 0 0 15px rgba(255,255,255,0.2), inset 0 0 15px rgba(255,255,255,0.03); }
    50% { box-shadow: 0 0 25px rgba(255,255,255,0.4), inset 0 0 20px rgba(255,255,255,0.08); }
}

@keyframes hologramRipple {
    0% { transform: translateX(-100%) skewX(-12deg); opacity: 0.5; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) skewX(-12deg); opacity: 0.5; }
}

@keyframes forceField {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes forcePulse {
    0% { filter: brightness(1) contrast(1); box-shadow: 0 0 30px rgba(0,150,255,0.5); }
    100% { filter: brightness(1.1) contrast(1.2); box-shadow: 0 0 40px rgba(0,150,255,0.8); }
}

@keyframes darkSideShock {
    0% { transform: skew(-12deg) perspective(500px) rotateX(3deg); }
    50% { transform: skew(-12deg) perspective(500px) rotateX(3deg); box-shadow: 0 0 30px rgba(255,0,0,0.8); }
    100% { transform: skew(-12deg) perspective(500px) rotateX(3deg); }
}

@keyframes saberIgnite {
    0% { text-shadow: 0 0 10px rgba(0,150,255,0.8); transform: translateY(-50%) scale(1); }
    100% { text-shadow: 0 0 20px rgba(0,150,255,1), 0 0 30px rgba(255,0,0,0.3); transform: translateY(-50%) scale(1.1); }
}

/* Particle Effects for Star Wars "Force" Feel */
.btn::after::before, .btn-launch::after::before, .gallery-btn::after::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255,255,255,0.9); /* White particles */
    border-radius: 50%;
    animation: forceParticles 4s ease-in-out infinite;
    box-shadow: 0 0 5px rgba(0,150,255,0.5); /* Blue particle glow */
}

@keyframes forceParticles {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    25% { transform: translateY(-15px) rotate(90deg); opacity: 0.8; }
    50% { transform: translateY(-30px) rotate(180deg); opacity: 0.5; }
    75% { transform: translateY(-15px) rotate(270deg); opacity: 0.9; }
}

/* Tabs (Navigation) */
.tabs {
    display: flex;
    justify-content: center;
    background: linear-gradient(90deg, #2c3e50, #34495e);
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.tab-link {
    color: #e0e0e0;
    text-decoration: none;
    padding: 12px 25px;
    margin: 0 5px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: bold;
    position: relative;
}
.tab-link.active {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.5);
}
.tab-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Tab Content */
.tab-content {
    padding: 40px 20px;
    background: url('') no-repeat center center/cover; /* Replace with background image URL */
    background-blend-mode: overlay;
    min-height: calc(100vh - 100px);
}
.hero-section { /* For official launch feel */
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.hero-section h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #ff6b6b;
}
.content-grid { /* Grid for cards */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.card { /* Attractive cards */
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.3);
}
.card h3 {
    color: #4ecdc4;
    margin-bottom: 15px;
    font-size: 1.5em;
}

/* Morph Gallery */
.morph-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.morph-img {
    width: 100%;
    border-radius: 15px;
    transition: box-shadow 0.3s, transform 0.3s;
}
.morph-img:hover {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

/* Lookup Form */
#lookup-form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
#lookup-form input, #lookup-form button {
    margin: 10px 0;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
}
#lookup-form button {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    cursor: pointer;
    transition: transform 0.3s;
}
#lookup-form button:hover {
    transform: scale(1.05);
}
#lookup-result {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(90deg, #2c3e50, #34495e);
    color: #bbb;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .tabs { flex-direction: column; }
    .content-grid { grid-template-columns: 1fr; }
    .morph-gallery { grid-template-columns: 1fr; }
    .hero-section h1 { font-size: 2em; }
}

/* Video Section */
#video-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}
#welcome-video {
    width: 80%; /* Small margins on sides (10% each) */
    height: auto;
    max-height: 80vh;
    border-radius: 10px;
}

/* Welcome Section */
#welcome-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('Phantom_Guard_wedge.png') no-repeat center center/cover; /* Replace with background image URL */
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 1s ease;
}
#welcome-section.active {
    opacity: 1;
}

/* Gallery Section - Fixed for Image Loading and Accessibility */
#gallery-section {
    padding: 40px 20px;
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
    min-height: 100vh;
    text-align: center;
    opacity: 0; /* Hidden initially */
    visibility: hidden; /* Hidden initially */
    transition: opacity 1s ease, visibility 0s 1s;
}
#gallery-section.active {
    opacity: 1; /* Visible after video */
    visibility: visible;
}
#gallery-section h2 {
    color: #ff6b6b;
    font-size: 2em;
    margin-bottom: 20px;
}
.gallery-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}
.gallery {
    display: flex; /* Ensures horizontal layout */
    flex-direction: column;
    overflow: hidden;
    width: 600px; /* Fixed width for sliding */
    height: 400px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
}
.gallery-img {
    width: 600px; /* Match gallery width for side-by-side */
    height: 400px;
    object-fit: cover;
    flex-shrink: 0; /* Prevents shrinking */
    loading: eager; /* Force immediate loading */
}
.gallery-btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    color: white;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    margin: 0 10px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.5);
    transition: transform 0.3s;
}
.gallery-btn:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    #welcome-video {
        width: 90%;
    }
    .gallery {
        width: 100%;
        height: 300px;
    }
    .gallery-container {
        flex-direction: column;
    }
    .gallery-btn {
        margin: 10px 0;
    }
}

/* Hide the scrollbar */
body::-webkit-scrollbar {
    display: none;
}

.highlight {
    background-color: rgba(234, 234, 120, 0.718);
    color: #2c3e50;
    border-radius: 5px;
}

.user {
    color: #4ecdc4;
}

a {
    text-decoration: none;
}

.overlay-text {
    position: absolute; /* Position text over the image */
    top: 50%; /* Center the text vertically */
    left: 50%; /* Center the text horizontally */
    transform: translate(-50%, -50%); /* Adjust position to truly center */
    color: white; /* Text color */
    font-size: 24px; /* Large text size */
    opacity: 0; /* Hide text initially */
    transition: opacity 0.3s ease; /* Smooth fade-in effect */
}

.image-container:hover .overlay-text {
    opacity: 1; /* Show text on hover */
}

.text-style {
    font-family: monospace;
}

h1 {
    font-family: serif;
    transition: 0.3s ease;
    text-shadow: 0 30px 30px rgba(255, 107, 107, 0.629);
}

h1:hover {
    font-size: 2.6em;
    transition: 0.3s ease;
    text-shadow: 0 7px 20px rgba(255, 107, 107, 0.866);
}

#text {
    font-family: Times New Roman;
    word-wrap: none;
}
