:root {
    --bg-dark: #020005;
    --glass-bg: rgba(20, 15, 30, 0.35);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --color-purple: #9333ea;
    --color-cyan: #06b6d4;
    --color-blue: #3b82f6;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    perspective: 1000px; /* For subtle 3D effects later if needed */
}

/* NOISE TEXTURE FOR SPATIAL FEEL */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: 10;
}

/* AMBIENT ORBS (3D Subtle Background) */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: drift 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.orb-purple {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--color-purple);
    animation-delay: 0s;
}

.orb-cyan {
    bottom: -10%;
    right: -10%;
    width: 45vw;
    height: 45vw;
    background: var(--color-cyan);
    animation-duration: 25s;
    animation-delay: -5s;
}

.orb-blue {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: var(--color-blue);
    animation-duration: 18s;
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8vw, 12vh) scale(1.1); }
    100% { transform: translate(-8vw, 5vh) scale(0.9); }
}

/* BENTO BOX GRID */
.bento-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 220px);
    gap: 1.2rem;
    width: 95%;
    max-width: 1000px;
    z-index: 1;
    padding: 3rem 0;
}

.bento-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 32px; /* Apple Vision Pro super rounded style */
    padding: 2.5rem;
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 var(--glass-highlight);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Magnetic Hover Effect Simulation */
.bento-item.interactive:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
    border-color: rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.bento-item.disabled {
    opacity: 0.5;
    cursor: default;
    filter: grayscale(0.5);
}

/* SPAN UTILITIES */
.span-2x2 { grid-column: span 2; grid-row: span 2; }
.span-2x1 { grid-column: span 2; grid-row: span 1; }
.span-1x1 { grid-column: span 1; grid-row: span 1; }

/* PROFILE BOX */
.profile-box {
    justify-content: center;
    gap: 1.5rem;
}

.profile-image-wrapper {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--color-purple), var(--color-cyan));
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.4);
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-dark);
}

.profile-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 0.3rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-text h2 {
    font-size: 0.9rem;
    color: var(--color-cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.2rem;
}

.profile-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* APP BOXES */
.box-icon {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 1rem;
    box-shadow: inset 0 2px 10px rgba(255,255,255,0.05);
}

.timetracker-box .box-icon { color: var(--color-purple); text-shadow: 0 0 15px rgba(147, 51, 234, 0.5); }
.fiscal-box .box-icon { color: var(--color-cyan); text-shadow: 0 0 15px rgba(6, 182, 212, 0.5); }
.odoo-box .box-icon { color: var(--text-muted); }

.box-content h3, .odoo-box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.box-content p, .odoo-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.odoo-box h3 { margin-bottom: 0.5rem; }

/* STATUS BADGES */
.status-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.status-badge.live {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.status-badge.dev {
    background: rgba(147, 51, 234, 0.15);
    color: #c084fc;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.status-badge.plan {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* SOCIAL BOXES */
.social-box {
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    font-size: 2.8rem;
    color: var(--text-muted);
}

.social-box span {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.social-box:hover {
    color: var(--color-cyan);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    body {
        align-items: flex-start;
        overflow-y: auto;
    }
    .bento-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        padding: 2rem 0;
    }
    .span-2x2, .span-2x1 { grid-column: span 2; }
    .span-1x1 { grid-column: span 1; }
    
    .profile-box {
        grid-row: span 1;
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .bento-container {
        grid-template-columns: 1fr;
    }
    .span-2x2, .span-2x1, .span-1x1 { grid-column: span 1; grid-row: auto; }
    .profile-box {
        flex-direction: column;
        text-align: center;
    }
}

/* MODAL STYLES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.modal-content {
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    padding: 3rem;
}

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

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--color-cyan);
    color: #000;
}

.modal-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-header .subtitle {
    color: var(--color-purple);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
}

.project-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

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

.project-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.text-cyan { color: var(--color-cyan); }
.text-purple { color: var(--color-purple); }
.text-blue { color: var(--color-blue); }

.project-item p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

.click-hint {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--color-cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.profile-box:hover .click-hint {
    opacity: 1;
}
