* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', monospace;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

/* Animated Stars Background */
.stars, .stars2, .stars3 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.stars {
    background: transparent url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIyMCIgY3k9IjIwIiByPSIxIiBmaWxsPSJ3aGl0ZSIgb3BhY2l0eT0iMC44Ii8+PGNpcmNsZSBjeD0iODAiIGN5PSI2MCIgcj0iMC41IiBmaWxsPSJ3aGl0ZSIgb3BhY2l0eT0iMC42Ii8+PGNpcmNsZSBjeD0iMTUwIiBjeT0iMTAwIiByPSIxLjUiIGZpbGw9IndoaXRlIiBvcGFjaXR5PSIwLjkiLz48Y2lyY2xlIGN4PSIxODAiIGN5PSIxNDAiIHI9IjAuOCIgZmlsbD0id2hpdGUiIG9wYWNpdHk9IjAuNyIvPjwvc3ZnPg==') repeat;
    animation: animateStars 50s linear infinite;
}

.stars2 {
    background: transparent url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAwIiBoZWlnaHQ9IjMwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSI1MCIgY3k9IjUwIiByPSIwLjUiIGZpbGw9IndoaXRlIiBvcGFjaXR5PSIwLjciLz48Y2lyY2xlIGN4PSIxMjAiIGN5PSI4MCIgcj0iMSIgZmlsbD0id2hpdGUiIG9wYWNpdHk9IjAuOCIvPjxjaXJjbGUgY3g9IjIwMCIgY3k9IjE1MCIgcj0iMC43IiBmaWxsPSJ3aGl0ZSIgb3BhY2l0eT0iMC42Ii8+PGNpcmNsZSBjeD0iMjUwIiBjeT0iMjAwIiByPSIxLjIiIGZpbGw9IndoaXRlIiBvcGFjaXR5PSIwLjkiLz48L3N2Zz4=') repeat;
    animation: animateStars 100s linear infinite;
}

.stars3 {
    background: transparent url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAwIiBoZWlnaHQ9IjQwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSI3MCIgY3k9IjcwIiByPSIwLjMiIGZpbGw9IndoaXRlIiBvcGFjaXR5PSIwLjUiLz48Y2lyY2xlIGN4PSIxNDAiIGN5PSIxMjAiIHI9IjAuOCIgZmlsbD0id2hpdGUiIG9wYWNpdHk9IjAuNyIvPjxjaXJjbGUgY3g9IjI4MCIgY3k9IjIyMCIgcj0iMSIgZmlsbD0id2hpdGUiIG9wYWNpdHk9IjAuOCIvPjxjaXJjbGUgY3g9IjM1MCIgY3k9IjMwMCIgcj0iMC42IiBmaWxsPSJ3aGl0ZSIgb3BhY2l0eT0iMC42Ii8+PC9zdmc+') repeat;
    animation: animateStars 150s linear infinite;
}

@keyframes animateStars {
    from { transform: translateY(0); }
    to { transform: translateY(-2000px); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffeb3b;
    text-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
    letter-spacing: 2px;
}

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

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

.nav-link:hover {
    color: #ffeb3b;
    text-shadow: 0 0 5px rgba(255, 235, 59, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #ffeb3b;
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
    margin-top: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: #ffeb3b;
    text-shadow: 0 0 20px rgba(255, 235, 59, 0.5);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    background: linear-gradient(45deg, #ffeb3b, #ffc107);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 235, 59, 0.4);
}

.hero-image {
    flex: 1;
    max-width: 500px;
}

.star-wars-intro {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    border: 2px solid #ffeb3b;
    border-radius: 10px;
    background: #000;
}

.crawl {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: top center;
    animation: crawl 20s linear infinite;
}

.crawl-content {
    padding: 2rem;
    text-align: justify;
    transform: perspective(300px) rotateX(25deg);
}

.crawl h1 {
    font-size: 2rem;
    color: #ffeb3b;
    text-align: center;
    margin-bottom: 2rem;
}

.crawl p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #ffd700;
}

@keyframes crawl {
    to {
        transform: translateY(-200%);
    }
}

/* Common Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    color: #ffeb3b;
    text-shadow: 0 0 15px rgba(255, 235, 59, 0.5);
    margin-bottom: 3rem;
}

/* Characters Section */
.characters {
    background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.character-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 235, 59, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.character-card:hover {
    transform: translateY(-10px);
    border-color: #ffeb3b;
    box-shadow: 0 15px 40px rgba(255, 235, 59, 0.2);
}

.character-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffeb3b;
}

.character-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
}

.character-placeholder.luke::before { content: "⚔️"; }
.character-placeholder.vader::before { content: "🥷"; }
.character-placeholder.yoda::before { content: "🧙"; }
.character-placeholder.leia::before { content: "👸"; }

.character-card h3 {
    font-size: 1.5rem;
    color: #ffeb3b;
    margin-bottom: 0.5rem;
}

.character-card p {
    color: #ccc;
    line-height: 1.6;
}

/* Movies Section */
.movies {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
}

.movies-timeline {
    position: relative;
    padding: 2rem 0;
}

.movies-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ffeb3b;
    transform: translateX(-50%);
}

.movie-card {
    display: flex;
    align-items: center;
    margin: 3rem 0;
    position: relative;
}

.movie-card:nth-child(even) {
    flex-direction: row-reverse;
}

.movie-episode {
    font-size: 4rem;
    font-weight: 900;
    color: #ffeb3b;
    text-shadow: 0 0 20px rgba(255, 235, 59, 0.5);
    margin: 0 3rem;
    min-width: 100px;
    text-align: center;
}

.movie-content {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 235, 59, 0.3);
    border-radius: 15px;
    padding: 2rem;
    flex: 1;
    transition: all 0.3s ease;
}

.movie-content:hover {
    border-color: #ffeb3b;
    box-shadow: 0 10px 30px rgba(255, 235, 59, 0.2);
}

.movie-content h3 {
    font-size: 1.8rem;
    color: #ffeb3b;
    margin-bottom: 0.5rem;
}

.movie-content p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

/* Gallery Section */
.gallery {
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
}

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

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(255, 235, 59, 0.3);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: #ffeb3b;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #222 0%, #444 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.gallery-placeholder.lightsaber::before { content: "⚡"; }
.gallery-placeholder.spaceship::before { content: "🚀"; }
.gallery-placeholder.planets::before { content: "🪐"; }
.gallery-placeholder.alliance::before { content: "👥"; }

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.5rem;
    color: #ffeb3b;
    text-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
}

/* About Section */
.about {
    background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text {
    color: #ccc;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 235, 59, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    flex: 1;
    transition: all 0.3s ease;
}

.stat:hover {
    border-color: #ffeb3b;
    box-shadow: 0 10px 30px rgba(255, 235, 59, 0.2);
}

.stat h3 {
    font-size: 2.5rem;
    color: #ffeb3b;
    text-shadow: 0 0 15px rgba(255, 235, 59, 0.5);
    margin-bottom: 0.5rem;
}

.stat p {
    color: #fff;
    font-weight: 600;
}

.force-meter {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 235, 59, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.force-meter h3 {
    color: #ffeb3b;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.meter-container {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 235, 59, 0.3);
}

.meter-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffeb3b, #ffc107);
    transition: width 2s ease;
    border-radius: 15px;
}

.force-button {
    background: linear-gradient(45deg, #ffeb3b, #ffc107);
    color: #000;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.force-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 235, 59, 0.4);
}

/* Footer */
.footer {
    background: #000;
    border-top: 2px solid rgba(255, 235, 59, 0.3);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #ffeb3b;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffeb3b;
}

.newsletter {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter input {
    flex: 1;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 235, 59, 0.3);
    border-radius: 5px;
    color: #fff;
}

.newsletter button {
    background: #ffeb3b;
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter button:hover {
    background: #ffc107;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

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

    .hamburger {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 0 2rem;
    }

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

    .hero-content, .hero-image {
        max-width: 100%;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .movies-timeline::before {
        left: 50px;
    }

    .movie-card {
        flex-direction: column !important;
        margin-left: 100px;
    }

    .movie-episode {
        position: absolute;
        left: -50px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .newsletter {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .characters-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .movie-card {
        margin-left: 60px;
    }

    .movie-episode {
        left: -30px;
        font-size: 1.5rem;
    }
}