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

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: #000;
    color: #f5f5f5;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
#navbar {
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: transparent;
}

#navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

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

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 3px;
    color: #ff6b35;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff6b35;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.5), rgba(0,0,0,1));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ff6b35 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 28px);
    color: #d1d5db;
    letter-spacing: 1.5px;
    margin-bottom: 48px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #ea580c;
    color: #fff;
    border: 1px solid #ff6b35;
}

.btn-primary:hover {
    background-color: #c2410c;
    transform: translateY(-2px);
}

.btn-primary .arrow {
    transition: transform 0.3s ease;
}

.btn-primary:hover .arrow {
    transform: translateX(4px);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #ff6b35;
}

.btn-secondary:hover {
    background-color: rgba(255, 107, 53, 0.2);
}

/* Section Titles */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    text-align: center;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.title-underline {
    width: 96px;
    height: 4px;
    background-color: #ff6b35;
    margin: 0 auto 64px;
}

/* Iconic Tanks Section */
.section-icons {
    padding: 96px 0;
    background: linear-gradient(to bottom, #000 0%, #1f2937 100%);
}

.tanks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.tank-card {
    position: relative;
    overflow: hidden;
    background-color: #1f2937;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.tank-card:hover {
    transform: scale(1.05);
}

.tank-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.tank-card:hover img {
    opacity: 0.4;
}

.tank-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0.5), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tank-card:hover .tank-overlay {
    opacity: 1;
}

.tank-era {
    font-size: 12px;
    color: #ff6b35;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.tank-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.tank-tagline {
    color: #9ca3af;
    font-style: italic;
    margin-bottom: 16px;
}

.btn-details {
    width: fit-content;
    padding: 12px 24px;
    background-color: #ea580c;
    color: #fff;
    border: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-details:hover {
    background-color: #c2410c;
}

/* Anatomy Section */
.section-anatomy {
    padding: 96px 0;
    background-color: #1f2937;
}

.anatomy-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.anatomy-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.hotspot {
    position: absolute;
    width: 32px;
    height: 32px;
    background-color: #ff6b35;
    border: 4px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 10;
}

.hotspot:hover {
    transform: translate(-50%, -50%) scale(1.25);
}

.hotspot-pulse {
    position: absolute;
    inset: -8px;
    border: 2px solid #ff6b35;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* Timeline Section */
.section-timeline {
    padding: 96px 0;
    background-color: #000;
}

.timeline-container {
    display: flex;
    overflow-x: auto;
    gap: 32px;
    padding-bottom: 32px;
}

.timeline-item {
    min-width: 280px;
    background-color: #1f2937;
    padding: 24px;
    border-left: 4px solid #ff6b35;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.timeline-item:hover {
    background-color: #374151;
}

.timeline-era {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-years {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 16px;
}

.timeline-tanks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-tank {
    color: #ff6b35;
    font-size: 14px;
}

/* Gallery Section */
.section-gallery {
    padding: 96px 0;
    background: linear-gradient(to bottom, #1f2937 0%, #000 100%);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.zoom-icon {
    font-size: 48px;
}

/* Footer */
footer {
    background-color: #000;
    border-top: 1px solid #1f2937;
    padding: 48px 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #ff6b35;
    margin-bottom: 16px;
}

.footer-description {
    color: #9ca3af;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff6b35;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #1f2937;
    padding: 32px;
    max-width: 600px;
    border-left: 4px solid #ff6b35;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ff6b35;
}

.modal-title {
    font-size: 28px;
    color: #ff6b35;
    margin-bottom: 16px;
}

.modal-desc {
    color: #d1d5db;
    line-height: 1.6;
}

/* Gallery Modal */
.gallery-close {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2001;
}

#galleryModalImg {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 16px;
    }
    
    .nav-links a {
        font-size: 12px;
    }
    
    .tanks-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-container {
        flex-direction: column;
    }
    
    .timeline-item {
        min-width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}