:root {
    --bg: rgba(255, 255, 255, 0.6);
    --text: #000;
    --shadow: rgba(0, 0, 0, 0.1);
    --blur: 20px;
    --gradient: linear-gradient(135deg, #dfe9f3, #ffffff);
  }
  
  .dark {
    --bg: rgba(25, 25, 25, 0.6);
    --text: #fff;
    --shadow: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(135deg, #121212, #1e1e1e);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  }
  
  body {
    background: var(--gradient);
    color: var(--text);
    min-height: 100vh;
    overflow-y: auto;
  }
  
  /* SPLASH SCREEN */
  #splash {
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background: var(--bg);
    backdrop-filter: blur(var(--blur));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    text-align: center;
    transition: opacity 0.8s ease;
  }
  .splash-photo {
    width: 150px; height:150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--text);
    margin-bottom: 20px;
    box-shadow: 0 8px 20px var(--shadow);
  }
  #splash h1 { font-size: 2rem; margin-bottom:10px; }
  #splash p { font-size:1rem; opacity:0.8; }
  
  /* HEADER */
  header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    backdrop-filter: blur(var(--blur));
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    box-shadow: 0 4px 20px var(--shadow);
  }
  
  .header-buttons { display:flex; gap:10px; }
  #grid-toggle, #theme-toggle {
    background: var(--bg);
    border:none;
    border-radius:50%;
    padding:10px;
    backdrop-filter: blur(var(--blur));
    box-shadow: 0 4px 10px var(--shadow);
    cursor:pointer;
    font-size:1.2rem;
    position: relative;
  }
  
  /* Menu de grid */
  .grid-menu { position:absolute; top:60px; right:0; display:flex; flex-direction:column; align-items:flex-start; }
  .grid-options { display:none; flex-direction:column; background:var(--bg); backdrop-filter:blur(var(--blur)); padding:10px; border-radius:10px; box-shadow:0 4px 15px var(--shadow);}
  .grid-options button { background:transparent; border:none; padding:5px 10px; cursor:pointer; font-weight:500; color:var(--text); border-radius:6px; transition:background 0.2s; }
  .grid-options button:hover { background: rgba(0,0,0,0.1); }
  .grid-menu-wrapper:hover .grid-options { display:flex; }
  
  /* MAIN */
  main { padding:50px 80px; display:flex; flex-direction:column; gap:60px; }
  .about, .projects, .contact, .gallery { background:var(--bg); backdrop-filter:blur(var(--blur)); box-shadow:0 4px 20px var(--shadow); border-radius:16px; padding:30px; }
  .projects h2, .gallery h2 { margin-bottom:20px; text-align:center; }
  
  /* CARDS */
  .cards, .photo-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:25px; }
  .card, .photo-card { background:var(--bg); backdrop-filter:blur(var(--blur)); border-radius:16px; box-shadow:0 8px 25px var(--shadow); padding:20px; transition: transform 0.2s ease, box-shadow 0.3s ease, opacity 0.5s ease; overflow:hidden; }
  .card:hover, .photo-card:hover { transform: translateY(-6px); box-shadow:0 10px 30px var(--shadow); }
  .card h3 { margin-bottom:10px; }
  .card p { opacity:0.9; font-size:0.95rem; }
  .card a { display:inline-flex; align-items:center; gap:6px; margin-top:15px; font-weight:600; color:var(--text); text-decoration:none; border-bottom:2px solid transparent; transition:border-color 0.3s; }
  .card a:hover { border-color: var(--text); }
  
  /* GALERIA */
  .gallery { opacity:0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
  .photo-card img { width:100%; height:auto; display:block; }
  
  /* SOCIAL / CONTATO */
  .social { display:flex; flex-wrap:wrap; justify-content:center; gap:20px; margin-top:20px; }
  .social a, .tooltip { display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--text); padding:10px 20px; border-radius:12px; background:var(--bg); backdrop-filter:blur(var(--blur)); box-shadow:0 4px 10px var(--shadow); transition: transform 0.3s, box-shadow 0.3s; font-weight:500; position:relative; }
  .social a:hover, .tooltip:hover { transform:translateY(-3px); box-shadow:0 8px 20px var(--shadow); }
  
  /* Tooltip telefone */
  .tooltiptext {
    visibility:hidden;
    width:max-content;
    background:var(--bg);
    backdrop-filter:blur(var(--blur));
    color:var(--text);
    text-align:center;
    padding:8px 12px;
    border-radius:10px;
    position:absolute;
    bottom:130%;
    left:50%;
    transform:translateX(-50%);
    box-shadow:0 4px 15px var(--shadow);
    opacity:0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size:0.9rem;
  }
  .tooltip:hover .tooltiptext { visibility:visible; opacity:1; transform:translateX(-50%) translateY(-5px); }
  
  /* FOOTER */
  footer { text-align:center; padding:30px; opacity:0.8; }
  