/* === Global Styles === */
:root {
    --bg: #2d2d2d;
    --text: #d0d0d0;
    --accent: #4e9a06;
    --titlebar: #3a3a3a;
    --window-bg: #383838;
    --highlight: #3465a4;
    --danger: #cc0000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DejaVu Sans Mono', monospace;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    min-height: 100vh;
    padding: 20px;
}

h3 {
    color: var(--accent);
    font-family: 'DejaVu Sans Mono', monospace;
    font-weight: bold;
}

h4 {
    color: var(--highlight);
    font-family: 'DejaVu Sans Mono', monospace;
    font-weight: bold;
}

/* === Logo === */

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.logo-corner {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 999;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.logo-corner img {
    height: 100px;
    width: auto;
    animation: spin 5s linear infinite;
    filter: grayscale(0%);
}

.logo-corner:hover {
    opacity: 1;
    filter: none;
}

/* === Testimonials ==*/

.testimonial-slider {
    overflow: hidden;
    width: 100%;
    background: #3a3a3a;
    color: var(--text);
    border-top: 1px solid #555;
    border-bottom: 1px solid #555;
    padding: 10px 0;
    font-family: 'DejaVu Sans Mono', monospace;
    position: relative;
    top: 30px
}

.testimonial-track {
    display: flex;
    width: max-content;
    animation: scroll-testimonials 60s linear infinite;
    gap: 50px;
}

.testimonial {
    white-space: nowrap;
    font-size: 1rem;
    opacity: 0.8;
    padding: 0 20px;
}

@keyframes scroll-testimonials {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* === Customer Logo === */

.customer-logos {
    padding: 40px 20px;
    background-color: #383838;
    text-align: center;
    max-width: 100%;
    overflow-x: auto;
}

.customer-logos h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #d0d0d0;
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.logo-grid img {
    max-height: 100px;
    max-width: 120px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-grid img:hover {
    transform: scale(1.05);
}

/* === Games === */

#game-canvas {
    background-color: black;
    border: 2px solid var(--accent);
    margin-top: 10px;
    width: 400px;
    height: 400px;
}

#game-instructions {
    margin-top: 10px;
    color: var(--accent);
    font-family: monospace;
}

/* === Desktop Icons === */

.desktop {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* center horizontally */
    gap: 30px;
    padding: 20px;
    max-width: auto;
    margin: 0 auto;
    /* center container horizontally */
    position: relative;
    z-index: 1;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    cursor: pointer;
    text-align: center;
    padding: 10px 5px;
    border-radius: 5px;
}

.desktop-icon:hover {
    background-color: rgba(78, 154, 6, 0.2);
}

.desktop-icon i {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: var(--accent);
}

/* === Window Styles === */
.window {
    display: none;
    position: absolute;
    top: 100px;
    left: 100px;
    width: 700px;
    max-width: 90%;
    background-color: var(--window-bg);
    border: 1px solid #555;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 100;
    border-radius: 5px 5px 0 0;
    overflow: hidden;
}

.window.active {
    display: block;
}

.titlebar {
    background-color: var(--titlebar);
    color: var(--text);
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #555;
    cursor: move;
    user-select: none;
}

.window-title {
    font-weight: bold;
}

.window-controls {
    display: flex;
    gap: 10px;
}

.window-btn {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.close-btn {
    background-color: #fc0000;
}

.minimize-btn {
    background-color: #f57900;
}

.maximize-btn {
    background-color: var(--accent);
}

.window-content {
    padding: 20px;
    max-height: 68vh;
    overflow-y: auto;
}

.content-area p {
    font-size: 0.9rem;
}

/* === Menu Bar === */
.menu-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--titlebar);
    display: flex;
    padding: 5px 10px;
    z-index: 1000;
    border-top: 1px solid #555;
}

.menu-bar-top {
    display: none;
    /* hide by default */
}

.menu-btn {
    background: none;
    border: none;
    color: var(--text);
    padding: 5px 15px;
    cursor: pointer;
    border-radius: 3px;
    font-family: 'DejaVu Sans Mono', monospace;
}

.menu-btn:hover {
    background-color: rgba(78, 154, 6, 0.3);
}

/* === Content Styles === */
.file-manager {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    height: 100%;
}

.sidebar {
    background-color: #3a3a3a;
    padding: 15px;
    border-right: 1px solid #555;
}

.sidebar-item {
    padding: 8px 5px;
    cursor: pointer;
    border-radius: 3px;
}

.sidebar-item:hover {
    background-color: rgba(78, 154, 6, 0.3);
}

.sidebar-item.active {
    background-color: rgba(78, 154, 6, 0.4);
    color: var(--accent);
    font-weight: bold;
}

.content-area {
    padding: 10px;
    text-align: justify;
}

.file-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.file-item {
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
}

.file-item:hover {
    background-color: rgba(78, 154, 6, 0.3);
}

.file-item i {
    font-size: 2rem;
    display: block;
    margin-bottom: 5px;
}

.section-content {
    display: none;
}

.section-content.active {
    display: block;
}

/* === Responsive Design === */

@media (max-width: 768px) {
    .window {
        left: 5% !important;
        top: 50px !important;
        width: 90% !important;
    }

    /* === Icons === */
    .desktop {
        display: none !important;
    }

    /* === Avatar === */
    /*
            .centerpiece {
                display: none !important;
            }
            */
    .file-manager {
        grid-template-columns: 1fr;
    }

    /*
            .sidebar {
                display: none;
            }
            */
    .menu-bar-top {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: var(--titlebar);
        display: flex;
        padding: 5px 10px;
        z-index: 1000;
        border-bottom: 1px solid #555;
    }
}

/* Footer hidden by default */
.mobile-footer {
    display: none;
}

/* Mobile-only footer styles */
@media (max-width: 768px) {
    .mobile-footer {
        display: none;
        position: fixed;
        bottom: 0;
        width: 100%;
        background-color: var(--titlebar);
        color: var(--text);
        text-align: center;
        padding: 12px;
        border-top: 1px solid #555;
        font-family: 'DejaVu Sans Mono', monospace;
        z-index: 1001;
    }

    .mobile-footer a {
        color: var(--accent);
        text-decoration: none;
        /* Remove underline (optional) */
    }

    .mobile-footer a:hover {
        text-decoration: underline;
    }

    /* Prevent content behind footer */
    body {
        padding-bottom: 60px;
    }
}

.footer-content {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    /* or any fixed width */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--accent);
    /* Your custom color */
    text-decoration: none;
}

.footer-content a {

    color: var(--accent);
    /* Your custom color */
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
    /* Add underline on hover (optional) */
}

/* === Avatar === */

.centerpiece {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 0;
}

.avatar-circle {
    width: 25vw;
    height: 25vw;
    max-width: 300px;
    max-height: 300px;
    min-width: 150px;
    min-height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 4px solid var(--accent);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

.slogan {
    margin-top: 20px;
    color: var(--accent);
    font-size: clamp(1rem, 2.5vw, 2rem);
    /* scales between 1rem and 2rem */
    font-family: 'DejaVu Sans Mono', monospace;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
}

/* Gallery styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;

}

.gallery img {
    width: 100%;
    border: 2px solid var(--accent);
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--accent);
}

/* Lightbox styles */


.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.9);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border: 2px solid var(--accent);
    border-radius: 5px;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: var(--accent);
    cursor: pointer;
    font-family: monospace;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background-color: #3a3a3a;
    border: 1px solid #555;
    padding: 15px;
    border-radius: 8px;
    color: var(--text);
    font-family: 'DejaVu Sans Mono', monospace;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 10px var(--accent);
}

.project-card h4 {
    margin-bottom: 10px;
    color: var(--accent);
}

.project-card p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.project-card a {
    color: var(--highlight);
    text-decoration: none;
    font-weight: bold;
}

.project-card a:hover {
    text-decoration: underline;
}

/* Default: show only on small screens */
#circleMenu {
    display: block;
}

/* Hide on screens wider than 768px (desktop and tablets) */
@media (min-width: 769px) {

    #circleMenu,
    #menuOverlay {
        display: none !important;
    }
}

.menu-arrow {
        display: none;
        }

/* Only show on mobile */
@media (max-width: 768px) {
    .circle-menu {
        position: fixed;
        bottom: 50%;
        left: 50%;
        z-index: 1002;

    }

    #circleMenu {
        display: none;
    }

    #circleMenu.active {
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1000;
    }

    #menuOverlay {
        display: none;
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 999;
    }

    #menuOverlay.active {
        display: block;
    }

    .menu-toggle {
        background-color: var(--accent);
        color: white;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        font-size: 1.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 0 10px var(--accent);
        z-index: 1003;
    }

    .menu-toggle-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 10px; /* space below arrow */
        bottom: 50px;
        left: 20px;
        position: fixed;
        z-index: 1004;
        }

    .menu-arrow {
        width: 60px; /* adjust size as needed */
        height: auto;
        margin-bottom: 5px;
        animation: bounce 1.2s infinite; /* optional attention effect */
        display: flex;
        }

        /* Optional bounce animation */
        @keyframes bounce {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-5px); }
        }



    /* Overlay background */
    .menu-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1001;
    }

    .menu-overlay.active {
        display: block;
    }

    /* Menu items centered on screen when active */
    .circle-menu.active {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        flex-direction: column;
        align-items: center;
    }

    .circle-menu.active .menu-item {
        position: absolute;
        opacity: 1;
        pointer-events: auto;
    }

    .circle-menu .menu-item {
        position: absolute;
        width: 90px;
        height: 90px;
        background-color: var(--titlebar);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text);
        font-size: 1.5rem;
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s ease, opacity 0.3s ease;
        flex-direction: column;
        text-align: center;
    }

    .menu-item span {
        font-size: 1.0rem;
        margin-top: 4px;
        color: var(--accent);
    }

    .circle-menu.active .menu-item:nth-child(2) {
        transform: rotate(0deg) translate(100px) rotate(-0deg);
    }

    .circle-menu.active .menu-item:nth-child(3) {
        transform: rotate(72deg) translate(100px) rotate(-72deg);
    }

    .circle-menu.active .menu-item:nth-child(4) {
        transform: rotate(144deg) translate(100px) rotate(-144deg);
    }

    .circle-menu.active .menu-item:nth-child(5) {
        transform: rotate(216deg) translate(100px) rotate(-216deg);
    }

    .circle-menu.active .menu-item:nth-child(1) {
        transform: rotate(288deg) translate(100px) rotate(-288deg);
    }



    .circle-menu.active .menu-toggle {
        z-index: 1004;
    }
}

/*-- Language --*/

.language-switch {
    position: absolute;
    top: 5px;
    right: 50px;
    z-index: 999;
}

.language-switch button {
    background: none;
    color: var(--text);
    border: 1px solid var(--accent);
    padding: 1px 10px;
    margin: 0 3px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}

.language-switch button:hover {
    background-color: var(--accent);
    color: #fff;
}

/*-- Bye Screen --*/

.goodbye-screen {
  position: fixed;
  inset: 0;
  background-color: #000;
  color: var(--accent);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: 'DejaVu Sans Mono', monospace;
  z-index: 2000;
  font-size: 2rem;
  animation: fadeOut 2s ease-in-out forwards;
}

.goodbye-screen.show {
  display: flex;
}

@keyframes fadeIn {
  100% { opacity: 1; }
  0% { opacity: 0; }
}

/*-- Typing Slogan--*/

.typing-container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100px;
  padding: 20px;
}

.typing-text {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: bold;
  color: var(--accent);
  font-family: 'Courier New', monospace;
  border-right: 3px solid var(--accent);
  animation: blink-caret 0.75s step-end infinite;
}

.word-group {
  display: inline-block;
  white-space: nowrap;
  margin: 0 8px;
}

.spinning-letter {
  display: inline-block;
  transition: transform 0.3s ease-in-out;
}

.spinning-letter.spin {
  animation: spin 1s ease-in-out;
}

@keyframes spin {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--accent); }
}

@media (max-width: 768px) {
  .typing-text {
    border-right: none;
    animation: none;
    justify-content: center;
  }
}

/* Consent Banner */

.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #2d2d2d;
  color: var(--text);
  text-align: center;
  padding: 15px;
  font-family: 'DejaVu Sans Mono', monospace;
  font-size: 0.9rem;
  z-index: 9999;
  display: none;
  border-top: 1px solid var(--accent);
}

.cookie-banner button {
  margin-left: 15px;
  padding: 5px 12px;
  border: none;
  background-color: var(--accent);
  color: black;
  font-weight: bold;
  cursor: pointer;
}

/* Skill Container*/

.skills-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }

        .skill-category {
            background: var(--window-bg);
            border: 1px solid var(--titlebar);
            border-radius: 3px;
            padding: 20px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
        }

        .skill-list {
            list-style-type: none;
        }

        .skill-item {
            position: relative;
            padding: 8px 0 8px 25px;
            border-bottom: 1px dotted rgba(208, 208, 208, 0.2);
        }

        .skill-item:before {
            content: ">";
            color: var(--accent);
            position: absolute;
            left: 5px;
        }

        .skill-item:hover {
            color: white;
            background: rgba(74, 74, 74, 0.3);
            cursor: default;
        }

        @media (max-width: 768px) {
            .skills-container {
                grid-template-columns: 1fr;
            }
        }


/* ontact Form */

#contactForm {
  background-color: #3a3a3a;
  padding: 20px;
  border: 1px solid #555;
  border-radius: 6px;
  max-width: 600px;
  margin: 0 auto;
  font-family: 'DejaVu Sans Mono', monospace;
  color: var(--text);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  background-color: #2d2d2d;
  border: 1px solid #444;
  color: var(--text);
  border-radius: 4px;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  outline: none;
}

#contactForm button {
  background-color: var(--accent);
  color: white;
  padding: 10px 20px;
  border: none;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

#contactForm button:hover {
  background-color: #3fa005; /* a slightly brighter shade */
}
