@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0d1117;
    color: #fff;
    line-height: 1.6;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 8%;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: #ADE4FF;
}

.navbar {
    display: flex;
    gap: 40px;
}

.navbar a {
    font-size: 15px;
    color: #8b949e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
    color: #ADE4FF;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #8b949e;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.lang-toggle i {
    font-size: 16px;
}

.lang-toggle:hover {
    background: rgba(173, 228, 255, 0.1);
    border-color: rgba(173, 228, 255, 0.3);
    color: #ADE4FF;
}

.lang-toggle.active {
    background: #ADE4FF;
    border-color: #ADE4FF;
    color: #0d1117;
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #ADE4FF;
    color: #0d1117;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #8DD4F0;
    transform: translateY(-2px);
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 8% 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 650px;
    z-index: 2;
}

.hero-title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-title .highlight {
    display: block;
    background: linear-gradient(135deg, #ADE4FF 0%, #7FDFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: #8b949e;
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.8;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: #ADE4FF;
    color: #0d1117;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(173, 228, 255, 0.3);
}

.btn-cta:hover {
    background: #8DD4F0;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(173, 228, 255, 0.4);
}

.hero-visual {
    position: relative;
    z-index: 1;
}

.sphere-container {
    width: 400px;
    height: 400px;
    position: relative;
}

.sphere {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #fff 0deg,
        #0d1117 10deg,
        #fff 20deg,
        #0d1117 30deg,
        #fff 40deg,
        #0d1117 50deg,
        #fff 60deg,
        #0d1117 70deg,
        #fff 80deg,
        #0d1117 90deg,
        #fff 100deg,
        #0d1117 110deg,
        #fff 120deg,
        #0d1117 130deg,
        #fff 140deg,
        #0d1117 150deg,
        #fff 160deg,
        #0d1117 170deg,
        #fff 180deg,
        #0d1117 190deg,
        #fff 200deg,
        #0d1117 210deg,
        #fff 220deg,
        #0d1117 230deg,
        #fff 240deg,
        #0d1117 250deg,
        #fff 260deg,
        #0d1117 270deg,
        #fff 280deg,
        #0d1117 290deg,
        #fff 300deg,
        #0d1117 310deg,
        #fff 320deg,
        #0d1117 330deg,
        #fff 340deg,
        #0d1117 350deg,
        #fff 360deg
    );
    animation: rotateSphere 20s linear infinite;
    box-shadow: 0 0 60px rgba(173, 228, 255, 0.2);
}

@keyframes rotateSphere {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.social-float {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
}

.social-float a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #8b949e;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-float a:hover {
    background: #ADE4FF;
    color: #0d1117;
    border-color: #ADE4FF;
    transform: scale(1.1);
}

/* ========== TECHNOLOGIES SECTION ========== */
.technologies {
    padding: 100px 8%;
    background: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(173, 228, 255, 0.1);
    color: #ADE4FF;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -1px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(173, 228, 255, 0.05);
    border-color: rgba(173, 228, 255, 0.2);
    transform: translateY(-5px);
}

.tech-item i {
    font-size: 40px;
    color: #8b949e;
    transition: color 0.3s ease;
}

.tech-item:hover i {
    color: #ADE4FF;
}

.tech-item span {
    font-size: 14px;
    font-weight: 500;
    color: #8b949e;
}

/* ========== EXPERIENCE SECTION ========== */
.experience {
    padding: 100px 8%;
    background: #0d1117;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.experience-card {
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ADE4FF 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.experience-card:hover {
    border-color: rgba(173, 228, 255, 0.2);
    transform: translateY(-8px);
}

.experience-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(173, 228, 255, 0.1);
    border-radius: 16px;
    margin-bottom: 24px;
}

.card-icon i {
    font-size: 28px;
    color: #ADE4FF;
}

.experience-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.experience-card p {
    font-size: 15px;
    color: #8b949e;
    line-height: 1.7;
    margin-bottom: 24px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.card-tags span {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
    color: #8b949e;
    font-weight: 500;
}

/* ========== EDUCATION SECTION ========== */
.education {
    padding: 100px 8%;
    background: linear-gradient(180deg, #161b22 0%, #0d1117 100%);
}

.education .section-title {
    font-style: italic;
    font-family: 'Georgia', serif;
}

.education-timeline {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 60px;
}

.timeline-line {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #3d444d 10%, #3d444d 90%, transparent 100%);
}

.education-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 25px;
    width: 280px;
    min-height: 280px;
    background: transparent;
    border: none;
    position: relative;
    transition: all 0.4s ease;
}

.education-card .card-top {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.education-card .edu-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.education-card .edu-icon i {
    font-size: 32px;
    color: #8b949e;
    transition: all 0.3s ease;
}

.education-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
}

.education-card p {
    font-size: 13px;
    color: #8b949e;
    line-height: 1.6;
    margin-bottom: 20px;
}

.education-card .card-number {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #161b22;
    border: 2px solid #3d444d;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    color: #8b949e;
    margin-top: auto;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    z-index: 2;
}

.education-card .edu-institution {
    font-size: 12px;
    color: #8b949e;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.education-card .edu-year {
    font-size: 11px;
    color: #6e7681;
    margin-top: 4px;
}

/* Hover effects - Card fica branco ao passar o mouse */
.education-card:hover {
    background: #fff;
    border-radius: 30px 30px 0 0;
    padding-top: 40px;
    margin-bottom: -20px;
    transform: translateY(-10px);
}

.education-card:hover .edu-icon i {
    color: #0d1117;
}

.education-card:hover h3 {
    color: #0d1117;
}

.education-card:hover p {
    color: #4a5568;
}

.education-card:hover .card-number {
    background: #ADE4FF;
    border-color: #ADE4FF;
    color: #0d1117;
}

.education-card:hover .edu-institution {
    color: #0d1117;
}

.education-card:hover .edu-year {
    color: #4a5568;
}

/* ========== CONTACT SECTION ========== */
.contact {
    padding: 100px 8%;
    background: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info .section-header {
    text-align: left;
}

.contact-description {
    font-size: 16px;
    color: #8b949e;
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-item i {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(173, 228, 255, 0.1);
    border-radius: 12px;
    font-size: 20px;
    color: #ADE4FF;
}

.contact-item span {
    font-size: 15px;
    color: #c9d1d9;
}

.contact-social {
    display: flex;
    gap: 15px;
}

.contact-social a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #8b949e;
    font-size: 20px;
    transition: all 0.3s ease;
}

.contact-social a:hover {
    background: #ADE4FF;
    color: #0d1117;
    border-color: #ADE4FF;
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #c9d1d9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-count {
    font-size: 12px;
    color: #8b949e;
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ADE4FF;
    background: rgba(173, 228, 255, 0.03);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6e7681;
}

.form-group textarea {
    resize: none;
    min-height: 120px;
}

.error-message {
    font-size: 12px;
    color: #f85149;
    min-height: 18px;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #f85149;
}

.form-group input.success,
.form-group textarea.success {
    border-color: #3fb950;
}

.btn-submit {
    width: 100%;
    padding: 16px 32px;
    background: #ADE4FF;
    color: #0d1117;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #8DD4F0;
    transform: translateY(-2px);
}

.btn-submit:disabled {
    background: #6e7681;
    cursor: not-allowed;
    transform: none;
}

/* ========== FOOTER ========== */
.footer {
    background: #0d1117;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 8% 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand p {
    color: #8b949e;
    font-size: 14px;
    margin-top: 16px;
    max-width: 300px;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ADE4FF;
}

.footer-links a {
    display: block;
    color: #8b949e;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8b949e;
    font-size: 14px;
    margin-bottom: 12px;
}

.footer-contact i {
    color: #ADE4FF;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
}

.footer-bottom p {
    color: #6e7681;
    font-size: 14px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .sphere-container {
        width: 300px;
        height: 300px;
        margin-top: 40px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info .section-header {
        text-align: center;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-details {
        align-items: center;
    }
    
    .contact-social {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
    
    /* Education responsive */
    .education-timeline {
        flex-wrap: wrap;
        gap: 20px;
        padding-bottom: 20px;
    }
    
    .timeline-line {
        display: none;
    }
    
    .education-card {
        width: calc(50% - 10px);
        min-height: auto;
    }
    
    .education-card.active {
        margin-bottom: 0;
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 5%;
    }
    
    .navbar {
        display: none;
    }
    
    .btn-primary {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .hero {
        padding: 120px 5% 60px;
    }
    
    .social-float {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .technologies,
    .experience,
    .contact,
    .education {
        padding: 60px 5%;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
    }
    
    /* Education mobile */
    .education-timeline {
        flex-direction: column;
        align-items: center;
    }
    
    .education-card {
        width: 100%;
        max-width: 320px;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.section-header,
.tech-grid,
.experience-grid,
.contact-container {
    animation: fadeInUp 0.8s ease forwards;
}
