/* style.css */

:root {
    --primary: #2b50aa;
    --secondary: #3e7bfa;
    --accent: #ff6b6b;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

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

/* Header */
header {
    background: linear-gradient(to right, var(--dark), #0f172a);
    color: var(--light);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 10px 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent);
}

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

.nav-links li {
    margin-left: 30px;
}

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

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

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

.mobile-menu {
    display: none;
    cursor: pointer;
}

.mobile-menu div {
    width: 25px;
    height: 3px;
    background-color: var(--light);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, var(--dark), #0f172a);
    color: var(--light);
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 150%;
    height: 100%;
    top: 0;
    left: -25%;
    background: linear-gradient(45deg, rgba(62, 123, 250, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    transform: skewY(-5deg);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #cbd5e1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    animation: float 3s ease-in-out infinite;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--light);
    box-shadow: 0 4px 14px rgba(43, 80, 170, 0.4);
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(43, 80, 170, 0.6);
}

.btn-outline {
    border: 2px solid var(--light);
    color: var(--light);
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--light);
    color: var(--dark);
    transform: translateY(-3px);
}

/* About Section */
.about {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: "";
    position: absolute;
    width: 60%;
    height: 4px;
    background: var(--accent);
    bottom: -10px;
    left: 20%;
    border-radius: 2px;
}

.section-header p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

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

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: #f1f5f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--light);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 15px;
}

.learn-more {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.learn-more:hover {
    gap: 10px;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.portfolio-filter-btn {
    padding: 8px 20px;
    margin: 5px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 30px;
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-filter-btn:hover,
.portfolio-filter-btn.active {
    background: var(--primary);
    color: var(--light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 41, 59, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    color: var(--light);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.portfolio-overlay p {
    color: #cbd5e1;
    margin-bottom: 20px;
}

.portfolio-btn {
    display: inline-block;
    padding: 8px 20px;
    border: 2px solid var(--light);

}
/* Skills Section */
.skills {
    padding: 100px 0;
    background-color: var(--light);
}

.skills-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.skills-text {
    flex: 1;
}

.skills-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.skills-text p {
    margin-bottom: 20px;
}

.skill-tools {
    margin-top: 30px;
}

.tools-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.tool-item {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    background-color: #f8fafc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.tool-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.tool-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.tool-name {
    font-weight: 500;
}

.skills-bars {
    flex: 1;
}

.skill-bar {
    margin-bottom: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-info h4 {
    font-weight: 500;
}

.skill-progress {
    height: 10px;
    background-color: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 10px;
    width: 0;
    transition: width 1s ease;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: #f1f5f9;
    position: relative;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
    overflow: hidden;
}

.testimonial-item {
    background-color: var(--light);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
}

.testimonial-item.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--dark);
    line-height: 1.8;
}

.testimonial-name {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
}

.testimonial-position {
    color: var(--gray);
    font-size: 0.9rem;
}

.testimonial-controls {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 -20px;
    z-index: 10;
}

.testimonial-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light);
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-btn:hover {
    background-color: var(--primary);
    color: var(--light);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--light);
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.contact-info p {
    margin-bottom: 30px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.contact-link-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(43, 80, 170, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.contact-link:hover .contact-link-icon {
    background-color: var(--primary);
    color: var(--light);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(43, 80, 170, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--primary);
    color: var(--light);
    transform: translateY(-5px);
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(43, 80, 170, 0.3);
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    background-color: var(--primary);
    color: var(--light);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(43, 80, 170, 0.4);
}

.submit-btn:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(43, 80, 170, 0.6);
}

/* Footer */
footer {
    background: linear-gradient(to right, var(--dark), #0f172a);
    color: var(--light);
    padding: 60px 0 30px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.footer-logo span {
    color: var(--accent);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-link:hover {
    background-color: var(--accent);
    transform: translateY(-5px);
}

.footer-text {
    text-align: center;
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(43, 80, 170, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary);
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .skills-content,
    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.5s ease;
        z-index: 99;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .mobile-menu.active div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-menu.active div:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu.active div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 50px;
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    /* Modificações para o Portfolio e Hero responsivos */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-item {
    height: 250px;
}

@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .portfolio-item {
        height: 200px;
    }
}

@media (max-width: 768px) {
    /* Esconder a imagem do hero em telas menores */
    .hero-image {
        display: none;
    }
    
    /* Ajustar o texto do hero para ocupar toda a largura */
    .hero-text {
        max-width: 100%;
        text-align: center;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .portfolio-item {
        height: 160px;
    }
    
    .portfolio-overlay h3 {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
    
    .portfolio-overlay p {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .portfolio-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .portfolio-item {
        height: 120px;
    }
    
    .portfolio-overlay h3 {
        font-size: 1rem;
        margin-bottom: 2px;
    }
    
    .portfolio-overlay p {
        display: none;
    }
    
    .portfolio-btn {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
}
    .testimonial-controls {
        display: none;
    }
/* Ajustes adicionais para responsividade */

/* Reduzir o tamanho da imagem do hero no desktop */
.hero-image img {
    max-width: 80%; /* Reduzir levemente o tamanho */
}

/* Ajustar os botões do hero no mobile */
@media (max-width: 768px) {
    /* Modificações existentes... */
    
    /* Espaçamento entre os botões do hero */
    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .btn-outline {
        margin-left: 0; /* Remover a margem lateral */
    }
    
    /* Duas colunas para os serviços em mobile */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Ajustes para telas ainda menores */
@media (max-width: 576px) {
    /* Modificações existentes... */
    
    /* Manter as 2 colunas para serviços em telas pequenas */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* Ajustar tamanho das cards de serviço */
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .service-card p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
}

/* Para telas muito pequenas, ajustar ainda mais os serviços */
@media (max-width: 400px) {
    .services-grid {
        gap: 10px;
    }
    
    .service-card {
        padding: 15px;
    }
    
    .service-icon {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
}
/* Melhorar a responsividade da seção About Stats */

/* Ajustes para telas médias */
@media (max-width: 992px) {
    .about-stats {
        gap: 15px; /* Reduzir o espaçamento entre os itens */
    }
    
    .stat-item h4 {
        font-size: 2rem; /* Reduzir ligeiramente o tamanho dos números */
    }
}
    .stat-item p {
        font-size: 0.65rem;
    }
}
