/* Import Assistant font */
@import url('../fonts/Assistant-VariableFont_wght.ttf');
/* Add VT323 font for old computer look */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* ===== Design tokens ===== */
:root {
    --clr-primary:      #001f3f;   /* deep navy — headings, buttons, nav links */
    --clr-primary-bg:   rgba(0, 31, 63, 0.9); /* footer background */
    --clr-bg:           #000000;   /* page background */
    --clr-link:         #007bff;   /* hyperlinks */
    --clr-link-hover:   #0056b3;   /* hovered hyperlinks / button hover */
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #000000;
    /* Ensure black background */
    font-family: 'Assistant', sans-serif;
    /* Use Assistant font */
    color: #fff;
    direction: rtl;
    /* Set direction to right-to-left */
    padding: 10px;
    width: 100%;
}

.container {
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 98%;
    /* Changed from 95% to 98% */
    max-width: 1200px;
    /* Changed from 1000px to 1200px */
    color: #000000;
    margin: 0 auto;
    /* Center the container */
    z-index: 1;
    /* Ensure the container is above the binary animation */
    background-image: url("../images/trbk1a.png"), linear-gradient(to bottom right, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 70%);
    /* Add circuitry-like background and gradient effect */
    background-size: 180%, cover;
    /* Ensure the background covers the entire container */
    background-blend-mode: overlay;
    /* Blend the gradient with the background image */
    position: relative;
    /* Ensure the container is positioned relative to the snippets */
}

header,
main,
footer {
    width: 100%;
    max-width: 1200px;
    /* Changed from 1000px to 1200px */
    margin: 0 auto;
    /* Center the content */
}

header img {
    border-radius: 10px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    /* Center the logo */
    width: auto;
    /* Maintain aspect ratio */
}

nav ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
    /* Center the navigation */
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: var(--clr-primary);
    text-decoration: none;
    font-weight: bold;
}

#jcontact {
    color: #000000;
    /* Set color to dark gray */
    /* animation: breath 5s infinite; /* Add breathing effect */
}

#jcontact:hover {
    color: hsl(0, 0%, 0%);
    /* Slightly lighter gray on hover */
}

.breathAnimation {
    text-decoration: underline;
    /* Always show underline */
    animation: breath 5s infinite;
    /* Add breathing effect */
}

section {
    margin: 20px 0;
}

section img {
    width: 100%;
    max-width: 20%;
    border-radius: 10px;
    margin: 10px 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
    /* Center the images */
}

section h2 {
    color: var(--clr-primary);
    font-size: 1.5em;
    margin-bottom: 10px;
    text-align: center;
    /* Center the headings */
}

section#who-am-i p {
    text-align: right;
    /* Align text to the right for "Who Am I" section */
}

section#pros p,
section#qa p,
section#reviews p,
section#join-us p {
    text-align: center;
    /* Center text for these sections */
}

section#contact p {
    text-align: right;
    /* Align text to the right for "Contact" section */
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

div#qa {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 20px;
    line-height: 1.5;
}

form label,
form input,
form textarea,
form button {
    width: 100%;
    max-width: 400px;
    margin: 5px 0;
    text-align: right;
    /* Align text to the right */
    font-size: 18px;
    /* Increase font size to 18px */
    color: #000000;
    /* Stronger black color */
}

form input,
form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: transparent;
    /* Make background transparent */
    width: calc(100% - 20px);
    /* Ensure fields are wide enough for minimum 25 characters */
}

form input::placeholder,
form textarea::placeholder {
    color: #000000;
    /* Stronger black color for placeholder text */
    opacity: 1;
    /* Ensure the placeholder text is fully opaque */
}

form textarea {
    height: 7em;
    /* Add 7 lines height for content field */
    overflow-y: auto;
    /* Show scrollbar if text is longer */
}

form button {
    background-color: var(--clr-primary);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    width: auto;
    /* Adjust button width */
    max-width: 200px;
    /* Adjust button size for wide screens */
    text-align: center;
    /* Center the text */
}

form button:hover {
    background-color: var(--clr-link-hover);
}

footer {
    height: auto;
    /* Adjust height to auto for responsiveness */
    background-color: var(--clr-primary-bg);
    /* Dark blue background with transparency */
    color: #ffffffce;
    /* White text color */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    direction: rtl;
    /* Set direction to right-to-left */
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 0;
    width: 100%;
}

@media (min-width: 769px) {
    .footer-content {
        flex-direction: row;
        /* Arrange sections horizontally on larger screens */
    }
}

.footer-section {
    flex: 1;
    padding: 0 10px;
    min-width: 200px;
    /* Ensure minimum width to prevent wrapping */
}

#contactinfo {
    flex: 1.5;
    /* Reduce the width of the contact information section */
}

.footer-section h3 {
    font-size: 1em;
    margin-bottom: 5px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 5px;
}

.footer-section ul li a {
    color: #00ffff;
    /* Super bright cyan color */
    text-decoration: none;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

.contact-info {
    font-size: 1.2em;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    /* Center the container */
    padding: 1px 12px;
    background-color: rgba(255, 255, 255, 0.8);
    /* White semi-transparent background */
    color: #000;
    /* Black text color */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Add transition for hover effect */
    display: block;
    width: auto;
    /* Increase width to 30% */
    max-width: 50%;
    /* Ensure it doesn't exceed 90% of the container */
    font-family: 'Assistant', sans-serif;
    /* Use Assistant font */
}

.contact-info a {
    color: var(--clr-link);
    text-decoration: none;
    white-space: nowrap;
    /* Prevent link text from breaking/wrapping */
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-info:hover {
    transform: scale(1.05);
    /* Slightly enlarge on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    /* Increase shadow on hover */
}

footer p {
    text-align: center;
    /* Center the footer text */
    direction: ltr;
    /* Ensure the year and copyright symbol are at the end of the line */
    font-size: 0.8em;
    margin: 10px 0 0;
}


.snippet {
    padding: 5px;
    border-radius: 5px;
    color: rgba(0, 245, 12, 0.274);
    /* Change text color to green */
    font-family: 'Press Start 2P', monospace;
    /* Use Press Start 2P font for bulky/blocky old digital look */
    z-index: 0;
    /* Ensure it is behind the container */
    position: absolute;
    direction: ltr;
    background: radial-gradient(circle, rgb(0, 0, 0), rgb(88, 88, 88));
    /* Add radial gradient effect */
    border-style: solid;
    filter: contrast(1.2) brightness(0.9);
    /* Add grainy effect */
}

.profile {
    display: flex;
    align-items: flex-start;
    /* Align items to the top */
    flex-wrap: wrap;
    /* Allow wrapping */
}

.profile-pic {
    height: 160px;
    /* Set height to 160px */
    width: auto;
    /* Maintain aspect ratio */
    margin-left: 20px;
    margin-right: 20px;
    /* Add margin to the right of the profile picture */
    float: right;
    /* Float the image to the right */
}

.profile-text {
    flex: 1;
    text-align: right;
    /* Align text to the right */
    overflow: hidden;
    /* Ensure text wraps around the profile picture */
    display: flex;
    padding: 5px;
    flex-direction: column;
    border-style: outset;
    justify-content: flex-start;
    /* Center the text vertically */
    font-weight: bold;
    font-family: 'Assistant', sans-serif;
    /* Use Assistant font */
}

.profile-text h2 {
    text-align: center;
    /* Center the heading within the profile text */
}

.profile-text p {
    margin-bottom: 5px;
    /* Reduce space between paragraphs */
}

.boldtext {
    font-weight: bold;
}

.pros {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.pros .box {
    flex: 1 1 25%;
    /* 25% width on desktop/laptop/big screens */
    margin: 5px;
    background-color: rgba(173, 216, 230, 0.31);
    /* 65% transparent light blue background */
    border: 2px double black;
    /* Round double-lines black borders */
    border-radius: 10px;
    padding: 10px;
    position: relative;
    transition: all 0.5s ease;
    /* Smooth transition for animations */
    box-shadow: -8px 8px 16px rgba(0, 0, 0, 0.3);
    /* Shadow as if light source is on the top-right corner */
    text-align: center;
    /* Center the internal text */
}

.pros .box p {
    text-align: center;
    /* Center the text inside the boxes */
}

.pros .box .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f1f1f1;
    border-bottom: 2px double black;
    padding: 5px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.pros .box .header .title {
    font-weight: bold;
    font-size: 1em;
    font-family: 'Assistant', sans-serif;
    /* Use Assistant font */
}

.pros .box .header .buttons {
    display: flex;
    gap: 5px;
}

.pros .box .header .buttons button {
    width: 15px;
    height: 15px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pros .box .header .buttons .minimize {
    background-color: #f1c40f;
}

.pros .box .header .buttons .maximize {
    background-color: #2ecc71;
}

.pros .box .header .buttons .close {
    background-color: #e74c3c;
}

.pros .box .header .buttons .minimize::before {
    content: '-';
    font-size: 12px;
    color: black;
}

.pros .box .header .buttons .maximize::before {
    content: '□';
    font-size: 10px;
    color: black;
}

.pros .box .header .buttons .close::before {
    content: '×';
    font-size: 12px;
    color: black;
}

form .row {
    display: flex;
    justify-content: center;
    /* Center all form rows */
    width: 100%;
    max-width: 400px;
}

form .row input {
    flex: 1;
    margin: 5px;
}

form .row input[name="name"] {
    flex: 0 0 60%;
    /* 60% width for name */
}

form .row input[name="phone"] {
    flex: 0 0 40%;
    /* 40% width for phone */
}

form .row input[name="email"] {
    flex: 0 0 100%;
    /* 100% width for email */
}

form textarea {
    width: calc(85%);
    /* Subtract 15% from content field width */
}

#qabox {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center the content vertically */
    text-align: right;
    /* Align the text to the right */
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
    font-size: 22px;
    /* Increase font size */
    line-height: 1.8;
    /* Increase line height */
}

#qabox ul {
    list-style-type: disc;
    /* Show bullets */
    padding: 0;
}

#qabox ul li {
    margin-bottom: 20px;
    /* Add separation between each pair */
}

.custom-context-menu div {
    padding: 5px 10px;
    cursor: pointer;
}

.custom-context-menu div:hover {
    background-color: #f1f1f1;
}

section#what-is-it {
    margin: 20px 0;
    padding: 20px;
    text-align: center;
    /* Center the internal text */
}

section#what-is-it h2 {
    color: var(--clr-primary);
    font-size: 1.7em;
    margin-bottom: 10px;
    text-align: center;
    /* Center the headings */
}

section#what-is-it p {
    font-size: 1.1em;
    font-weight: bold;
    line-height: 1.5;
    text-align: center;
    /* Align text to the right */
}