/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 80px 0;
    text-align: left;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 500px;
    z-index: 2;
}

.badge-container {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    animation: float 6s ease-in-out infinite;
}

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

.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-award {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.2);
}
.badge-award:hover {
    transform: translateY(-2px);
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.badge-tech {
    background: rgba(124, 77, 255, 0.1);
    color: #b388ff;
    border: 1px solid rgba(124, 77, 255, 0.2);
}
.badge-tech:hover {
    transform: translateY(-2px);
    background: rgba(124, 77, 255, 0.2);
    box-shadow: 0 4px 12px rgba(124, 77, 255, 0.2);
}

.badge-social {
    background: rgba(29, 161, 242, 0.1);
    color: #1da1f2;
    border: 1px solid rgba(29, 161, 242, 0.2);
    transition: transform 0.2s;
}
.badge-social:hover {
    transform: translateY(-2px);
    background: rgba(29, 161, 242, 0.2);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.2);
}

.btn-group {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    margin-bottom: 0;
}

/* Video Section */
.video-wrapper {
    flex: 1;
    position: relative;
    z-index: 1;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 4px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(124, 77, 255, 0.1);
    border: 1px solid rgba(124, 77, 255, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-wrapper:hover .video-container {
     transform: scale(1.02);
     box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.8),
        0 0 150px rgba(124, 77, 255, 0.3);
     border-color: rgba(124, 77, 255, 0.6);
}

/* HUD Corners */
.hud-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid #7c4dff;
    z-index: 10;
    pointer-events: none;
    transition: all 0.3s ease;
}

.top-left { top: -10px; left: -10px; border-right: none; border-bottom: none; }
.top-right { top: -10px; right: -10px; border-left: none; border-bottom: none; }
.bottom-left { bottom: -10px; left: -10px; border-right: none; border-top: none; }
.bottom-right { bottom: -10px; right: -10px; border-left: none; border-top: none; }

.video-wrapper:hover .hud-corner {
    width: 40px;
    height: 40px;
    border-color: #b388ff;
}

/* Scanning Line */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to bottom, transparent, rgba(124, 77, 255, 0.5), transparent);
    z-index: 5;
    pointer-events: none;
    animation: scan 4s linear infinite;
    opacity: 0.5;
}

@keyframes scan {
    0% { top: 0%; }
    100% { top: 100%; }
}

/* HUD Status */
.hud-status {
    position: absolute;
    bottom: -30px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    color: #7c4dff;
    letter-spacing: 2px;
}

@media (max-width: 600px) {
    .hud-status {
        bottom: -25px;
        font-size: 0.6rem;
        letter-spacing: 1px;
    }
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #7c4dff;
    border-radius: 50%;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Live Data Widgets */
.live-data-container {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .live-data-container {
        justify-content: center;
    }
    .data-widget {
        flex: 1 1 120px;
    }
}

.data-widget {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(124, 77, 255, 0.2);
    padding: 12px 16px;
    border-radius: 8px;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.data-label {
    display: block;
    font-size: 0.65rem;
    color: #888;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.data-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
}

.data-bar {
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 8px;
    width: 100%;
}

.data-progress {
    height: 100%;
    background: #7c4dff;
    transition: width 0.3s ease;
}

.data-pulse {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 4px;
    height: 4px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff00;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(2); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Video Placeholder */
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #1a1a1a 0%, #000 100%);
    color: #7c4dff;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.video-placeholder p {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 10px;
}

.fa-spin-slow {
    animation: fa-spin 5s linear infinite;
    font-size: 2rem;
    margin-top: 20px;
    opacity: 0.3;
}

.glitch-text {
    font-size: 2.5rem;
    font-weight: 900;
    position: relative;
    letter-spacing: 4px;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    color: #ff00ff;
    z-index: -1;
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

.glitch-text::after {
    color: #00ffff;
    z-index: -2;
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* PDF Viewer Section */
#pitch-deck {
    display: none;
    margin: 80px 0;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid var(--card-border);
    animation: fadeIn 0.5s ease-out;
}

#pitch-deck h2 {
    margin-bottom: 30px;
    text-align: center;
    color: #fff;
}

.pdf-frame {
    width: 100%;
    height: 800px;
    border: none;
    border-radius: 12px;
    background: #fff;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* How It Works */
.how-it-works {
    padding: 60px 40px;
}

.workflow-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.workflow-item {
    flex: 1;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(124, 77, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.workflow-item:hover {
    border-color: rgba(124, 77, 255, 0.4);
    background: rgba(124, 77, 255, 0.05);
    transform: translateY(-5px);
}

.workflow-icon {
    font-size: 2.5rem;
    color: #7c4dff;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(124, 77, 255, 0.3));
}

.connector {
    color: rgba(124, 77, 255, 0.3);
    font-size: 1.5rem;
    animation: flow 2s infinite ease-in-out;
}

@keyframes flow {
    0%, 100% { transform: translateX(0); opacity: 0.3; }
    50% { transform: translateX(5px); opacity: 1; }
}

.workflow-item h4 { margin: 10px 0; color: #fff; }
.workflow-item p { font-size: 0.9rem; color: #888; margin: 0; }

/* Mission Console (Terminal) */
.console-section {
    margin: 80px auto;
    max-width: 900px;
}

.terminal-container {
    background: #0a0a0c;
    border: 1px solid #1a1a1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: #1a1a1e;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-buttons { display: flex; gap: 6px; }
.terminal-buttons span { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.terminal-buttons span:nth-child(1) { background: #ff5f56; }
.terminal-buttons span:nth-child(2) { background: #ffbd2e; }
.terminal-buttons span:nth-child(3) { background: #27c93f; }

.terminal-title {
    color: #666;
    font-size: 10px;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 1px;
}

.terminal-body {
    padding: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    height: 250px;
    overflow-y: auto;
    color: #7c4dff;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
}

.terminal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #0a0a0c;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #1a1a1e;
    border-radius: 3px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #7c4dff;
}

.log-entry { margin-bottom: 4px; opacity: 0.9; }
.log-entry.success { color: #27c93f; }
.log-entry.warning { color: #ffbd2e; }
.log-cursor { animation: blink 1s step-end infinite; }

/* FAQ Section */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
}

.faq-question i {
    font-size: 0.8rem;
    color: #7c4dff;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 24px;
    height: 0;
    overflow: hidden;
    color: #888;
    line-height: 1.6;
    transition: all 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    padding-bottom: 20px;
    height: auto;
    opacity: 1;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(124, 77, 255, 0.3);
}

@media (max-width: 768px) {
    .workflow-grid { flex-direction: column; }
    .connector { transform: rotate(90deg); margin: 10px 0; }
    @keyframes flow {
        0%, 100% { transform: translateY(0) rotate(90deg); opacity: 0.3; }
        50% { transform: translateY(5px) rotate(90deg); opacity: 1; }
    }
}

/* Mission Section */
.mission-section, .impact-section, .newsletter-section {
    margin: 80px auto;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

@media (max-width: 768px) {
    .mission-section, .impact-section, .newsletter-section {
        margin: 60px auto;
    }
}

.mission-text-container {
    text-align: left;
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 40px;
}

.mission-highlight-card {
    background: rgba(124, 77, 255, 0.1);
    border-left: 4px solid #7c4dff;
    padding: 25px;
    border-radius: 0 8px 8px 0;
    text-align: left;
}

/* Tech Stack Section */
.tech-stack {
    text-align: center;
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.tech-tag {
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    padding: 10px 18px;
    border-radius: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.tech-tag-gemini { border-color: #b388ff; color: #b388ff; }
.tech-tag-vertex { border-color: #4285F4; color: #4285F4; }
.tech-tag-google { border-color: #34A853; color: #34A853; }

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 30px;
    border-radius: 12px;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(124, 77, 255, 0.3);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.feature-card h3 { margin: 0 0 10px 0; font-size: 1.3rem; }
.feature-card p { margin: 0; color: var(--secondary-text); font-size: 0.95rem; }

.mission-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(5px);
    margin-top: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: center;
    margin-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #b388ff;
    margin-bottom: 12px;
}

.stat-label {
    display: block;
    font-size: 0.95rem;
    color: #a0a0a0;
}

.stat-value i {
    margin-right: 8px;
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 60px;
        gap: 40px;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .video-container {
        width: 100%;
        padding-bottom: 56.25%;
        transform: none;
    }
    .video-container:hover { transform: none; scale: 1; }
    .btn-group { justify-content: center; }
    
    .video-wrapper {
        width: 100%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
        word-wrap: break-word;
        hyphens: auto;
    }
    celestine-header::part(nav), nav { 
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        width: 100%;
        margin-top: 10px;
    }

    .tech-stack {
        width: 100% !important;
        box-sizing: border-box;
        padding: 20px 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: hidden;
    }
    
    .container {
        overflow-x: hidden;
        width: 100%;
        box-sizing: border-box;
    }
    .btn-group { flex-direction: column; }
    .btn { width: 100%; justify-content: center; box-sizing: border-box; }
}
