/*body {
    background-color: #100e17;
    font-family: 'Open Sans', sans-serif;
  }*/
  
.container_card {
    position: relative;
    width: min(100%, 72rem);
    min-height: 18.75rem;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
    align-items: stretch;
    gap: 1rem;
}

body.projects-page {
    margin: 0;
    overflow-x: hidden;
}

.projects-main {
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-items: start center;
    overflow-x: clip;
    box-sizing: border-box;
    padding: calc(6rem + env(safe-area-inset-top, 0px)) 0.5rem 0;
}

.card {
    display: flex;
    height: 18.75rem;
    width: 100%;
    min-width: 0;
    background-color: rgb(23, 23, 23);
    border-radius: 10px;
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.45);
    transition: 0.4s ease-out;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    transition: 0.4s ease-out;
}

@media (max-width: 1023px) {
    .projects-main {
        padding: calc(8rem + env(safe-area-inset-top, 0px)) 0.5rem 1rem;
    }

    .container_card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .card {
        height: 18.25rem;
    }

    .card:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 640px) {
    .projects-main {
        padding-top: calc(8.75rem + env(safe-area-inset-top, 0px));
    }

    .container_card {
        grid-template-columns: 1fr;
        padding: 0 0.75rem;
    }

    .card {
        height: 18rem;
    }
}

@media (min-width: 1024px) {
    .projects-main {
        height: 100vh;
        min-height: 0;
        place-items: center;
        overflow-y: hidden;
        padding-top: 5.5rem;
    }
}
/* Terminal container styling */
.terminal-container {
    border-radius: 8px;
    overflow: hidden;
    background-color: #1e1e1e;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 1200px;
    transition: transform 0.3s ease;
}

/* Terminal navigation bar */
.terminal-bar {
    display: flex;
    align-items: center;
    padding: 8px;
    background-color: #333;
    border-bottom: 1px solid #444;
}

/* Navigation bar circles */
.terminal-bar .circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block; /* Ensures span behaves like an inline element */
}

/* Styling the link */
.terminal-bar .easter-egg {
    text-decoration: none;  /* Removes the underline */
    display: inline-block;  /* Keeps it inline but allows for box model adjustments */
    width: 12px;
    height: 12px;  /* Ensure the link has the same size as the circle */
}

.terminal-bar .red {
    background-color: #ff5f56;
}

.terminal-bar .yellow {
    background-color: #ffbd2e;
}

.terminal-bar .green {
    background-color: #27c93f;
}

/*TEMP */
.cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1; /* Fully visible */
    }
    50% {
        opacity: 0; /* Hidden */
    }
}

/*TEMP */


/* Terminal prompt styling */
.terminal-prompt {
    font-family: 'Courier New', Courier, monospace; /* Monospace font */
    color: #00ff00; /* Green color for the username */
    font-size: 1rem; /* Font size for the prompt */
    line-height: 1.4; /* Spacing between lines */
    padding-bottom: 8px; /* Space below the prompt */
    margin-bottom: 10px; /* Space below the prompt to separate from command list */
}
/* Command prompt styling */
.cmd-prompt {
    padding: 16px;
    font-family: 'Courier New', Courier, monospace;
    color: #d4d4d4;
    font-size: 1rem;
    line-height: 1.4;
}

/* Command prompt list */
.cmd-prompt p {
    position: relative;
    padding-left: 20px;
    margin: 0 0 0.5rem;
}

.cmd-prompt p::before {
    content: "> ";
    position: absolute;
    left: 0;
    color: #00ff00; /* Green color for prompt symbol */
    font-weight: bold;
}

/* Style adjustments for lists in the command prompt */
.cmd-prompt ol, .cmd-prompt ul {
    margin: 0;
    padding-left: 1.2rem;
}

.cmd-prompt li {
    margin-bottom: 0.3rem;
}

/*
.cmd-prompt::before {
    content: "Samuel@Terminal:~$"; /* Lunix Symbol :O /
    color: #00ff00; /* Cool Color to match it /
    font-weight: bold;
    margin-right: 0.5rem;
} */


.content-wrapper {
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.img-container {
    width: 100%;
    max-width: 37.5rem;
    height: auto;
    overflow: visible;
}

.img-container2 {
    width: 100%;
    max-width: 25rem;
    height: auto;
    overflow: visible;
}

.img-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.img-container2 img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px; 
}

.about-journey-image.img-container {
    max-width: 25rem;
    margin-left: auto;
    margin-right: auto;
}

.zoomable-image {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.zoomable-image:hover {
    transform: scale(1.01);
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.82);
    padding: 1rem;
}

.lightbox-overlay.hidden {
    display: none;
}

.lightbox-image {
    width: auto;
    height: auto;
    max-width: min(95vw, 1400px);
    max-height: 90vh;
    border-radius: 0.5rem;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.45);
}

.lightbox-caption {
    margin-top: 0.75rem;
    max-width: min(95vw, 900px);
    text-align: center;
    color: #f3f4f6;
    font-size: 0.95rem;
    line-height: 1.45;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 1.75rem;
    line-height: 1;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    line-height: 1;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav-prev {
    left: 1rem;
}

.lightbox-nav-next {
    right: 1rem;
}

.content-wrapper {
    padding: 16px;
    margin-top: 64px;
}


/* Style for horizontal line */
.bg-gray-300 {
    background-color: #D1D5DB; /* Tailwind gray-300 */
}

.rounded-xl {
    border-radius: 0.75rem; /* Tailwind rounded-xl */
}

.w-full {
    width: 100%;
}

.h-px {
    height: 1px;
}

.mb-2 {
    margin-bottom: 8px; /* Equivalent to mb-2 */
}

body {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px; /* Wider horizontally to create diagonal effect */
    background-position: 0 0;
    background-repeat: repeat;
}

.carousel {
    position: relative; /* Keep the carousel relative */
    width: 100%;
    height: auto;
    overflow: visible;
}

.carousel-image {
    width: 100%; /* Full width for images */
    height: auto;
    display: none; /* Hide all images by default */
}

.carousel-image.active {
    display: block; /* Only display the active image */
}

.carousel-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.prev, .next {
    background-color: rgba(0, 0, 0, 0.7); /* Dark background for buttons */
    color: white;
    border: none;
    border-radius: 20%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust for centering */
    z-index: 30; /* Higher z-index to ensure they're above images */
}

.prev {
    left: 10px; /* Position on the left */
}

.next {
    right: 10px; /* Position on the right */
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.9); /* Darker background on hover */
}

#slideIndicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
    z-index: 20; /* Ensure it's above other content */
}

/* Button Container */
.terminal-button-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
}

/* Individual Buttons */
.terminal-email-button, .terminal-other-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Email button styles */
.terminal-email-button {
    background-color: rgb(16 185 129); /* Blue color for email button */
    color: white;
}

.terminal-email-button:hover {
    background-color: rgb(4 120 87); /* Darker blue on hover */
    transform: scale(1.05);
}

/* Other button styles */
.terminal-other-button {
    background-color: rgb(14 165 233); /* Gray color for other button */
    color: white;
}

.terminal-other-button:hover {
    background-color: rgb(3 105 161); /* Darker gray on hover */
    transform: scale(1.05);
}

/* SVG icon styles inside the buttons */
.terminal-email-button svg, .terminal-other-button svg {
    width: 20px;  /* Set a specific size */
    height: 20px; /* Ensure it's visible */
    margin-right: 0.5rem; /* Space between icon and text */
}
/* Custom terminal container for the Contact section */
.contact-terminal-container {
    border-radius: 8px;
    overflow: hidden;
    background-color: #1e1e1e;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    width: 50%; /* Set to 50% width */
    max-width: 600px; /* Ensure it doesn't get too wide */
    margin: 0 auto; /* Center the container horizontally */
    transition: transform 0.3s ease;
}

@keyframes typing {
    0% {
        width: 0;
    }
    100% {
        width: 50%;
    }
}

.typing-animation {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 0; /* Set initial width to 0 */
    border-right: 2px solid; /* Cursor effect */
    animation: typing 3s steps(30) 1s 1 normal both, blink2 0.75s step-end infinite;
    max-width: 100%; /* Prevent text from overflowing */
    box-sizing: border-box; /* Ensure padding/margin does not affect width */
}

@keyframes blink2 {
    50% {
        border-color: transparent;
    }
}

/* Stop cursor after typing */
.typing-animation.finished {
    border-right: none;
    animation: none;
}

.finished {
    animation: none; /* Stops the blinking cursor */
}

.terminal-window {
    display: none; /* Start hidden */
    position: fixed;
    top: 20%;
    left: 20%;
    width: 600px;
    height: 400px;
    background-color: #2b2b2b;
    color: #d1d5da;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    font-family: 'Courier New', Courier, monospace;
    resize: both;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background-color: #1a1a1a;
    padding: 8px;
    display: flex;
    align-items: center;
    cursor: move;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.terminal-header .traffic-lights {
    display: flex;
    gap: 6px;
    margin-right: auto;
}

.traffic-lights .circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.traffic-lights .red {
    background-color: #ff605c;
}

.traffic-lights .yellow {
    background-color: #ffbd44;
}

.traffic-lights .green {
    background-color: #00ca4e;
}

.terminal-body {
    display: flex;
    flex-direction: column; /* Normal column layout, input above output */
    padding: 15px;
    flex-grow: 1;
}

#terminalOutput {
    background-color: #1e1e1e;
    padding: 10px;
    border-radius: 4px;
    min-height: 200px;
    border: 1px solid #3e3e3e;
    font-size: 14px;
    white-space: pre-wrap;
    flex-grow: 1;
    overflow-y: auto; /* Make output scrollable */
}

#terminalInput {
    width: 100%;
    background-color: #1e1e1e;
    border: none;
    color: #fff;
    padding-left: 30px; /* Space for the prompt */
    padding-top: 8px;
    padding-bottom: 8px;
    font-family: 'Courier New', Courier, monospace;
    outline: none;
    white-space: nowrap;
    word-wrap: normal;
    font-size: 14px;
    line-height: 20px;
    min-height: 30px;
    resize: none;
    position: relative;
}

#terminalInput::before {
    content: "~$ ";
    color: #00ca4e; /* Green color for the prompt */
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-weight: bold;
}
