/* --- Annette Hernandez Portfolio 2025 ---
   Theme: Soft Lavender + Mint + Peach
   Author: Adriana Padilla
   Notes: Added animations for fun + polished look
*/

/* ===============================
   0. GOOGLE FONTS IMPORT
=============================== */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600&family=Comfortaa:wght@700&display=swap');

/* ===============================
   1. CSS VARIABLES (Theme Colors)
=============================== */
:root {
    --primary: #B39DDB;   /* Soft Lavender */
    --accent: #FFAB91;    /* Peach */
    --secondary: #80CBC4; /* Mint */
    --text: #333333;      /* Dark text */
    --bg: #FDFDFD;        /* Light background */
}

/* ===============================
   2. BASE STYLES & TYPOGRAPHY
=============================== */
body {
    font-family: 'Nunito Sans', sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

h2 {
    font-family: 'Comfortaa', cursive;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

h3 {
    font-family: 'Comfortaa', cursive;
    margin: 0.5rem 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===============================
   3. HEADER
=============================== */
header {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 3rem 1rem 2rem;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

header h1 {
    font-family: 'Comfortaa', cursive;
    font-size: 3rem;
    margin: 0;
    animation: fadeIn 1.2s ease forwards;
}

header p {
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* ===============================
   4. SECTIONS
=============================== */
.section {
    padding: 3rem 1rem;
    max-width: 900px;
    margin: 2rem auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    text-align: center;
    opacity: 0;
    animation: slideUp 1s ease forwards;
}

.section h2 {
    font-size: 2rem;
}

/* ===============================
   5. BUTTONS
=============================== */
.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.7rem 1.4rem;
    margin: 0.5rem;
    font-weight: 600;
    transition: background 0.25s, transform 0.2s;
}

.btn:hover {
    background: #ff8f72;
    transform: translateY(-2px);
}

/* pulse animation for button */
.pulse {
    animation: pulse 2s infinite;
}

/* ===============================
   6. GRID & CARDS
=============================== */
.grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 2rem;
}

.card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    text-align: center;
    padding: 1rem;
}

.card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Special styling for skills */
.skill-card h3 {
    color: var(--accent);
    font-size: 1.2rem;
}

/* ===============================
   7. ANIMATIONS
=============================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes bounceCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

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

/* animation classes */
.fade-in { animation: fadeIn 1.2s ease forwards; }
.fade-in-delay { animation: fadeIn 1.5s ease forwards; animation-delay: 0.3s; }
.fade-in-delay2 { animation: fadeIn 1.8s ease forwards; animation-delay: 0.6s; }

.slide-up { animation: slideUp 1s ease forwards; }

.bounce { animation: bounceCard 3s infinite ease-in-out; }

/* ===============================
   8. FOOTER
=============================== */
footer {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--secondary);
    color: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin-top: 3rem;
}

/* ===============================
   9. RESPONSIVE
=============================== */
@media (max-width: 900px) {
    header h1 { font-size: 2.5rem; }
}

@media (max-width: 600px) {
    header h1 { font-size: 2rem; }
    .card img { width: 90%; }
    .btn { padding: 0.5rem 1.2rem; font-size: 0.95rem; }
}

/* ===============================
   10. Contact Button
=============================== */
#contact .btn {
    display: inline-block;
    margin-top: 0.8rem;
}

