/* ============================================
   AV FOTOS - LINKTREE DESIGN
   Design Philosophy: Minimalismo Fotográfico Contemporâneo
   Paleta: Tons marrons naturais com bege e dourado suave
   ============================================ */

/* Reset e Variáveis CSS */
:root {
    --color-dark-brown: #3E2723;
    --color-medium-brown: #6D4C41;
    --color-light-brown: #A1887F;
    --color-cream: #F5F1EE;
    --color-gold: #D4A574;
    --color-text: #fffed7;
    --color-text-light: #6D4C41;
    --color-border: #D7CCC8;
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-subtle: 0 2px 8px rgba(62, 39, 35, 0.08);
    --shadow-medium: 0 4px 12px rgba(62, 39, 35, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-cream);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
}

/* Container Principal */
.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   PROFILE SECTION
   ============================================ */

.profile {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.6s ease-out;
}

.profile-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-medium-brown), var(--color-light-brown));
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border: 3px solid var(--color-gold);
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(62, 39, 35, 0.16);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.profile-bio {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 24px;
    font-weight: 400;
    line-height: 1.5;
}

/* Divisor Elegante */
.divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    margin: 24px auto;
}

/* ============================================
   LINKS SECTION
   ============================================ */

.links {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background-color: white;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* Animação em cascata para cada link */
.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.3s; }
.link-card:nth-child(4) { animation-delay: 0.4s; }
.link-card:nth-child(5) { animation-delay: 0.5s; }

/* Efeito de background no hover */
.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--color-gold);
    transition: left 0.3s ease-out;
    z-index: -1;
}

.link-card:hover::before {
    left: 0;
}

/* Hover Effects */
.link-card:hover {
    border-color: var(--color-gold);
    color: var(--color-dark-brown);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.link-card:active {
    transform: translateY(-1px);
}

.link-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: var(--transition);
}

.link-card:hover .link-icon {
    transform: scale(1.1);
}

.link-text {
    flex: 1;
    text-align: left;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-light);
    font-size: 1rem;
    animation: fadeIn 0.8s ease-out 0.6s both;
}

.footer p {
    margin: 0;
}

/* ============================================
   ANIMAÇÕES
   ============================================ */

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   FUNDO COM ÍCONES SVG ALEATÓRIOS (arquivos externos)
   ============================================ */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  opacity: 0.05; /* Ajuste a transparência aqui */
  pointer-events: none;
  
  /* Referencie os arquivos da pasta img/ */
  background-image:
    url('img/SVG/camera1.svg'),
    url('img/SVG/camera2.svg'),
    url('img/SVG/camera3.svg'),
    url('img/SVG/camera4.svg'),
    url('img/SVG/camera3.svg');
  
  /* Posições "aleatórias" simuladas */
  background-position:
    15% 25%,    /* Ícone 1 */
    80% 60%,    /* Ícone 2 */
    90% 10%,    /* Ícone 3 */
    86% 95%,    /* Ícone 4 */
    20% 80%;    /* Ícone 5 */
  
  background-repeat: no-repeat;
  background-size: 130px; /* Tamanho uniforme para todos */
}

/* Efeito sutil em telas maiores */
@media (min-width: 1024px) {
  body::before {
    background-size: 130px;
    opacity: 0.07;
  }
}


/* ============================================
   FONTES PERSONALIZADAS
   ============================================ */

/* 1. Definir a fonte customizada */
@font-face {
  font-family: 'Gemola'; /* Nome que você vai usar */
  src: url('fonts/Gemola.woff2') format('woff2'),
       url('fonts/Gemola.woff') format('woff');
  font-weight: 400; /* Peso normal */
  font-style: normal;
  font-display: swap; /* Otimização de carregamento */
}

@font-face {
  font-family: 'Gemola';
  src: url('fonts/Gemola.woff2') format('woff2'),
       url('fonts/Gemola.woff') format('woff');
  font-weight: 700; /* Negrito */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gemola';
  src: url('fonts/Gemola.woff2') format('woff2'),
       url('fonts/Gemola.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* 2. Atualizar as variáveis CSS */
:root {
  /* Adicione esta linha às suas variáveis existentes */
  --font-custom: 'Gemola', var(--font-serif);
  
  /* Mantenha as outras variáveis */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  /* ... resto das variáveis ... */
}

/* 3. Aplicar ao elemento específico */
.profile-name {
  font-family: var(--font-custom); /* ← Usa sua fonte */
  font-size: 2.5rem;
  font-weight: 700;
  /* ... resto do estilo ... */
}

/* OU aplicar em todo o site */
body {
  font-family: 'Gemola', var(--font-sans);
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

/* Tablets */
@media (max-width: 768px) {
    .container {
        padding: 30px 16px;
    }

    .profile {
        margin-bottom: 32px;
    }

    .profile-image {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }

    .profile-name {
        font-size: 2rem;
    }

    .profile-bio {
        font-size: 0.95rem;
    }

    .link-card {
        padding: 14px 20px;
        font-size: 1rem;
        gap: 10px;
    }

    .link-icon {
        width: 20px;
        height: 20px;
    }
}

/* Smartphones */
@media (max-width: 480px) {
    .container {
        padding: 24px 12px;
    }

    .profile {
        margin-bottom: 28px;
    }

    .profile-image {
        width: 90px;
        height: 90px;
        margin-bottom: 16px;
        border-width: 2px;
    }

    .profile-name {
        font-size: 1.75rem;
        margin-bottom: 10px;
    }

    .profile-bio {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .divider {
        width: 50px;
        margin: 20px auto;
    }

    .links {
        gap: 12px;
        margin-bottom: 32px;
    }

    .link-card {
        padding: 12px 16px;
        font-size: 0.95rem;
        gap: 8px;
        border-radius: 6px;
    }

    .link-icon {
        width: 18px;
        height: 18px;
    }

    .link-text {
        font-size: 0.95rem;
    }

    .footer {
        padding-top: 16px;
        font-size: 0.8rem;
    }
}

/* Smartphones muito pequenos */
@media (max-width: 360px) {
    .container {
        padding: 20px 10px;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .link-card {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

/* ============================================
   ACESSIBILIDADE
   ============================================ */

/* Focus visible para navegação por teclado */
.link-card:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* Reduz animações para usuários que preferem movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Modo escuro (opcional) */
@media (prefers-color-scheme: dark) {
    :root {
        --color-cream: #2C2520;
        --color-text: #F5F1EE;
        --color-text-light: #D7CCC8;
        --color-border: #4E342E;
    }

    .link-card {
        background-color: #3E2723;
        border-color: var(--color-border);
    }

    .link-card:hover {
        background-color: var(--color-medium-brown);
    }
}
