@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;800&family=Fira+Code:wght@400;700&display=swap');

:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #00ff00;
    --secondary-text: #ffffff;
    --font-main: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
    --header-bg: rgba(0, 0, 0, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

canvas#hacking-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 1;
    transition: transform 3s cubic-bezier(0.4, 0, 0.2, 1), opacity 3s ease;
}

canvas#hacking-bg.warp {
    transform: scale(4);
    opacity: 0;
}

#bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Increased opacity for better contrast */
    z-index: -1;
    /* Above canvas (-1), but behind content (default auto/0) */
    pointer-events: none;
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    /* Show the global background particles */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.5s;
}

#splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

#success-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Transparent to show background */
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.8s ease;
}

.splash-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#success-text,
#splash-text {
    position: relative;
    font-family: var(--font-code);
    font-size: 2.5rem;
    color: var(--text-color);
    letter-spacing: -1px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1),
        opacity 0.8s ease-out,
        filter 0.8s ease-out;
}

#splash-text.zoom-out {
    transform: scale(2.5);
    opacity: 0;
    filter: blur(10px);
}

/* Typing Cursor */
.cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: var(--accent-color);
    margin-left: 8px;
    vertical-align: middle;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: none;
    /* Hidden by default */
}

body.content-ready header {
    display: flex;
    animation: fadeIn 1.5s ease-in-out forwards;
}



#header-logo {
    font-family: var(--font-code);
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 400;
    letter-spacing: 1px;
}

/* Main Content */
main {
    padding-top: 10vh;
    display: none;
    /* Hidden by default */
}

body.content-ready main {
    display: block;
    animation: fadeIn 1.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

section {
    min-height: 100vh;
    padding: 0 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.45rem;
    color: #ffffff;
    margin-bottom: 4.5rem;
    font-weight: 700;
    /* Modern bold */
    text-align: center;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.3);
    /* Softer luminous glow */
}

/* Mission Quote Section */
#quote-section {
    padding: 15rem 4rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.mission-quote {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 6rem;
    letter-spacing: -1px;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.mission-quote .highlight {
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
    white-space: nowrap;
}

.point-text .highlight {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    font-weight: 700;
}

.mission-points {
    display: flex;
    justify-content: center;
    gap: 6rem;
}

.mission-point {
    flex: 1;
    max-width: 320px;
}

.point-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    line-height: 1.5;
    position: relative;
}

.point-text::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 1px;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

@media (max-width: 768px) {
    .mission-quote {
        font-size: 2.5rem;
    }

    .mission-points {
        flex-direction: column;
        gap: 4rem;
        align-items: center;
    }

    #quote-section {
        padding: 8rem 2rem;
    }
}

/* Video Section */
.video-container {
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}

.video-placeholder {
    color: var(--secondary-text);
    font-size: 0.7rem;
    letter-spacing: 2px;
}

/* CTA Button */
.cta-container {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 4rem;
    background: rgba(0, 255, 0, 0.08);
    /* More subtle background */
    border: 1.5px solid var(--accent-color);
    /* Sleeker border */
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 0.8rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    font-weight: 700;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.25);
    /* Subtle persistent glow */
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.4);
}

.cta-button:hover {
    background: rgba(0, 255, 0, 0.15);
    border-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 0 35px rgba(0, 255, 0, 0.5);
    /* Elegant hover glow */
    transform: translateY(-3px) scale(1.03);
}

/* Work Grid */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem;
    max-width: 1300px;
    width: 100%;
}

@media (max-width: 1100px) {
    .work-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        /* Constrain width when stacked */
        margin: 0 auto;
    }
}

.work-item {
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(0, 255, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    color: inherit;
    position: relative;
    overflow: hidden;
    padding: 3.5rem;
    min-width: 300px;
}

.work-item:hover {
    background: rgba(0, 255, 0, 0.05);
    border-color: var(--accent-color);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 40px -10px rgba(0, 255, 0, 0.3);
}

.work-item span {
    font-size: 1.25rem;
    letter-spacing: 5px;
    color: #ffffff;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 700;
    /* Sophisticated bold */
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.35);
    /* Luminous glow */
}

.work-item:hover span {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    #header-logo {
        font-size: 0.9rem;
    }

    section {
        padding: 4rem 1.5rem;
    }

    h2 {
        font-size: 0.8rem;
        letter-spacing: 0.35rem;
        margin-bottom: 3rem;
    }

    .mission-quote {
        font-size: 1.8rem;
        /* Significantly smaller */
        margin-bottom: 4rem;
    }

    .mission-points {
        flex-direction: column;
        gap: 3rem;
        align-items: center;
    }

    .point-text {
        font-size: 0.95rem;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .work-item {
        padding: 2.5rem;
        min-width: 0;
        /* Allow shrinking */
        width: 100%;
    }

    .work-item span {
        font-size: 1rem;
        letter-spacing: 3px;
    }

    #quote-section {
        padding: 6rem 1.5rem;
    }

    #splash-text {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 1rem 3rem;
        font-size: 0.7rem;
    }
}

/* Form Styles */
#contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
}

.contact-container {
    width: 100%;
    max-width: 550px;
}

.glass-form {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 0, 0.2);
    padding: 3.5rem;
    border-radius: 12px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 0 50px rgba(0, 0, 0, 1);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-text);
    margin-bottom: 0.8rem;
}

.glass-form textarea,
.glass-form input,
.custom-select {
    width: 100%;
    background: #000000;
    border: 2px solid rgba(0, 255, 0, 0.6);
    /* Sleeker border */
    padding: 1.1rem;
    color: #ffffff;
    font-family: var(--font-code);
    font-size: 0.95rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.phone-input-group {
    display: flex;
    gap: 15px;
}

.custom-select {
    position: relative;
    width: auto;
    min-width: 120px;
    cursor: pointer;
    padding: 0;
    /* Padding handled by internal elements */
}

.selected-option {
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300ff41' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 14px;
    height: 100%;
}

.select-search {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    padding: 1.1rem !important;
    padding-right: 40px !important;
    font-size: 0.9rem !important;
    color: var(--accent-color) !important;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
}

.selected-option:focus-within .select-search,
.custom-select.active .select-search {
    opacity: 1;
}

.display-val {
    padding: 1.1rem;
    padding-right: 40px;
    font-size: 1.05rem;
    width: 100%;
    pointer-events: none;
    transition: opacity 0.2s ease;
    font-weight: 600;
}

.selected-option:focus-within .display-val,
.custom-select.active .display-val {
    opacity: 0.2;
}

.code-val {
    color: var(--accent-color);
}

.country-label {
    opacity: 0.5;
    font-size: 0.7rem;
}

.options-list {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 280px;
    background: #000000;
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 50px rgba(0, 255, 0, 0.2);
    overflow: hidden;
}

.select-search-list-old {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: none !important;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2) !important;
    padding: 0.8rem 1rem !important;
    font-size: 0.8rem !important;
    border-radius: 0 !important;
}

.options-container {
    max-height: 250px;
    overflow-y: auto;
}

/* Custom Scrollbar for coding feel */
.options-container::-webkit-scrollbar {
    width: 6px;
}

.options-container::-webkit-scrollbar-track {
    background: transparent;
}

.options-container::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 65, 0.2);
    border-radius: 10px;
}

.options-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.options-list.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.option {
    padding: 0.8rem 1.1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
}

.opt-code {
    color: var(--accent-color);
    min-width: 45px;
    display: inline-block;
}

.opt-name {
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-results {
    padding: 1.1rem;
    font-size: 0.75rem;
    color: var(--secondary-text);
    opacity: 0.5;
    text-align: center;
}

.option:last-child {
    border-bottom: none;
}

.option:hover {
    background: rgba(0, 255, 65, 0.1);
    color: var(--accent-color);
}

.glass-form textarea:focus,
.glass-form input:focus,
.custom-select.active {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 255, 0, 0.05);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.submit-button {
    width: 100%;
    padding: 1.1rem;
    background: var(--accent-color);
    color: #000;
    border: none;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    /* Modern bold */
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
    /* Elegant glow */
}

.submit-button:hover {
    background: #00ff00;
    box-shadow: 0 0 35px rgba(0, 255, 0, 0.7);
    transform: scale(1.02);
}

.back-link-container {
    margin-top: 3rem;
    text-align: center;
}

.back-link {
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--accent-color);
}

/* Secret Admin Overlay */
#admin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 5000;
    display: flex;
    flex-direction: column;
    padding: 4rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#admin-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 1rem;
}

.admin-header h1 {
    font-family: var(--font-code);
    color: var(--accent-color);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.admin-close {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: var(--font-code);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.admin-close:hover {
    background: var(--accent-color);
    color: #000;
}

.submissions-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-right: 1rem;
}

.submission-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 0, 0.2);
    padding: 2rem;
    border-radius: 8px;
    font-family: var(--font-code);
    transition: all 0.3s ease;
}

.submission-card:hover {
    border-color: var(--accent-color);
    background: rgba(0, 255, 0, 0.05);
}

.sub-meta {
    font-size: 0.75rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    opacity: 0.8;
}

.sub-content {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.sub-phone {
    display: block;
    margin-top: 1rem;
    color: var(--accent-color);
    font-weight: bold;
}

/* Custom Scrollbar for admin */
.submissions-list::-webkit-scrollbar {
    width: 6px;
}

.submissions-list::-webkit-scrollbar-track {
    background: transparent;
}

.submissions-list::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 65, 0.2);
    border-radius: 10px;
}