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

body {
    font-family: 'Kanit', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 30%;
    animation-delay: 1s;
}

.shape-5 {
    width: 140px;
    height: 140px;
    top: 40%;
    left: 50%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 800px;
    width: 100%;
}

.logo {
    font-size: 4rem;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.main-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: slideInUp 1s ease-out;
}

.gradient-text {
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.sub-title {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideInUp 1s ease-out 0.2s both;
}

.description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    opacity: 0.8;
    animation: slideInUp 1s ease-out 0.4s both;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    animation: slideInUp 1s ease-out 0.6s both;
}

.time-unit {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    min-width: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #feca57;
}

.label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.notify-section {
    margin-bottom: 3rem;
    animation: slideInUp 1s ease-out 0.8s both;
}

.notify-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.email-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.email-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.email-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.email-form button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.email-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: slideInUp 1s ease-out 1s both;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    height: 10px;
    overflow: hidden;
    animation: slideInUp 1s ease-out 1.2s both;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border-radius: 50px;
    transition: width 0.5s ease;
    animation: progressAnimation 2s ease-out;
}

.progress-text {
    position: absolute;
    top: -30px;
    right: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

@keyframes progressAnimation {
    from {
        width: 0;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .countdown {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .time-unit {
        min-width: 80px;
        padding: 1rem 0.5rem;
    }
    
    .number {
        font-size: 2rem;
    }
    
    .email-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .social-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .logo {
        font-size: 3rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .countdown {
        gap: 0.5rem;
    }
    
    .time-unit {
        min-width: 70px;
        padding: 0.8rem 0.3rem;
    }
    
    .number {
        font-size: 1.5rem;
    }
}

/* Thai Flag Animation */
@keyframes proudFlag {
    0% { 
        transform: scale(1) rotate(0deg); 
    }
    25% { 
        transform: scale(1.05) rotate(2deg); 
    }
    50% { 
        transform: scale(1.1) rotate(0deg); 
    }
    75% { 
        transform: scale(1.05) rotate(-2deg); 
    }
    100% { 
        transform: scale(1) rotate(0deg); 
    }
}

/* Thai Flag Container */
.thai-flag-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.thai-flag {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: proudFlag 4s ease-in-out infinite;
    transform-origin: center;
    transition: transform 0.3s ease;
}

.thai-flag:hover {
    animation-play-state: paused;
    transform: scale(1.2) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .thai-flag {
        width: 45px;
        height: 30px;
    }
}

/* ธงชาติแบบ CSS Pure */
.thai-flag-css {
    width: 60px;
    height: 40px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: flagWave 3s ease-in-out infinite;
}

.thai-flag-css::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        #ED1C24 0%, #ED1C24 16.67%,
        #FFFFFF 16.67%, #FFFFFF 33.33%,
        #241D4F 33.33%, #241D4F 66.67%,
        #FFFFFF 66.67%, #FFFFFF 83.33%,
        #ED1C24 83.33%, #ED1C24 100%
    );
}

/* Responsive */
@media (max-width: 768px) {
    .thai-flag {
        width: 45px;
        height: 30px;
    }
    
    .thai-flag-css {
        width: 45px;
        height: 30px;
    }
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Responsive สำหรับมือถือ */
@media (max-width: 768px) {
    .thai-flag-icon {
        font-size: 2rem;
        margin: 10px 0;
    }
}