/* Background Layer - Grid */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
    pointer-events: none;
    animation: grid-pulse 10s ease-in-out infinite alternate;
}

@keyframes grid-pulse {
    from { opacity: 0.5; transform: scale(1); }
    to { opacity: 1; transform: scale(1.05); }
}

/* Moving Light Particles */
.particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0;
    animation: particle-move 10s linear infinite;
}

@keyframes particle-move {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    20% { opacity: 0.5; }
    80% { opacity: 0.5; }
    100% { transform: translateY(-10vh) translateX(100px); opacity: 0; }
}

/* Services Section */
.services-section {
    position: relative;
    padding: 6rem 5%;
    background-color: transparent;
    z-index: 2;
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-header h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: var(--font-weight-heading);
    margin-bottom: 1rem;
}

.services-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1250px;
    margin: 0 auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
    box-sizing: border-box;
    height: 100%;
    min-width: 0;
}

.service-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(3, 103, 166, 0.5); /* Destaca com o tom de azul #0367A6 */
}

.service-image-wrapper {
    width: 100%;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.service-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Code Editor Mockup for Service Card */
.code-editor-mockup {
    background: #050a12;
    border: 1px solid rgba(3, 103, 166, 0.2);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1.5rem;
    box-sizing: border-box;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.code-editor-mockup pre {
    margin: 0;
    width: 100%;
    overflow-x: auto;
}

.code-editor-mockup .keyword { color: #00f0ff; }
.code-editor-mockup .function { color: #ffffff; font-weight: 600; }
.code-editor-mockup .property { color: #94a3b8; }
.code-editor-mockup .boolean { color: var(--accent-primary); }

/* Process Section (Sticky Timeline) */
.process-section {
    position: relative;
    height: 400vh; /* creates 4 screens of scrolling space */
    background-color: var(--bg-color);
    z-index: 2;
}

.process-sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0 5%;
}

.process-header {
    text-align: center;
    margin-bottom: 2rem;
}

.process-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-weight-heading);
    margin-bottom: 0.5rem;
}

.process-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.process-timeline {
    position: relative;
    max-width: 1000px;
    width: 100%;
    height: 65vh; /* Fits the 5 items comfortably */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.process-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: transparent; /* Fully invisible track */
    z-index: 0;
    border-radius: 4px;
}

.process-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%; /* Animação por scroll JS */
    background: linear-gradient(to bottom, #00f0ff, #0367A6);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
    border-radius: 4px;
}

.timeline-step {
    position: relative;
    width: 53%; /* Overlaps the 50% center mark! */
    z-index: 1;
    opacity: 0; /* Fully invisible */
    transform: scale(0.95) translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
    filter: grayscale(1);
}

.timeline-step.active {
    opacity: 1;
    transform: scale(1);
    filter: grayscale(0);
}

.timeline-step.left {
    align-self: flex-start;
}

.timeline-step.right {
    align-self: flex-end;
}

.step-content.glass {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(10, 15, 25, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.timeline-step.active .step-content.glass {
    border-color: rgba(3, 103, 166, 0.5);
    box-shadow: 0 0 20px rgba(3, 103, 166, 0.2);
}

.timeline-step.right .step-content.glass {
    flex-direction: row-reverse;
    text-align: right;
}

.step-icon-wrapper {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    background: #050a12;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: border-color 0.4s ease, background 0.4s ease;
}

.step-icon {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    transition: color 0.4s ease;
}

.timeline-step.active .step-icon-wrapper {
    border-color: rgba(3, 103, 166, 0.5);
    background: rgba(3, 103, 166, 0.1);
}

.timeline-step.active .step-icon {
    color: #00f0ff;
}

.step-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #fff;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* Mobile Responsiveness for Timeline */
@media (max-width: 900px) {
    .process-line {
        left: 20px;
        transform: none;
    }

    .timeline-step {
        width: 85%;
        align-self: flex-end;
    }

    .timeline-step.right .step-content.glass {
        flex-direction: row;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .timeline-step {
        width: 90%;
    }
    .step-content.glass {
        padding: 1rem;
        gap: 1rem;
    }
    .step-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .step-content h3 {
        font-size: 1.1rem;
    }
    .step-content p {
        font-size: 0.8rem;
    }
}

/* 3D Parallax Book Section */
.book-section {
    position: relative;
    height: 300vh; /* 3 screens of scrolling for the animation */
    background-color: var(--bg-color);
    z-index: 2;
}

.book-sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 2500px; /* Essential for 3D */
    overflow: hidden;
}

.book-container {
    position: relative;
    width: 48vw; /* Takes up slightly less than half the screen when closed, opens to 96vw */
    height: 85vh;
    max-width: 680px;
    max-height: 850px;
    transform-style: preserve-3d;
    transition: transform 0.1s linear; /* Smooth JS tracking */
}

.book-page-right {
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 100%;
    background: #fdfbf7;
    border-radius: 4px 12px 12px 4px;
    box-shadow: inset 10px 0 30px rgba(0,0,0,0.05), 15px 20px 40px rgba(0,0,0,0.4);
    background-image: linear-gradient(rgba(3, 103, 166, 0.1) 1px, transparent 1px);
    background-size: 100% 40px;
    z-index: 1;
}

.book-cover-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    transform-origin: left center;
    transform-style: preserve-3d;
    z-index: 2;
    /* transform: rotateY(-180deg) injected by JS */
}

.cover-front, .cover-back {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    backface-visibility: hidden;
}

.cover-front {
    background: #041624;
    border-radius: 4px 12px 12px 4px;
    box-shadow: inset 5px 0 20px rgba(0,0,0,0.2), 10px 15px 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cover-front-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cover-front h2 {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    margin: 0;
}

.cover-tape {
    background: #eaddcf; /* Cor de fita crepe */
    padding: 10px 25px;
    margin-top: 1rem;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.3);
    border-radius: 2px;
    opacity: 0.95;
    position: relative;
}

.cover-tape::before, .cover-tape::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 6px;
    background: #eaddcf;
}
.cover-tape::before {
    left: -6px;
    border-radius: 4px 0 0 4px; /* Simula um rasgo leve */
    opacity: 0.8;
}
.cover-tape::after {
    right: -6px;
    border-radius: 0 4px 4px 0;
    opacity: 0.8;
}

.cover-tape span {
    font-family: var(--font-body);
    font-weight: 500;
    color: #222;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

/* Mobile Notepad Layout */
.mobile-notepad-content {
    display: none;
}

@media (max-width: 768px) {
    .book-container {
        width: 90vw;
        max-width: 400px;
        height: 75vh;
        margin: 0 auto;
    }

    .book-cover-container {
        transform-origin: top center !important;
    }

    .book-page-right {
        /* Notepad spiral/binding effect */
        border-top: 15px solid #1a1a1a;
        border-radius: 0 0 8px 8px;
    }

    .cover-front {
        /* Matching binding on cover */
        border-top: 15px solid #1a1a1a;
        border-radius: 0 0 8px 8px;
    }

    .cover-back {
        /* Blank cardboard back */
        background: #eaddcf;
        background-image: none !important;
        border-top: 15px solid #1a1a1a;
    }

    .right-page, .left-page {
        display: none !important;
    }

    .mobile-notepad-content {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
        padding: 2rem 1rem 4rem 1rem;
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-notepad-content::-webkit-scrollbar {
        width: 4px;
    }
    .mobile-notepad-content::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.2);
        border-radius: 4px;
    }
}

.cover-back {
    background: #fdfbf7;
    border-radius: 12px 4px 4px 12px;
    box-shadow: inset -10px 0 30px rgba(0,0,0,0.05), -15px 20px 40px rgba(0,0,0,0.2);
    background-image: linear-gradient(rgba(3, 103, 166, 0.1) 1px, transparent 1px);
    background-size: 100% 40px;
    transform: rotateY(180deg);
}

/* Page Contents */
.page-content {
    padding: 3rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.mini-project {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mini-project.reverse {
    flex-direction: row-reverse;
}

.post-it-mini {
    width: 190px;
    height: 190px;
    background: #0367A6;
    border-radius: 2px 8px 8px 2px;
    padding: 8px;
    box-shadow: 4px 8px 15px rgba(0,0,0,0.3);
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-it-mini::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    border-style: solid;
    border-width: 0 0 15px 15px;
    border-color: transparent transparent #024a7a transparent;
}

.post-it-img {
    width: 100%; height: 100%;
    background: #024a7a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 3px;
    font-family: 'Inter', sans-serif;
}

.post-it-mini:hover {
    transform: scale(1.1) rotate(0deg) !important;
    box-shadow: 8px 15px 25px rgba(0,0,0,0.4);
    z-index: 10;
}

.handwritten-desc-mini {
    font-family: var(--font-body);
    color: #111;
    display: flex;
    flex-direction: column;
}

.handwritten-desc-mini.right-align {
    text-align: right;
    align-items: flex-end;
}

.handwritten-desc-mini .proj-number {
    font-size: 0.9rem;
    color: rgba(3, 103, 166, 0.6);
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.handwritten-desc-mini h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #0367A6;
    margin: 0;
    line-height: 1.1;
    font-weight: 700;
}

.handwritten-desc-mini p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #444;
    margin-top: 0.5rem;
    margin-bottom: 0.8rem;
}

.handwritten-desc-mini .proj-link {
    font-size: 0.95rem;
    color: #0367A6;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px dashed #0367A6;
    align-self: flex-start;
    transition: color 0.3s ease;
}

.handwritten-desc-mini.right-align .proj-link {
    align-self: flex-end;
}

.handwritten-desc-mini .proj-link:hover {
    color: #000;
    border-color: #000;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .book-container {
        width: 90vw;
        height: 60vh;
        max-width: none;
    }
    .page-content {
        padding: 1.5rem 1rem;
    }
    .post-it-mini {
        width: 100px;
        height: 100px;
    }
    .handwritten-desc-mini h3 {
        font-size: 1.3rem;
    }
    .handwritten-desc-mini p {
        font-size: 0.85rem;
    }
}

/* Contact Section & Footer */
.contact-section {
    position: relative;
    padding: 8rem 5% 4rem 5%;
    background-color: var(--bg-color);
    z-index: 10;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.contact-header {
    text-align: center;
    margin-bottom: 5rem;
}

.contact-header h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    color: #fff;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.contact-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 4rem;
    backdrop-filter: blur(10px);
}

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

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.info-card i {
    color: #00f0ff;
    width: 24px;
    height: 24px;
    margin-top: 4px;
}

.info-details span {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.info-details a, .info-details p {
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.3s;
    margin: 0;
}

.info-details a:hover {
    color: #00f0ff;
}

/* NEW CONTACT SECTION STYLES */

.new-contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info-new {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 6px 14px;
    border-radius: 99px;
    color: #00f0ff;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.contact-badge .pulse-dot {
    background: #00f0ff;
}
.contact-badge .pulse-dot::after {
    background: #00f0ff;
}

.contact-title {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 1.5rem;
}

.highlight-blue {
    color: #00f0ff;
}

.contact-desc-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 2rem;
}

.contact-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    max-width: 55%;
}

/* Adjust the abstract art for the new layout */
.abstract-art-mini {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 800px;
}
.abstract-art-mini .art-glow {
    position: absolute;
    border-radius: 50%;
    animation: glow-pulse 4s infinite alternate;
    width: 80px; height: 80px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.3) 0%, rgba(0, 240, 255, 0) 70%);
}
.abstract-art-mini .art-core {
    position: absolute;
    border-radius: 50%;
    width: 30px; height: 30px;
    background: #00f0ff;
    box-shadow: 0 0 20px #00f0ff, 0 0 40px rgba(0, 240, 255, 0.6);
    z-index: 10;
}
.abstract-art-mini .art-ring {
    position: absolute;
    border-radius: 50%;
    transform-style: preserve-3d;
    border: 1px solid rgba(0, 240, 255, 0.3);
}
.abstract-art-mini .art-ring-1 { width: 60px; height: 60px; animation: rotateRing1 12s linear infinite; }
.abstract-art-mini .art-ring-2 { width: 90px; height: 90px; border-style: dashed; animation: rotateRing2 18s linear infinite reverse; }
.abstract-art-mini .art-ring-3 { width: 120px; height: 120px; border-color: rgba(255,255,255,0.05); animation: rotateRing3 25s linear infinite; }

@keyframes rotateRing1 { 0% { transform: rotateX(60deg) rotateY(0deg) rotateZ(0deg); } 100% { transform: rotateX(60deg) rotateY(360deg) rotateZ(360deg); } }
@keyframes rotateRing2 { 0% { transform: rotateX(45deg) rotateY(45deg) rotateZ(0deg); } 100% { transform: rotateX(45deg) rotateY(45deg) rotateZ(360deg); } }
@keyframes rotateRing3 { 0% { transform: rotateX(75deg) rotateY(15deg) rotateZ(0deg); } 100% { transform: rotateX(75deg) rotateY(15deg) rotateZ(360deg); } }
@keyframes glow-pulse { 0% { transform: scale(0.8); opacity: 0.5; } 100% { transform: scale(1.2); opacity: 1; } }

.contact-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    margin-bottom: 2rem;
}

.contact-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00f0ff;
}

.benefit-icon i {
    width: 20px; height: 20px;
}

.benefit-text h4 {
    color: #00f0ff;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.benefit-text p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* Form Styles Update */
.new-form-style {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.5rem;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon i, .input-with-icon svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 16px; height: 16px;
    transition: color 0.3s;
    z-index: 2;
    pointer-events: none;
}

.input-with-icon.textarea-icon i, .input-with-icon.textarea-icon svg {
    top: 16px;
    transform: none;
}

.new-form-style input {
    padding-left: 42px !important;
    background: rgba(0, 0, 0, 0.3) !important;
}

.new-form-style textarea {
    padding-left: 42px !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.3) !important;
    min-height: 120px;
    width: 100%;
}

.input-with-icon:focus-within i, .input-with-icon:focus-within svg {
    color: #00f0ff;
}

.new-form-style input:focus, .new-form-style textarea:focus {
    border-color: #00f0ff !important;
    box-shadow: 0 0 0 1px #00f0ff !important;
}

.new-budget-style .budget-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.new-budget-style input:checked + .budget-btn {
    background: rgba(0, 240, 255, 0.1);
    border-color: #00f0ff;
    color: #fff;
}

.check-icon {
    display: none;
    width: 14px; height: 14px;
    color: #00f0ff;
}

.new-budget-style input:checked + .budget-btn .check-icon {
    display: block;
}

.btn-submit-new {
    width: 100%;
    background: #00f0ff;
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    margin-top: 1.5rem;
}

.btn-submit-new:hover {
    background: #00e0ef;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.4);
}

.form-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 1rem;
    text-align: center;
}

/* Custom Country Select */
.phone-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.country-select-custom {
    position: relative;
    min-width: 90px;
}

.selected-country {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0 12px;
    height: 52px;
    cursor: pointer;
    color: #fff;
    transition: border-color 0.3s;
}

.selected-country:hover {
    border-color: #00f0ff;
}

.country-dropdown-custom {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 250px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    z-index: 100;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.country-dropdown-custom.show {
    display: flex;
}

.dropdown-search {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-search input {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 8px 12px !important;
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
}

.dropdown-search input:focus {
    border-color: #00f0ff !important;
    box-shadow: 0 0 0 1px #00f0ff !important;
}

.country-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
}

.country-list li {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.2s;
    color: #ccc;
    font-size: 0.9rem;
}

.country-list li:hover {
    background: rgba(0, 240, 255, 0.1);
    color: #fff;
}

.country-list li .d-code {
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: #fff;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}

.social-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    color: #00f0ff;
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateY(-3px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.input-group label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.input-group input, .input-group textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    resize: none;
    width: 100%;
    box-sizing: border-box;
}

.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: #00f0ff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.budget-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.budget-options input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.budget-btn {
    flex: 1;
    min-width: 100px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.8rem 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.budget-options input[type="radio"]:checked + .budget-btn {
    background: rgba(0, 240, 255, 0.1);
    border-color: #00f0ff;
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.budget-btn:hover {
    border-color: rgba(0, 240, 255, 0.4);
    color: #e2e8f0;
}

.contact-form .btn-finex {
    margin-top: 1rem;
    width: 100%;
}

.site-footer {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-brand-col p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links-col h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.footer-links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links-col ul li a:hover {
    color: #00f0ff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 2rem 0;
}

.footer-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.footer-brand .highlight {
    color: #00f0ff;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        box-sizing: border-box;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    .new-contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .abstract-art-container {
        display: none !important;
    }
    .contact-desc-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    .abstract-art-mini {
        align-self: center;
        margin-top: 1rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-brand-col {
        grid-column: 1 / -1;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Background Layer - Liquid Blobs */
.blobs-container {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: float 15s infinite alternate ease-in-out;
    will-change: transform;
}

.blob-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-primary), transparent 70%);
    top: -200px;
    left: -200px;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-secondary), transparent 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: -3s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(50px, 80px) scale(1.05) rotate(10deg); }
    100% { transform: translate(-30px, 40px) scale(1) rotate(-5deg); }
}

/* Glass Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
}

/* Animation Classes - Clean/Vercel Style */
.reveal {
    opacity: 0.01;
    filter: blur(10px);
    transform: translateY(20px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.reveal-card {
    opacity: 0;
    transform: scale(0.9) translateZ(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-card.active {
    opacity: 1;
    transform: scale(1) translateZ(0);
}

/* Text Reveal Animation (Lettering Original do animation-clean) */
.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.char.revealed {
    opacity: 1;
    transform: translateY(0);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* =========================================
   About Section / Mac Window
   ========================================= */
.about-section {
    padding: 20px 5%;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.mac-window {
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.6), rgba(18, 18, 18, 0.2));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    width: 100%;
    min-height: 80vh; /* Permite crescer se necessário para não esmagar os textos */
    display: flex;
    flex-direction: column;
    position: relative;
}

.site-flashlight {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -5;
    background: radial-gradient(800px circle at var(--global-mouse-x, 50%) var(--global-mouse-y, 50%), rgba(0, 204, 255, 0.07), transparent 40%);
    transition: background 0.1s ease;
}

.mac-header {
    background: rgba(26, 26, 26, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.6rem 1rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.mac-left-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mac-dots {
    display: flex;
    gap: 8px;
}

.mac-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mac-icon {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mac-dots:hover .mac-icon {
    opacity: 0.6;
}

.mac-dot.red { background: #FF5F56; }
.mac-dot.yellow { background: #FFBD2E; }
.mac-dot.green { background: #27C93F; }

.mac-nav {
    display: flex;
    gap: 12px;
    color: var(--text-muted);
}

.mac-nav svg {
    cursor: pointer;
    transition: color 0.2s ease;
}

.mac-nav svg:hover {
    color: white;
}

.mac-url-bar {
    background: #242424;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 0.3rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 300px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: var(--font-body);
}

.mac-url-bar svg:first-child {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
}

.mac-url-bar svg:last-child {
    position: absolute;
    right: 1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.mac-url-bar svg:last-child:hover {
    color: white;
}

.mac-actions {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    justify-content: flex-end;
}

.mac-actions svg {
    cursor: pointer;
    transition: color 0.2s ease;
}

.mac-actions svg:hover {
    color: white;
}

.mac-content {
    flex: 1;
    background: rgba(15, 15, 15, 0.3);
    padding: 1.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* About Layout */
.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    flex: 1;
    height: 100%;
    min-height: 0;
}

.about-image-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.about-image-card img.img-primary {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    filter: grayscale(10%) contrast(1.1);
}

#hover-trail-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none; /* Permite que o mouse interaja com o card normalmente */
}

.about-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, #888888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.about-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.pillars-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.pillar-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 15;
}

.pillar-card svg {
    color: var(--accent-primary);
    margin-bottom: 4px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.pillar-card:hover svg {
    transform: scale(1.15) translateY(-2px);
    filter: brightness(1.3);
}

.pillar-card h4 {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.pillar-card p {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Global Mobile Responsiveness Enhancements */
@media (max-width: 900px) {
    /* About Section & Mac Window */
    .about-section {
        padding: 4rem 5%;
        min-height: auto;
    }
    .mac-window {
        min-height: auto;
    }
    .mac-header {
        grid-template-columns: auto 1fr;
        gap: 1rem;
    }
    .mac-actions {
        display: none; /* Hide extra mac actions on small screens */
    }
    .mac-url-bar {
        min-width: 0;
        width: 100%;
        padding: 0.3rem 1rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-image-card {
        min-height: 300px;
    }
    .about-text-content {
        align-items: center;
        text-align: center;
    }
    .about-desc {
        text-align: center;
    }
    .pillars-title {
        text-align: center;
        width: 100%;
    }

    /* Process Section */
    .process-line {
        left: 20px;
        transform: none;
    }
    .process-timeline {
        height: 80vh;
    }
    .timeline-step {
        width: calc(100% - 40px);
        align-self: flex-end !important;
        margin-left: auto;
    }
    .step-content.glass {
        flex-direction: row !important;
        text-align: left !important;
        padding: 1rem;
    }
    .step-icon-wrapper {
        min-width: 45px;
        height: 45px;
    }
    .step-text h4 {
        font-size: 1.1rem;
    }
    .step-text p {
        font-size: 0.85rem;
    }

    /* Contact Mobile Layout */
    .new-contact-layout {
        display: flex !important;
        flex-direction: column;
        position: relative;
    }
    
    .contact-info-new {
        display: contents;
    }
    
    .contact-badge {
        order: 1;
        align-self: center;
        margin-bottom: 1rem;
    }
    
    .contact-title {
        order: 2;
        text-align: center;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .contact-desc-wrapper {
        order: 3;
        display: block;
        text-align: center;
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .contact-desc {
        max-width: 100%;
        text-align: center;
    }
    
    .contact-form-wrapper {
        order: 4;
        width: 100%;
        position: relative;
        z-index: 2;
    }
    
    /* Move sphere behind form */
    .abstract-art-mini {
        position: absolute;
        top: 60%;
        left: 50%;
        transform: translate(-50%, -50%) scale(2);
        z-index: 0;
        opacity: 0.4;
        pointer-events: none;
    }
    
    .contact-divider {
        display: none;
    }
    
    .contact-benefits {
        order: 6;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 2rem;
        width: 100%;
        position: relative;
        z-index: 2;
    }
}

/* --- GOOGLE SEARCH MOBILE LAYOUT (Only < 768px) --- */
.google-search-header-mobile { display: none; }
.google-breadcrumb { display: none; }
.google-image-mobile { display: none; } /* Hide on desktop */

@media (max-width: 768px) {
    .mac-header { display: none !important; }
    
    .mac-window {
        background: #202124 !important;
        border: none !important;
        border-radius: 24px !important;
        overflow: hidden !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
        min-height: auto !important;
        margin: 1rem !important; /* give it some space to show the rounded corners */
    }

    .mac-content {
        padding: 0 1rem !important;
        background: transparent !important;
    }

    .google-search-header-mobile {
        display: flex;
        flex-direction: column;
        background: #202124;
        border-bottom: 1px solid #3c4043;
        padding: 1rem 1rem 0;
        position: sticky;
        top: 0;
        z-index: 10;
        width: 100%;
    }

    .google-top-row {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 1rem;
    }

    .google-logo {
        font-family: Arial, sans-serif;
        font-size: 1.8rem;
        font-weight: 500;
        color: #fff;
        letter-spacing: -1px;
    }

    .google-search-bar {
        flex: 1;
        background: #303134;
        border-radius: 999px;
        padding: 0.6rem 1rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .search-icon { width: 16px; height: 16px; color: #9aa0a6; }
    .search-text { color: #e8eaed; font-size: 0.95rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .search-actions { display: flex; gap: 10px; color: #8ab4f8; }
    .search-actions i { width: 16px; height: 16px; }

    .google-tabs {
        display: flex;
        gap: 1.5rem;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .google-tabs::-webkit-scrollbar { display: none; }
    
    .google-tab {
        color: #9aa0a6;
        font-size: 0.9rem;
        padding-bottom: 10px;
        white-space: nowrap;
    }
    .google-tab.active {
        color: #8ab4f8;
        border-bottom: 3px solid #8ab4f8;
        font-weight: 500;
    }

    /* Transform Snippet */
    .about-grid {
        display: flex !important;
        flex-direction: column;
        gap: 1.5rem !important;
        padding-top: 1.5rem;
    }

    .about-image-card { display: none !important; }

    .google-image-mobile {
        display: block !important;
        width: 100%;
        margin-top: 1rem;
        margin-bottom: 1rem;
        border-radius: 16px;
        overflow: hidden;
    }

    .google-image-mobile img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 16px;
    }

    .google-breadcrumb {
        display: flex !important;
        align-items: center;
        gap: 8px;
        font-size: 0.75rem;
        color: #bdc1c6;
        margin-bottom: 0.5rem;
    }

    .google-breadcrumb-icon {
        width: 14px; height: 14px;
        border-radius: 50%;
        background: #1a1a1a;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .about-text-content {
        text-align: left !important;
        align-items: flex-start !important;
        background: #303134;
        border-radius: 16px;
        padding: 1.5rem;
        margin-bottom: 3rem;
    }

    .about-title {
        font-family: Arial, sans-serif !important;
        font-size: 1.6rem !important;
        color: #8ab4f8 !important;
        background: none !important;
        -webkit-text-fill-color: initial !important;
        margin-bottom: 0.2rem !important;
        text-align: left !important;
        font-weight: 400 !important;
    }

    .about-title::after {
        content: "Desenvolvedor UI/UX";
        display: block;
        font-size: 0.9rem;
        color: #9aa0a6;
        margin-top: 4px;
    }

    .about-desc {
        font-family: Arial, sans-serif !important;
        font-size: 0.95rem !important;
        color: #bdc1c6 !important;
        text-align: left !important;
        line-height: 1.5 !important;
        margin-bottom: 1.5rem !important;
    }

    .pillars-title {
        font-family: Arial, sans-serif !important;
        font-size: 1.1rem !important;
        color: #e8eaed !important;
        text-transform: none !important;
        letter-spacing: normal !important;
        text-align: left !important;
        margin-bottom: 0.5rem !important;
        padding-top: 1rem;
        border-top: 1px solid #3c4043;
    }

    .pillars-grid {
        display: flex !important;
        flex-direction: column;
        gap: 0 !important;
    }

    .pillar-card {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        border-bottom: 1px solid #3c4043 !important;
        padding: 1.2rem 0 !important;
        box-shadow: none !important;
        flex-direction: row !important;
        align-items: center;
        gap: 1rem !important;
        cursor: pointer;
        flex-wrap: wrap;
    }
    
    .pillar-card:last-child {
        border-bottom: none !important;
    }

    .pillar-card svg { margin: 0 !important; color: #9aa0a6 !important; }
    
    .pillar-card h4 {
        color: #e8eaed !important;
        font-family: Arial, sans-serif !important;
        font-size: 1rem !important;
        font-weight: 400 !important;
        margin: 0 !important;
        flex: 1;
    }

    .pillar-card p {
        display: none;
    }

    .pillar-card.expanded p {
        display: block;
        width: 100%;
        margin-top: 0.8rem !important;
        margin-left: 2.2rem !important;
        font-family: Arial, sans-serif !important;
        font-size: 0.9rem !important;
        color: #bdc1c6 !important;
        text-align: left !important;
    }

    .pillar-card::after {
        content: '▼';
        color: #9aa0a6;
        font-size: 0.7rem;
    }

    .pillar-card.expanded::after {
        content: '▲';
    }
}

/* Success Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #050a12;
    border: 1px solid rgba(3, 103, 166, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px; right: 15px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-icon-wrapper {
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: rgba(3, 103, 166, 0.1);
}

.modal-icon {
    width: 30px; height: 30px;
    color: #0367A6;
    transform: scale(0);
}

.modal-overlay.active .modal-icon {
    animation: iconBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s forwards;
}

@keyframes iconBounce {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.modal-content h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.modal-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

/* Error Toast */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 77, 77, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 77, 77, 0.4);
    color: #ff4d4d;
    padding: 1rem 2rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(255, 77, 77, 0.15);
    z-index: 2000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.toast.show {
    bottom: 40px;
    opacity: 1;
}

/* Base utility to hide mobile titles on desktop */
.mobile-section-title {
    display: none;
}

/* --- MOBILE OPTIMIZATIONS (max-width: 768px) --- */
@media (max-width: 768px) {
    /* 1. Disable Parallax Line in Process */
    .process-line-progress, .process-line {
        display: none !important;
    }
    
    .process-sticky-container {
        position: relative !important;
        height: auto !important;
        padding-bottom: 2rem;
    }
    
    .process-timeline {
        height: auto !important;
        position: relative !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .timeline-step {
        /* Simplify animations: only opacity, no transform */
        transform: none !important;
        transition: opacity 0.4s ease !important;
        width: 100% !important;
        align-self: center !important;
        margin: 0 auto 1.5rem auto !important;
    }
    
    /* Remove glow/shadow complex */
    .step-content.glass {
        box-shadow: none !important;
        border: 1px solid #333 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: #151515 !important;
    }
    
    /* 2. Disable Parallax Book & set statically OPEN */
    #projetos-book {
        transform: none !important;
    }
    
    #book-cover-container {
        /* Hide the book cover entirely on mobile to prevent the blue square */
        display: none !important;
    }
    
    #portfolio-book {
        transform: translateY(20px) !important;
        transition: none !important;
        border-top: 20px solid #1a1a1a !important; /* Notepad top binding */
    }
    
    /* Notepad Spiral Rings */
    #portfolio-book::before {
        content: '';
        position: absolute;
        top: -25px;
        left: 5%;
        width: 90%;
        height: 35px;
        background-image: repeating-linear-gradient(to right, transparent 0, transparent 20px, #888 20px, #888 26px);
        z-index: 10;
        border-radius: 5px;
    }
    
    /* Notepad Holes */
    #portfolio-book::after {
        content: '';
        position: absolute;
        top: -8px;
        left: 5%;
        width: 90%;
        height: 12px;
        background-image: radial-gradient(circle, #050a12 5px, transparent 6px);
        background-size: 26px 12px;
        background-position: 17px 0;
        z-index: 11;
    }
    
    /* Simplify Post-its (polaroids) */
    .polaroid-wrapper {
        transition: opacity 0.3s ease, transform 0.3s ease !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.5) !important;
        will-change: auto !important;
    }
    
    .polaroid-wrapper:hover {
        transform: scale(1.05) !important;
        opacity: 1 !important;
    }
    
    /* 3. About Section Mobile */
    .google-logo {
        display: none !important;
    }
    
    .google-top-row {
        justify-content: center !important;
    }
    
    .google-search-bar {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .about-section {
        flex-direction: column !important; /* Fix title stacking correctly */
    }
    
    /* 4. General: Disable particles, blobs, flashlight */
    .particles, .blob, .site-flashlight, #particles-js {
        display: none !important;
    }
    
    /* 5. Process Section Gap Fix */
    .process-section {
        height: auto !important; /* Removes the 400vh desktop parallax height causing giant gap */
        min-height: 0 !important;
    }
    
    /* 6. Form Row Spacing Uniformity */
    .contact-form {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    .form-row-2 {
        display: contents !important;
    }
    .input-group {
        margin-bottom: 0 !important;
    }
    
    /* 7. Toggle Desktop/Mobile texts & Titles */
    .text-desktop {
        display: none !important;
    }
    .text-mobile {
        display: inline !important;
    }
    .mobile-section-title {
        display: block !important;
        margin-bottom: 1.5rem !important; /* Reduced space below title */
        padding-top: 0 !important;
    }
    
    /* 8. Increase Notebook Height */
    .book-section {
        height: auto !important;
        min-height: 0 !important;
        padding-bottom: 4rem !important;
    }
    
    .book-container {
        height: auto !important;
        min-height: 80vh !important; /* Enough space to show all projects */
    }
    
    .page-content {
        height: auto !important;
        overflow: visible !important;
    }
}
