* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;700&display=swap');

body {
    font-family: 'Caveat', cursive;
    color: #333;
}

/* Header Navigation */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: transparent;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.header.scrolled {
    background-color: #4b4b4b;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7));
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    transition: opacity 0.3s ease;
    font-family: 'Caveat', cursive;
}

.nav-menu a:hover {
    opacity: 0.8;
}

/* Hero Section (for timeline) */
.hero {
    background-image: url('../../images/hero.webp');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 40px;
}

.hero-subtitle {
    font-size: 24px;
    font-style: italic;
    margin-bottom: 20px;
    opacity: 0.95;
    font-weight: 500;
    font-family: 'Caveat', cursive;
}

.hero-title {
    font-size: 64px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    font-family: 'Caveat', cursive;
}

.heart {
    display: inline-block;
    margin: 0 10px;
    font-size: 56px;
}

/* Login Container (for logpage) */
.login-container {
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 60px 50px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    margin-top: 0;
}

body.logpage-body {
    background-color: #2a9b8e;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container h1 {
    font-size: 42px;
    color: #2a9b8e;
    margin-bottom: 15px;
    font-weight: 500;
    font-style: italic;
}

.login-container p {
    font-size: 20px;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 500;
}

/* Hints Section */
.hints {
    background: #f9f9f9;
    border-left: 4px solid #2a9b8e;
    padding: 15px 20px;
    margin: 25px 0;
    text-align: left;
    border-radius: 4px;
}

.hints h3 {
    color: #2a9b8e;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 500;
}

.hints ul {
    list-style: none;
    padding: 0;
}

.hints li {
    color: #333;
    font-size: 16px;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.hints li:before {
    content: "✨";
    position: absolute;
    left: 0;
}

/* Input Group */
.input-group {
    margin: 30px 0;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-family: 'Caveat', cursive;
    transition: border-color 0.3s ease;
    text-align: center;
    color: #333;
}

.input-group input:focus {
    outline: none;
    border-color: #2a9b8e;
    box-shadow: 0 0 8px rgba(42, 155, 142, 0.2);
}

.input-group input::placeholder {
    color: #999;
}

/* Shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.input-shake {
    animation: shake 0.5s ease-in-out;
}

/* Submit Button */
.submit-btn {
    background-color: #2a9b8e;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Caveat', cursive;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: 500;
}

.submit-btn:hover {
    background-color: #258075;
    transform: scale(1.02);
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Messages */
.error-message {
    color: #e74c3c;
    font-size: 16px;
    margin-top: 15px;
    display: none;
    font-weight: 500;
}

.success-message {
    color: #27ae60;
    font-size: 16px;
    margin-top: 15px;
    display: none;
    font-weight: 500;
}

/* Timeline Section */
.timeline-section {
    background: linear-gradient(135deg, #2a9b8e 0%, #248f7f 100%);
    padding: 80px 40px;
    min-height: 100vh;
}

.timeline-title {
    font-size: 42px;
    color: #fff;
    text-align: center;
    margin-bottom: 80px;
    font-weight: 500;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

/* Timeline line */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 100%);
    top: 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.timeline {
    list-style: none;
    padding: 0;
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

/* Alternating left and right */
.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
    width: 45%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    width: 45%;
    text-align: left;
}

/* Timeline dot */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid #2a9b8e;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.1);
}

/* Timeline content */
.timeline-content {
    background: rgba(255, 255, 255, 0.97);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.timeline-date {
    font-size: 16px;
    color: #2a9b8e;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-description {
    font-size: 18px;
    color: #333;
    margin: 0;
    font-weight: 500;
}

/* WhatsApp message bubble */
.whatsapp-bubble {
    background: linear-gradient(135deg, #25D366 0%, #20B956 100%);
    color: white;
    padding: 12px 15px;
    border-radius: 18px;
    display: inline-block;
    margin-top: 12px;
    max-width: 300px;
    font-size: 14px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    word-wrap: break-word;
}

.whatsapp-bubble::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-top: 10px solid #20B956;
}

.timeline-item:nth-child(odd) .whatsapp-bubble::after {
    right: auto;
    left: 10px;
    border-left: 0;
    border-right: 10px solid transparent;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .nav-menu {
        gap: 15px;
    }

    .nav-menu a {
        font-size: 14px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .heart {
        font-size: 36px;
        margin: 0 8px;
    }

    .login-container {
        padding: 40px 30px;
    }

    .login-container h1 {
        font-size: 32px;
    }

    .login-container p {
        font-size: 18px;
    }

    .hints li {
        font-size: 14px;
    }

    .submit-btn {
        font-size: 18px;
        padding: 12px 30px;
    }

    .timeline-section {
        padding: 50px 20px;
        min-height: auto;
    }

    .timeline-title {
        font-size: 32px;
        margin-bottom: 50px;
    }

    .timeline-container::before {
        left: 25px;
    }

    .timeline-item {
        margin-left: 70px;
        margin-bottom: 45px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: 100%;
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }

    .timeline-dot {
        left: 25px;
        width: 18px;
        height: 18px;
        border-width: 3px;
    }

    .timeline-date {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .timeline-description {
        font-size: 16px;
    }

    .timeline-content {
        padding: 20px;
        border-radius: 10px;
    }

    .whatsapp-bubble {
        font-size: 13px;
        padding: 11px 13px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 15px;
    }

    .logo {
        font-size: 14px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    body.logpage-body {
        padding: 10px;
    }

    .login-container {
        padding: 30px 20px;
    }

    .login-container h1 {
        font-size: 28px;
    }

    .login-container p {
        font-size: 16px;
    }

    .hints {
        padding: 12px 15px;
    }

    .hints h3 {
        font-size: 16px;
    }

    .hints li {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .submit-btn {
        font-size: 16px;
        padding: 12px 20px;
    }

    .timeline-section {
        padding: 35px 12px;
    }

    .timeline-title {
        font-size: 22px;
        margin-bottom: 35px;
        line-height: 1.3;
    }

    .timeline-container {
        max-width: 100%;
    }

    .timeline-container::before {
        left: 18px;
        width: 3px;
    }

    .timeline-item {
        margin-left: 50px;
        margin-bottom: 35px;
    }

    .timeline-dot {
        left: 18px;
        width: 16px;
        height: 16px;
        border-width: 2px;
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.1);
    }

    .timeline-content {
        padding: 14px 15px;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    }

    .timeline-date {
        font-size: 11px;
        margin-bottom: 5px;
        letter-spacing: 0.5px;
    }

    .timeline-description {
        font-size: 14px;
        line-height: 1.4;
    }

    .whatsapp-bubble {
        font-size: 12px;
        padding: 9px 11px;
        margin-top: 10px;
        max-width: 90%;
        border-radius: 16px;
    }

    .whatsapp-bubble::after {
        bottom: -4px;
        right: 8px;
        border-left: 8px solid transparent;
        border-top: 8px solid #20B956;
    }

    .timeline-item:nth-child(odd) .whatsapp-bubble::after {
        left: 8px;
        right: auto;
        border-left: 0;
        border-right: 8px solid transparent;
    }
}
