@import "tailwindcss";

@theme {
  --font-inter: "Inter", sans-serif;
}

/* Custom Styles from original index.html */
body {
    font-family: var(--font-inter);
    background-color: #111827;
    color: #d1d5db; /* text-gray-300 */
}

body.no-scroll {
    overflow: hidden;
}

#pcb-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.gradient-text {
    @apply bg-linear-to-r from-indigo-600 to-pink-500 bg-clip-text text-transparent;
}

#cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.card {
    background-color: rgba(31, 41, 55, 0.8);
    border: 1px solid #374151;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(4px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

.icon-placeholder {
     width: 48px;
     height: 48px;
     background-color: #374151;
     border-radius: 0.5rem;
}

.modal-backdrop.hidden {
    display: none;
}

.modal {
     background-color: rgba(31, 41, 55, 0.8);
     backdrop-filter: blur(8px);
}

#ai-modal-input-container.hidden { display: none; }
.modal-body p { margin-bottom: 1rem; }
.modal-body ul { list-style-type: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.modal-body li { margin-bottom: 0.5rem; }
.modal-body h3 { font-size: 1.25rem; font-weight: 600; color: #fff; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.chat-message { padding: 0.75rem; border-radius: 0.5rem; margin-bottom: 0.75rem; max-width: 90%; }
.chat-message.user { background-color: #4f46e5; color: white; margin-left: auto; text-align: right; }
.chat-message.model { background-color: #374151; color: #d1d5db; margin-right: auto; }

.flip-card { background-color: transparent; min-height: 200px; perspective: 1000px; }
.flip-card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.6s; transform-style: preserve-3d; }
.flip-card:hover .flip-card-inner, .flip-card.is-flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 0.5rem; }
.flip-card-back { background-color: rgba(55, 65, 81, 0.9); backdrop-filter: blur(4px); color: white; transform: rotateY(180deg); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.flip-card-front { background-color: transparent; }

#whoami-section {
    position: fixed;
    inset: 0;
    z-index: 100;
    background-color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
    transition: clip-path 0.8s cubic-bezier(0.83, 0, 0.17, 1);
}
#whoami-section.is-visible {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}
#whoami-close-btn {
    position: absolute;
    top: 2rem; right: 2rem; font-size: 2.5rem; color: #9ca3af;
    background: none; border: none; cursor: pointer;
    transition: transform 0.3s, color 0.3s;
}
#whoami-close-btn:hover { color: #fff; transform: rotate(90deg); }

#contact-btn {
    @apply fixed top-6 right-6 z-50 bg-gray-800/70 backdrop-blur-md p-3 rounded-full cursor-pointer transition-transform hover:scale-110;
}

#network-diagram-container, #static-diagram-image {
    height: 600px;
}
#network-diagram-container {
    background-color: rgba(17, 24, 39, 0.7);
    border-radius: 0.5rem;
    backdrop-filter: blur(4px);
    border: 1px solid #374151;
}
