/* ===== ABOUT SECTION ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  display: flex;
  justify-content: center;
}

.image-placeholder {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: var(--bg-dark);
  box-shadow: 0 20px 60px rgba(0, 255, 136, 0.3);
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 10px;
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--text-dark);
}

/* ===== SKILLS SECTION ===== */
.skills {
  background: var(--bg-darker);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.skill-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 15px 40px rgba(0, 255, 136, 0.2);
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.skill-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-dark);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1rem;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 10px;
  transition: width 1s ease;
}

/* ===== PROJECTS SECTION ===== */
.projects-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 25px;
  background: var(--bg-light);
  color: var(--text-light);
  border: 2px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
  background: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-light);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
  border: 2px solid transparent;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 50px rgba(0, 255, 136, 0.2);
}

.project-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--bg-darker), var(--bg-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary-color);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tag {
  padding: 5px 12px;
  background: var(--bg-darker);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.85rem;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.project-link {
  flex: 1;
  padding: 10px;
  text-align: center;
  background: var(--bg-darker);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  transition: var(--transition);
  border: 2px solid transparent;
}

.project-link:hover {
  border-color: var(--primary-color);
  background: transparent;
}

/* ===== EXPERIENCE SECTION ===== */
.experience {
  background: var(--bg-darker);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-color);
  transform: translateX(-50%);
}

.timeline-item {
  margin-bottom: 3rem;
  position: relative;
  width: 50%;
  padding: 0 2rem;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  top: 0;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-content {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 10px;
  transition: var(--transition);
  border: 2px solid transparent;
}

.timeline-content:hover {
  border-color: var(--primary-color);
  box-shadow: 0 15px 40px rgba(0, 255, 136, 0.2);
}

.timeline-date {
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.contact-info p {
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: var(--bg-light);
  border: 2px solid transparent;
  border-radius: 5px;
  color: var(--text-light);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.form-group textarea {
  resize: vertical;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-darker);
  padding: 2rem 0;
  text-align: center;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

@keyframes scrollAnim {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes glitch-anim {
  0% {
    clip: rect(31px, 9999px, 94px, 0);
  }
  20% {
    clip: rect(70px, 9999px, 71px, 0);
  }
  40% {
    clip: rect(59px, 9999px, 35px, 0);
  }
  60% {
    clip: rect(86px, 9999px, 42px, 0);
  }
  80% {
    clip: rect(2px, 9999px, 68px, 0);
  }
  100% {
    clip: rect(91px, 9999px, 19px, 0);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(65px, 9999px, 100px, 0);
  }
  20% {
    clip: rect(52px, 9999px, 74px, 0);
  }
  40% {
    clip: rect(79px, 9999px, 85px, 0);
  }
  60% {
    clip: rect(17px, 9999px, 47px, 0);
  }
  80% {
    clip: rect(95px, 9999px, 24px, 0);
  }
  100% {
    clip: rect(37px, 9999px, 69px, 0);
  }
}

@keyframes gradient-move {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 200% 50%;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(200%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets e Desktops médios */
@media (max-width: 1024px) {
  .section-title {
    font-size: 2.2rem;
  }

  .hero-text h1 {
    font-size: 3.5rem;
  }

  .hero-content {
    gap: 3rem;
  }
}

/* Tablets */
@media (max-width: 968px) {
  /* Navigation */
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: rgba(10, 14, 39, 0.98);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .nav-menu.active {
    left: 0;
  }

  /* Hero Section */
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .subtitle {
    font-size: 1.3rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .social-links {
    justify-content: center;
  }

  .code-window {
    max-width: 100%;
  }

  /* About Section */
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Timeline */
  .timeline::before {
    left: 0;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 3rem;
    padding-right: 0;
  }

  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
  }

  /* Contact */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Footer */
  .footer .container {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Mobile Grande */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .btn {
    padding: 10px 25px;
    font-size: 0.95rem;
  }

  .image-placeholder {
    width: 200px;
    height: 200px;
    font-size: 5rem;
  }

  .stat-item h3 {
    font-size: 2.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }

  .contact-info h3 {
    font-size: 1.8rem;
  }

  .scroll-indicator {
    left: 10%;
  }
}

/* Mobile Médio */
@media (max-width: 600px) {
  .hero {
    /* overflow: visible; */
    height: fit-content;
    margin-bottom: 50px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .code-window {
    font-size: 0.8rem;
    margin-bottom: 40px;
  }

  .code-content {
    padding: 15px;
    font-size: 0.75rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-card {
    padding: 1.5rem;
  }

  .project-content {
    padding: 1.25rem;
  }

  .timeline-content {
    padding: 1.5rem;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px;
  }

  .filter-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
}

/* Mobile Pequeno */
@media (max-width: 400px) {
  .nav-brand a {
    font-size: 1.2rem;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .image-placeholder {
    width: 150px;
    height: 150px;
    font-size: 4rem;
  }

  .stat-item h3 {
    font-size: 2rem;
  }

  .stat-item {
    padding: 1rem;
  }

  .skill-icon {
    font-size: 2.5rem;
  }

  .project-image {
    height: 150px;
    font-size: 3rem;
  }

  .contact-info h3 {
    font-size: 1.5rem;
  }

  .footer {
    padding: 1.5rem 0;
  }

  .footer-links {
    gap: 1rem;
    font-size: 0.9rem;
  }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 100px 0 50px;
  }

  .section {
    padding: 50px 0;
  }

  .scroll-indicator {
    display: none;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .hamburger,
  .scroll-indicator,
  .hero-buttons,
  .social-links,
  .filter-btn,
  .contact-form,
  .footer {
    display: none;
  }

  .section {
    page-break-inside: avoid;
  }

  body {
    background: white;
    color: black;
  }
}
