/* ========================================
   VARIÁVEIS CSS
   ======================================== */
:root {
    --primary: #880e4f;
    --primary-light: #ad1457;
    --secondary: #c2185b;
    --accent: #fce4ec;
    --accent-dark: #f8bbd9;
    --text-primary: #2d1b2e;
    --text-secondary: #6a1b9a;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(136, 14, 79, 0.1);
    --shadow-md: 0 4px 15px rgba(136, 14, 79, 0.15);
    --shadow-lg: 0 8px 30px rgba(136, 14, 79, 0.2);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   RESET E CONFIGURAÇÕES GLOBAIS
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 50%, #f48fb1 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 100px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ========================================
   TIPOGRAFIA
   ======================================== */
.dancing-font {
    font-family: 'Dancing Script', cursive;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
}

.main-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(136, 14, 79, 0.1);
    animation: fadeInDown 0.8s ease-out;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--secondary);
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* ========================================
   SEÇÃO DO CONTADOR
   ======================================== */
.counter-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin-bottom: 4rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: fadeIn 0.8s ease-out 0.4s backwards;
}

.counter-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 600;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.counter-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.counter-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.counter-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.counter-date {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* ========================================
   GALERIA DE FOTOS
   ======================================== */
.gallery-section {
    margin-bottom: 4rem;
    animation: fadeIn 0.8s ease-out 0.6s backwards;
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: var(--primary);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 600;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.photo-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    background: white;
    aspect-ratio: 1;
}

.photo-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.photo-item:hover img {
    transform: scale(1.1);
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(136, 14, 79, 0.95), transparent);
    color: white;
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: var(--transition);
    font-size: 0.9rem;
    text-align: center;
}

.photo-item:hover .photo-caption {
    transform: translateY(0);
}

/* ========================================
   SEÇÃO DE MENSAGEM
   ======================================== */
.message-section {
    margin-bottom: 4rem;
    animation: fadeIn 0.8s ease-out 0.8s backwards;
}

.message-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.message-card::before {
    content: '❤️';
    font-size: 3rem;
    position: absolute;
    top: 20px;
    left: 30px;
    opacity: 0.3;
}

.message-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: justify;
    position: relative;
}

.signature {
    text-align: right;
    font-style: italic;
    color: var(--text-secondary);
}

.signature-name {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 0.5rem;
}

/* ========================================
   RODAPÉ
   ======================================== */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========================================
   ANIMAÇÕES
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite both;
}

@keyframes heartbeat {
    from {
        transform: scale(1);
        transform-origin: center center;
        animation-timing-function: ease-out;
    }
    10% {
        transform: scale(0.91);
        animation-timing-function: ease-in;
    }
    17% {
        transform: scale(0.98);
        animation-timing-function: ease-out;
    }
    33% {
        transform: scale(0.87);
        animation-timing-function: ease-in;
    }
    45% {
        transform: scale(1);
        animation-timing-function: ease-out;
    }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

/* ========================================
   UTILITÁRIOS
   ======================================== */
.glass-effect {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */
@media (max-width: 768px) {
    .container {
        padding: 30px 15px;
    }

    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .message-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }

    .counter-number {
        font-size: 2rem;
    }

    .message-text {
        font-size: 1rem;
        text-align: left;
    }
}