/* Base Styles */
:root {
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --dark-green: #2e4d3a;
    --light-green: #4a7c59;
    --text-dark: #65655d;
    --text-light: #65655d;
    --bg-light: #fcfcfc;
}

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

body {
    font-family: 'Cormorant Garamond', serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

h1,
h2,
h3,
.hidden-date {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
}

.hidden {
    display: none !important;
}

/* Typography */
.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Hero Section */
.hero-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    position: relative;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    margin-top: 0;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    /* Limit on desktop */
    height: auto;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Scratch Section */
.scratch-section {
    padding: 4rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
}

.scratch-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.scratch-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
    overflow: hidden;
}

.hidden-date {
    font-size: 1.8rem;
    color: var(--text-light);
    z-index: 1;
}

.scratch-item canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    cursor: crosshair;
}

#congrats-message {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    animation: fadeIn 1s ease-in-out;
}

#congrats-message h3 {
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

#congrats-message p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.scroll-down-hint {
    margin-top: 3rem;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    animation: bounce 2s infinite;
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--text-light);
    margin: 10px auto 0;
}

/* Countdown Section */
.countdown-section {
    padding: 4rem 1rem;
    background-color: #f5f7f5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0 3rem;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    min-width: 70px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(46, 77, 58, 0.1);
}

.time-block span:first-child {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
}

.time-block .label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
}

.location-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--dark-green);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 77, 58, 0.3);
}

.location-btn:hover {
    background-color: var(--light-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 77, 58, 0.4);
}

/* Wish Form Section */
.wish-section {
    padding: 5rem 1rem;
    background-image: url('../dilek_arkafon.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.wish-form-container {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.wish-form-container .section-title {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(74, 124, 89, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-dark);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--light-green);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
    background: #fff;
}

input::placeholder,
textarea::placeholder {
    color: #999;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--dark-green);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--light-green);
}

.submit-btn:disabled {
    background-color: #999;
    cursor: not-allowed;
}

#form-message {
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

#form-message.success {
    color: var(--text-dark);
}

#form-message.error {
    color: #e74c3c;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Media Queries */
@media (max-width: 480px) {
    .scratch-container {
        gap: 1rem;
    }

    .scratch-item {
        width: 80px;
        height: 80px;
    }

    .hidden-date {
        font-size: 1.4rem;
    }

    .countdown-container {
        gap: 0.5rem;
    }

    .time-block {
        min-width: 60px;
        padding: 0.8rem;
    }

    .time-block span:first-child {
        font-size: 1.5rem;
    }
}