/* Base Styles */
:root {
    /* Light Theme */
    --background: #ffffff;
    --foreground: #0f172a;
    --card: #ffffff;
    --card-foreground: #0f172a;
    --border: #e2e8f0;
    --input: #e2e8f0;
    --primary: #3b82f6;
    --primary-foreground: #ffffff;
    --secondary: #f1f5f9;
    --secondary-foreground: #0f172a;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --accent: #f1f5f9;
    --accent-foreground: #0f172a;
    --destructive: #ef4444;
    --destructive-foreground: #ffffff;
    --ring: #3b82f6;
    --radius: 0.5rem;
    --section-bg: #f8fafc;
  
    /* Colors */
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --green: #10b981;
    --orange: #f97316;
    --red: #ef4444;
    --indigo: #6366f1;
    --yellow: #f59e0b;
}

.dark-theme {
    --background: #0f172a;
    --foreground: #f8fafc;
    --card: #1e293b;
    --card-foreground: #f8fafc;
    --border: #334155;
    --input: #334155;
    --primary: #3b82f6;
    --primary-foreground: #0f172a;
    --secondary: #1e293b;
    --secondary-foreground: #f8fafc;
    --muted: #1e293b;
    --muted-foreground: #94a3b8;
    --accent: #1e293b;
    --accent-foreground: #f8fafc;
    --destructive: #7f1d1d;
    --destructive-foreground: #f8fafc;
    --ring: #3b82f6;
    --section-bg: #111827;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

.section-bg {
    background-color: var(--section-bg);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.section-icon {
    margin-right: 0.75rem;
    margin-bottom: 50px;
}

.card {
    background-color: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
    font-size: 1rem;
}

.btn svg {
    margin-right: 0.5rem;
}

.btn-primary {
    background: linear-gradient(to right, var(--blue), var(--purple));
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background: linear-gradient(to right, #2563eb, #7c3aed);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
}

.btn-outline:hover {
    background-color: var(--muted);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s;
}

.navbar.scrolled {
    background-color: var(--background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--blue), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s;
    opacity: 0.8;
}

.nav-link:hover {
    color: var(--foreground);
    opacity: 1;
}

/* Theme toggle button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
}

.theme-toggle:hover {
    background-color: var(--muted);
}

.sun-icon,
.moon-icon {
    position: absolute;
    transition: all 0.3s;
}

body:not(.dark-theme) .sun-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

body:not(.dark-theme) .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

.dark-theme .sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.dark-theme .moon-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--foreground);
}

.mobile-menu {
    display: none;
    background-color: var(--background);
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-btn {
    margin-top: 1rem;
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Particles container */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    min-height: 40px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#typed-text {
    display: inline-block !important;
    min-width: 200px;
    color: var(--blue) !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: inherit;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-down {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 1;
}

.scroll-down a {
    color: var(--foreground);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.scroll-down a:hover {
    opacity: 1;
}

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

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.location {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--muted-foreground);
}

.location svg {
    margin-right: 0.5rem;
    color: var(--blue);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-card {
    background: linear-gradient(to bottom right, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    border: none;
}

.stat-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-card p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

.skill-card {
    background-color: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.skill-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-icon {
    margin-right: 0.5rem;
}

.skill-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.skill-item {
    display: flex;
    align-items: center;
    background-color: var(--muted);
    border-radius: var(--radius);
    padding: 0.5rem;
}

.skill-chip-icon {
    margin-right: 0.5rem;
}

/* Color Classes */
.blue {
    color: var(--blue);
}

.purple {
    color: var(--purple);
}

.green {
    color: var(--green);
}

.orange {
    color: var(--orange);
}

.red {
    color: var(--red);
}

.indigo {
    color: var(--indigo);
}

.yellow {
    color: var(--yellow);
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.achievement-card {
    background-color: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.achievement-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.achievement-card p {
    color: var(--muted-foreground);
}

/* Projects Section */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.project-card {
    background-color: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.project-image {
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s;
}

.project-image img:hover {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

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

.project-description {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.project-details {
    margin-bottom: 1.5rem;
}

.project-technologies,
.project-features,
.project-impact {
    margin-bottom: 1rem;
}

.project-details h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    background-color: var(--muted);
    color: var(--foreground);
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

.project-details ul {
    padding-left: 1.25rem;
    margin-top: 0.25rem;
}

.project-details li {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.column-title {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.column-icon {
    margin-right: 0.5rem;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 9px;
    width: 2px;
    background-color: var(--muted);
}

.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.5rem;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: var(--card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-content {
    background-color: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.timeline-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-institution,
.timeline-period {
    color: var(--muted-foreground);
}

.timeline-period {
    font-size: 0.875rem;
}

.timeline-description {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* Certifications Section */
.certifications-container {
    max-width: 800px;
    margin: 0 auto;
}

.certification-card {
    background-color: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
}

.certification-icon {
    margin-right: 1.5rem;
}

.certification-content {
    flex: 1;
}

.certification-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.certification-issuer,
.certification-date {
    color: var(--muted-foreground);
}

.certification-date {
    font-size: 0.875rem;
}

/* Testimonials Section */
.testimonials-container {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
}

.testimonial-quote {
    position: absolute;
    top: 2rem;
    left: 2rem;
    opacity: 0.1;
}

.testimonial-content {
    margin-top: 2rem;
}

.testimonial-slides {
    position: relative;
    min-height: 200px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author h4 {
    font-weight: 600;
}

.testimonial-author p {
    color: var(--muted-foreground);
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.testimonial-prev,
.testimonial-next {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--foreground);
    transition: background-color 0.3s;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background-color: var(--muted);
}

.testimonial-dots {
    display: flex;
    gap: 0.5rem;
    margin: 0 1rem;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--muted);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.testimonial-dot.active {
    background-color: var(--blue);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-info,
.contact-form {
    height: 100%;
}

.contact-info .card,
.contact-form .card {
    height: 100%;
    padding: 1.5rem;
}

.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-icon {
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-item h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--muted-foreground);
}

.social-links {
    margin-top: 2rem;
}

.social-links h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.social-buttons {
    display: flex;
    gap: 0.75rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--foreground);
    transition: background-color 0.3s;
}

.social-btn:hover {
    background-color: var(--muted);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--input);
    border-radius: var(--radius);
    background-color: var(--background);
    color: var(--foreground);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.form-status {
    margin-top: 1rem;
    text-align: center;
}

.form-status.success {
    color: var(--green);
}

.form-status.error {
    color: var(--red);
}

/* Footer */
.footer {
    background-color: var(--muted);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.copyright {
    margin-bottom: 1rem;
    color: var(--muted-foreground);
}

.footer-message {
    display: flex;
    align-items: center;
    color: var(--muted-foreground);
}

.heart-icon {
    margin: 0 0.25rem;
}

/* Animation for the spinner */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
}

/* Media Queries */
@media (min-width: 640px) {
    .form-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
      font-size: 3.5rem;
    }

    .hero-subtitle {
      font-size: 2rem;
    }

    .achievement-card {
      padding: 2rem;
    }
}

@media (min-width: 768px) {
    .skills-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .achievements-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
      flex-direction: row;
      justify-content: space-between;
    }

    .copyright {
      margin-bottom: 0;
    }
}

@media (min-width: 1024px) {
    .about-content {
      grid-template-columns: 1fr 1fr;
    }

    .project-grid {
      grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
      grid-template-columns: 1fr 1fr;
    }

    .education-grid {
      grid-template-columns: 1fr 1fr;
    }

    .skills-grid {
      grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
      display: none;
    }

    .mobile-menu-btn {
      display: block;
    }

    .section-title {
      font-size: 1.875rem;
    }

    .certification-card {
      flex-direction: column;
      text-align: center;
    }

    .certification-icon {
      margin-right: 0;
      margin-bottom: 1rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--muted-foreground);
    opacity: 0.3;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    opacity: 0.5;
}
/* Botão Flutuante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25d366;
    color: white;
    padding: 1rem;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
  }
  
  .whatsapp-float:hover {
    background-color: #20b958;
    transform: scale(1.1);
  }
  
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
  
  @media (max-width: 768px) {
    .whatsapp-float {
      bottom: 1rem;
      right: 1rem;
      padding: 0.75rem;
    }
  
    .whatsapp-float svg {
      width: 20px;
      height: 20px;
    }
  }
