﻿/* ============================================================================
   ROGUE AEROSPACE PAGE STYLES
   ============================================================================ */

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

/* Global Styles */
* {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #0d1117;
    color: #e2e8f0;
    animation: fadeIn 1.5s ease-in-out forwards;
}

main {
    padding: 2em;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    margin-bottom: 4em;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 1.5em;
    color: #e2e8f0;
}

h3 {
    font-size: 1.8em;
    margin-bottom: 1em;
    color: #cbd5e1;
}

p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #94a3b8;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(248, 72, 72, 0.28) 0%, rgba(248, 72, 72, 0.08) 100%);
    color: #e2e8f0;
    padding: 3em 2em;
    border-radius: 1.5em;
    border-left: 6px solid rgba(248, 72, 72, 0.8);
    box-shadow: 0 10px 30px rgba(248, 72, 72, 0.15);
}

.hero-text {
    flex: 1 1 400px;
    padding: 1em;
}

.hero-text h1 {
    font-size: 3.5em;
    margin-bottom: 0.3em;
    font-weight: 700;
    background: linear-gradient(135deg, #f84848 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text .subtitle {
    font-size: 1.4em;
    color: #94a3b8;
    margin-bottom: 0.5em;
    font-weight: 500;
}

.hero-text .role {
    font-size: 1.2em;
    color: #f84848;
    font-weight: 600;
    padding: 0.5em 1em;
    background: rgba(248, 72, 72, 0.25);
    border-radius: 0.5em;
    display: inline-block;
}

.hero-image {
    flex: 1 1 400px;
    text-align: center;
    padding: 1em;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 1.5em;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.55);
}

/* ============================================================================
   OVERVIEW SECTION
   ============================================================================ */
.overview {
    background: #161b22;
    padding: 3em 2em;
    border-radius: 1.5em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.overview-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    align-items: center;
}

.overview-text {
    flex: 1 1 500px;
}

.overview-text p {
    margin-bottom: 1.5em;
}

.overview-text strong {
    color: #f84848;
    font-weight: 600;
}

.overview-image {
    flex: 1 1 350px;
    text-align: center;
}

.overview-image img {
    width: 100%;
    max-width: 450px;
    border-radius: 1em;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* ============================================================================
   ROLE & RESPONSIBILITIES SECTION
   ============================================================================ */
.role-section {
    background: linear-gradient(135deg, #161b22 0%, #1a2332 100%);
    padding: 3em 2em;
    border-radius: 1.5em;
}

.role-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2em;
}

.role-card {
    background: #161b22;
    padding: 2em;
    border-radius: 1em;
    box-shadow: 0 6px 20px rgba(248, 72, 72, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #f84848;
}

.role-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(248, 72, 72, 0.4);
}

.card-icon {
    font-size: 3em;
    margin-bottom: 0.5em;
}

.role-card h3 {
    margin-top: 0;
    color: #e2e8f0;
    font-size: 1.5em;
}

.role-card p {
    color: #94a3b8;
    line-height: 1.7;
}

.role-card strong {
    color: #f84848;
}

/* ============================================================================
   TECHNICAL SPECIFICATIONS SECTION
   ============================================================================ */
.tech-specs {
    background: #161b22;
    padding: 3em 2em;
    border-radius: 1.5em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2em;
}

.spec-category {
    background: linear-gradient(135deg, rgba(248, 72, 72, 0.12) 0%, rgba(248, 72, 72, 0.06) 100%);
    padding: 1.5em;
    border-radius: 1em;
    border-left: 4px solid #f84848;
}

.spec-category h3 {
    font-size: 1.4em;
    margin-top: 0;
    color: #e2e8f0;
    margin-bottom: 1em;
}

.spec-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-category li {
    padding: 0.6em 0;
    border-bottom: 1px solid rgba(248, 72, 72, 0.25);
    color: #94a3b8;
}

.spec-category li:last-child {
    border-bottom: none;
}

.spec-category strong {
    color: #e2e8f0;
    font-weight: 600;
}

/* ============================================================================
   SYSTEM ARCHITECTURE SECTION
   ============================================================================ */
.architecture {
    background: linear-gradient(135deg, #161b22 0%, #1a2332 100%);
    padding: 3em 2em;
    border-radius: 1.5em;
}

.architecture-content p {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 2em;
    font-size: 1.15em;
}

.architecture-diagram {
    text-align: center;
    background: #161b22;
    padding: 2em;
    border-radius: 1em;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.architecture-diagram img {
    width: 100%;
    max-width: 900px;
    border-radius: 0.5em;
}

.caption {
    margin-top: 1em;
    font-size: 1em;
    color: #8894a7;
    font-style: italic;
}

/* ============================================================================
   CODE IMPLEMENTATION SECTION
   ============================================================================ */
.code-implementation {
    background: #161b22;
    padding: 3em 2em;
    border-radius: 1.5em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.code-section {
    margin-bottom: 3em;
}

.code-section h3 {
    color: #f84848;
    border-bottom: 2px solid rgba(248, 72, 72, 0.4);
    padding-bottom: 0.5em;
}

.code-preview {
    text-align: center;
    margin: 2em 0;
}

.code-preview img {
    width: 100%;
    max-width: 800px;
    border-radius: 1em;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.55);
    border: 3px solid rgba(248, 72, 72, 0.4);
}

.code-features h4 {
    color: #e2e8f0;
    margin-bottom: 1em;
}

.code-features ul {
    list-style: none;
    padding: 0;
}

.code-features li {
    padding: 0.7em 0;
    color: #94a3b8;
    font-size: 1.05em;
}

.code-snippet {
    margin-top: 1.5em;
    background: #1e293b;
    border-radius: 0.8em;
    overflow: hidden;
}

.code-snippet summary {
    padding: 1.2em 1.5em;
    cursor: pointer;
    background: #334155;
    color: #e2e8f0;
    font-weight: 600;
    transition: background 0.2s ease;
}

.code-snippet summary:hover {
    background: #475569;
}

.code-snippet pre {
    margin: 0;
    padding: 1.5em;
    overflow-x: auto;
    background: #1e293b;
}

.code-snippet code {
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    line-height: 1.6;
}

/* ============================================================================
   TESTING & RESULTS SECTION
   ============================================================================ */
.testing {
    background: linear-gradient(135deg, #161b22 0%, #1a2332 100%);
    padding: 3em 2em;
    border-radius: 1.5em;
}

.testing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2em;
}

.test-result {
    background: #161b22;
    padding: 2em;
    border-radius: 1em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.test-result.success {
    border-top: 4px solid #10b981;
}

.test-result.pending {
    border-top: 4px solid #f59e0b;
}

.test-icon {
    font-size: 3.5em;
    margin-bottom: 0.5em;
}

.test-result h3 {
    font-size: 1.4em;
    margin-bottom: 0.8em;
    color: #e2e8f0;
}

.test-result strong {
    color: #f84848;
}

/* ============================================================================
   GALLERY SECTION
   ============================================================================ */
.gallery {
    background: #161b22;
    padding: 3em 2em;
    border-radius: 1.5em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

.gallery-item {
    background: #0d1117;
    padding: 1.2em;
    border-radius: 1em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(248, 72, 72, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0.8em;
    margin-bottom: 1em;
}

.gallery-item p {
    margin: 0;
    font-size: 1em;
    color: #94a3b8;
    text-align: center;
    font-weight: 500;
}

/* ============================================================================
   IMPACT & SKILLS SECTION
   ============================================================================ */
.impact {
    background: linear-gradient(135deg, rgba(248, 72, 72, 0.12) 0%, rgba(248, 72, 72, 0.06) 100%);
    padding: 3em 2em;
    border-radius: 1.5em;
}

.impact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
    margin-bottom: 3em;
}

.impact-card {
    background: #161b22;
    padding: 2em;
    border-radius: 1em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border-left: 4px solid #f84848;
}

.impact-card h3 {
    margin-top: 0;
    color: #e2e8f0;
}

.impact-card strong {
    color: #f84848;
}

.skills-gained {
    background: #161b22;
    padding: 2em;
    border-radius: 1em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.skills-gained h3 {
    text-align: center;
    margin-bottom: 1.5em;
    color: #e2e8f0;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
}

.skill-tag {
    background: linear-gradient(135deg, rgba(248, 72, 72, 0.28) 0%, rgba(248, 72, 72, 0.08) 100%);
    color: #e2e8f0;
    padding: 0.6em 1.2em;
    border-radius: 2em;
    font-size: 0.95em;
    font-weight: 500;
    border: 2px solid rgba(248, 72, 72, 0.3);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(248, 72, 72, 0.4);
    border-color: #f84848;
    transform: scale(1.05);
}

/* ============================================================================
   NEXT STEPS SECTION
   ============================================================================ */
.next-steps {
    background: #161b22;
    padding: 3em 2em;
    border-radius: 1.5em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 1.5em;
    margin-bottom: 2.5em;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 60px;
    bottom: -30px;
    width: 2px;
    background: linear-gradient(180deg, rgba(248, 72, 72, 0.3) 0%, rgba(248, 72, 72, 0.05) 100%);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-marker {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(248, 72, 72, 0.28) 0%, rgba(248, 72, 72, 0.08) 100%);
    border: 3px solid #f84848;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    z-index: 1;
}

.timeline-content {
    flex: 1;
    background: #0d1117;
    padding: 1.5em;
    border-radius: 1em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.timeline-content h3 {
    margin-top: 0;
    font-size: 1.4em;
    color: #e2e8f0;
}

.timeline-content p {
    margin-bottom: 0;
    color: #94a3b8;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */
@media (max-width: 768px) {
    main {
        padding: 1em;
    }

    section {
        margin-bottom: 2.5em;
    }

    h2 {
        font-size: 2em;
    }

    .hero-text h1 {
        font-size: 2.5em;
    }

    .hero-text .subtitle {
        font-size: 1.1em;
    }

    .hero,
    .overview-content,
    .role-cards,
    .specs-grid,
    .testing-grid,
    .gallery-grid,
    .impact-content {
        flex-direction: column;
    }

    .timeline-item {
        flex-direction: column;
        gap: 1em;
    }

    .timeline-item::before {
        display: none;
    }

    .timeline-marker {
        margin: 0 auto;
    }
}

/* Accessibility & Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
