:root {
  --ios-bg: #05050a;
  --ios-glass: rgba(255, 255, 255, 0.05);
  --ios-border: rgba(255, 255, 255, 0.1);
  --ios-text: #ffffff;
  --ios-text-secondary: rgba(255, 255, 255, 0.7);
  --ios-accent: #007AFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  scroll-behavior: smooth;
  background-color: var(--ios-bg);
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  color: var(--ios-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

/* Glassmorphism Card Base */
.glass-card {
  background: var(--ios-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--ios-border);
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(20, 20, 30, 0.8);
}

@supports (backdrop-filter: blur(20px)) {
  .glass-card {
    background: var(--ios-glass);
  }
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.glass-card:active {
  transform: scale(0.98);
}

/* Typography */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.titulo {
  font-size: 32px;
  margin: 60px 0 30px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
}

/* Hero Section */
.topo-do-site {
  height: 100vh;
  height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  background-image: url("background.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  z-index: 1;
}

.dev {
  margin-top: -15px;
  font-size: clamp(40px, 8vw, 80px);
  margin-bottom: -15px;
  color: #ffffff;
}

.dev2 {
  font-size: clamp(40px, 8vw, 80px);
  color: var(--ios-text-secondary);
  margin-top: -15px;
  line-height: 1;
  border-right: 2px solid var(--ios-text-secondary);
  width: 9ch;
  overflow: hidden;
  white-space: nowrap;
  animation: blinkMarker 0.5s infinite, typing 5s infinite steps(9) forwards;
  
}
@keyframes typing {
  0% { width: 0; }
  40% { width: 9ch; }
  60% { width: 9ch; }
  80% { width: 9ch; }
  100% { width: 9ch; }
 
}

@keyframes blinkMarker {
  0%, 50% { border-color: var(--ios-text-secondary); }
  51%, 100% { border-color: transparent; }
}

.dev2 span {
  color: var(--ios-accent);
}

.setadown {
  margin-top: 50px;
  cursor: pointer;
  transition: transform 0.3s ease;
  animation: bounce 2s infinite;
}

.setadown img {
  width: 50px;
  height: auto;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-10px);}
  60% {transform: translateY(-5px);}
}

/* Skills Grid */
.minhasespecialidades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 90%;
  max-width: 1200px;
  padding: 20px;
}

.jslogo, .htmllogo, .csslogo, .reactlogo, .nodelogo, .javalogo, .gitlogo, .pylogo, .gmlogo {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.textoespec p {
  font-size: 14px;
  color: var(--ios-text-secondary);
}

.minhasespecialidades img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* Projects Grid */
.interface2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  width: 90%;
  max-width: 1000px;
  padding: 20px;
}

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

.projeto1, .projeto2, .projeto3, .projeto4 {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.projeto1 p:first-child, .projeto2 p:first-child, .projeto3 p:first-child, .projeto4 p:first-child {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
}

/* Buttons */
.gitbut {
  background: var(--ios-accent);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: auto;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.gitbut:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

.vejabutt {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.vejabutt:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* About Section */
.sobre {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  max-width: 800px;
  width: 90%;
  margin: 60px 0 100px;
  padding: 40px;
}

.sobre img {
  width: 180px;
  height: 180px;
  border-radius: 40px;
  object-fit: cover;
}

/* iOS Dock Navigation */
.ios-dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 30, 0.8);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  padding: 10px;
  border-radius: 24px;
  border: 1px solid var(--ios-border);
  display: flex;
  gap: 15px;
  z-index: 1000;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.dock-item {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.dock-item img {
  width: 30px;
  height: 30px;
}

.dock-item:hover {
  transform: scale(1.3) translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
}

.dock-item::after {
  content: attr(data-label);
  position: absolute;
  top: -40px;
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.dock-item:hover::after {
  opacity: 1;
}

/* Experience Timeline */
.experience-timeline {
  width: 90%;
  max-width: 800px;
  margin: 40px auto;
  position: relative;
  padding-left: 30px;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--ios-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 25px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ios-accent);
  border: 3px solid var(--ios-bg);
  z-index: 1;
}

.timeline-date {
  font-size: 12px;
  color: var(--ios-accent);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.timeline-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.timeline-company {
  font-size: 14px;
  color: var(--ios-text-secondary);
  margin-bottom: 10px;
}

/* Utilities */
.oculto {
  display: none;
  color: var(--ios-text-secondary);
  font-size: 14px;
  margin-top: 10px;
}

.expande {
  display: block;
  animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Fallback para garantir que elementos fiquem visíveis se o AOS falhar ou demorar */
[data-aos] {
  pointer-events: auto !important;
}

/* Se o JavaScript estiver desativado ou o AOS não carregar, mostra os elementos */
.no-js [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}
