@import url('https://fonts.googleapis.com/css2?family=Special+Gothic+Expanded+One&display=swap');

/* Reset e configurações básicas */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Special Gothic Expanded One", sans-serif; 
  background-color: #000;
  color: #fff;
  overflow: -moz-scrollbars-none;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Esconder scrollbars */
body::-webkit-scrollbar,
*::-webkit-scrollbar,
html::-webkit-scrollbar,
.container::-webkit-scrollbar,
.container-fluid::-webkit-scrollbar,
section::-webkit-scrollbar,
div::-webkit-scrollbar,
.code-box::-webkit-scrollbar,
.project-card::-webkit-scrollbar,
.upcoming-card::-webkit-scrollbar,
.journey-card::-webkit-scrollbar,
.overflow-auto::-webkit-scrollbar,
.overflow-scroll::-webkit-scrollbar,
.overflow-y-auto::-webkit-scrollbar,
.overflow-x-auto::-webkit-scrollbar {
  display: none;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Links básicos */
a {
  text-decoration: none;
  color: white;
}

/* Loading screen */
#loading {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
  contain: layout style paint;
}

/* Loading text container */
.loading-text {
  text-align: center;
  line-height: 1.2;
  word-wrap: break-word;
  max-width: 100%;
  overflow: hidden;
}

/* Loading line styles */
.loading-line {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.loading-line span {
  margin: 0 2px;
  font-family: "Special Gothic Expanded One", sans-serif;
  font-size: 120px;
  color: rgba(255, 255, 255, 0.1);
  position: relative;
  display: inline-block;
  opacity: 0;
}

/* Responsive font sizes for loading text */
@media (max-width: 1200px) {
  .loading-line span {
    font-size: 100px;
  }
}

@media (max-width: 992px) {
  .loading-line span {
    font-size: 80px;
  }
}

@media (max-width: 768px) {
  .loading-line span {
    font-size: 60px;
    margin: 0 1px;
  }
}

@media (max-width: 576px) {
  .loading-line span {
    font-size: 40px;
  }
}

@media (max-width: 400px) {
  .loading-line span {
    font-size: 32px;
    margin: 0;
  }
  
  .loading-text {
    line-height: 1.1;
  }
}

@media (max-width: 320px) {
  .loading-line span {
    font-size: 28px;
  }
  
  .loading-text {
    line-height: 1;
  }
}

/* Glowing overlay */
.loading-text span::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  color: #3B82F6;
  opacity: 0;
}

/* Hero Section Styles */
.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.greeting-text {
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero-title {
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 1s forwards;
}

.name-text {
  font-family: "Special Gothic Expanded One", sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  position: relative;
  overflow: hidden;
}

.name-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #FFFFFF, transparent);
  animation: underlineSlide 1.5s ease-out 2s forwards;
}

@keyframes underlineSlide {
  to {
    width: 100%;
  }
}

.role-text {
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.5s forwards;
}

.hero-description {
  font-size: 1.25rem;
  color: #CCCCCC;
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeInUp 1s ease-out 2s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 2.5s forwards;
}

.modern-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.modern-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.modern-btn:hover::before {
  left: 100%;
}

.modern-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-text {
  font-weight: 500;
  letter-spacing: 0.5px;
}

.btn-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.modern-btn:hover .btn-icon {
  transform: translateX(4px);
}

.action-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
}

.text-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
}

.text-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
  transition: width 0.3s ease;
}

.text-link:hover {
  color: #FFFFFF;
}

.text-link:hover::after {
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .name-text {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .modern-btn {
    width: 250px;
    justify-content: center;
  }
  
  .action-divider {
    display: none;
  }
}

@media (max-width: 480px) {
  .name-text {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
}

/* Shadow button */
.shadow__btn {
  padding: 8px 18px;
  border: none;
  font-size: 0.9rem;
  color: #000;
  border-radius: 7px;
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
  transition: 0.5s;
  transition-property: box-shadow;
  background: rgb(255, 255, 255);
  box-shadow: 0 0 20px rgb(255, 255, 255);
  text-decoration: none;
}

.shadow__btn:hover {
  box-shadow: 0 0 5px rgb(255, 255, 255),
              0 0 25px rgb(255, 255, 255),
              0 0 50px rgb(255, 255, 255),
              0 0 100px rgb(255, 255, 255);
}

/* Fixed email */
.fixed-email {
  font-family: 'Special Gothic Expanded One', sans-serif;
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transform-origin: left center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.8rem;
  color: #FFFFFF;
  text-decoration: none;
  letter-spacing: 2px;
  z-index: 999;
  transition: color 0.3s ease;
  padding: 5px;
}

.fixed-email:hover {
  cursor: pointer;
}

/* Journey Section */
.journey-card {
  cursor: default;
  transition: none;
}

.journey-card:hover {
  transform: none;
  box-shadow: none;
}

/* Mobile menu */
#mobileMenu a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

#mobileMenu a:hover {
  color: #0d6efd;
}

/* Hero section */
.hero {
  min-height: 90vh;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-left {
  flex: 1 1 45%;
}

.hero-right {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.code-box {
  background-color: #1e1e1e;
  color: #dcdcdc;
  width: 100%;
  max-width: 500px;
  font-family: "Special Gothic Expanded One", sans-serif;
  font-size: 1rem;
  overflow: auto;
  border-left: 4px solid #0d6efd;
  transition: transform 0.3s ease;
}

.code-box:hover {
  transform: scale(1.03);
}

.view-projects-btn {
  transition: all 0.3s ease;
}

.view-projects-btn:hover {
  transform: scale(1.05);
  background-color: #0d6efd;
  color: white;
}

/* About Section */
#about i {
  font-size: 30px;
}

/* Tech Stack */
#techstack i {
  font-size: 50px;
}

#framer {
  color: white;
}

/* Animated Social Icons */
ul {
  list-style: none;
}

li::after {
  content: "";
  display: block;
  height: 0px;
  transition: height 0.3s ease-in-out;
  pointer-events: none;
}

li:hover::after {
  height: 10px;
}

.example-2 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.example-2 .icon-content {
  margin: 0 10px;
  position: relative;
}

.example-2 .icon-content .tooltip {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  font-size: 14px;
  transition: all 0.3s ease;
}

.example-2 .icon-content:hover .tooltip {
  opacity: 1;
  visibility: visible;
  bottom: -40px;
}

.example-2 .icon-content a {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #4d4d4d;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}

.example-2 .icon-content a:hover {
  box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
}

.example-2 .icon-content a svg {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
}

.example-2 .icon-content a:hover {
  color: white;
}

.example-2 .icon-content a .filled {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #000;
  transition: all 0.3s ease-in-out;
}

.example-2 .icon-content a:hover .filled {
  height: 100%;
}

.example-2 .icon-content a[data-social="instagram"] .filled,
.example-2 .icon-content a[data-social="instagram"] ~ .tooltip {
  background-color: #e1306c;
}

.example-2 .icon-content a[data-social="linkedin"] .filled,
.example-2 .icon-content a[data-social="linkedin"] ~ .tooltip {
  background-color: #0a66c2;
}

.example-2 .icon-content a[data-social="email"] .filled,
.example-2 .icon-content a[data-social="email"] ~ .tooltip {
  background-color: #ea4335;
}

.example-2 .icon-content a[data-social="github"] .filled,
.example-2 .icon-content a[data-social="github"] ~ .tooltip {
  background-color: #333;
}

/* Particles */
#particles-hero,
#particles-projects {
  position: absolute !important;
  z-index: 0;
  contain: layout style paint;
  will-change: transform;
}

#particles-hero canvas {
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
}

/* Custom cursor for interactive elements */
a, button, .button, .shadow__btn, .download-label, 
.project-card, .upcoming-card,
.example-2 .icon-content a,
.category-label,
input[type="checkbox"],
[data-scroll],
[onclick], [role="button"], [tabindex] {
  cursor: pointer;
}

/* Performance Optimizations */
.lazy-image {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.lazy-image.loaded {
  opacity: 1;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .loading-text span,
  .button .hover-text,
  .shadow__btn,
  .download-container,
  .project-card,
  .journey-card {
    animation: none !important;
    transition: none !important;
  }
}

/* Optimize animations for better performance */
.project-card,
.journey-card,
.upcoming-card {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Font loading optimization */
@font-face {
  font-family: 'Special Gothic Expanded One';
  font-display: swap;
  src: url('https://fonts.googleapis.com/css2?family=Special+Gothic+Expanded+One&display=swap');
}

/* Critical CSS for above-the-fold content */
.hero-section {
  contain: layout style paint;
}

/* Focus management for accessibility */
*:focus {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #FFFFFF;
  color: black;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
}

.skip-link:focus {
  top: 6px;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .project-card,
  .journey-card {
    break-inside: avoid;
  }
}

/* Back to Top Button */
.wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.back2top-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgb(20, 20, 20);
  border: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 0px 4px rgba(255, 255, 255, 0.253);
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back2top-button.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back2top-button:hover {
  width: 140px;
  border-radius: 50px;
  background-color: #FFFFFF;
  box-shadow: 0px 0px 0px 4px rgba(255, 255, 255, 0.4);
}

.svgIcon {
  width: 12px;
  transition: transform 0.3s ease;
}

.back2top-button:hover .svgIcon {
  transform: translateY(-220%);
}

.svgIcon path {
  fill: black;
}

.button-label {
  position: absolute;
  bottom: -20px;
  color: black;
  font-size: 0px;
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.back2top-button:hover .button-label {
  font-size: 13px;
  opacity: 1;
  bottom: unset;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .wrapper {
    bottom: 20px;
    right: 20px;
  }
  
  .back2top-button {
    width: 45px;
    height: 45px;
  }
  
  .back2top-button:hover {
    width: 120px;
  }
}

/* Social Icons Bottom Left */
.social-icons-bottom-left {
  opacity: 0;
  animation: fadeInUp 1s ease-out 2s forwards;
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-icon-link svg {
  transition: all 0.3s ease;
}

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

/* Scroll Animation */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: fadeInUp 1s ease-out 3s forwards;
}

.scroll-arrow {
  position: relative;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow-head {
  position: absolute;
  top: 8px;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  animation: scrollHead 2s ease-in-out infinite;
}

.scroll-arrow-body {
  position: absolute;
  top: 12px;
  width: 2px;
  height: 8px;
  background: white;
  border-radius: 1px;
}

.scroll-text {
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

/* Scroll Animation Keyframes */
@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes scrollHead {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(8px);
  }
  60% {
    transform: translateY(4px);
  }
}

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

/* Responsive adjustments for social icons */
@media (max-width: 768px) {
  .social-icons-bottom-left {
    bottom: 1rem;
    left: 1rem;
  }
  
  .social-icon-link {
    width: 36px;
    height: 36px;
  }
  
  .social-icon-link svg {
    width: 28px;
    height: 28px;
  }
  
  .scroll-indicator {
    margin-top: 2rem;
  }
  
  .scroll-arrow {
    width: 20px;
    height: 32px;
  }
  
  .scroll-text {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .social-icons-bottom-left {
    bottom: 0.75rem;
    left: 0.75rem;
  }
  
  .social-icon-link {
    width: 32px;
    height: 32px;
  }
  
  .social-icon-link svg {
    width: 24px;
    height: 24px;
  }
}

/* Certificate Cards Styles */
.certificate-card {
  display: flex;
  flex-direction: column;
  min-height: 200px;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.certificate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FFFFFF, #CCCCCC);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.certificate-card:hover::before {
  opacity: 1;
}

.certificate-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
}

.certificate-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.certificate-card:hover .certificate-icon {
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.certificate-card:hover {
  border-color: #CCCCCC;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Focus styles for accessibility */
.certificate-card:focus-within {
  outline: 2px solid #3B82F6;
  outline-offset: 2px;
}

.certificate-card a:focus {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Certificate card responsive adjustments */
@media (max-width: 1024px) {
  .certificate-card {
    min-height: 180px;
  }
  
  .certificate-icon {
    width: 70px;
    height: 70px;
  }
  
  .certificate-icon i {
    font-size: 1.5rem !important;
  }
  
  .certificate-icon img {
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 768px) {
  .certificate-card {
    min-height: 160px;
    padding: 1.5rem !important;
  }
  
  .certificate-icon {
    width: 60px;
    height: 60px;
  }
  
  .certificate-icon i {
    font-size: 1.25rem !important;
  }
  
  .certificate-icon img {
    width: 100%;
    height: 100%;
  }
  
  .certificate-card h3 {
    font-size: 1rem !important;
  }
}

@media (max-width: 480px) {
  .certificate-card {
    min-height: 140px;
    padding: 1rem !important;
  }
  
  .certificate-icon {
    width: 50px;
    height: 50px;
  }
  
  .certificate-icon i {
    font-size: 1rem !important;
  }
  
  .certificate-icon img {
    width: 100%;
    height: 100%;
  }
}

/* Project Card Styles */
.project-card img {
  height: 400px;
  width: 100%;
  object-fit: cover;
  background: #e5e7eb;
}

.project-card,
.project-card .p-6,
.project-card > .p-6 {
  background: #e5e7eb !important;
}

.project-card:hover {
  transform: none !important;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.10);
}

.project-card a,
.project-card button,
.project-card .read-more-btn {
  cursor: pointer;
}

.project-card .flex.items-center.gap-1 img,
.project-card .flex.items-center.gap-1 i {
  width: 20px;
  height: 20px;
  font-size: 20px;
}

/* Espaço entre subtítulo e grid de cards */
#projects .container.text-center p {
  margin-bottom: 2rem;
}

/* Remove pointer on card */
.project-card {
  cursor: default;
}

.project-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-card .project-desc {
  font-size: 1rem;
  line-height: 1.5;
  min-height: 60px;
  max-height: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-bottom: 0.75rem;
  transition: max-height 0.3s;
}

.project-card .project-desc.expanded {
  max-height: 1000px;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.read-more-btn {
  display: inline-block;
  background: none;
  border: none;
  color: #2563eb;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.read-more-btn:hover {
  color: #1d4ed8;
}  