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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #0a0a0a;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #1a1a1a;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

.nav-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo-img:hover {
    opacity: 0.8;
}

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

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #00d4ff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00d4ff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    background-image:
        url('../assets/images/hero/hero-home.png'),
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 50px;
    position: relative;
    overflow: hidden;
}

/* Home Page Hero - Epic Cloud Battle */
.hero.home-hero {
    background-image:
        url('../assets/images/hero/hero-home.png'),
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
}

/* War Room Hero - Battle Maps & War Screens */
.hero.war-hero {
    background-image:
        url('../assets/images/hero/hero-war.png'),
        radial-gradient(circle at 20% 50%, rgba(255, 100, 100, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
}

/* News Hero - Press Room & Media */
.hero.news-hero {
    background-image:
        url('../assets/images/hero/hero-news.png'),
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

/* About Hero - Mission & Purpose */
.hero.about-hero {
    background-image:
        url('../assets/images/hero/hero-about.png'),
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%2300d4ff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.8;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 2rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 2px solid #00d4ff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 200px;
}

.btn:hover {
    background: #00d4ff;
    color: #0a0a0a;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-primary {
    background: #0066cc;
    color: #ffffff;
    border: 2px solid #0066cc;
    padding: 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 120px;
}

.btn-primary:hover {
    background: #0052a3;
    border-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

.btn-title {
    display: block;
    font-weight: bold;
    font-size: 1.1rem;
}

.btn-subtitle {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* Content Sections */
.content-section,
.examples-section,
.projects-section,
.methodology-section,
.news-section,
.submit-section {
    padding: 80px 0;
    background: #0a0a0a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.content-section p {
    font-size: 1.2rem;
    line-height: 1.7;
    opacity: 0.9;
}

/* Examples Section */
.examples-section {
    background: #111111;
}

.examples-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.examples-header h2 {
    font-size: 2.5rem;
    color: #ffffff;
}

.examples-nav {
    display: flex;
    gap: 1rem;
}

.nav-arrow {
    background: #00d4ff;
    border: none;
    color: #0a0a0a;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: #ffffff;
    transform: scale(1.1);
}

.nav-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.example-card {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.example-card:hover {
    border-color: #00d4ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
}

.example-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #00d4ff;
}

.example-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0.9;
}

.example-source {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
}

.example-source:hover {
    text-decoration: underline;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin-top: 2rem;
}

.projects-table,
.methodology-table,
.news-table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

.projects-table th,
.methodology-table th,
.news-table th {
    background: #00d4ff;
    color: #0a0a0a;
    padding: 1rem;
    text-align: left;
    font-weight: bold;
}

.projects-table td,
.methodology-table td,
.news-table td {
    padding: 1rem;
    border-bottom: 1px solid #333333;
    vertical-align: top;
}

.projects-table tr:hover,
.news-table tr:hover {
    background: #222222;
}

.status-check {
    color: #00ff88;
    font-weight: bold;
}

.status-cross {
    color: #ff4444;
    font-weight: bold;
}

.submit-issue-btn {
    background: #00d4ff;
    color: #0a0a0a;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.submit-issue-btn:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.loading-row {
    text-align: center;
    color: #666666;
    font-style: italic;
}

/* Submit Section */
.submit-section {
    background: #111111;
}

.submit-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.submit-instructions {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.submit-form {
    max-width: 600px;
}

.form-group {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #ffffff;
}

.form-group input {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 4px;
    color: #ffffff;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1a1a1a;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    border: 1px solid #333333;
}

.modal-header h3 {
    color: #00d4ff;
    margin-bottom: 1.5rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #333333;
    border-top: 3px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#progressText {
    font-size: 1.1rem;
    color: #ffffff;
}

/* Footer */
.footer {
    background: #0a0a0a;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid #1a1a1a;
}

.footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-link {
    color: #00d4ff;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo-img:hover {
    opacity: 1;
}

.footer-text {
    flex: 1;
    min-width: 300px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-img {
        height: 35px;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-logo-img {
        height: 40px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(10px);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

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

    .hero-text {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .examples-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .examples-container {
        grid-template-columns: 1fr;
    }

    .form-group {
        flex-direction: column;
        align-items: stretch;
    }

    .form-group input {
        min-width: auto;
    }

    .table-container {
        font-size: 0.9rem;
    }

    .projects-table th,
    .projects-table td,
    .methodology-table th,
    .methodology-table td,
    .news-table th,
    .news-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo-img {
        height: 30px;
    }

    .hero {
        padding: 80px 15px 30px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .content-section,
    .examples-section,
    .projects-section,
    .methodology-section,
    .news-section,
    .submit-section {
        padding: 60px 0;
    }

    .examples-header h2,
    .submit-section h2 {
        font-size: 2rem;
    }
}

/* Utility Classes */
.section-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.methodology-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* ========================================
   COMPREHENSIVE RESPONSIVE DESIGN
   ======================================== */

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content p {
        font-size: 1.25rem;
    }
    
    .examples-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .table-container {
        overflow-x: visible;
    }
}

/* Tablet (768px to 1023px) */
@media (max-width: 1023px) and (min-width: 769px) {
    .container {
        max-width: 768px;
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .table {
        min-width: 600px;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Mobile Landscape (767px and below) */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .logo-img {
        height: 30px;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1rem 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
    }
    
    .hamburger {
        display: flex;
        cursor: pointer;
        z-index: 1001;
    }
    
    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: #00d4ff;
        margin: 5px 0;
        transition: 0.3s;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Hero Section Mobile */
    .hero {
        padding: 100px 0 60px;
        min-height: 60vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Examples Section Mobile */
    .examples-section {
        padding: 60px 0;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .example-card {
        padding: 1.5rem;
    }
    
    .example-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .example-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .carousel-controls {
        margin-top: 2rem;
    }
    
    .carousel-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Tables Mobile */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px;
    }
    
    .table {
        min-width: 600px;
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 0.6rem 0.4rem;
    }
    
    .table th {
        font-size: 0.8rem;
    }
    
    .submit-issue-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Forms Mobile */
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group input {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Modal Mobile */
    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-width: 400px;
        padding: 1.5rem;
    }
    
    .modal h2 {
        font-size: 1.3rem;
    }
    
    .modal p {
        font-size: 0.9rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 2rem 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-logo-img {
        height: 40px;
    }
    
    .footer-text p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    /* Toast Mobile */
    .toast {
        top: 70px;
        left: 15px;
        right: 15px;
        max-width: none;
        width: auto;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .examples-section h2 {
        font-size: 1.8rem;
    }
    
    .examples-section p {
        font-size: 0.9rem;
    }
    
    .example-card {
        padding: 1.2rem;
    }
    
    .table {
        min-width: 500px;
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.3rem;
    }
    
    .submit-issue-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .modal-content {
        width: 98%;
        padding: 1.2rem;
    }
}

/* Landscape Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: 50vh;
        padding: 80px 0 40px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .examples-section {
        padding: 40px 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img,
    .footer-logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .carousel-controls,
    .submit-issue-btn,
    .btn {
        display: none;
    }
    
    .hero {
        background: none;
        color: #000;
    }
    
    .table {
        border-collapse: collapse;
    }
    
    .table th,
    .table td {
        border: 1px solid #000;
    }
}