
/* Laptop Section Styles */
.laptop-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-soft);
    perspective: 1200px;
    padding: 60px 20px;
    overflow: hidden;
    position: relative;
}

.laptop-layout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.laptop-left {
    flex: 0 0 56%;
    display: flex;
    justify-content: flex-end;
}

.trust-right {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -20px;
}

.laptop-device {
    width: 800px;
    max-width: 95%;
    height: 480px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.laptop-base {
    position: absolute;
    left: 10%;
    bottom: 0;
    width: 80%;
    height: 26px;
    background: linear-gradient(to bottom, #3a3a3a, #1a1a1a);
    border-radius: 4px 4px 16px 16px;
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.1);
    z-index: 10;
}

/* Base detailing (notch) */
.laptop-base::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 12px;
    background: #252525;
    border-radius: 0 0 10px 10px;
    box-shadow: inset 0 2px 3px rgba(0,0,0,0.5);
}

.laptop-screen {
    position: absolute;
    left: 10%;
    bottom: 26px; /* Sits on top of base */
    width: 80%;
    height: 450px;
    background: #000;
    border: 1px solid #333;
    border-radius: 12px 12px 0 0;
    transform-origin: bottom center;
    transform: rotateX(-90deg); /* Start closed */
    box-shadow: 
        0 -2px 10px rgba(255,255,255,0.05),
        inset 0 0 0 2px #1a1a1a;
    overflow: hidden;
    z-index: 5;
    /* Add realistic reflection */
    background-image: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 40%);
    transition: transform 0.6s ease-out;
}

/* Bezel */
.laptop-screen::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 12px solid #111;
    border-bottom-width: 24px;
    border-radius: 12px 12px 0 0;
    pointer-events: none;
    z-index: 20;
}

/* Webcam dot */
.laptop-screen::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #333;
    border-radius: 50%;
    z-index: 21;
    box-shadow: 0 0 0 1px #000;
}

.screen-inner {
    position: absolute;
    top: 12px; left: 12px; right: 12px; bottom: 24px;
    background: #0f172a;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #334155 #0f172a;
}

.screen-hint {
    margin: 6px 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
    opacity: 0.9;
}

.screen-hint-icon {
    font-size: 14px;
}

.screen-title {
    margin: 8px 0 12px 0;
    padding: 8px 12px;
    font-size: 18px;
    font-weight: 600;
    color: #e2e8f0;
    text-align: center;
    letter-spacing: 0.3px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
}

.screen-inner::-webkit-scrollbar {
    width: 6px;
}
.screen-inner::-webkit-scrollbar-track {
    background: #0f172a;
}
.screen-inner::-webkit-scrollbar-thumb {
    background-color: #334155;
    border-radius: 3px;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns on large screens */
    gap: 15px;
    padding: 20px;
    width: 100%;
}

.collection-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    aspect-ratio: 1/1; /* Square items */
}

.collection-item:hover {
    background: rgba(30, 58, 138, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

.collection-icon {
    font-size: 32px;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.collection-item:hover .collection-icon {
    transform: scale(1.1);
}

.collection-name {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #cbd5e1;
}

.trust-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    position: relative; /* Added to position the whatsapp button */
}

.laptop-centered-whatsapp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    margin: 0 !important; /* Override default margin */
    width: auto !important; /* Override default width 100% */
}

.trust-card {
    position: relative;
    background: radial-gradient(circle at top left, rgba(59,130,246,0.2), rgba(15,23,42,0.9));
    border: 1px solid rgba(148,163,184,0.7);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    min-height: 150px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15,23,42,0.8), inset 0 0 0 1px rgba(148,163,184,0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.trust-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 0%, rgba(191,219,254,0.4), rgba(15,23,42,1));
    box-shadow: 0 10px 25px rgba(15,23,42,0.8);
    font-size: 20px;
    color: #e5f0ff;
    flex-shrink: 0;
}

.trust-text-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trust-title {
    color: #e5f0ff;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
}

.trust-description {
    color: #cbd5f5;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    padding-right: 4px;
    letter-spacing: 0.3px;
}

.trust-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 24px 50px rgba(15,23,42,0.95);
    border-color: rgba(191,219,254,0.95);
    background: radial-gradient(circle at top left, rgba(96,165,250,0.35), rgba(15,23,42,1));
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1024px) {
    .laptop-left { flex: 0 0 58%; }
    .trust-right { flex: 0 0 40%; }
    .laptop-device {
        width: 700px;
        height: 420px;
    }
    .laptop-screen {
        height: 380px;
    }
    .collections-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 cols */
    }
    .trust-card { min-height: 140px; }
}

/* Mobile Large */
@media (max-width: 768px) {
    .laptop-layout {
        flex-direction: column;
        align-items: stretch;
    }
    .laptop-left, .trust-right {
        flex: 1 1 auto;
    }
    .trust-right { margin-left: 0; }
    .laptop-section {
        min-height: auto; /* evita corte do dispositivo */
        padding: 24px 10px;
        perspective: 1000px; /* Adjust perspective for smaller screens */
    }
    .laptop-device {
        width: 100%;
        height: 360px; /* mais alto para caber todos os ícones */
    }
    .laptop-base {
        left: 0;
        width: 100%;
        border-radius: 6px;
    }
    .laptop-screen {
        left: 0;
        width: 100%;
        height: 330px; /* aumenta área útil da tela */
        border-width: 1px;
    }
    /* Thinner bezel for mobile to maximize space */
    .laptop-screen::before {
        border-width: 8px;
        border-bottom-width: 16px;
    }
    .screen-inner {
        top: 8px; left: 8px; right: 8px; bottom: 16px;
    }
    .collections-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cols */
        gap: 10px;
        padding: 15px;
    }
    .collection-item {
        padding: 12px 6px;
        aspect-ratio: auto; /* deixa a altura se ajustar ao conteúdo */
    }
    .screen-title {
        font-size: 16px;
        padding: 6px 10px;
        margin: 6px 0 10px 0;
    }
    .collection-item {
        padding: 15px 5px;
    }
    .collection-icon {
        font-size: 24px;
    }
    .collection-name {
        font-size: 12px;
    }
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .trust-card { min-height: 120px; }
}

/* Mobile Small */
@media (max-width: 480px) {
    .laptop-section { padding: 16px 10px; }
    .laptop-device { height: 340px; }
    .laptop-screen { height: 310px; }
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
    }
    .trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .trust-text { font-size: 14px; }
}
