/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Courgette&display=swap');

/* CSS Variables */
:root {
    /* Light theme (default) */
    --container-white: #eee;
    --title-color: #1f60a6;
    --span-color: #2980b9;
    --btn-color: #2980b9;
    --btn-text-color: #fff;
    --btn-hover-color: #1f60a6;
    --box-background: #fff;
    --box-border: #ffffff;
    --paragraph-color: #667;
    --background-color: #fff;
    --heading-color: #333;
}

[data-theme="dark"] {
    --container-white: #000000/*#1a1a1a*/;
    --title-color: #4a9eff;
    --span-color: #64b5ff;
    --btn-color: #127bc0;
    --btn-text-color: #fff;
    --btn-hover-color: #1f8ddb;
    --box-background: #2d2d2d;
    --box-border: #444;
    --paragraph-color: #bbb;
    --background-color: #121212;
    --heading-color: #fff;
}

/* Reset Styles */
* {
    font-family: 'Courgette', cursive;
    font-weight: 600;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    text-transform: capitalize;
    -webkit-tap-highlight-color: transparent;
}

/* Container Styles */
.container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px 7%;
    background: var(--container-white);
    min-height: 100vh;
    gap: 15px;
    padding-bottom: 80px;
}

.container .content {
    flex: 1 1 400px;
}

.container .image {
    flex: 1 1 400px;
}

.container .image img {
    width: 100%;
    height: auto;
    -webkit-user-drag: none;
}

/* Typography */
.container .content .title {
    font-size: 45px;
    text-transform: uppercase;
    color: var(--title-color);
    margin-bottom: 55px;
    text-align: center;
    opacity: 0;
    animation: titleDrop 1s cubic-bezier(0.17, 0.67, 0.83, 0.67) forwards;
}

.container .content p {
    color: var(--paragraph-color);
    padding: 15px 0;
    line-height: 1.8;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.7s;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

@keyframes slideInText {
    0% {
        transform: translateX(-50px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container .content p {
        font-size: 1rem;
        padding: 10px 20px;
        max-width: 90%;
    }
}

@media (max-width: 500px) {
    .container .content p {
        font-size: 0.95rem;
        line-height: 1.6;
        padding: 10px 15px;
    }
}

/* Countdown Styles */
.container .content .count-down {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1s;
}

.container .content .count-down .box {
    padding: 12px;
    background: var(--box-background);
    border: 1px solid var(--box-border);
    border-radius: 15px;
    text-align: center;
    flex: 1 1 20px;
    transition: transform 0.3s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transform: translateY(50px);
    opacity: 0;
}

.container .content .count-down .box:nth-child(1) {
    animation: boxPopUp 0.5s ease forwards;
    animation-delay: 1.2s;
}

.container .content .count-down .box:nth-child(2) {
    animation: boxPopUp 0.5s ease forwards;
    animation-delay: 1.4s;
}

.container .content .count-down .box:nth-child(3) {
    animation: boxPopUp 0.5s ease forwards;
    animation-delay: 1.6s;
}

.container .content .count-down .box:nth-child(4) {
    animation: boxPopUp 0.5s ease forwards;
    animation-delay: 1.8s;
}

.container .content .count-down .box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25);
}

.container .content .count-down .box h3 {
    font-size: 25px;
    color: var(--heading-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container .content .count-down .box span {
    color: var(--span-color);
    font-size: 15px;
    padding: 5px 0;
    display: block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Button Container Styles */
.btn-container {
    margin-top: 50px;
    text-align: left;
    position: relative;
    padding-left: 20px;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInButton 0.8s cubic-bezier(0.17, 0.67, 0.83, 0.67) forwards;
    animation-delay: 2.2s;
}

/* Modern Button Style */
.btn {
    display: inline-block;
    padding: 16px 45px;
    font-size: 18px;
    color: #fff;
    background: rgba(18, 123, 192, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 0 20px rgba(18, 123, 192, 0.5),
        0 0 40px rgba(18, 123, 192, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: translateX(-100%);
    transition: 0.6s;
}

.btn:hover {
    background: rgba(18, 123, 192, 0.95);
    color: #fff;
    box-shadow: 
        0 0 30px rgba(18, 123, 192, 0.8),
        0 0 60px rgba(18, 123, 192, 0.6),
        0 0 90px rgba(18, 123, 192, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.5);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
    letter-spacing: 4px;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 
        0 0 20px rgba(18, 123, 192, 0.7),
        0 0 40px rgba(18, 123, 192, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(
        45deg,
        rgba(18, 123, 192, 0.8),
        rgba(255, 255, 255, 0.5),
        rgba(18, 123, 192, 0.8)
    );
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.8;
        filter: brightness(1);
    }
    50% {
        opacity: 1;
        filter: brightness(1.3);
    }
}

/* Animations */
@keyframes slideDown {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideTop {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes boxPopUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    60% {
        transform: translateY(-20px);
        opacity: 0.7;
    }
    80% {
        transform: translateY(10px);
        opacity: 0.9;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInButton {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes titleDrop {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    60% {
        transform: translateY(20px);
        opacity: 0.7;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideInParagraph {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    20% {
        opacity: 0.2;
    }
    60% {
        transform: translateX(20px);
        opacity: 0.8;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInQuote {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Theme Switch Styles */
.theme-switch-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    z-index: 100;
}

.theme-switch {
    display: inline-block;
    position: relative;
    width: 60px;
    height: 34px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--box-background);
    transition: .4s;
    border-radius: 34px;
    border: 2px solid var(--btn-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 2px;
    bottom: 2px;
    background-color: var(--btn-color);
    transition: .4s;
    border-radius: 50%;
}

.slider .fas {
    color: var(--btn-color);
    font-size: 14px;
}

input:checked + .slider {
    background-color: var(--box-background);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Media Queries */
@media (max-width: 768px) {
    .container {
        padding: 20px 5%;
    }
    
    .container .content .title {
        font-size: 35px;
    }
    
    .container .content p {
        font-size: 1rem;
        padding: 10px 20px;
        max-width: 90%;
    }
}

@media (max-width: 500px) {
    .container {
        padding: 20px;
    }
    
    .container .content {
        text-align: center;
    }
    
    .container .content .title {
        font-size: 30px;
    }
    
    .container .content p {
        font-size: 0.95rem;
        line-height: 1.6;
        padding: 10px 15px;
    }
    
    .container .content .count-down {
        gap: 5px;
    }
    
    .container .content .count-down .box h3 {
        font-size: 20px;
    }
    
    .container .content .count-down .box span {
        font-size: 13px;
    }
}

/* Update existing styles to use variables */
body {
    background-color: var(--background-color);
    transition: background-color 0.3s ease;
}

.container {
    background-color: var(--container-white);
}

.container .content .title {
    color: var(--title-color);
}

.container .content p {
    color: var(--paragraph-color);
}

.container .content .count-down .box {
    background: var(--box-background);
    border-color: var(--box-border);
}

.container .content .count-down .box span {
    color: var(--span-color);
}

.container .content .count-down .box p {
    color: var(--heading-color);
}
