/* ============================================
   Victoria Ruiz Griffith Portfolio
   Mexican Talavera-Inspired Theme
   Shared Base Styles
   ============================================ */

/* -------------------------------------------
   1. CSS Variables (Color Palette)
   ------------------------------------------- */
:root {
    /* Primary Blues */
    --azul-cobalto: #1a4b8c;
    --azul-profundo: #0d2d5a;
    --azul-brillante: #2e6bc4;

    /* Warm Accents */
    --terracotta: #c45c3e;
    --terracotta-brillante: #e86f4c;
    --amarillo-sol: #f4b942;
    --amarillo-dorado: #d4941a;

    /* Greens */
    --verde-hoja: #2d7a4f;
    --verde-esmeralda: #1a5c3a;

    /* Neutrals */
    --crema: #faf6ef;
    --crema-calida: #f5ede0;
    --ink: #1a1a1a;
    --ink-light: #4a4a4a;
}

/* -------------------------------------------
   2. Reset & Base Styles
   ------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--crema);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

/* -------------------------------------------
   3. Common Animations
   ------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

/* -------------------------------------------
   4. Background Patterns
   ------------------------------------------- */

/* Talavera tile pattern */
.tile-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%231a4b8c' stroke-width='1'%3E%3Ccircle cx='60' cy='60' r='30'/%3E%3Ccircle cx='60' cy='60' r='20'/%3E%3Ccircle cx='60' cy='60' r='10'/%3E%3Cpath d='M60 30 Q75 45 60 60 Q45 45 60 30'/%3E%3Cpath d='M60 90 Q75 75 60 60 Q45 75 60 90'/%3E%3Cpath d='M30 60 Q45 75 60 60 Q45 45 30 60'/%3E%3Cpath d='M90 60 Q75 75 60 60 Q75 45 90 60'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 120px;
}

/* Cross pattern (for project pages) */
.cross-pattern::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a4b8c' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}
