/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* Header - Enhanced Sticky */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    transition: all 0.4s ease;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.3rem 0;
    box-shadow: 0 4px 25px rgba(79, 70, 229, 0.15);
    border-bottom: 2px solid rgba(79, 70, 229, 0.1);
}

.header.scrolled .nav {
    padding: 0.5rem 2rem;
}

.header.scrolled .nav-brand h1 {
    font-size: 1.25rem;
}

.nav {
    padding: 1rem 2rem;
    transition: all 0.4s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-link {
    text-decoration: none;
    transition: all 0.3s ease;
}

.brand-link:hover {
    transform: translateY(-1px);
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4f46e5;
    margin: 0;
    transition: all 0.3s ease;
}

.brand-link:hover h1 {
    color: #4338ca;
}

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #4f46e5;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #4c1d95 0%, #4f46e5 50%, #6366f1 100%);
    color: white;
    padding-top: 80px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #ffffff;
    color: #4f46e5;
}

.btn-primary:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #4f46e5;
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Sections with Alternating Backgrounds */
.section {
    padding: 5rem 0;
    background: #ffffff;
}

.section-alt {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    border-top: 1px solid rgba(79, 70, 229, 0.08);
    border-bottom: 1px solid rgba(79, 70, 229, 0.08);
    position: relative;
}

.section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(79, 70, 229, 0.02) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1f2937;
}

/* About Section */
.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: #4b5563;
}

/* Experience Section */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #e5e7eb;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #4f46e5;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px #e5e7eb;
    z-index: 1;
}

.timeline-date {
    font-weight: 600;
    color: #4f46e5;
    text-align: right;
    padding-right: 2rem;
    margin-top: 0.5rem;
}

.timeline-content {
    padding-left: 2rem;
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #4f46e5;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.achievements {
    list-style: none;
    padding-left: 0;
}

.achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #6b7280;
}

.achievements li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #4f46e5;
    font-size: 0.8rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-category {
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 12px;
    background: transparent;
}

.skill-category:hover {
    background: rgba(79, 70, 229, 0.02);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.08);
}

.skill-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.skill-category:hover h3 {
    color: #4f46e5;
    transform: translateY(-1px);
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    transition: transform 0.3s ease;
}

.skill-category:hover h3::after {
    transform: translateX(-50%) scaleX(1);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
    align-items: center;
}

.skill-category:hover .skill-tag {
    animation: skillPulse 0.6s ease-in-out;
}

.skill-category:hover .skill-tag:nth-child(1) { animation-delay: 0.1s; }
.skill-category:hover .skill-tag:nth-child(2) { animation-delay: 0.2s; }
.skill-category:hover .skill-tag:nth-child(3) { animation-delay: 0.3s; }
.skill-category:hover .skill-tag:nth-child(4) { animation-delay: 0.4s; }
.skill-category:hover .skill-tag:nth-child(5) { animation-delay: 0.5s; }
.skill-category:hover .skill-tag:nth-child(6) { animation-delay: 0.6s; }

@keyframes skillPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.skill-tag {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-block;
    white-space: nowrap;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.skill-tag:hover {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    filter: brightness(1.1);
}

.skill-tag:hover::before {
    left: 100%;
}

.skill-tag:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.education-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.education-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.education-item h4 {
    color: #4f46e5;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.education-date {
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-item i {
    width: 24px;
    color: #4f46e5;
    font-size: 1.2rem;
}

.contact-item a {
    color: #4f46e5;
    text-decoration: none;
}

.contact-item a:hover {
    color: #4338ca;
}


/* Footer */
.footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
    }
    
    .menu-open {
        overflow: hidden;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .profile-img {
        width: 250px;
        height: 250px;
    }
    
    .timeline {
        padding-left: 2rem;
    }
    
    .timeline::before {
        left: 1rem;
        width: 1px;
        background: #e5e7eb;
    }
    
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .timeline-item::before {
        left: 1rem;
        top: 1.5rem;
    }
    
    .timeline-date {
        text-align: left;
        padding-right: 0;
    }
    
    .timeline-content {
        padding-left: 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav {
        padding: 1rem;
    }
    
    .hero {
        padding-top: 60px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .profile-img {
        width: 200px;
        height: 200px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-category {
        padding: 0.75rem;
    }
    
    .skill-tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        display: none;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-item::before {
        display: none;
    }
    
    .timeline {
        padding-left: 0;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: #25d366;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    font-size: 36px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    transition: all 0.3s ease;
    position: relative;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-btn:hover {
    background: #20b954;
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.7);
}

.whatsapp-btn i {
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover i {
    transform: scale(1.1);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #333;
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-10px);
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5), 0 0 0 15px rgba(37, 211, 102, 0.15);
    }
    100% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    }
}

/* Mobile WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn {
        width: 65px;
        height: 65px;
        font-size: 32px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

/* Services Section */
.services-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.services-intro p {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

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

.service-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.25);
    border: 1px solid rgba(79, 70, 229, 0.3);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-item:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4f46e5;
    margin-bottom: 1rem;
}

.service-content p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #4b5563;
    font-size: 0.9rem;
}

.service-features li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #4f46e5;
    font-weight: bold;
}

/* About Section Updates */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-image {
    text-align: center;
}

.section-img {
    width: 100%;
    max-width: 500px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    text-align: left;
}

/* Section Header */
.section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.section-bg {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    opacity: 0.8;
}

/* Senho Link Styling */
.senho-link {
    color: #ffffff;
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    padding: 2px 6px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
}

.senho-link:hover {
    background: linear-gradient(90deg, #4338ca, #4f46e5);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.4);
}

.senho-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: #4f46e5;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.senho-link:hover::after {
    transform: scaleX(1);
}

/* Responsive Updates for Services */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-text p {
        text-align: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skill-tags {
        justify-content: center;
    }
}

/* Animation for scroll reveal */
.section {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}