/* responsiveness*/

/* =========================
   MOBILE RESPONSIVE
   ========================= */

@media (max-width: 768px) {

    /* HEADER */
    header {
        font-size: 1.5rem;
        padding: 40px 15px;
        letter-spacing: 2px;
        text-align: center;
    }

    /* NAVBAR → STACKED COMMANDS */
    nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px 10px;
    }

    nav a {
        width: 100%;
        max-width: 280px;
        text-align: center;
        font-size: 1.1rem;
        padding: 12px 20px;
    }

    /* SECTION PANELS */
    section {
        padding: 25px 20px;
        margin-bottom: 40px;
    }

    h2 {
        font-size: 1.3rem;
    }

    p {
        font-size: 0.95rem;
    }

    /* FORM */
    .mail-form-group input,
    .mail-form-group textarea {
        font-size: 0.95rem;
        padding: 10px;
    }

    .submit-button {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
    }

    /* SOCIAL ICONS */
    .social-icons-container {
        gap: 30px;
    }

    .social-icon svg {
        width: 32px;
        height: 32px;
    }

    /* TOASTS */
    #toast-container {
        right: 10px;
        left: 10px;
        top: 10px;
    }

    .toast {
        min-width: unset;
        width: 100%;
        font-size: 0.9rem;
    }
}

/* =========================
   EXTRA SMALL DEVICES
   ========================= */

@media (max-width: 420px) {

    header {
        font-size: 1.3rem;
    }

    nav a {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    h2 {
        font-size: 1.2rem;
    }

    p {
        font-size: 0.9rem;
    }
}



/* =========================
   GLOBAL RESET & VARIABLES
   ========================= */

:root {
    --neon-green: #00ff00;
    --dark-bg: #000000;
    --panel-bg: rgba(0, 255, 0, 0.03);
    --glow: 0 0 10px rgba(0, 255, 0, 0.6);
}

* {
    box-sizing: border-box;
}

/* =========================
   BODY + SCANLINES
   ========================= */

body {
    background: var(--dark-bg);
    color: white;
    font-family: "Share Tech Mono", monospace;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

/* Scanline overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.03),
        rgba(255, 255, 255, 0.03) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 999;
}

/* =========================
   HEADER
   ========================= */

header {
    text-align: center;
    padding: 60px 20px;
    font-size: 2rem;
    letter-spacing: 2px;
    text-shadow: var(--glow);
    animation: flicker 4s infinite;
}

/* Flicker animation */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    95% { opacity: 0.8; }
    96% { opacity: 0.3; }
    97% { opacity: 1; }
}

/* =========================
   NAVBAR (HUD STYLE)
   ========================= */

/* =========================
   NAVBAR – SYSTEM HUD STYLE
   ========================= */

nav {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 20px 0;
    margin-bottom: 50px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(0, 255, 0, 0.05),
        transparent
    );
    border-top: 1px solid #00ff00;
    border-bottom: 1px solid #00ff00;
}

/* Command buttons */
nav a {
    position: relative;
    padding: 10px 25px;
    color: #00ff00;
    text-decoration: none;
    font-size: 1.2rem;
    letter-spacing: 2px;
    border: 1px solid #00ff00;
    background: rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    box-shadow: inset 0 0 5px rgba(0, 255, 0, 0.4);
}

/* Corner cuts */
nav a::before,
nav a::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid #00ff00;
}

nav a::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

nav a::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

/* Hover */
nav a:hover {
    color: black;
    background: #00ff00;
    box-shadow: 0 0 15px #00ff00;
    transform: translateY(-2px);
}

/* Active / selected section */
nav a.active {
    background: #00ff00;
    color: black;
    box-shadow: 0 0 20px #00ff00;
}

/* =========================
   SECTIONS (TERMINAL PANELS)
   ========================= */

section {
    padding: 40px 25px;
    max-width: 800px;
    margin: 0 auto 60px auto;
    display: none;
    background: var(--panel-bg);
    border: 1px solid var(--neon-green);
    box-shadow: var(--glow);
    position: relative;
}

/* Corner brackets */
section::before,
section::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2px solid var(--neon-green);
}

section::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

section::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

h2 {
    color: var(--neon-green);
    letter-spacing: 1px;
    text-shadow: var(--glow);
}

/* =========================
   TEXT
   ========================= */

p {
    line-height: 1.6;
    opacity: 0.9;
}

/* =========================
   FORM (CYBER INPUTS)
   ========================= */

.mail-form-group {
    margin-bottom: 20px;
}

.mail-form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--neon-green);
}

.mail-form-group input,
.mail-form-group textarea {
    width: 100%;
    padding: 10px;
    background: #050505;
    border: 1px solid var(--neon-green);
    color: white;
    font-family: "Share Tech Mono", monospace;
    font-size: 1rem;
    box-shadow: inset 0 0 5px rgba(0, 255, 0, 0.3);
}

.mail-form-group input:focus,
.mail-form-group textarea:focus {
    outline: none;
    box-shadow: var(--glow);
}

/* =========================
   BUTTON
   ========================= */

.submit-button {
    background: transparent;
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    padding: 12px 25px;
    font-family: "Share Tech Mono", monospace;
    font-size: 1rem;
    cursor: pointer;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--neon-green);
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: -1;
}

.submit-button:hover {
    color: black;
}

.submit-button:hover::before {
    transform: translateX(0);
}

/* =========================
   SOCIAL ICONS
   ========================= */

#social-links {
    text-align: center;
    margin-bottom: 40px;
}

.social-icons-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 15px;
}

.social-icon {
    color: var(--neon-green);
    transition: transform 0.3s, filter 0.3s;
}

.social-icon svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
}

.social-icon:hover {
    transform: scale(1.3) rotate(-2deg);
    filter: drop-shadow(0 0 15px var(--neon-green));
}

/* =========================
   TOAST NOTIFICATIONS
   ========================= */

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    min-width: 250px;
    margin-bottom: 10px;
    padding: 15px 20px;
    background: black;
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    box-shadow: var(--glow);
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}


header {
    position: relative;
    text-shadow: 0 0 10px #00ff00;
    letter-spacing: 3px;
}

/* Blinking cursor */
header::after {
    content: "_";
    margin-left: 5px;
    animation: blink 1s infinite;
}

header.cursor-off::after {
    animation: none;
    opacity: 0;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

