:root {
    --bg-color: #0b0f19;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary-color: #facc15;
    --primary-hover: #eab308;
    --secondary-color: #f97316;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(30, 41, 59, 0.4);
    --success: #10b981;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: radial-gradient(circle at 15% 50%, rgba(250, 204, 21, 0.05), transparent 25%),
                      radial-gradient(circle at 85% 30%, rgba(249, 115, 22, 0.05), transparent 25%);
    -webkit-text-size-adjust: 100%;
}

/* Glassmorphism Header */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6%;
    z-index: 1000;
}

/* Logo MTS 3D */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    perspective: 1000px;
}

.cube-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #facc15, #f59e0b, #b45309);
    border-radius: 12px;
    box-shadow: 
        0 8px 15px rgba(250, 204, 21, 0.4),
        inset 0 3px 3px rgba(255, 255, 255, 0.7),
        inset 0 -5px 8px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    animation: float-3d 4s ease-in-out infinite;
    color: #fff;
    transition: transform 0.3s ease;
}

.cube-icon svg { 
    width: 28px; 
    height: 28px; 
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5)); 
}

@keyframes float-3d {
    0%, 100% { 
        transform: translateY(0) rotateX(12deg) rotateY(12deg); 
    }
    50% { 
        transform: translateY(-6px) rotateX(-5deg) rotateY(-8deg); 
        box-shadow: 0 15px 25px rgba(250, 204, 21, 0.25), inset 0 2px 2px rgba(255,255,255,0.6); 
    }
}

.logo-text-3d {
    font-size: 1.85rem;
    font-weight: 900;
    color: #f1f5f9;
    text-transform: uppercase;
    letter-spacing: -1.2px;
    line-height: 1;
    text-shadow: 
        1px 1px 0 #9ca3af,
        2px 2px 0 #6b7280,
        3px 3px 0 #4b5563,
        4px 4px 0 #374151,
        5px 5px 15px rgba(0,0,0,0.9);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.logo-text-3d .highlight {
    color: var(--primary-color);
    text-shadow: 
        1px 1px 0 #ca8a04,
        2px 2px 0 #a16207,
        3px 3px 0 #854d0e,
        4px 4px 0 #713f12,
        5px 5px 20px rgba(250,204,21,0.6);
}

.logo:hover .cube-icon {
    animation: spin-3d 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.logo:hover .logo-text-3d {
    transform: translate(-3px, -3px) scale(1.02);
}

@keyframes spin-3d {
    to { 
        transform: rotateY(360deg); 
        box-shadow: 0 10px 40px rgba(250, 204, 21, 0.9); 
    }
}

nav {
    display: flex;
    gap: 15px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
    color: var(--primary-color);
    background: rgba(250, 204, 21, 0.1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 10px;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Content */
main {
    margin-top: 75px;
    padding: 60px 6%;
    min-height: calc(100vh - 145px);
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(15px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 50px;
    max-width: 600px;
}

/* Kits Grid */
.kits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
}

.kit-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.kit-card:hover {
    transform: translateY(-8px);
    border-color: rgba(250, 204, 21, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(250, 204, 21, 0.1);
}

.kit-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.kit-card:hover img {
    transform: scale(1.03);
}

.kit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.kit-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    min-height: 60px;
}

.kit-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #0b0f19;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.2);
    min-height: 48px;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(250, 204, 21, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(148,163,184,0.4);
    color: #cbd5e1;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(148,163,184,0.1);
    border-color: #94a3b8;
}

.btn-glow {
    background: var(--primary-color);
    color: #000;
    padding: 16px 40px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(250, 204, 21, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    min-height: 48px;
}

.btn-glow:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 40px rgba(250, 204, 21, 0.8);
}

.btn-outline {
    background: rgba(255,255,255,0.03);
    color: #fff;
    padding: 16px 40px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    min-height: 48px;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(250,204,21,0.05);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    box-shadow: 0 10px 30px rgba(37,211,102,0.4);
    transform: translateY(-2px);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 18px;
    margin-top: 30px;
}

@media (min-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 30px;
    }
}

.gallery-item {
    display: flex;
    flex-direction: column;
    cursor: zoom-in;
    background: transparent;
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 22px;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.gallery-overlay {
    margin-top: 10px;
    padding: 0 4px;
    color: var(--text-main);
    text-align: left;
}

.gallery-overlay h4 {
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
    transition: color 0.3s ease;
}

.gallery-overlay::after {
    content: 'Projeto Solar';
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.gallery-item:hover img {
    transform: scale(1.04);
    box-shadow: 0 15px 30px rgba(250, 204, 21, 0.15);
    border-color: rgba(250, 204, 21, 0.4);
}

.gallery-item:hover .gallery-overlay h4 {
    color: var(--primary-color);
}

/* Lightbox Modal */
.lightbox {
    display: none; 
    position: fixed;
    z-index: 9999;
    left: 0; 
    top: 0;
    width: 100%; 
    height: 100%;
    background-color: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox.show { 
    opacity: 1; 
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 75vh;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(250, 204, 21, 0.15);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid var(--glass-border);
}

.lightbox.show .lightbox-content { 
    transform: scale(1); 
}

#lightbox-caption {
    margin: 20px auto;
    text-align: center;
    color: var(--text-main);
    font-size: 1.4rem;
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 40px;
    color: var(--text-muted);
    font-size: 45px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover { 
    color: var(--primary-color); 
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 85vh;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('./hero-banner.png') center/cover no-repeat;
    margin-top: -10px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

.hero-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: linear-gradient(135deg, rgba(3, 7, 18, 0.95) 0%, rgba(3, 7, 18, 0.25) 100%);
    backdrop-filter: saturate(1.1);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 40px 20px;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, #ffffff, var(--primary-color), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
    margin-bottom: 25px;
    line-height: 1.15;
    letter-spacing: -1px;
    text-shadow: 0 0 30px rgba(250, 204, 21, 0.1);
}

@keyframes shine {
    to { 
        background-position: 200% center; 
    }
}

.hero-subtitle {
    font-size: 1.35rem;
    color: #e5e7eb;
    margin-bottom: 45px;
    font-weight: 300;
    line-height: 1.6;
}

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

/* Tech Section */
.tech-section {
    margin-top: 90px;
    text-align: center;
}

.tech-section h2 {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

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

.tech-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 40px 25px;
    border-radius: 20px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease;
    cursor: default;
}

.tech-card:hover {
    transform: translateY(-15px);
    border-color: rgba(250, 204, 21, 0.6);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 0 30px rgba(250,204,21,0.03);
}

.tech-card i {
    width: 65px;
    height: 65px;
    color: var(--primary-color);
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.4));
}

.tech-card h3 {
    font-size: 1.35rem;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 600;
}

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

/* Downloads Dashboard */
.downloads-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 20px 25px;
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.download-card:hover {
    transform: translateX(5px) scale(1.01);
    border-color: var(--primary-color);
    background: rgba(250, 204, 21, 0.05);
}

.download-info h3 {
    margin-bottom: 5px;
    color: var(--text-main);
    font-size: 1.15rem;
}

.download-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: #000;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: filter 0.3s, transform 0.3s;
}

.btn-download:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

/* Forms */
.form-container {
    max-width: 650px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 1.05rem;
    transition: all 0.3s;
    min-height: 48px;
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.1);
    background: rgba(0, 0, 0, 0.5);
}

.form-group input[type="file"] {
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--glass-border);
}

.form-group small {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: block;
    margin-top: 5px;
}

/* Calculator */
.calculator-results {
    margin-top: 35px;
    padding: 30px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    display: none;
}

.calculator-results.active {
    display: block;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.1rem;
}

.result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.result-value {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--success);
}

/* Footer */
footer {
    text-align: center;
    padding: 25px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.95rem;
    background: rgba(0,0,0,0.2);
}

/* ============================================
   CHATBOT WIDGET
   ============================================ */

#chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

#chat-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(250, 204, 21, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #0b0f19;
    border: none;
    outline: none;
}

#chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(250, 204, 21, 0.6);
}

#chat-toggle svg {
    width: 30px;
    height: 30px;
}

#chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: calc(100vw - 40px);
    max-width: 380px;
    height: 70vh;
    max-height: 600px;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: bottom right;
    z-index: 9999;
}

#chat-window.chat-hidden {
    opacity: 0;
    transform: scale(0.5) translateY(20px);
    pointer-events: none;
    visibility: hidden;
}

.chat-header {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.1), rgba(249, 115, 22, 0.1));
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.chat-header h3 {
    color: var(--primary-color);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: 600;
}

.chat-header button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.chat-header button:hover {
    color: var(--primary-color);
    background: rgba(250, 204, 21, 0.1);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(11, 15, 25, 0.5);
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: slideUpMsg 0.3s ease;
    word-wrap: break-word;
}

@keyframes slideUpMsg {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.message.bot {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.message.bot strong {
    color: var(--primary-color);
    font-weight: 600;
}

.message.user {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #0b0f19;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.chat-input-area {
    padding: 15px;
    display: flex;
    gap: 10px;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid var(--glass-border);
}

.chat-input-area input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 12px 16px;
    border-radius: 25px;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input-area input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.1);
    background: rgba(255,255,255,0.08);
}

.chat-input-area button {
    background: var(--primary-color);
    color: #0b0f19;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.chat-input-area button:hover {
    transform: scale(1.1);
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(250, 204, 21, 0.3);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(250, 204, 21, 0.5);
}

/* ============================================
   CALCULADORA 3 PASSOS
   ============================================ */

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

.calc-step {
    margin-bottom: 30px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text-main);
}

.upload-dropzone {
    border: 2px dashed rgba(255,255,255,0.3);
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.02);
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: var(--primary-color);
    background: rgba(250,204,21,0.05);
}

.upload-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.upload-status {
    margin-top: 15px;
    font-size: 0.95rem;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
}

.upload-status.success {
    color: var(--success);
    background: rgba(16,185,129,0.1);
}

.upload-status.error {
    color: var(--danger);
    background: rgba(239,68,68,0.1);
}

.upload-status.loading {
    color: var(--primary-color);
    background: rgba(250,204,21,0.1);
}

.dados-extraidos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.dado-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dado-item label {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dado-item input {
    padding: 12px 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 1rem;
}

.dado-item.highlight input {
    background: rgba(250,204,21,0.1);
    border-color: var(--primary-color);
    font-weight: 700;
    color: var(--primary-color);
}

.step-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
    flex-wrap: wrap;
}

.cliente-resumo {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid var(--glass-border);
}

.cliente-resumo h4 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

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

.resumo-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.resumo-item .label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.resumo-item .value {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 500;
}

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

.tecnico-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.tecnico-card:hover {
    border-color: rgba(250,204,21,0.4);
    transform: translateY(-3px);
}

.tecnico-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    background: rgba(250,204,21,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.tecnico-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.tecnico-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
}

.tecnico-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.dimensionamento-box {
    background: linear-gradient(135deg, rgba(250,204,21,0.05), rgba(249,115,22,0.05));
    border: 1px solid rgba(250,204,21,0.3);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
}

.dimensionamento-box h4 {
    margin: 0 0 20px 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.sistema-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.sistema-item {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.sistema-item:hover {
    background: rgba(255,255,255,0.08);
}

.sistema-item.highlight {
    background: linear-gradient(135deg, rgba(250,204,21,0.15), rgba(249,115,22,0.15));
    border: 1px solid var(--primary-color);
}

.sistema-icon {
    width: 45px;
    height: 45px;
    margin: 0 auto 10px;
    background: rgba(250,204,21,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.sistema-item.highlight .sistema-icon {
    background: rgba(250,204,21,0.3);
}

.sistema-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.sistema-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.sistema-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.economia-box {
    background: rgba(16,185,129,0.05);
    border: 1px solid rgba(16,185,129,0.3);
    border-radius: 16px;
    padding: 25px;
}

.economia-box h4 {
    margin: 0 0 20px 0;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.economia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.economia-item {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.economia-item:hover {
    background: rgba(255,255,255,0.05);
}

.economia-item.highlight {
    background: rgba(16,185,129,0.1);
    border: 1px solid var(--success);
}

.economia-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.economia-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--success);
}

.economia-item.highlight .economia-value {
    font-size: 1.6rem;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11,15,25,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(250,204,21,0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-content p {
    color: var(--text-muted);
    font-size: 1rem;
}

.spin {
    animation: spin 1s linear infinite;
}

/* ============================================
   RESPONSIVIDADE MOBILE
   ============================================ */

@media screen and (max-width: 1024px) {
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .kits-grid { grid-template-columns: repeat(2, 1fr); }
    .glass-header { padding: 0 4%; }
    main { padding: 50px 4%; }
}

@media screen and (max-width: 768px) {
    .glass-header { padding: 0 1rem; height: 70px; }
    .logo-text-3d { font-size: 1.4rem; }
    .cube-icon { width: 38px; height: 38px; }
    .cube-icon svg { width: 24px; height: 24px; }
    nav {
        display: none; position: absolute; top: 70px; left: 0; width: 100%;
        background: rgba(11, 15, 25, 0.98); flex-direction: column; padding: 1rem;
        gap: 0.5rem; border-bottom: 1px solid var(--glass-border);
        max-height: 70vh; overflow-y: auto; backdrop-filter: blur(20px);
    }
    nav.show { display: flex; }
    .nav-btn { width: 100%; text-align: left; padding: 1rem; justify-content: flex-start; min-height: 50px; }
    .menu-toggle { display: flex; }
    main { margin-top: 70px; padding: 40px 1rem; min-height: calc(100vh - 130px); }
    .hero-section { padding: 3rem 1.5rem; min-height: 70vh; border-radius: 16px; }
    .hero-title { font-size: 2rem; margin-bottom: 1rem; line-height: 1.2; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 2rem; line-height: 1.5; }
    .hero-buttons { flex-direction: column; gap: 1rem; width: 100%; }
    .hero-buttons .btn-glow, .hero-buttons .btn-outline { width: 100%; padding: 1rem 2rem; }
    .tech-section { margin-top: 60px; padding: 0 0.5rem; }
    .tech-section h2 { font-size: 1.8rem; margin-bottom: 2rem; padding: 0 0.5rem; }
    .tech-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .tech-card { padding: 1.5rem; }
    .tech-card i { width: 50px; height: 50px; margin-bottom: 1rem; }
    .kits-grid { grid-template-columns: 1fr; gap: 2rem; padding: 0 0.5rem; }
    .kit-card { padding: 1.5rem; }
    .kit-card img { height: 200px; }
    .page-title { font-size: 2rem; padding: 0 0.5rem; margin-bottom: 1rem; }
    .page-subtitle { font-size: 1rem; padding: 0 0.5rem 2rem; max-width: 100%; }
    .form-container { margin: 0 0.5rem 2rem; padding: 1.5rem; max-width: 100%; }
    .form-group { margin-bottom: 1.2rem; }
    .form-group label { font-size: 0.95rem; }
    .form-group input, .form-group select, .form-group textarea { font-size: 16px; padding: 1rem; min-height: 48px; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; padding: 0 0.5rem; }
    .downloads-grid { padding: 0 0.5rem; }
    .download-card { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.2rem; }
    .btn-download { width: 100%; justify-content: center; }
    .calculator-results { margin: 2rem 0.5rem; padding: 1.5rem; }
    .result-item { font-size: 1rem; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .result-value { font-size: 1.1rem; }
    #chatbot-widget { bottom: 1rem; right: 1rem; }
    #chat-toggle { width: 60px; height: 60px; }
    #chat-window { width: calc(100vw - 2rem); max-width: 400px; height: 70vh; bottom: 75px; right: 0; left: 0; margin: 0 auto; border-radius: 16px; }
    .chat-header h3 { font-size: 1rem; }
    .chat-messages { max-height: calc(70vh - 140px); padding: 1rem; }
    .message { max-width: 90%; font-size: 0.9rem; padding: 0.9rem; }
    .chat-input-area { padding: 1rem; }
    .chat-input-area input { font-size: 16px; padding: 0.9rem; min-height: 44px; }
    .chat-input-area button { width: 44px; height: 44px; min-width: 44px; }
    footer { padding: 1.5rem 1rem; }
    footer p { font-size: 0.85rem; }
    
    .calculadora-container { padding: 15px; }
    .calc-step { padding: 20px; }
    .dados-extraidos-grid { grid-template-columns: 1fr; }
    .step-actions { flex-direction: column; }
    .step-actions button { width: 100%; }
    .sistema-grid { grid-template-columns: repeat(2, 1fr); }
    .economia-grid { grid-template-columns: repeat(2, 1fr); }
    .dados-tecnicos-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media screen and (max-width: 480px) {
    body { font-size: 14px; }
    .logo-text-3d { font-size: 1.1rem; }
    .cube-icon { width: 35px; height: 35px; }
    .cube-icon svg { width: 22px; height: 22px; }
    .hero-section { min-height: 60vh; padding: 2rem 1rem; }
    .hero-title { font-size: 1.6rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .tech-card { padding: 1.2rem; }
    .tech-card h3 { font-size: 1.1rem; }
    .tech-card p { font-size: 0.9rem; }
    .kit-card { padding: 1.2rem; }
    .kit-card h3 { font-size: 1.1rem; }
    .kit-card p { font-size: 0.9rem; }
    .kit-price { font-size: 1.4rem; }
    .gallery-grid { grid-template-columns: 1fr; gap: 15px; }
    .gallery-item img { border-radius: 16px; }
    .form-container { padding: 1.2rem; border-radius: 16px; }
    #chat-toggle { width: 55px; height: 55px; }
    #chat-window { width: calc(100vw - 1.5rem); height: 75vh; bottom: 70px; }
    .chat-header { padding: 1rem; }
    .chat-header h3 { font-size: 0.95rem; }
    .chat-messages { padding: 0.8rem; gap: 10px; }
    .message { font-size: 0.85rem; padding: 0.8rem; max-width: 92%; }
    .lightbox-content { max-width: 95%; }
    .lightbox-close { top: 15px; right: 20px; font-size: 35px; }
    #lightbox-caption { font-size: 1.1rem; padding: 0 1rem; }
    
    .sistema-grid { grid-template-columns: 1fr; }
    .economia-grid { grid-template-columns: 1fr; }
    .dados-tecnicos-grid { grid-template-columns: 1fr; }
}

@media screen and (max-width: 360px) {
    .hero-title { font-size: 1.4rem; }
    .logo-text-3d { font-size: 1rem; }
    .page-title { font-size: 1.5rem; }
    .btn-primary, .btn-glow, .btn-outline { padding: 0.9rem 1.2rem; font-size: 0.95rem; }
    #chat-window { width: calc(100vw - 1rem); }
}

img { max-width: 100%; height: auto; display: block; }
body, html { overflow-x: hidden; max-width: 100vw; }
#app-container, main, header, footer, .glass-header { width: 100%; max-width: 100%; box-sizing: border-box; }
.kits-grid, .tech-grid, .gallery-grid, .downloads-grid { display: grid; gap: 1.5rem; }
input, select, textarea { font-size: 16px; }
@media screen and (max-width: 768px) { input, select, textarea { font-size: 16px; } }
html { scroll-behavior: smooth; }

@media (hover: none) and (pointer: coarse) {
    .nav-btn:hover, .btn-primary:hover, .btn-glow:hover, .btn-outline:hover, 
    .kit-card:hover, .tech-card:hover { transform: none; }
    .gallery-item:hover img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* ===== COMPARATIVO SEM vs COM SOLAR ===== */
.comparativo-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    margin-top: 20px;
}
.comparativo-box h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.comparativo-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.comparativo-item {
    flex: 1;
    min-width: 160px;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
}
.comparativo-item.sem-solar {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
}
.comparativo-item.com-solar {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.3);
}
.comp-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.comparativo-item.sem-solar .comp-value { color: #f87171; font-size: 1.8rem; font-weight: 700; }
.comparativo-item.com-solar .comp-value { color: #4ade80; font-size: 1.8rem; font-weight: 700; }
.comp-sub { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }
.comparativo-seta {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 300;
}
.comparativo-economia {
    text-align: center;
    margin-top: 16px;
    padding: 12px;
    background: rgba(var(--primary-rgb, 234,179,8), 0.1);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.comparativo-economia strong { color: var(--primary-color); font-size: 1.1rem; }

/* ===== GRÁFICO GERAÇÃO MENSAL ===== */
.grafico-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    margin-top: 20px;
}
.grafico-box h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.grafico-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 4px;
    height: 160px;
    padding: 0 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.grafico-barra-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 22px;
    height: 100%;
    gap: 3px;
}
.grafico-val {
    font-size: 0.62rem;
    color: var(--primary-color);
    font-weight: 600;
    min-height: 14px;
    text-align: center;
    white-space: nowrap;
}
.grafico-barra-outer {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
}
.grafico-barra-inner {
    width: 100%;
    background: linear-gradient(180deg, var(--primary-color), rgba(234,179,8,0.4));
    border-radius: 3px 3px 0 0;
    min-height: 4px;
    transition: height 0.6s ease;
}
.grafico-mes {
    font-size: 0.62rem;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
}
.grafico-legenda {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
    font-style: italic;
}

/* ===== RESPONSIVO MOBILE/TABLET ===== */
@media (max-width: 768px) {
    .economia-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .comparativo-grid {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .comparativo-seta {
        transform: rotate(90deg);
        font-size: 1.5rem !important;
    }
    .comparativo-item {
        min-width: unset !important;
        width: 100% !important;
    }
    .grafico-container {
        height: 130px !important;
        gap: 3px !important;
    }
    .grafico-val {
        font-size: 0.55rem !important;
    }
    .grafico-mes {
        font-size: 0.55rem !important;
    }
    .dados-tecnicos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .sistema-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .resumo-grid {
        grid-template-columns: 1fr !important;
    }
    .comp-value {
        font-size: 1.4rem !important;
    }
}

@media (max-width: 480px) {
    .economia-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .grafico-container {
        height: 110px !important;
    }
    .grafico-val {
        font-size: 0.5rem !important;
    }
    .grafico-mes {
        font-size: 0.5rem !important;
    }
    .comparativo-box,
    .grafico-box,
    .economia-box,
    .dimensionamento-box {
        padding: 15px !important;
    }
    .comp-value {
        font-size: 1.2rem !important;
    }
}

/* ============================================
NOVA GALERIA DE PROJETOS - MTS
============================================ */
.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.projeto-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.projeto-card:hover {
    transform: translateY(-8px);
    border-color: rgba(250, 204, 21, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(250, 204, 21, 0.1);
}

.projeto-capa-container {
    position: relative;
    width: 100%;
    height: 280px;
    background: #0f172a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projeto-capa {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-fotos {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(250, 204, 21, 0.9);
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 2;
}

.projeto-info {
    padding: 20px;
}

.projeto-titulo {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.projeto-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.projeto-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Modal da Galeria */
.modal-galeria {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.98);
    z-index: 10000;
    overflow-y: auto;
}

.modal-galeria.ativo {
    display: block;
}

.modal-header {
    position: sticky;
    top: 0;
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    z-index: 10;
}

.modal-title {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.btn-fechar {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.btn-fechar:hover {
    color: var(--primary-color);
}

.modal-content {
    padding: 40px 6%;
}

.galeria-fotos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.foto-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: zoom-in;
    transition: transform 0.3s;
    background: #0f172a;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.foto-item:hover {
    transform: scale(1.03);
}

.foto-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.area-comentarios {
    margin-top: 50px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.comentarios-titulo {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.redes-login {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn-rede {
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s;
}

.btn-rede:hover {
    transform: translateY(-2px);
}

.btn-facebook { background: #1877f2; color: white; }
.btn-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743); color: white; }
.btn-linkedin { background: #0a66c2; color: white; }
.btn-tiktok { background: #000; color: white; border: 1px solid #fff; }

@media (max-width: 768px) {
    .projetos-grid {
        grid-template-columns: 1fr;
    }
    
    .galeria-fotos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

