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

body {
    font-family: 'DesuzaPro', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
    padding-bottom: 70px; /* Smaller space for footer nav */
    position: relative;
}

/* Galaxy Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 70%, rgba(120, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 40%, rgba(120, 200, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 25%, #16213e 50%, #0a0a0a 100%);
    z-index: -2;
    animation: galaxyRotate 60s linear infinite;
}

@keyframes galaxyRotate {
    from { transform: rotate(0deg) scale(1); }
    to { transform: rotate(360deg) scale(1.1); }
}

/* Twinkling Stars */
.star-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #ffffff;
    border-radius: 50%;
    animation: twinkle 4s ease-in-out infinite;
    box-shadow: 0 0 6px #ffffff;
}

.star:nth-child(1) { top: 10%; left: 12%; animation-delay: 0s; }
.star:nth-child(2) { top: 20%; left: 85%; animation-delay: 1s; }
.star:nth-child(3) { top: 35%; left: 25%; animation-delay: 2s; }
.star:nth-child(4) { top: 55%; left: 78%; animation-delay: 3s; }
.star:nth-child(5) { top: 75%; left: 10%; animation-delay: 4s; }
.star:nth-child(6) { top: 45%; left: 65%; animation-delay: 2.5s; }
.star:nth-child(7) { top: 90%; left: 40%; animation-delay: 1.5s; }
.star:nth-child(8) { top: 30%; left: 90%; animation-delay: 3.5s; }

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(2);
    }
}

/* Mobile-first approach */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section - Mobile First */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: #00ff88;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero .description {
    font-size: 1rem;
    color: #888888;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 500px;
}

/* Dragon Showcase */
.dragon-showcase {
    width: 280px;
    height: 280px;
    margin: 2rem auto;
    position: relative;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dragon-main {
    width: 250px;
    height: 250px;
    background-color: #f5deb3;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    border: 3px solid #00ff88;
    animation: dragonGlow 3s ease-in-out infinite alternate;
}

@keyframes dragonGlow {
    from { box-shadow: 0 0 20px rgba(0, 255, 136, 0.3); }
    to { box-shadow: 0 0 40px rgba(0, 255, 136, 0.6); }
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
    margin-top: 1rem;
}

/* Buttons - SMALLER AND MORE COMPACT */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, #ff6b9d, #ff8fab);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    min-height: 48px; /* Touch-friendly but smaller */
}

.btn:hover, .btn:active {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
}

.btn-primary {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #000000;
}

.btn-primary:hover, .btn-primary:active {
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #00b4d8, #0077b6);
}

.btn-secondary:hover, .btn-secondary:active {
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.4);
}

/* Sections - Mobile First */
.section {
    padding: 3rem 1rem;
    max-width: 100%;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #ffffff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section h3 {
    color: #00ff88;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 700;
}

/* Cards - Mobile Optimized */
.grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333333;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin-bottom: 0;
}

.card:hover, .card:active {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.1);
}

/* Dragon Gallery - Mobile Grid */
.dragon-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.dragon-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333333;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dragon-card:hover, .dragon-card:active {
    border-color: #00ff88;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
}

.dragon-image {
    width: 180px;
    height: 180px;
    background: #f5deb3;
    border-radius: 15px;
    margin: 0 auto 1rem;
    border: 2px solid #333333;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
}

.dragon-card:hover .dragon-image {
    border-color: #00ff88;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

/* Stats - Mobile Layout */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333333;
    border-radius: 15px;
    padding: 1.2rem 1rem;
    text-align: center;
    border-left: 4px solid #00ff88;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.05);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00ff88;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #888888;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Timeline - Mobile Optimized */
.timeline {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.timeline-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333333;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item:hover, .timeline-item:active {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.05);
}

.timeline-item h3 {
    color: #00ff88;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.timeline-item p {
    margin-bottom: 1rem;
    color: #cccccc;
}

.timeline-item ul {
    list-style: none;
    padding-left: 0;
}

.timeline-item li {
    padding: 0.2rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.timeline-item li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #00ff88;
    font-weight: bold;
}

/* Page Navigation */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

/* Footer Navigation - SMALLER AND COMPACT */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-top: 2px solid #333333;
    z-index: 1000;
    padding: 0.3rem 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.footer-nav-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem;
    max-width: 100%;
    padding: 0 0.5rem;
}

.footer-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.4rem;
    color: #888888;
    text-decoration: none;
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
    min-height: 50px;
    justify-content: center;
    position: relative;
}

.footer-nav-item:hover, .footer-nav-item:active {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
}

.footer-nav-item.active {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.footer-nav-item .icon {
    font-size: 1.1rem;
    margin-bottom: 0.1rem;
    transition: transform 0.3s ease;
}

.footer-nav-item.active .icon {
    transform: scale(1.2);
}

/* Page loading indicator */
.page-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #ff6b9d, #00b4d8);
    opacity: 0;
    animation: pageLoad 0.5s ease-in-out;
}

.page-section.active::before {
    opacity: 1;
}

@keyframes pageLoad {
    0% {
        width: 0%;
        opacity: 1;
    }
    100% {
        width: 100%;
        opacity: 0;
    }
}

/* Dragon Image Classes - Ready for Your Images */
.dragon-main.dragon-logo {
    background-image: url('images/main.jpg');
}

.dragon-rocket {
    background-image: url('images/roket.jpg');
    background-color: #f5deb3;
    background-size: cover;
    background-position: center;
}

.dragon-lambo {
    background-image: url('images/lambo.jpg');
    background-color: #f5deb3;
    background-size: cover;
    background-position: center;
}

.dragon-bike {
    background-image: url('images/bike.jpg');
    background-color: #f5deb3;
    background-size: cover;
    background-position: center;
}

/* Contract Address - SMALLER */
.contract-address {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid #00ff88;
    border-radius: 10px;
    padding: 0.8rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    word-break: break-all;
    text-align: center;
    margin: 1rem 0;
}

/* Desktop Responsive - MUCH MORE COMPACT */
@media (min-width: 768px) {
    .container {
        max-width: 1200px;
        padding: 0 2rem;
    }

    .hero {
        flex-direction: row;
        text-align: left;
        padding: 2rem;
        min-height: 70vh;
    }

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

    .hero-right {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero .subtitle {
        font-size: 1.4rem;
    }

    .hero .description {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: row;
        max-width: none;
    }

    .dragon-showcase {
        width: 300px;
        height: 300px;
    }

    .dragon-main {
        width: 280px;
        height: 280px;
    }

    .section {
        padding: 2rem;
    }

    .section h2 {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }

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

    .dragon-gallery {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        margin: 1.5rem 0;
    }

    .dragon-image {
        width: 160px;
        height: 160px;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .footer-nav-container {
        grid-template-columns: repeat(6, 1fr);
        max-width: 800px;
        margin: 0 auto;
        gap: 1rem;
    }

    .footer-nav-item {
        font-size: 0.8rem;
        padding: 0.8rem;
    }

    .timeline-item {
        padding: 1.5rem;
        margin: 1rem 0;
    }

    .card {
        padding: 1.5rem;
    }

    .dragon-card {
        padding: 1.5rem;
    }
}

/* Mobile Optimization */
@media (max-width: 767px) {
    /* Simplify galaxy animation on mobile for better performance */
    body::before {
        animation: galaxyRotate 120s linear infinite;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .dragon-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}