/* =========================================
   VEILCRYPT - FUTURISTIC CYBERSECURITY THEME
   Black + Electric Blue + Purple + Green + Red
========================================= */

:root {
    --background: #050508;
    --card-background: #0d0d18;
    --blue: #00c8ff;
    --blue1:#00E5FF;
    --purple: #a855f7;
    --green: #39ff14;
    --red: #ff1744;
    --white: #f5f5ff;
    --muted: #a5a5b5;
    --border: rgba(0, 200, 255, 0.25);
}


/* =========================================
   GLOBAL STYLING
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--background);
    color: var(--white);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
    border: none;
}


/* =========================================
   NAVIGATION BAR
========================================= */

.navbar {
    width: 100%;
    min-height: 75px;
    padding: 15px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(5, 5, 8, 0.96);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(15px);
}

.logo {
    color: var(--white);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 3px;
    text-shadow: 0 0 12px rgba(0, 200, 255, 0.3);
}

.logo span {
    color: var(--purple);
    text-shadow: 0 0 14px rgba(168, 85, 247, 0.7);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
    list-style: none;
}

.nav-links a {
    display: inline-block;
    padding: 8px 17px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 7px;
    transition: 0.3s ease;
}

.nav-links a:hover {
    color: var(--blue);
    background: rgba(0, 200, 255, 0.08);
    border-color: rgba(0, 200, 255, 0.4);
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.12);
}

.nav-button {
    display: inline-block;
    padding: 9px 17px;
    color: var(--blue);
    border: 1px solid var(--blue);
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    transition: 0.3s;
}

.nav-button:hover {
    color: var(--background);
    background: var(--blue);
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.4);
}


/* =========================================
   HERO SECTION
========================================= */

.hero {
    min-height: 420px;
    padding: 90px 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(
            ellipse at 15% 25%,
            rgba(0, 200, 255, 0.13),
            transparent 45%
        ),
        radial-gradient(
            ellipse at 85% 75%,
            rgba(168, 85, 247, 0.15),
            transparent 45%
        );
}

.hero-tag {
    margin-bottom: 18px;
    color: var(--blue1);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 4px;
    text-shadow: 0 0 12px rgba(57, 255, 20, 0.4);
}

.hero h1 {
    max-width: 950px;
    color: var(--blue);
    font-size: clamp(38px, 6vw, 65px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 200, 255, 0.2);
}

.hero h1 span {
    color: var(--purple);
    text-shadow: 0 0 18px rgba(168, 85, 247, 0.35);
}

.hero-description {
    max-width: 750px;
    color: var(--muted);
    font-size: 17px;
    margin-bottom: 28px;
}

.hero h2 {
    color: var(--white);
    font-size: 28px;
    margin-bottom: 12px;
}


/* =========================================
   HOMEPAGE EXPLORE BUTTON
========================================= */

.main-button {
    display: inline-block;
    padding: 14px 32px;
    color: var(--background);
    background: linear-gradient(
        100deg,
        var(--blue),
        var(--purple)
    );
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.7px;
    box-shadow: 0 0 18px rgba(0, 200, 255, 0.2);
    transition: 0.3s ease;
}

.main-button:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 20px rgba(0, 200, 255, 0.4),
        0 0 30px rgba(168, 85, 247, 0.25);
}


/* =========================================
   SECTION LAYOUT
========================================= */

section {
    padding: 65px 8%;
}

.section-title,
.features > h2 {
    color: var(--blue);
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
}

.section-description {
    max-width: 700px;
    margin: 0 auto 35px;
    color: var(--muted);
    text-align: center;
}


/* =========================================
   HOMEPAGE SECURITY MODULES
========================================= */

#features {
    display: block;
    text-align: center;
}

#features > h2 {
    color: var(--blue);
    font-size: 32px;
    margin-bottom: 10px;
}

.feature-container {
    width: 100%;
    max-width: 1100px;
    margin: 35px auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}


/* =========================================
   SECURITY CARDS
========================================= */

.feature-card {
    min-width: 0;
    padding: 35px 28px;
    background: linear-gradient(
        145deg,
        #121222,
        #090911
    );
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: 0.35s ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--blue),
        var(--purple)
    );
    opacity: 0.8;
}

.feature-card:hover {
    transform: translateY(-7px);
    border-color: var(--purple);
    box-shadow:
        0 0 18px rgba(0, 200, 255, 0.15),
        0 0 30px rgba(168, 85, 247, 0.14);
}

.feature-icon {
    font-size: 42px;
    margin-bottom: 15px;
}

.feature-card h2,
.feature-card h3 {
    color: var(--blue);
    font-size: 23px;
    font-weight: 800;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--muted);
    margin-bottom: 22px;
    line-height: 1.8;
}


/* =========================================
   OPERATION SELECTION
========================================= */

#operationSelection {
    display: block;
    text-align: center;
}

#operationSelection > h2 {
    color: var(--blue);
    font-size: 32px;
    margin-bottom: 10px;
}

#operationSelection .feature-container {
    max-width: 1000px;
}


/* =========================================
   ENCRYPTION AND DECRYPTION PANELS
========================================= */

#encryptSection,
#decryptSection {
    display: block;
    text-align: center;
}

#encryptSection > h2,
#decryptSection > h2 {
    color: var(--purple);
    font-size: 30px;
    margin-bottom: 30px;
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

#encryptSection .feature-container,
#decryptSection .feature-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto 25px;
}

#encryptSection .feature-card,
#decryptSection .feature-card {
    width: 100%;
    max-width: 720px;
    padding: 38px;
    text-align: left;
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.08);
}

#encryptSection .feature-card h3,
#decryptSection .feature-card h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 28px;
}

#encryptSection .feature-card button,
#decryptSection .feature-card button {
    margin: 12px 8px 18px 0;
}


/* =========================================
   FORM LABELS
========================================= */

label {
    display: block;
    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.4px;
    margin: 20px 0 9px;
    text-shadow: 0 0 8px rgba(0, 200, 255, 0.15);
}


/* =========================================
   INPUT FIELDS AND TEXTAREAS
========================================= */

input[type="text"],
input[type="password"],
input[type="file"],
textarea {
    width: 100%;
    padding: 14px 16px;
    color: var(--white);
    background: #080812;
    border: 1px solid rgba(0, 200, 255, 0.35);
    border-radius: 9px;
    outline: none;
    transition: 0.3s ease;
}

textarea {
    min-height: 125px;
    resize: vertical;
    line-height: 1.6;
}

input::placeholder,
textarea::placeholder {
    color: #77778d;
    font-size: 13px;
}

input:focus,
textarea:focus {
    border-color: var(--purple);
    box-shadow:
        0 0 0 2px rgba(168, 85, 247, 0.1),
        0 0 15px rgba(168, 85, 247, 0.2);
    background: #0c0c19;
}

input[type="file"] {
    cursor: pointer;
    border-style: dashed;
}

input[type="file"]::file-selector-button {
    padding: 9px 14px;
    margin-right: 12px;
    color: var(--white);
    background: #19172c;
    border: 1px solid var(--purple);
    border-radius: 7px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

input[type="file"]::file-selector-button:hover {
    color: var(--background);
    background: var(--purple);
}


/* =========================================
   BUTTONS
========================================= */

.feature-card button,
.primary-btn,
.btn {
    display: inline-block;
    padding: 13px 23px;
    color: var(--background);
    background: linear-gradient(
        100deg,
        var(--blue),
        var(--purple)
    );
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.4px;
    transition: 0.3s ease;
}

.feature-card button:hover,
.primary-btn:hover,
.btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 15px rgba(0, 200, 255, 0.35),
        0 0 20px rgba(168, 85, 247, 0.2);
}

.secondary-button,
.secondary-btn {
    display: inline-block;
    padding: 11px 20px;
    color: var(--blue);
    background: rgba(0, 200, 255, 0.06);
    border: 1px solid var(--blue);
    border-radius: 8px;
    font-weight: 700;
    transition: 0.3s ease;
}

.secondary-button:hover,
.secondary-btn:hover {
    color: var(--background);
    background: var(--blue);
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.3);
}

.primary-btn {
    margin: 20px 8px 15px 0;
}

.secondary-btn {
    margin: 10px 8px 15px 0;
}

button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* =========================================
   BACK TO OPERATIONS BUTTON
========================================= */

.back-button {
    display: inline-block;
    margin: 15px auto 0;
    padding: 11px 22px;
    color: var(--blue);
    background: transparent;
    border: 1px solid var(--blue);
    border-radius: 8px;
    font-weight: 700;
    transition: 0.3s ease;
}

.back-button:hover {
    color: var(--background);
    background: var(--blue);
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.35);
}


/* =========================================
   STEGANOGRAPHY OPERATION CARDS
========================================= */

#stegoSelection {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}

#stegoSelection .feature-card {
    min-width: 0;
}

#stegoSelection .feature-card h2 {
    color: var(--purple);
}


/* =========================================
   STEGANOGRAPHY HIDE AND EXTRACT PANELS
========================================= */

.container {
    width: 90%;
    max-width: 850px;
    margin: 45px auto;
    padding: 35px;
    background: linear-gradient(
        145deg,
        #11111f,
        #090911
    );
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 16px;
    box-shadow:
        0 0 25px rgba(0, 200, 255, 0.07),
        0 0 35px rgba(168, 85, 247, 0.05);
}

.container .card {
    padding: 10px;
}

.container h2 {
    color: var(--purple);
    font-size: 25px;
    margin-bottom: 18px;
    text-align: center;
}

.container .section-description {
    margin-bottom: 28px;
}

.container label {
    color: var(--blue);
}

.container textarea,
.container input {
    margin-bottom: 8px;
}

.container .primary-btn,
.container .secondary-btn {
    margin-top: 18px;
    margin-right: 10px;
}

.container .back-button,
.container > .secondary-btn {
    margin-bottom: 20px;
}


/* =========================================
   IMAGE PREVIEW
========================================= */

.preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-preview {
    display: none;
    width: 100%;
    max-width: 350px;
    max-height: 280px;
    object-fit: contain;
    margin: 20px auto;
    padding: 8px;
    background: #080810;
    border: 1px solid var(--purple);
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
}


/* =========================================
   OUTPUT AREAS
========================================= */

.output-box {
    margin-top: 25px;
}

.output-box label {
    color: var(--green);
}

.output-box textarea {
    border-color: rgba(57, 255, 20, 0.4);
}


/* =========================================
   DECRYPTED / RECOVERED OUTPUT
========================================= */

#decryptedOutput,
#recoveredMessage {
    border-color: rgba(57, 255, 20, 0.45);
    background: rgba(57, 255, 20, 0.025);
}

#encryptedOutput {
    border-color: rgba(168, 85, 247, 0.45);
    background: rgba(168, 85, 247, 0.025);
}


/* =========================================
   STATUS MESSAGES
========================================= */

.status-message {
    display: none;
    width: 90%;
    max-width: 850px;
    margin: 20px auto;
    padding: 14px 18px;
    border-radius: 9px;
    text-align: center;
    font-weight: 700;
}

.status-message.success {
    display: block;
    color: var(--green);
    background: rgba(57, 255, 20, 0.08);
    border: 1px solid var(--green);
    box-shadow: 0 0 14px rgba(57, 255, 20, 0.12);
}

.status-message.error {
    display: block;
    color: var(--red);
    background: rgba(255, 23, 68, 0.08);
    border: 1px solid var(--red);
    box-shadow: 0 0 14px rgba(255, 23, 68, 0.12);
}

.status-message.info {
    display: block;
    color: var(--blue);
    background: rgba(0, 200, 255, 0.08);
    border: 1px solid var(--blue);
    box-shadow: 0 0 14px rgba(0, 200, 255, 0.1);
}


/* =========================================
   ABOUT SECTION
========================================= */

.about {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.about h2 {
    color: var(--purple);
    font-size: 30px;
    margin-bottom: 18px;
}

.about p {
    color: var(--muted);
    margin-bottom: 15px;
}

.about .tagline {
    color: var(--blue);
    font-weight: 800;
    letter-spacing: 1px;
    margin-top: 20px;
    text-shadow: 0 0 12px rgba(0, 200, 255, 0.3);
}


/* =========================================
   FOOTER
========================================= */

footer {
    padding: 25px 8%;
    text-align: center;
    color: var(--muted);
    background: #08080e;
    border-top: 1px solid var(--border);
}

footer span {
    color: var(--blue);
}


/* =========================================
   HIDDEN ELEMENTS
========================================= */

.hidden {
    display: none !important;
}


/* =========================================
   RESPONSIVE DESIGN
========================================= */

@media (max-width: 768px) {

    .navbar {
        padding: 15px 5%;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }

    .nav-links {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        min-height: 350px;
        padding: 65px 6%;
    }

    .hero h1 {
        font-size: clamp(34px, 8vw, 48px);
    }

    section {
        padding: 45px 5%;
    }

    .feature-container,
    #stegoSelection {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    #encryptSection .feature-card,
    #decryptSection .feature-card {
        padding: 25px;
    }

    .container {
        width: 94%;
        padding: 23px;
    }

    .features > h2,
    #features > h2,
    #operationSelection > h2 {
        font-size: 27px;
    }

    .feature-card {
        padding: 28px 20px;
    }

    .nav-button {
        margin: 0 auto;
    }
}


@media (max-width: 420px) {

    .logo {
        font-size: 22px;
    }

    .nav-links {
        gap: 5px;
    }

    .nav-links a {
        padding: 7px 10px;
        font-size: 12px;
    }

    .hero-tag {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .hero-description {
        font-size: 14px;
    }

    .feature-card h2,
    .feature-card h3 {
        font-size: 20px;
    }

    .container {
        padding: 17px;
    }

    .container .card {
        padding: 3px;
    }

    .feature-card button,
    .primary-btn,
    .secondary-btn,
    .secondary-button {
        max-width: 100%;
    }
}