/* Estilos Gerais */
:root {
  --primary-color: #2d3e50;
  --secondary-color: #3498db;
  --accent-color: #1abc9c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  color: var(--primary-color);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
}

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

.btn {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: white;
  border-radius: 30px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: 2px solid var(--secondary-color);
}

.btn:hover {
  background: transparent;
  color: var(--secondary-color);
}

/* Header */
 .header {
            background-color: white;
            box-shadow: 0 4px 6px var(--shadow-color);
            position: fixed;
            width: 100%;
            top: 0;
            left: 0;
            z-index: 1000;
        }

        .container1 {
            max-width: 1200px;
            margin: 0 auto;
            padding: 15px 20px;
        }

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

        .logo {
            display: flex;
            align-items: center;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
            text-decoration: none;
            transition: transform 0.3s ease;
        }

        .logo:hover {
            transform: scale(1.05);
        }

        .logo img {
            width: 40px;
            height: 40px;
            margin-right: 10px;
            border-radius: 50%;
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 25px;
        }

        .nav-links li a {
            text-decoration: none;
            color: var(--text-color);
            font-weight: 500;
            position: relative;
            transition: color 0.3s ease;
        }

        .nav-links li a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -5px;
            left: 0;
            background-color: var(--accent-color);
            transition: width 0.3s ease;
        }

        .nav-links li a:hover {
            color: var(--primary-color);
        }

        .nav-links li a:hover::after {
            width: 100%;
        }

        .burger {
            display: none;
            flex-direction: column;
            cursor: pointer;
        }

        .burger div {
            width: 25px;
            height: 3px;
            background-color: var(--text-color);
            margin: 3px;
            transition: all 0.3s ease;
        }

        @media screen and (max-width: 768px) {
            .nav-links {
                position: fixed;
                right: -100%;
                top: 70px;
                flex-direction: column;
                background-color: white;
                width: 100%;
                text-align: center;
                transition: 0.3s;
                box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
                padding: 20px 0;
            }

            .nav-links.active {
                right: 0;
            }

            .burger {
                display: flex;
            }

            .burger.active .line1 {
                transform: rotate(-45deg) translate(-5px, 6px);
            }

            .burger.active .line2 {
                opacity: 0;
            }

            .burger.active .line3 {
                transform: rotate(45deg) translate(-5px, -6px);
            }
        }
/* Hero Section */
.hero {
            --hero-bg-primary: #495057;
            --hero-bg-secondary: #6c757d;
            --hero-text-primary: #f8f9fa;
            --hero-text-secondary: #e9ecef;
            --hero-accent: #adb5bd;
            --hero-transition: all 0.3s ease;

            position: relative;
            height: 100vh;
            display: flex;
            align-items: center;
            overflow: hidden;
            background: linear-gradient(135deg, 
                rgba(73, 80, 87, 0.9), 
                rgba(108, 117, 125, 0.9)), 
                url('/api/placeholder/1920/1080');
            background-size: cover;
            background-position: center;
            color: var(--hero-text-primary);
            text-align: center;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: repeating-linear-gradient(
                transparent 0,
                rgba(255,255,255,0.05) 50px,
                transparent 100px
            );
            animation: moving-lines 10s linear infinite;
            opacity: 0.1;
        }

        @keyframes moving-lines {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }

        .hero-content {
            position: relative;
            z-index: 2;
            max-width: 800px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .hero h1 {
            font-size: 4.5rem;
            font-weight: 700;
            margin-bottom: 15px;
            animation: slideIn 1s ease-out;
            background: linear-gradient(to right, var(--hero-text-primary), var(--hero-text-secondary));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .hero h2 {
            font-size: 2.2rem;
            font-weight: 300;
            margin-bottom: 30px;
            opacity: 0;
            animation: fadeIn 1s ease-out 0.5s forwards;
            color: var(--hero-text-secondary);
        }

        .typed-cursor {
            color: var(--hero-accent);
            font-weight: bold;
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-top: 40px;
        }

        .social-links a {
            color: var(--hero-text-primary);
            font-size: 2rem;
            transition: var(--hero-transition);
            text-decoration: none;
            position: relative;
            opacity: 0;
        }

        .social-links a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -5px;
            left: 50%;
            background-color: var(--hero-text-secondary);
            transition: var(--hero-transition);
        }

        .social-links a:hover::after {
            width: 100%;
            left: 0;
        }

        .social-links a:hover {
            transform: scale(1.2);
            color: var(--hero-accent);
        }

        /* Social link animations */
        .social-links a:nth-child(1) { animation: fadeInUp 1s ease-out 1s forwards; }
        .social-links a:nth-child(2) { animation: fadeInUp 1s ease-out 1.2s forwards; }

        @keyframes slideIn {
            0% {
                opacity: 0;
                transform: translateY(50px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeIn {
            0% {
                opacity: 0;
                transform: translateY(20px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

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

        @media (max-width: 768px) {
            .hero h1 {
                font-size: 3rem;
            }

            .hero h2 {
                font-size: 1.8rem;
            }

            .social-links {
                gap: 20px;
            }
        }

        /* Ensure good color contrast and readability */
        @media (prefers-color-scheme: dark) {
            .hero {
                --hero-bg-primary: #343a40;
                --hero-bg-secondary: #212529;
                --hero-text-primary: #f8f9fa;
                --hero-text-secondary: #dee2e6;
                --hero-accent: #adb5bd;
            }
        }

/* Sobre */
.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

 #sobre .about-image {
        flex: 1;
        text-align: center;
        position: relative;
    }

    #sobre .about-image::before {
        content: '';
        position: absolute;
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
       
        opacity: 0.1;
        border-radius: 20px;
        z-index: -1;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    #sobre .about-image:hover::before {
        transform: scale(1.05);
        opacity: 0.2;
    }

    #sobre .about-image img {
        max-width: 100%;
        border-radius: 16px;
        box-shadow: 0 15px 35px rgba(50,50,93,.1), 0 5px 15px rgba(0,0,0,.07);
        transition: transform 0.3s ease;
    }

    #sobre .about-image img:hover {
        transform: scale(1.05);
    }


 #sobre .btn1 {
        display: inline-block;
        padding: 15px 30px;
        background: linear-gradient(135deg, #4a90e2, #5bc0de);
        color: white;
        text-decoration: none;
        border-radius: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        transition: all 0.4s ease;
        box-shadow: 
            0 15px 30px -10px rgba(74, 144, 226, 0.3),
            0 10px 20px -15px rgba(74, 144, 226, 0.2);
        position: relative;
        overflow: hidden;
    }

    #sobre .btn1::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
            120deg, 
            transparent, 
            rgba(255,255,255,0.3), 
            transparent
        );
        transition: all 0.4s ease;
    }

    #sobre .btn1:hover::before {
        left: 100%;
    }

    #sobre .btn1:hover {
        transform: translateY(-5px);
        box-shadow: 
            0 25px 40px -15px rgba(74, 144, 226, 0.4),
            0 15px 30px -20px rgba(74, 144, 226, 0.3);
    }

/* Habilidades */
.skills-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 20px;
}

.skill-category {
  flex: 1;
  min-width: 250px;
  background-color: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.skill-category h3 {
  margin-bottom: 20px;
  text-align: center;
  color: var(--secondary-color);
}

.skills-list li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.skills-list .skill-name {
  margin-left: 10px;
}

.skills-list .skill-icon {
  font-size: 1.5rem;
  width: 30px;
  text-align: center;
  color: var(--secondary-color);
}

.github-stats {
  margin-top: 50px;
}

.github-stats h3 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.stats-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.stats-card {
  display: inline-block; /* ou block, dependendo do layout */
  width: auto;            /* ajusta conforme o conteúdo */
  background-color: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 1rem;          /* importante para espaçamento interno */
}

.stats-card img {
  width: 100%;
  height: auto;
}

.language-distribution {
  margin-top: 30px;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* Projetos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  margin-bottom: 10px;
  color: var(--securi-color);
}

.project-info p {
  margin-bottom: 20px;
  color: #666;
  font-size: 0.9rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tech-tag {
  background: var(--light-color);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  color: var(--dark-color);
}

.project-links {
  display: flex;
  gap: 10px;
}

.project-links a {
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.project-links .demo-link {
  background-color: var(--accent-color);
  color: white;
}

.project-links .code-link {
  background-color: var(--dark-color);
  color: white;
}

.project-links a:hover {
  opacity: 0.8;
}

/* Contato */
    #contato .section-title {
        position: relative;
        text-align: center;
        margin-bottom: 40px;
        color: #2c3e50;
        font-size: 2.5rem;
    }

    #contato .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 4px;
        background: linear-gradient(135deg, #4a90e2, #5bc0de);
    }

    #contato .contact-container {
        display: flex;
        flex-wrap: wrap;
        gap: 50px;
        background-color: white;
        border-radius: 16px;
        box-shadow: 0 15px 35px rgba(50,50,93,.1), 0 5px 15px rgba(0,0,0,.07);
        padding: 50px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    #contato .contact-container:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(50,50,93,.15), 0 8px 20px rgba(0,0,0,.1);
    }

    #contato .contact-info, 
    #contato .contact-form {
        flex: 1;
        min-width: 300px;
    }

    #contato .contact-info {
        background: linear-gradient(135deg, #4a90e2, #5bc0de);
        color: white;
        border-radius: 12px;
        padding: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #contato .contact-item {
        display: flex;
        align-items: center;
        margin-bottom: 25px;
        transition: all 0.3s ease;
        opacity: 0.9;
    }

    #contato .contact-item:hover {
        opacity: 1;
        transform: scale(1.03);
    }

    #contato .contact-item i {
        font-size: 1.8rem;
        margin-right: 20px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: rgba(255,255,255,0.2);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.4s ease;
    }

    #contato .contact-item:hover i {
        transform: rotate(360deg) scale(1.1);
    }

    #contato .form-group {
        position: relative;
        margin-bottom: 25px;
    }

    #contato .form-group input, 
    #contato .form-group textarea {
        width: 100%;
        padding: 15px;
        border: 2px solid #e0e6ed;
        border-radius: 10px;
        font-size: 1rem;
        transition: all 0.3s ease;
        outline: none;
    }

    #contato .form-group input:focus, 
    #contato .form-group textarea:focus {
        border-color: #4a90e2;
        box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
    }

    #contato .form-group textarea {
        resize: vertical;
        min-height: 120px;
    }

    #contato .btn {
        width: 100%;
        padding: 15px;
        background: linear-gradient(135deg, #4a90e2, #5bc0de);
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 1.1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.4s ease;
        box-shadow: 0 10px 20px rgba(74, 144, 226, 0.3);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    #contato .btn:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 25px rgba(74, 144, 226, 0.4);
        background: linear-gradient(135deg, #5bc0de, #4a90e2);
    }

    #contato .btn:active {
        transform: translateY(-2px);
        box-shadow: 0 5px 10px rgba(74, 144, 226, 0.2);
    }

    @media (max-width: 768px) {
        #contato .contact-container {
            flex-direction: column;
            gap: 30px;
            padding: 30px;
        }

        #contato .contact-info, 
        #contato .contact-form {
            min-width: 100%;
        }

        #contato .section-title {
            font-size: 2rem;
        }
    }

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 20px 0;
  text-align: center;
}

/* Responsivo */
@media screen and (max-width: 768px) {
  .nav-links {
    position: absolute;
    right: 0;
    top: 70px;
    background-color: var(--primary-color);
    flex-direction: column;
    align-items: center;
    width: 100%;
    transform: translateX(100%);
    transition: var(--transition);
    padding: 20px 0;
    gap: 15px;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .burger {
    display: block;
  }

  .about-content {
    flex-direction: column;
  }

  .stats-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-container {
    flex-direction: column;
  }
}

/* Animation for skill bars */
@keyframes fillBar {
  from { width: 0; }
  to { width: var(--fill-width); }
}

.skill-progress {
  height: 8px;
  background-color: #eee;
  border-radius: 4px;
  margin-top: 5px;
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  background-color: var(--secondary-color);
  border-radius: 4px;
  animation: fillBar 1s forwards;
}

/* Loading animation */
.project-loading {
  text-align: center;
  padding: 50px;
  font-style: italic;
  color: #666;
}