/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-primary);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    z-index: 2;
    position: relative;
}

/* Efeito especial "saindo da moldura" para a foto de perfil */
.profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.profile-frame {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 20px;
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow-heavy);
    overflow: visible;
    transform: rotate(-5deg);
    transition: all 0.3s ease;
}

.profile-frame:hover {
    transform: rotate(-2deg) scale(1.05);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    position: relative;
    z-index: 3;
    /* Efeito "breaking out" - a imagem sai da moldura */
    clip-path: polygon(
        0% 0%, 
        85% 0%, 
        100% 15%, 
        100% 85%, 
        95% 100%, 
        15% 100%, 
        0% 85%
    );
    transform: scale(1.1) translate(10px, -10px);
    transition: all 0.4s ease;
    filter: brightness(1.1) contrast(1.1);
}

.profile-image:hover {
    clip-path: polygon(
        0% 0%, 
        90% 0%, 
        100% 10%, 
        100% 90%, 
        90% 100%, 
        10% 100%, 
        0% 90%
    );
    transform: scale(1.15) translate(15px, -15px);
    filter: brightness(1.2) contrast(1.2);
}

.frame-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    background: linear-gradient(45deg, 
        rgba(37, 99, 235, 0.1) 0%, 
        rgba(59, 130, 246, 0.1) 50%, 
        rgba(30, 64, 175, 0.1) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Elementos decorativos atrás da foto */
.profile-frame::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 25px;
    top: -10%;
    left: -10%;
    z-index: 1;
    transform: rotate(10deg);
    animation: float 6s ease-in-out infinite;
}

.profile-frame::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: -20px;
    right: -20px;
    z-index: 1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: rotate(10deg) translateY(0px); }
    50% { transform: rotate(10deg) translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 0.3; }
}

/* Hero Text */
.hero-text {
    color: var(--white);
}

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

.highlight {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.motivational-text {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.motivational-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    font-style: italic;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Background Elements */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float-bg 8s ease-in-out infinite;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    right: 5%;
    animation-delay: 4s;
}

@keyframes float-bg {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

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

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-dark);
    position: relative;
}

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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.skill-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.skill-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2rem;
    color: var(--white);
}

.skill-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.skill-description p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.skill-list {
    list-style: none;
    margin-bottom: 20px;
}

.skill-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.skill-list i {
    color: var(--primary-color);
    width: 16px;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.tech-item i {
    font-size: 1.5rem;
}

.tech-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

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

.contact-section .section-title {
    color: var(--white);
}

.contact-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 60px;
    color: var(--text-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.whatsapp-card .contact-icon {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.email-card .contact-icon {
    background: linear-gradient(135deg, #ea4335, #d33b2c);
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.services-info {
    text-align: center;
    margin-top: 60px;
}

.services-info h3 {
    font-size: 2rem;
    margin-bottom: 30px;
}

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

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.service-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.service-item span {
    font-weight: 500;
}

/* Footer */
.footer {
    background: #111827;
    padding: 40px 0;
    text-align: center;
    color: var(--text-light);
}

.footer-quote {
    margin-top: 20px;
    font-style: italic;
    font-size: 1.1rem;
}

.footer-quote i {
    color: var(--accent-color);
    margin: 0 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .profile-frame {
        width: 280px;
        height: 280px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .profile-frame {
        width: 240px;
        height: 240px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .skill-card {
        padding: 30px;
    }
    
    .contact-card {
        padding: 30px;
    }
}

/* Animações suaves */
@media (prefers-reduced-motion: no-preference) {
    .skill-card,
    .contact-card,
    .service-item {
        animation: fadeInUp 0.6s ease-out forwards;
        opacity: 0;
        transform: translateY(30px);
    }
    
    .skill-card:nth-child(1) { animation-delay: 0.1s; }
    .skill-card:nth-child(2) { animation-delay: 0.2s; }
    .skill-card:nth-child(3) { animation-delay: 0.3s; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

