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

/* Override default link cursor styles */
a:-webkit-any-link {
    cursor: none;
}

a:-moz-any-link {
    cursor: none;
}

body {
    font-family: 'Bricolage Grotesque', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #FFFFFF;
    overflow-x: hidden;
    min-height: 100vh;
    /* Improve touch responsiveness */
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Better scrolling on mobile */
    -webkit-overflow-scrolling: touch;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    height: 100vh;
    position: relative;
    display: flex;
    width: 100%;
    align-items: stretch;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(26, 95, 63, 0.8), rgba(26, 95, 63, 0.6)), url('assets/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.hero-container {
    width: 50%;
    max-width: none;
    padding: 2rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 100%;
    text-align: left;
    position: relative;
}

.hero-text {
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

/* O contêiner que terá a borda e servirá de âncora */
.editor-wrapper {
    position: relative;
    /* Essencial para posicionar os quadrados */
    display: inline-block;
    /* Ajusta o tamanho ao conteúdo */
    margin-bottom: 2rem;
    /* A borda amarela fica no contêiner */
    outline: 3px solid #ffa500;
    outline-offset: 8px;
    margin-left: 16px;
}

/* O elemento interno com o texto e o fundo verde */
.meu-elemento {
    position: relative;
    /* Também precisa ser relativo para seus próprios pseudo-elementos */
    color: white;
    font-family: 'Bricolage Grotesque', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 4px 8px;
    display: block;
    border-radius: 15px;
}

.hello-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0;
    line-height: 1.2;
    text-align: left;
}

.hello-text:first-child {}

.hello-text:last-child {}

/* --- CRIAÇÃO DOS 4 QUADRADOS (MÉTODO ROBUSTO) --- */

/* Estilo COMUM para todos os 4 quadrados */
.editor-wrapper::before,
.editor-wrapper::after,
.meu-elemento::before,
.meu-elemento::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #20593c;
    border: 3px solid #ffa500;
    /* Garante que os quadrados fiquem por cima de tudo */
    z-index: 10;
}

/* Posicionamento INDIVIDUAL de cada quadrado */

/* Canto Superior Esquerdo */
.editor-wrapper::before {
    top: -16px;
    /* -8px (offset) - 6px (metade do quadrado) */
    left: -16px;
}

/* Canto Superior Direito */
.editor-wrapper::after {
    top: -16px;
    right: -16px;
    /* Usamos 'right' para alinhar à direita */
}

/* Canto Inferior Esquerdo */
.meu-elemento::before {
    bottom: -16px;
    /* Usamos 'bottom' para alinhar abaixo */
    left: -16px;
}

/* Canto Inferior Direito */
.meu-elemento::after {
    bottom: -16px;
    right: -16px;
}

.hero-title {
    font-size: clamp(4rem, 6vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-title .name {
    color: #ffffff;
}

.hero-title .role {
    color: #ffa500;
}

.chat-bubble {
    background-color: #ffa500;
    color: #000;
    padding: 1rem 1.5rem;
    border-radius: 8px 24px 24px 24px;
    margin-bottom: 3rem;
    max-width: 500px;
    position: relative;
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3);
    display: inline-block;
}



.chat-text {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: default;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: #ffa500;
    color: #000;
}

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

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

.btn-secondary:hover {
    background-color: #ffffff;
    color: #1a5f3f;
}

.social-links {
    display: flex;
    align-items: center;
    background-color: #7D9B66;
    padding: 8px;
    border-radius: 60px;
    width: fit-content;
    margin: 0 auto;
    flex-direction: row;

    #resume {
        font-size: 1rem;
        font-weight: 600;
        background-color: #334B36;
        border-radius: 60px;
        padding: 8px 16px;
    }
}

.social-links .social-icons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
}

.language-toggle-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.lang-button {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(51, 75, 54, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 10px 14px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    /* Improve touch targets */
    min-height: 44px;
    min-width: 44px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lang-button:hover {
    background-color: rgba(42, 61, 46, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.lang-button:active {
    transform: translateY(0);
}

.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
}

.lang-text {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.social-links .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 60px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    padding: 8px;
    gap: 1rem;
    /* Improve touch targets on mobile */
    min-height: 44px;
    min-width: 44px;
    /* Better accessibility */
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
}

.social-links .social-link:hover {
    background-color: #334B36;
    transform: translateY(-2px);
}

/* Tooltip Styles */
.social-links .social-link::before {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffa500;
    color: #000;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
    margin-bottom: 8px;
}

.social-links .social-link::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #ffa500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-bottom: -1px;
}

.social-links .social-link:hover::before,
.social-links .social-link:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.social-links .social-link:hover::after {
    transform: translateX(-50%) translateY(0);
}

/* Adjust tooltip position for edge icons */
.social-links .social-icons .social-link:first-child::before {
    left: 0;
    transform: none;
}

.social-links .social-icons .social-link:first-child::after {
    left: 0;
    transform: none;
}

.social-links .social-icons .social-link:first-child:hover::before {
    transform: translateY(-5px);
}

.social-links .social-icons .social-link:first-child:hover::after {
    transform: translateY(0);
}





/* About Me Section */
.about-section {
    min-height: 100vh;
    height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.about-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    gap: 4rem;
    align-items: center;
    justify-content: center;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
}

.profile-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 4px solid rgba(255, 165, 0, 0.3);
    background-color: #f4f4f4;
    object-fit: cover;
}

.about-content {
    width: 50%;
    flex: 1;
    color: #F6F6F6;
    background-color: #F6F6F6;
    padding: 64px;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.about-title {
    font-size: clamp(3rem, 5vw, 4rem);
    font-weight: 800;
    color: #334B36;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.about-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    color: #4F4F4F;
    max-width: 500px;
}

.about-details {
    display: flex;
    gap: 4rem;
    margin-bottom: 3rem;
}

.skills-section,
.tools-section {
    flex: 1;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffa500;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-item {
    font-size: 1rem;
    font-weight: 500;
    color: #4F4F4F;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.skill-item:hover {
    color: #ffa500;
    transform: translateX(5px);
}

.tools-list {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.tool-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 165, 0, 0.2);
    border: 2px solid rgba(255, 165, 0, 0.3);
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tool-icon:hover {
    background-color: rgba(255, 165, 0, 0.4);
    border-color: rgba(255, 165, 0, 0.6);
    transform: scale(1.1);
}

.tool-icon.figma {
    background: linear-gradient(135deg, #1abcfe, #0ac775);
}

.tool-icon.adobe {
    background: linear-gradient(135deg, #ff0000, #ff9900);
}

.tool-icon.sketch {
    background: linear-gradient(135deg, #fdad00, #ff6b00);
}

.about-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.about-actions .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.about-actions .btn-primary {
    background-color: #E2EAE1;
    color: #000;
    border: none;
}

.about-actions .btn-primary:hover {
    background-color: #334B36;
    color: #FFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px #334b3649;
}

.about-actions .btn-secondary {
    background-color: #E2EAE1;
    color: #000;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.about-actions .btn-secondary:hover {
    background-color: #334B36;
    color: #FFF;
    border-color: #334b3649;
    transform: translateY(-2px);
}

/* Projects Section */
.projects {
    display: flex;
    width: 50%;
    gap: 2rem;
    z-index: 1;
    height: 100vh;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0;
    color: #ffffff;
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.project-card:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Project Image Section */
.project-image {
    position: relative;
    width: 100%;
    height: 70%;
    min-height: 200px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background-color: #F4F4F4;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.1), rgba(26, 95, 63, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-project-btn {
    background-color: #ffa500;
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.project-card:hover .view-project-btn {
    transform: translateY(0);
}

.view-project-btn:hover {
    background-color: #ff8c00;
    transform: translateY(0) scale(1.05);
}

/* Project Info Section */
.project-info {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    background-color: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffa500;
}

.project-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
}

.project-meta {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.project-client,
.project-role {
    margin-bottom: 0.5rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.project-link {
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.project-link.primary {
    background-color: #ffa500;
    color: #000;
}

.project-link.primary:hover {
    background-color: #ff8c00;
    transform: translateY(-2px);
}

.project-link.secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-link.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ========================================
   CUSTOM CURSOR SYSTEM
   Easy maintenance and customization
   ======================================== */

/* Cursor Container */
#custom-cursor {
    /* Positioning */
    position: fixed;
    pointer-events: none;
    z-index: 9999;

    /* Performance */
    transform-origin: center;
    transition: transform 0.15s ease;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;

    /* Display */
    display: block;
    visibility: visible;
}

/* Cursor Dot - Main Interactive Element */
.cursor-dot {
    /* Size & Shape */
    width: 20px;
    height: 20px;
    border-radius: 50%;

    /* Translucent Effect - Similar to project cards */
    background-color: rgba(255, 165, 0, 0.7);
    /* Semi-transparent orange */
    backdrop-filter: blur(2px);
    /* Backdrop blur effect */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Subtle border */

    /* Enhanced shadow for depth */
    box-shadow:
        0 2px 10px rgba(255, 165, 0, 0.3),
        /* Inner shadow */
        0 4px 20px rgba(255, 165, 0, 0.2);
    /* Outer glow */

    /* Animation */
    transition: all 0.15s ease;
    transform-origin: center;
    display: block;
}

/* ========================================
   CURSOR STATES
   Easy to modify behaviors
   ======================================== */

/* Normal State (Default) */
.cursor-dot {
    transform: scale(1);
    box-shadow: 0 2px 10px rgba(255, 165, 0, 0.3);
}

/* Hover State (Enlarged) */
#custom-cursor.enlarged .cursor-dot,
.cursor-dot:hover {
    transform: scale(1.5);
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.5);
}

/* Enlarge cursor dot when hovering over interactive elements */
.social-links .social-link:hover~#custom-cursor .cursor-dot {
    transform: scale(1.5) !important;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.5) !important;
}

.project-link:hover~#custom-cursor .cursor-dot {
    transform: scale(1.5) !important;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.5) !important;
}

.btn:hover~#custom-cursor .cursor-dot {
    transform: scale(1.5) !important;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.5) !important;
}

.nav-btn:hover~#custom-cursor .cursor-dot {
    transform: scale(1.5) !important;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.5) !important;
}

.view-project-btn:hover~#custom-cursor .cursor-dot {
    transform: scale(1.5) !important;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.5) !important;
}

.lang-button:hover~#custom-cursor .cursor-dot {
    transform: scale(1.5) !important;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.5) !important;
}

#resume:hover~#custom-cursor .cursor-dot {
    transform: scale(1.5) !important;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.5) !important;
}

a:hover~#custom-cursor .cursor-dot {
    transform: scale(1.5) !important;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.5) !important;
}



/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    #custom-cursor {
        display: none;
    }
}

/* Improve touch interactions */
@media (max-width: 768px) {

    /* Remove hover effects on touch devices */
    .project-card:hover,
    .project-link:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .social-links .social-link:hover {
        transform: none;
    }

    /* Hide tooltips on touch devices */
    .social-links .social-link::before,
    .social-links .social-link::after {
        display: none;
    }

    /* Add active states for touch */
    .project-card:active,
    .project-link:active,
    .btn-primary:active,
    .btn-secondary:active,
    .social-links .social-link:active {
        transform: scale(0.98);
        opacity: 0.8;
    }

    /* Better touch targets */
    .social-links .social-link,
    .project-link,
    .btn {
        min-height: 48px;
        min-width: 48px;
    }

    /* Improve text readability on small screens */
    .chat-text {
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
        word-wrap: break-word;
    }

    /* Better scrolling performance */
    .hero {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

    /* Improve tap response */
    * {
        -webkit-tap-highlight-color: rgba(255, 165, 0, 0.3);
    }
}

/* Safe area insets for devices with notches */
@supports (padding: max(0px)) {
    .hero-container {
        padding-left: max(2rem, env(safe-area-inset-left));
        padding-right: max(2rem, env(safe-area-inset-right));
    }

    .projects {
        padding-left: max(2rem, env(safe-area-inset-left));
        padding-right: max(2rem, env(safe-area-inset-right));
    }

    .language-toggle-container {
        top: max(20px, env(safe-area-inset-top));
        right: max(20px, env(safe-area-inset-right));
    }

    @media (max-width: 768px) {
        .hero-container {
            padding-left: max(1rem, env(safe-area-inset-left));
            padding-right: max(1rem, env(safe-area-inset-right));
        }

        .projects {
            padding-left: max(1rem, env(safe-area-inset-left));
            padding-right: max(1rem, env(safe-area-inset-right));
        }

        .language-toggle-container {
            top: max(15px, env(safe-area-inset-top));
            right: max(15px, env(safe-area-inset-right));
        }
    }

    @media (max-width: 480px) {
        .hero-container {
            padding-left: max(0.8rem, env(safe-area-inset-left));
            padding-right: max(0.8rem, env(safe-area-inset-right));
        }

        .projects {
            padding-left: max(0.8rem, env(safe-area-inset-left));
            padding-right: max(0.8rem, env(safe-area-inset-right));
        }

        .language-toggle-container {
            top: max(10px, env(safe-area-inset-top));
            right: max(10px, env(safe-area-inset-right));
        }
    }
}

/* Responsive Design */

/* About Me Section Responsive */
@media (max-width: 1024px) {
    .about-section {
        padding: 1.5rem;
    }

    .about-container {
        gap: 3rem;
    }

    .about-content {
        padding-left: 1.5rem;
    }

    .about-details {
        gap: 3rem;
    }

    .profile-image {
        max-width: 350px;
    }
}

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .hero-container {
        padding: 0 1.5rem;
    }

    .chat-bubble {
        max-width: 450px;
    }

    .projects {
        width: 50%;
        gap: 1.5rem;
        height: 100vh;
        align-items: center;
        padding: 1.5rem;
    }

    .project-card {
        height: 100%;
        max-width: none;
        display: flex;
        flex-direction: column;
    }

    .project-image {
        height: 70%;
        min-height: 200px;
    }

    .project-info {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.3rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    .project-links {
        flex-direction: column;
        gap: 0.8rem;
    }

    .project-link {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Large Tablets (Landscape) */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-container {
        width: 60%;
        padding: 2rem 1.5rem;
    }



    .chat-bubble {
        max-width: 420px;
        padding: 1.1rem 1.4rem;
    }

    .social-links {
        margin: 0 auto;
        padding: 0.7rem;
    }

    .social-links .social-link {
        font-size: 1.1rem;
        padding: 0.7rem;
        min-width: 42px;
        min-height: 42px;
    }

    #resume {
        font-size: 0.95rem;
        padding: 0.7rem 1.1rem;
    }

    .editor-wrapper {
        margin-bottom: 1.5rem;
    }

    .meu-elemento {}

    .hello-text {
        font-size: 1rem;
    }

    .projects {
        width: 40%;
        gap: 1.8rem;
        padding: 1.8rem;
        height: 100vh;
    }

    .project-card {

        border-radius: 18px;
    }

    .project-card h3 {
        font-size: 1.4rem;
        margin-bottom: 0.9rem;
    }

    .project-card p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.3rem;
    }

    .project-link {
        padding: 0.7rem 1.4rem;
        font-size: 0.95rem;
    }
}

/* About Me Section Responsive for Tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    .about-section {
        padding: 2rem;
    }

    .about-container {
        gap: 3rem;
        max-width: 1000px;
    }

    .about-image {
        flex: 1;
    }

    .about-content {
        flex: 1;
        padding: 48px;
        padding-left: 2rem;
    }

    .about-title {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
        margin-bottom: 1.5rem;
    }

    .about-description {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }

    .about-details {
        gap: 3rem;
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 0.9rem;
    }

    .skill-item {
        font-size: 0.95rem;
    }

    .tool-icon {
        width: 35px;
        height: 35px;
    }

    .about-actions .btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .about-section {
        min-height: auto;
        padding: 3rem 2rem;
    }

    .about-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .about-image {
        order: 1;
    }

    .about-content {
        order: 2;
        padding: 40px;
        padding-left: 0;
    }

    .profile-image {
        max-width: 300px;
    }

    .about-title {
        font-size: clamp(2rem, 5vw, 3rem);
        margin-bottom: 1.5rem;
    }

    .about-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        max-width: none;
    }

    .about-details {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 2rem;
        text-align: left;
    }

    .section-title {
        font-size: 0.9rem;
    }

    .skill-item {
        font-size: 0.9rem;
    }

    .tool-icon {
        width: 35px;
        height: 35px;
    }

    .about-actions {
        justify-content: center;
        gap: 1rem;
    }

    .about-actions .btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.9rem;
    }
}

/* Tablets (Portrait) */
@media (max-width: 768px) and (min-width: 481px) {
    .hero {
        flex-direction: column;
        min-height: auto;
        height: auto;
    }

    .hero-container {
        width: 100%;
        padding: 1.5rem 1.2rem;
        min-height: 70vh;
        height: auto;
    }

    .hero-content {
        padding: 2rem 0;
        min-height: 60vh;
    }

    .hero-title {
        font-size: clamp(2.5rem, 5vw, 4rem);
        font-weight: 800;
        line-height: 1.1;
        margin-bottom: 1.5rem;
        color: #ffffff;
    }

    .hero-title .name,
    .hero-title .role {
        display: inline;
        white-space: nowrap;
    }

    .chat-bubble {
        max-width: 90%;
        padding: 1rem 1.3rem;
        margin-bottom: 2rem;

    }

    .chat-text {
        font-size: 1rem;
        line-height: 1.5;
    }

    .social-links {
        margin-top: 2rem;
        padding: 0.8rem;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .social-links .social-icons {
        display: flex;
        flex-direction: row;
        gap: 0.6rem;
        justify-content: center;
    }

    .social-links .social-link {
        font-size: 1rem;
        padding: 0.8rem;
        min-width: 45px;
        min-height: 45px;
    }

    #resume {
        font-size: 0.9rem;
        padding: 0.8rem 1.2rem;

        width: 100%;
        max-width: 220px;
    }

    .editor-wrapper {
        margin-bottom: 1.3rem;
    }

    .meu-elemento {}

    .hello-text {
        font-size: 0.9rem;
    }

    .projects {
        width: 100%;
        padding: 1.5rem 1.2rem;
        margin-top: 0;
        gap: 1.5rem;
        height: auto;
        min-height: 35vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .project-card {
        min-height: 200px;

        border-radius: 16px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .project-image {
        height: 140px;
        border-radius: 16px 16px 0 0;
    }

    .project-info {
        padding: 1.3rem;
        flex: 1;
    }

    .project-title {
        font-size: 1.1rem;
        margin-bottom: 0.7rem;
    }

    .project-description {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }

    .project-meta {
        font-size: 0.75rem;
        margin-bottom: 0.8rem;
    }

    .project-links {
        flex-direction: column;
        gap: 0.6rem;
    }

    .project-link {
        padding: 0.6rem 0.9rem;
        font-size: 0.85rem;
        border-radius: 12px;
    }
}

/* About Me Section Responsive for Mobile */
@media (max-width: 480px) {
    .about-section {
        min-height: auto;
        padding: 2rem 1rem;
    }

    .about-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .about-image {
        order: 1;
    }

    .about-content {
        order: 2;
        padding: 32px;
        padding-left: 0;
    }

    .profile-image {
        max-width: 250px;
    }

    .about-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        margin-bottom: 1.5rem;
    }

    .about-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        max-width: none;
        line-height: 1.5;
    }

    .about-details {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2rem;
        text-align: left;
    }

    .section-title {
        font-size: 0.85rem;
    }

    .skill-item {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }

    .tool-icon {
        width: 32px;
        height: 32px;
    }

    .about-actions {
        justify-content: center;
        gap: 0.8rem;
    }

    .about-actions .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .hero {
        flex-direction: column;
        min-height: auto;
        height: auto;
    }

    .hero-container {
        width: 100%;
        padding: 1rem;
        min-height: 65vh;
        height: auto;
    }

    .hero-content {
        padding: 1.5rem 0;
        min-height: 55vh;
    }

    .hero-title {
        font-size: clamp(2.5rem, 4vw, 2.5rem);
        font-weight: 800;
        line-height: 1.1;
        margin-bottom: 1.5rem;
        color: #ffffff;
    }

    .hero-title .name,
    .hero-title .role {
        display: inline;
        white-space: nowrap;
    }

    .chat-bubble {
        max-width: 95%;
        padding: 0.9rem 1.1rem;
        margin-bottom: 1.8rem;

    }

    .chat-text {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    /* Desktop/Tablet - Social Links na posição original */
    .social-links {
        position: static;
        transform: none;
        margin: 0 auto;
        padding: 0.7rem;
        width: fit-content;
        box-shadow: none;
        backdrop-filter: none;
        border: none;
        /* Garantir que fica na posição original */
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
    }
}

/* Todos os dispositivos - Social Links na posição original */
.social-links {
    position: static;
    transform: none;
    margin: 0 auto;
    padding: 0.7rem;
    width: fit-content;
    box-shadow: none;
    backdrop-filter: none;
    border: none;
    /* Garantir posição original em todos os dispositivos */
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
}

/* Mobile - Social Links na posição original */
@media (max-width: 480px) {
    .social-links {
        margin: 0 auto;
        padding: 0.7rem;
        width: fit-content;
        flex-direction: column;
        border-radius: 16px;
    }

    .social-links .social-icons {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        justify-content: center;
    }

    .social-links .social-link {
        font-size: 1.5rem;
        padding: 0.7rem;
        min-width: 40px;
        min-height: 40px;
    }

    #resume {
        font-size: 0.85rem;
        padding: 0.7rem 1rem;
        width: 100%;
    }

    .editor-wrapper {
        margin-bottom: 1rem;
    }

    .meu-elemento {}

    .hello-text {
        font-size: 0.85rem;
    }

    .projects {
        width: 100%;
        padding: 1rem;
        margin-top: 0;
        gap: 1rem;
        height: auto;
        min-height: 60vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .project-container {
        width: 100%;
        max-width: 400px;
        height: auto;
        min-height: 400px;
    }

    .project-card {
        min-height: 400px;
        height: auto;
        border-radius: 16px;
        display: flex;
        flex-direction: column;
        overflow: visible;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .project-image {
        height: 180px;
        min-height: 180px;
        border-radius: 16px 16px 0 0;
        flex-shrink: 0;
        overflow: hidden;
    }

    .project-info {
        padding: 1.5rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 220px;
        justify-content: space-between;
    }

    .project-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        line-height: 1.2;
        color: #ffa500;
    }

    .project-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        flex: 1;
        color: rgba(255, 255, 255, 0.9);
    }

    .project-meta {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.8);
    }

    .project-links {
        flex-direction: column;
        gap: 0.8rem;
        margin-top: auto;
    }

    .project-link {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        border-radius: 12px;
        text-align: center;
        font-weight: 600;
    }

    .lang-button {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
        min-height: 32px;
        gap: 3px;
    }

    .flag-icon {
        width: 14px;
        height: 10px;
    }

    .lang-text {
        font-size: 0.7rem;
    }
}

/* Small mobile phones */
@media (max-width: 360px) {
    .hero-container {
        padding: 0.8rem;
        min-height: 60vh;
    }

    .hero-content {
        padding: 1.2rem 0;
        min-height: 50vh;
    }



    .chat-bubble {
        padding: 0.8rem;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .chat-text {
        font-size: 0.9rem;
    }

    .social-links {

        padding: 0.6rem;
    }

    .social-links .social-link {
        font-size: 1.5rem;
        padding: 0.5rem;
        min-width: 40px;
        min-height: 40px;
    }

    .editor-wrapper {
        margin-bottom: 0.8rem;
    }

    .meu-elemento {}

    .hello-text {
        font-size: 0.7rem;
    }

    .projects {
        padding: 0.8rem;
        min-height: 45vh;
        gap: 0.8rem;
    }

    .project-card {
        min-height: 280px;
        max-width: 350px;
    }

    .project-image {
        height: 140px;
    }

    .project-info {
        padding: 1rem;
        min-height: 140px;
    }

    .project-title {
        font-size: 1rem;
        margin-bottom: 0.7rem;
    }

    .project-description {
        font-size: 0.8rem;
        margin-bottom: 0.9rem;
    }

    .project-meta {
        font-size: 0.7rem;
        margin-bottom: 0.9rem;
    }

    .project-links {
        gap: 0.5rem;
    }

    .project-link {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    .hero-container {
        padding: 0.6rem;
    }



    .chat-bubble {
        padding: 0.7rem;
        max-width: 100%;
    }

    .chat-text {
        font-size: 0.85rem;
    }


    .social-links .social-link {
        min-width: 36px;
        padding: 0.4rem;
        font-size: 1.5rem;
    }

    .projects {
        padding: 0.6rem;
        min-height: 25vh;
    }

    .project-card {
        min-height: 140px;
    }

    .project-card h3 {
        font-size: 1rem;
    }

    .project-card p {
        font-size: 0.8rem;
    }
}

/* Landscape orientation for mobile devices */
@media (max-height: 480px) and (orientation: landscape) {
    .hero-content {
        min-height: 100vh;
        padding: 1rem 0;
    }



    .chat-bubble {
        margin-bottom: 1rem;
        max-width: 350px;
    }

    .social-links {
        margin: 0 auto;
        padding: 4px;
    }
}

/* Landscape orientation for tablets */
@media (max-height: 768px) and (orientation: landscape) and (min-width: 769px) {
    .hero {
        flex-direction: row;
        min-height: 100vh;
    }

    .hero-container {
        width: 55%;
        padding: 1.5rem;
        min-height: 100vh;
    }

    .hero-content {
        padding: 2rem 0;
    }



    .chat-bubble {
        max-width: 380px;
        padding: 1rem 1.3rem;
        margin-bottom: 2rem;
    }

    .chat-text {
        font-size: 1rem;
        line-height: 1.4;
    }

    .social-links {
        margin: 0 auto;
        padding: 0.6rem;
        gap: 0.6rem;
    }

    .social-links .social-link {
        font-size: 1rem;
        padding: 0.6rem;
        min-width: 40px;
        min-height: 40px;
    }

    #resume {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    .hello-text {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 1.3rem;
    }

    .projects {
        width: 45%;
        gap: 1.5rem;
        padding: 1.5rem;
        height: 100vh;
    }

    .project-card {

        min-height: auto;
        border-radius: 16px;
    }

    .project-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.7rem;
    }

    .project-card p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .project-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* iPad specific optimizations */
@supports (-webkit-appearance: none) {
    @media (min-width: 768px) and (max-width: 1024px) {


        .chat-bubble {
            max-width: 400px;
        }

        .social-links {
            padding: 0.8rem;
        }
    }
}

/* Ultra-wide screens (21:9 and wider) */
@media (min-width: 1400px) {
    .hero-container {
        width: 45%;
        padding: 3rem;
    }

    .projects {
        width: 55%;
        padding: 3rem;
        height: 100vh;
        min-height: 100vh;
    }



    .chat-bubble {
        max-width: 600px;
        padding: 1.3rem 2rem;
    }

    .chat-text {
        font-size: 1.2rem;
    }

    .project-card {
        height: 100%;
        min-height: 80vh;
    }
}

/* Very tall screens */
@media (min-height: 1200px) {
    .hero {
        min-height: 90vh;
    }

    .hero-content {}



    .chat-bubble {
        margin-bottom: 4rem;
        padding: 1.3rem 2rem;
    }

    .social-links {

        padding: 1rem;
    }
}

/* Very short screens */
@media (max-height: 600px) {
    .hero {
        min-height: 100vh;
    }

    .hero-content {
        padding: 1.5rem 0;
    }



    .chat-bubble {
        margin-bottom: 1.5rem;
        padding: 0.8rem 1.2rem;
    }

    .chat-text {
        font-size: 0.9rem;
    }

    .social-links {
        margin-top: 1.5rem;
        padding: 0.6rem;
    }

    .hello-text {
        margin-bottom: 1rem;
        font-size: 1rem;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .chat-bubble {
        box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
    }

    #custom-cursor svg {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Project Carousel System */
.project-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.project-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.nav-btn {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: default;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover {
    background-color: rgba(255, 165, 0, 0.9);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.3);
}

.nav-btn:active {
    transform: scale(0.95);
}



/* Project card slide animation */
.project-card.slide-in {
    animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive adjustments for carousel */
@media (max-width: 1024px) {
    .project-navigation {
        padding: 0 1.5rem;
    }

    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .project-navigation {
        padding: 0 1rem;
        position: static;
        transform: none;
        justify-content: center;
        gap: 2rem;
        margin-top: 1.5rem;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .project-navigation {
        gap: 1.5rem;
        margin-top: 1rem;
    }

    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .hero-title,
    .chat-text,
    .hello-text {
        color: black;
    }

    .social-links {
        display: none;
    }

    #custom-cursor {
        display: none;
    }

    .project-navigation {
        display: none;
    }
}