:root {
    --aviator-navy: #1A237E;
    --aviator-red: #B71C1C;
    --aviator-beige: #F5F5DC;
    --aviator-blue: #64B5F6;
    --aviator-text: #37474F;
    --font-heading: 'Rye', serif;
    --font-body: 'Roboto Slab', serif;
}

body {
    background-color: var(--aviator-beige);
    color: var(--aviator-text);
    font-family: var(--font-body);
    font-weight: 300;
    overflow-x: hidden;
    background-image: repeating-linear-gradient(45deg, #F0F0D0 25%, transparent 25%, transparent 75%, #F0F0D0 75%, #F0F0D0), repeating-linear-gradient(45deg, #F0F0D0 25%, #F5F5DC 25%, #F5F5DC 75%, #F0F0D0 75%, #F0F0D0);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300;400;700&family=Rye&display=swap');

h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--aviator-navy);
    text-shadow: 2px 2px 0px rgba(183, 28, 28, 0.2);
}

h2,
h3 {
    font-family: var(--font-heading);
    color: var(--aviator-navy);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--aviator-navy);
    border-bottom: 3px double var(--aviator-red);
    display: inline-block;
    padding-bottom: 5px;
}

/* Components */
.aviator-card {
    background: white;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(26, 35, 126, 0.15);
    border: 2px solid var(--aviator-navy);
    position: relative;
    border-radius: 5px;
}

/* Stamp border effect */
.aviator-card::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 2px dashed var(--aviator-red);
    pointer-events: none;
}

/* Badge/Sticker */
.aviator-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 50px;
    height: 50px;
    background: var(--aviator-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: var(--font-heading);
    transform: rotate(15deg);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-aviator {
    background-color: var(--aviator-navy);
    color: white;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 35px;
    border-radius: 5px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 0px #0D144A;
    /* 3D Button style */
}

.btn-aviator:hover {
    transform: translateY(2px);
    box-shadow: 0 3px 0px #0D144A;
    background-color: #283593;
    color: white;
    text-decoration: none;
}

.btn-aviator:active {
    transform: translateY(5px);
    box-shadow: none;
}

/* Hero Section */
.hero-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #81D4FA 0%, #E1F5FE 60%, var(--aviator-beige) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
    background: white;
    max-width: 600px;
    border: 4px solid var(--aviator-navy);
    transform: rotate(-2deg);
    /* Postcard tilt */
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2);
}

.stamp-mark {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    border: 3px dashed var(--aviator-text);
    border-radius: 50%;
    opacity: 0.3;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-15deg);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-align: center;
    line-height: 1;
}

.hero-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    margin: 20px auto;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: rotate(2deg);
}

/* Countdown */
.aviator-countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
    background: var(--aviator-navy);
    padding: 15px;
    color: white;
    border-radius: 5px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.count-box {
    text-align: center;
    min-width: 50px;
}

.count-box span {
    font-family: var(--font-heading);
    font-size: 2rem;
    display: block;
    line-height: 1;
    color: var(--aviator-blue);
}

.count-box small {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Clouds Canvas */
#skyCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Music */
.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.btn-music-aviator {
    width: 55px;
    height: 55px;
    background: var(--aviator-red);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.btn-music-aviator:hover {
    transform: rotate(360deg);
}