* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Abril Fatface", serif;
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Light/Dark Mode */
.light-mode {
    --bg-primary: #ffffff;
    --bg-secondary: #f5ebe0;
    --bg-dark: #3d5a45;
    --bg-darker: #1a2820;
    --text-primary: #1a1a1a;
    --text-white: #ffffff;
    --accent: #FAAE1C;
    --accent-hover: #d47f3a;
    --yellow: #f4d35e;
}

.dark-mode {
    --bg-primary: #2a2520;
    --bg-secondary: #2a2520;
    --bg-dark: #1a2820;
    --bg-darker: #1a2820;
    --text-primary: #ffffff;
    --text-white: #ffffff;
    --accent: #e8924a;
    --accent-hover: #d47f3a;
    --yellow: #f4d35e;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-dark);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 12px 0;
}

#header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
    font-size: 35px;
}

#estrela-vermelha{
    width: 56px;
    height: 56px;
}

.sparkle {
    font-size: 20px;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent);
}

.btn-contact {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    font-size: 15px;
}

.btn-contact:hover {
    background: var(--accent-hover);
}

.theme-toggle {
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 18px;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.light-mode .icon-sun { display: none; }
.dark-mode .icon-moon { display: none; }

.nav-mobile {
    display: none;
    align-items: center;
    gap: 12px;
}

.menu-toggle {
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    color: var(--text-white);
    font-size: 20px;
}

.icon-close { display: none; }
.menu-open .icon-menu { display: none; }
.menu-open .icon-close { display: inline; }

.mobile-menu {
    display: none;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 15px 20px;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu.active {
    display: flex;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: #334B35;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 0 0px;
    
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-grid {
    display: flex;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    position: absolute;
    z-index: 1;
}

.hero-image {
    position: relative;
}

.profile-img {
    max-width: 450px;
    width: 400px;
    height: 600px;

}

.image-decoration {
    background-color: #B76939;
    width: 400px;
    height: 600px;
    margin-top: 10px;
}

.preto{
    width: 100%;
    position: absolute;
    margin-top: 680px;
    height: 350px;
    background-color: #000;
}

.hero-text {
    color: var(--text-white);

}

.hero-text h1 {
    font-size: 95px;
    margin-bottom: 8px;
}

.typewriter {
    border-right: 3px solid var(--text-white);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--text-white); }
}

.text-outline {
    -webkit-text-stroke: 2px var(--accent);
    -webkit-text-fill-color: transparent;
}

.text-white {
    color: var(--text-white);
}

/* About Section */
.about {
    min-height: 100vh;
    background: var(--bg-secondary);
    padding: 60px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.logo-small {
    display: flex;
    align-items: center;
    gap: 8px;
    color: black;
    font-size: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.about-text h2 {
    font-size: 50px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.social-badge {
    background: var(--accent);
    color: #000;
    padding: 8px 16px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 25px;
    margin: 15px 0;
    font-size: 14px;
}

.social-badge a{
    text-decoration: none;
    color: #000;
}

.about-text p {
    color: var(--text-primary);
    line-height: 1.7;
    margin-top: 15px;
    font-size: 20px;
}

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.badge-top {
    position: absolute;
    top: 30px;
    left: 25%;
    transform: translateX(-50%);
    background: var(--yellow);
    padding: 8px 20px;
    border-radius: 25px;
    color: #000;
    z-index: 5;
}

.about-profile {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 30px;
    background-color: #3d5a45;
}

.badge-bottom {
    position: absolute;
    bottom: 10px;
    right: 100px;
    background: var(--accent);
    padding: 8px 20px;
    border-radius: 25px;
    color: #000;
    font-size: 17px;
}

/* Skills Section */
.skills {
    min-height: 100vh;
    background: var(--bg-dark);
    padding: 60px 0;
    color: var(--text-white);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 60px;
}

.text-outline-white {
    -webkit-text-stroke: 2px #f5ebe0;
    -webkit-text-fill-color: transparent;
}

.star-icon {
    font-size: 40px;
    color: var(--accent);
}

.skills h3 {
    font-size: 32px;
    margin-bottom: 30px;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.education h4 {
    color: var(--yellow);
    margin-bottom: 15px;
    font-size: 18px;
}

.cert-title {
    margin-top: 25px;
}

.education-item {
    margin-bottom: 15px;
}

.education-item p {
    font-size: 14px;
    margin-bottom: 3px;
}

.cert-badge {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 5px;
    margin-bottom: 8px;
    font-size: 14px;
}

.skills-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.skill-card {
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s;
    cursor: pointer;
}

.skill-card:hover {
    transform: scale(1.05) rotate(2deg);
}

.skill-card.beige {
    background: #f5ebe0;
    color: #1a1a1a;
}

.skill-card.yellow {
    background: #f4d35e;
    color: #1a1a1a;
}

.skill-card.green {
    background: #5a7d67;
    color: #fff;
}

.skill-card.orange {
    background: var(--accent);
    color: #1a1a1a;
}

.skill-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.skill-card h5 {
    font-size: 16px;
    margin-bottom: 4px;
}

.skill-card p {
    font-size: 13px;
}

.languages {
    grid-column: 1 / -1;
    margin-top: 20px;
}

.languages h4 {
    color: var(--accent);
    margin-bottom: 12px;
}

.lang-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.lang-item span:first-child {
    color: var(--yellow);
}

.lang-badge {
    background: #fff;
    color: #1a1a1a;
    padding: 4px 16px;
    border-radius: 25px;
    font-size: 14px;
}

/* Projects Section */
.projects {
    min-height: 100vh;
    background: var(--bg-secondary);
    padding: 60px 0;
}

.section-title-dark {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.section-title-dark h2 {
    font-size: 50px;
}

.text-outline-dark {
    -webkit-text-stroke: 2px var(--text-primary);
    -webkit-text-fill-color: transparent;
}

.dark-mode .text-outline-dark {
    -webkit-text-stroke: 2px #ffffff;
}

.sparkle.red {
    color: #ff0000;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 100px;
    margin-bottom: 40px;
}

.project-card {
    background: var(--accent);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s;
    cursor: pointer;
}

.project-card:hover {
    transform: scale(1.05);
}

.project-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a1a1a;
    font-size: 14px;
}

.cta-box {
    background: var(--bg-dark);
    text-align: center;
    padding: 40px 30px;
    border-radius: 10px;
    color: var(--text-white);
    margin-top: 200px;
}

.cta-box h3 {
    color: var(--yellow);
    margin-bottom: 12px;
    font-size: 28px;
}

.cta-box p {
    margin-bottom: 20px;
}

.btn-email {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.btn-email:hover {
    background: var(--accent-hover);
}

/* Contact Section */
.contact {
    min-height: 100vh;
    background: var(--bg-secondary);
    padding: 60px 0;
}

.contact h2 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 40px;
    font-size: 36px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.dark-mode .contact-form {
    background: var(--bg-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    transition: border 0.3s;
    background: #fff;
}

.dark-mode .form-group input,
.dark-mode .form-group textarea {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.error {
    color: #ff0000;
    font-size: 13px;
    display: block;
    margin-top: 4px;
}

.btn-submit {
    width: 100%;
    background: var(--accent);
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: var(--accent-hover);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 40px 0;
    text-align: center;
}

.footer h3 {
    font-size: 60px;
    margin-bottom: 15px;
}

.footer p {
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

.social-links a {
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 16px;
}

.social-links a:hover {
    color: var(--accent);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s;
}

.dark-mode .modal-content {
    background: var(--bg-secondary);
}

@keyframes slideIn {
    from {
        transform: scale(0.9) translateY(50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: var(--bg-dark);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px 10px 0 0;
}

.modal-header h3 {
    color: #fff;
    font-size: 22px;
}

.modal-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 5px;
    transition: background 0.3s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.2);
}

.modal-body {
    padding: 25px;
}

.modal-section {
    margin-bottom: 20px;
}

.modal-section h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 18px;
}

.modal-section p,
.modal-section ul {
    color: var(--text-primary);
    line-height: 1.6;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: var(--accent);
    color: #000;
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 13px;
}

.modal-section ul {
    list-style: none;
    padding-left: 0;
}

.modal-section ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.modal-section ul li:before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.btn-modal {
    flex: 1;
    background: var(--bg-dark);
    color: #fff;
    text-decoration: none;
    padding: 12px;
    border-radius: 5px;
    text-align: center;
    transition: background 0.3s;
    font-weight: 600;
    font-size: 14px;
}

.btn-modal:hover {
    background: #2d4435;
}

.btn-demo {
    background: var(--accent);
    color: #000;
}

.btn-demo:hover {
    background: var(--accent-hover);
}

/* Toast */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 3000;
    transition: bottom 0.3s;
    font-size: 15px;
}

.toast.show {
    bottom: 30px;
}

.toast.success {
    background: #4caf50;
}

.toast.error {
    background: #f44336;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .nav-mobile {
        display: flex;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        padding-top: 20px;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-profile {
        width: 250px;
        height: 250px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-cards {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title h2,
    .section-title-dark h2 {
        font-size: 28px;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-text h1 {
        font-size: 24px;
    }
    
    .about-text h2 {
        font-size: 28px;
    }
    
    .social-badge {
        font-size: 12px;
    }
}
