/* Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Fira Code", monospace;
    background: transparent;
    color: #c9d1d9;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Matrix Background */
#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(35, 35, 35, 0.95);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2rem;
}

header img {
    border-radius: 50%;
    border: 3px solid #8B0000;
    margin-bottom: 1rem;
    transition: transform 2s ease-in-out;
}

header h1 {
    font-size: 2.5rem;
    color: #bb0000;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

header nav ul {
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style: none;
    flex-wrap: wrap;
}

header nav ul li a {
    text-decoration: none;
    color: #c9d1d9;
    padding: 5px 10px;
    border-radius: 5px;
    transition: 0.3s;
}

header nav ul li a:hover {
    background: #bb0000;
    color: #fff;
}

/* Section */
section {
    margin-bottom: 2rem;
    padding: 1rem;
    border-bottom: 1px solid #bb0000;
    background-color: rgba(100, 100, 100, 0.1); /* light transparent gray */
    border-radius: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s, transform 1s;
    text-align: center;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section h2 {
    font-size: 1.8rem;
    color: #bb0000;
    margin-bottom: 1rem;
}

/* Icon Grid */
.icon-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.tooltip {
    position: relative;
    display: inline-block;
    margin: 10px;
}

.tooltip img {
    width: 50px;
    height: 50px;
    transition: transform 0.2s;
}

.tooltip:hover img {
    transform: scale(1.2);
}

.tooltip-text {
    visibility: hidden;
    background: #111;
    color: #fff;
    padding: 5px 8px;
    border-radius: 6px;
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Public Releases */
#public ul {
    list-style: none;
    padding: 0;
}

#public ul li {
    margin-bottom: 8px;
}

#public ul li a {
    text-decoration: underline;
    color: #bb0000;
    transition: 0.3s;
}

#public ul li a:hover {
    color: #bb0000;
}

/* Contact Form */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

form input,
form textarea {
    padding: 8px;
    border: none;
    border-radius: 5px;
    background: #161616;
    color: #c9d1d9;
    font-family: inherit;
}

form input:focus,
form textarea:focus {
    outline: 2px solid #bb0000;
}

form button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background: #bb0000;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    background: #bb0000;
}

#footer-p {
    text-align: center;
    font-size: 0.9rem;
    color: #ffffff;
    margin-top: 2rem;
    padding-top: 1rem;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@media(max-width:600px) {
    header nav ul { flex-direction: column; }
}