/* Import Retro Font - VT323 supports Maltese characters */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

/* CSS Variables */
:root {
    --charcoal: #2a2a2a;
    --neon-green: #2CFF05;
    --white: #ffffff;
    --dark-green: #1a8f03;
    --shadow: #000000;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--charcoal);
    border: 2px solid var(--neon-green);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-green);
    border: 2px solid var(--charcoal);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-green);
}

/* Base Styles */
body {
    font-family: 'VT323', monospace;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 70%);
    background-color: var(--charcoal);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.pixel-text {
    font-family: 'VT323', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hidden {
    display: none;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--charcoal);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 100%;
    }
}

.gameboy-frame {
    text-align: center;
    padding: 40px;
    border: 4px solid var(--neon-green);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    position: relative;
}

.gameboy-frame::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 4px solid var(--dark-green);
    border-radius: 24px;
    z-index: -1;
}

.logo-container {
    margin-bottom: 40px;
    animation: logoPulse 1.5s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.logo-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.loading-bar-container {
    width: 300px;
    height: 30px;
    border: 4px solid var(--neon-green);
    background: var(--charcoal);
    margin: 20px auto;
    padding: 4px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.loading-bar {
    height: 100%;
    background: var(--neon-green);
    width: 0%;
    animation: loading 3s ease-in-out infinite;
    image-rendering: pixelated;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 100%; }
}

.loading-text {
    color: var(--neon-green);
    font-size: 28px;
    margin-top: 20px;
}

.dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Navigation */
.navbar {
    background: var(--charcoal);
    border-bottom: 2px solid var(--neon-green);
    padding: 10px 0;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.nav-logo-img {
    height: 70px;
    image-rendering: pixelated;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 28px;
    padding: 10px 20px;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--neon-green);
    border: 3px solid var(--neon-green);
    background: rgba(44, 255, 5, 0.1);
    box-shadow: 0 0 10px rgba(44, 255, 5, 0.5);
}

/* Hamburger Menu Button */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 2px solid var(--neon-green);
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--neon-green);
    transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(44, 255, 5, 0.03) 0px,
            rgba(44, 255, 5, 0.03) 1px,
            transparent 1px,
            transparent 2px
        );
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.pixel-box {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(44, 255, 5, 0.4);
    padding: 60px;
    position: relative;
}

.pixel-box::before {
    display: none;
}

.pixel-box::after {
    display: none;
}

.hero-title {
    font-size: 80px;
    color: var(--neon-green);
    margin-bottom: 30px;
    line-height: 0.9;
    text-shadow: 0 0 8px var(--neon-green);
    animation: zoomPulse 2s ease-in-out infinite;
}

@keyframes zoomPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.hero-subtitle {
    font-size: 24px;
    color: #bbbbbb;
    margin-bottom: 50px;
    line-height: 1.6;
}

.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.pixel-button {
    display: inline-block;
    padding: 20px 40px;
    background: var(--neon-green);
    color: var(--charcoal);
    text-decoration: none;
    font-family: 'VT323', monospace;
    font-size: 42px;
    border: 3px solid var(--neon-green);
    box-shadow: 0 0 10px rgba(44, 255, 5, 0.5);
    transition: all 0.2s ease;
    position: relative;
}

.pixel-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(44, 255, 5, 0.7);
}

.pixel-button:active {
    transform: translateY(0);
}

.pixel-button.secondary {
    background: transparent;
    color: var(--neon-green);
    border: 3px solid var(--neon-green);
    box-shadow: none;
}

.pixel-button.secondary:hover {
    background: rgba(44, 255, 5, 0.1);
    box-shadow: none;
}

.pixel-button.full-width {
    width: 100%;
}

.pixel-button.card-button {
    font-size: 20px;
    padding: 12px 20px;
    width: 100%;
    text-align: center;
    margin-top: 15px;
    background: transparent;
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    box-shadow: none;
}

.pixel-button.card-button:hover {
    background: rgba(44, 255, 5, 0.1);
}

.pixel-button.about-button {
    font-size: 28px;
    padding: 15px 30px;
    margin-top: 30px;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--charcoal) 0%, #1a1a1a 100%);
}

.section-title {
    font-size: 52px;
    color: var(--neon-green);
    text-align: center;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(44, 255, 5, 0.3);
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-green);
    background: rgba(0, 0, 0, 0.6);
}

.card-header {
    text-align: center;
    margin-bottom: 20px;
}

.pixel-icon {
    font-size: 48px;
    filter: grayscale(100%) brightness(0) invert(1);
    display: inline-block;
}

.card-title {
    font-size: 28px;
    color: var(--neon-green);
    margin-bottom: 15px;
    text-align: center;
}

.card-text {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--white);
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 18px;
    color: var(--neon-green);
}

.stat {
    padding: 5px 10px;
    background: rgba(44, 255, 5, 0.1);
    border: 2px solid var(--neon-green);
}

/* About Section */
.about-section {
    padding: 100px 0;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-description {
    font-size: 32px;
    line-height: 2;
    margin-bottom: 30px;
    color: var(--white);
}

.stats-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(44, 255, 5, 0.1);
    border: 3px solid var(--neon-green);
}

.stat-number {
    display: block;
    font-size: 48px;
    color: var(--neon-green);
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--neon-green);
}

.stat-label {
    display: block;
    font-size: 18px;
    color: var(--white);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--charcoal) 0%, #1a1a1a 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-option {
    text-align: center;
    padding: 50px 40px;
}

.contact-option-title {
    font-size: 36px;
    color: var(--neon-green);
    margin-bottom: 20px;
}

.contact-option-text {
    font-size: 28px;
    color: var(--white);
    margin-bottom: 30px;
}

.pixel-button.contact-button {
    font-size: 28px;
    padding: 20px 35px;
}

.contact-box {
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-label {
    font-size: 20px;
    color: var(--neon-green);
}

.pixel-input {
    background: var(--charcoal);
    border: 3px solid var(--neon-green);
    color: var(--white);
    padding: 15px;
    font-family: 'VT323', monospace;
    font-size: 22px;
    outline: none;
    transition: all 0.3s ease;
}

.pixel-input:focus {
    border-color: var(--neon-green);
}

.pixel-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-box, .achievement-box {
    padding: 30px;
}

.info-title {
    font-size: 28px;
    color: var(--neon-green);
    margin-bottom: 20px;
}

.info-text, .achievement {
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--charcoal);
    border-top: 4px solid var(--neon-green);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-text {
    font-size: 18px;
    color: var(--neon-green);
}

/* Responsive Design */

/* Tablet / small laptop - shrink nav to prevent overflow */
@media (max-width: 1024px) {
    .nav-link {
        font-size: 20px;
        padding: 8px 12px;
    }

    .nav-menu {
        gap: 10px;
    }

    .nav-logo-img {
        height: 50px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-logo-img {
        height: 45px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 5px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--charcoal);
        border-bottom: 2px solid var(--neon-green);
        padding: 15px 20px;
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        font-size: 20px;
        padding: 8px 15px;
        display: block;
    }

    .pixel-box {
        padding: 30px 20px;
    }

    .hero-section {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .pixel-button {
        font-size: 24px;
        padding: 15px 25px;
        width: 100%;
    }

    .pixel-button.about-button {
        font-size: 20px;
        padding: 12px 20px;
    }

    .pixel-button.contact-button {
        font-size: 20px;
        padding: 15px 25px;
    }

    .section-title {
        font-size: 28px;
    }

    .about-description {
        font-size: 22px;
    }

    .services-section {
        padding: 60px 0;
    }

    .about-section {
        padding: 60px 0;
    }

    .contact-section {
        padding: 60px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-boxes {
        grid-template-columns: 1fr;
    }

    .contact-option {
        padding: 30px 20px;
    }

    .logo-image {
        max-width: 250px;
    }

    .loading-bar-container {
        width: 250px;
    }

    .tower {
        width: 15px;
    }

    .tower-segment {
        height: 20px;
    }

    .button-group {
        flex-direction: column;
    }

    .flag-button-hero {
        bottom: 20px;
        right: 20px;
    }
}

/* Pixel Flags */
.pixel-flag {
    display: inline-block;
    width: 55px;
    height: 38px;
    image-rendering: pixelated;
    border: 2px solid rgba(44, 255, 5, 0.4);
    transition: all 0.3s ease;
}

.pixel-flag:hover {
    transform: scale(1.1);
    border-color: var(--neon-green);
}

.pixel-flag-uk {
    background: url('uk-flag.png') center/contain no-repeat;
    border: none;
}

.pixel-flag-mt {
    background: url('mt-flag.png') center/contain no-repeat;
    border: none;
}

.flag-link {
    padding: 5px !important;
}

.flag-button-hero {
    position: absolute;
    bottom: 20px;
    right: 60px;
    z-index: 10;
}

.nav-link.flag-link:hover {
    border: 3px solid transparent;
    background: transparent;
}

/* Pixel Grid Animation */
.pixel-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(44, 255, 5, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(44, 255, 5, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(20px, 20px);
    }
}
