/* -----------------------------
   RESET & BASE STYLES
----------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    min-height: 100vh;
    background-color: #000;
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* -----------------------------
   CANVAS & HEADER ELEMENTS
----------------------------- */
canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

#headerContainer {
    position: relative;
    width: 100%;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#svgContainer {
    width: 100%;
    height: auto;
    position: relative;
}

#headerSvg {
    width: 100%;
    height: auto;
    display: block;
}

/* SVG Styles */
.header-line {
    stroke-width: 2;
    fill: none;
}

.gray-fill {
    fill: rgba(176, 176, 176, 0.3);
    opacity: 0;
}

.white-fill {
    fill: #b0b0b0;
    opacity: 0;
}

/* -----------------------------
   NAVIGATION & MENU STYLES
----------------------------- */
#greyLineContainer {
    position: absolute;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to right,
        rgba(50, 50, 50, 0.5) 0%,
        rgba(50, 50, 50, 0.5) 50%,
        rgba(50, 50, 50, 0.5) 100%
    );
    z-index: 3001;
    opacity: 0;  /* Adding this line */
    visibility: hidden;  /* Adding this line */
    transition: height 0.3s ease;
}

#menuContainer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3002;
}

#mainMenu {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.menu-item {
    color: #000000;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border: 2px solid;
    background-color: rgba(0, 224, 0, 1);
    opacity: 0;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.3s ease-in-out, transform 0.2s ease;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0, 255, 0, 0.0.3);
}

.menu-item:hover {
    background-color: rgba(0, 255, 0, 1); /* Slightly lighter green */
    transform: scale(1.05);
}

.menu-item.animated {
    opacity: 1;
    transform: translateY(0);
}

/* -----------------------------
   MAIN CONTENT STYLES
----------------------------- */
#mainContent {
    position: relative;
    z-index: 2;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 80px;
    flex: 1;
    margin-top: 90px;
    transition: all 0.3s ease-in-out;
}

#mainContent.visible {
    opacity: 1;
}

/* Welcome Box Styles */
.content-box {
    display: flex;
    background: rgba(0, 30, 0, 0.8);
    border-top: 2px solid #00ff00;
    border-bottom: 2px solid #00ff00;
    width: 90%;
    max-width: 1200px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    margin-bottom: 20px;
}


.content-box .grey-text p, 
.grey-text ul, 
.grey-text ul li {
  color: #C0C0C0;
}

.content-box .lgreen-text p, 
.lgreen-text ul, 
.lgreen-text ul li {
  color: #a8ff9f;
  line-height: 1.8;
}


.text-content {
    flex: 2;
    padding: 20px;
}

.image-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-content img {
    max-width: 100%;
    height: auto;
    border: 2px solid #00ff00;
    border-radius: 5px;
}

.content-box h1 {
    font-size: 24px;
    margin-bottom: 15px;
}

.content-box p {
    margin-bottom: 10px;
}

.content-box ul {
    list-style-type: none;
    padding-left: 20px;
    margin-bottom: 15px;
}

.content-box ul li::before {
    content: ">";
    margin-right: 10px;
    color: #00ff00;
}

/* Button Styles */
.cta-button {
    display: inline-block;
    background: #00cc00;
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #00ff00; 
    transform: scale(1.05);
    transition: background 0.2s ease, transform 0.2s ease;
}


/* -----------------------------
   SERVICES SECTION STYLES
----------------------------- */
.section-spacer {
    height: 60px;
    width: 100%;
}

.services-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    margin: 0 auto;
    max-width: 1200px;
    width: 90%;
}

.service-card {
    flex: 1;
    background: rgba(0, 30, 0, 0.8);
    border: 2px solid #00ff00;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.2);
}

.service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    color: #00ff00;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.service-card p {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex: 1;
}

.service-learn-more {
    color: #00ff00;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    width: fit-content;
    margin-top: auto;
    transition: all 0.3s ease;
}

.service-learn-more:hover {
    gap: 1rem;
}

.service-learn-more span {
    transition: transform 0.3s ease;
}

.service-learn-more:hover span {
    transform: translateX(5px);
}

/* -----------------------------
   CONTACT SECTION STYLES
----------------------------- */
.contact-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-container {
    background: rgba(0, 30, 0, 0.8);
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 2rem;
}

.contact-container h2 {
    color: #00ff00;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    text-align: center;
}

.contact-description {
    color: #b0b0b0;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.form-group {
    position: relative;
    flex: 1;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    left: 0.8rem;
    top: 0.8rem;
    color: #808080;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:valid ~ label {
    top: -1.5rem;
    left: 0;
    font-size: 0.8rem;
    color: #00ff00;
}

.submit-btn {
    background: #00ff00;
    color: #000;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    margin: 2rem auto 0;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: rgba(0, 255, 0, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.2);
}

/* -----------------------------
   FOOTER STYLES
----------------------------- */
#footer {
    position: relative;
    width: 100%;
    height: 70px; /* Force it to be 70px */
    color: #cccccc;
    text-align: center;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    line-height: 1.6;
    background:transparent;
}

#footerSvg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px; /* Explicit height to match footer */
    z-index: 2;
    opacity: 0;
}


.footer-fill {
    fill: rgba(50, 50, 50, 0.8);
}

/* Footer text */
#footerText {
    opacity: 0; /* Make sure text is visible */
}

/* -----------------------------
   HAMBURGER MENU STYLES
----------------------------- */
#hamburger {
    display: none;
    position: absolute;
    right: 20px;
    top: 20px;
    width: 30px;
    height: 20px;
    z-index: 3002;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: #00ff00;
    border-radius: 2px;
    transition: all 0.3s ease;
}

#hamburger.active .bar1 {
    transform: translateY(8.5px) rotate(45deg);
}

#hamburger.active .bar2 {
    opacity: 0;
}

#hamburger.active .bar3 {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* -----------------------------
   SCROLL OFFSET ADJUSTMENTS
----------------------------- */
#services, 
#contact {
    scroll-margin-top: 90px;
}

/* -----------------------------
   RESPONSIVE STYLES
----------------------------- */
@media (max-width: 768px) {
    #menuContainer {
        display: none;
    }
    
    #greyLineContainer {
        height: 60px;
        transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    #greyLineContainer.active {
        height: auto
    }

    #hamburger {
        display: flex;
    }
    
    #mobileMenu {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: center;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    #mobileMenu.active {
        display: flex;
    }
    

    #mobileMenu .menu-item {
        font-size: 1.1rem;
        padding: 15px 20px;
        margin: 0;
        width: 50%;
        text-align: center;
        color: #00ff00;
        background: none;
        border: none;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        position: relative;
    }

    #mobileMenu .menu-item:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 10%;
        right: 10%;
        height: 1px;
        background: linear-gradient(
            to right,
            rgba(0, 255, 0, 0),
            rgba(0, 255, 0, 0.5),
            rgba(0, 255, 0, 0)
        );
    }

    #mobileMenu .menu-item:hover {
        background: rgba(0, 255, 0, 0.1);
        transform: scale(1.05);
    }
    
    #mobileMenu.active .menu-item {
        opacity: 1;
        transform: translateY(0);
    }

    #mainContent {
        transition: margin-top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        margin-top: 90px;
    }

    #mainContent.menu-expanded {
        margin-top: 400px;
    }

    /* Content Responsive Styles */
    .services-grid {
        flex-direction: column;
        padding: 1rem;
        gap: 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .service-card {
        margin-bottom: 0;
    }

    .contact-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .contact-container h2 {
        font-size: 1.5rem;
    }

    .content-box {
        flex-direction: column;
        align-items: center;
        margin: 1rem;
        width: auto;
    }

    .text-content, 
    .image-content {
        width: 100%;
    }

    .image-content {
        order: -1;
        padding: 1rem;
    }

    .section-spacer {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .content-box {
        margin: 0.5rem;
    }
    
    .text-content, 
    .image-content {
        padding: 15px;
    }
    
    .content-box h1 {
        font-size: 18px;
    }
    
    .content-box p, 
    .content-box ul li {
        font-size: 14px;
    }
    
    .cta-button {
        padding: 8px 16px;
        font-size: 14px;
    }

    #footerSvg, 
    #footer {
        height: 70px;
    }

    #footer {
        font-size: 12px;
    }

    .contact-section {
        padding: 0 1rem;
    }

    .contact-container {
        padding: 1rem;
    }

    .form-group label {
        font-size: 14px;
    }

    .submit-btn {
        padding: 0.8rem 1.6rem;
        font-size: 0.9rem;
    }

    #mobileMenu .menu-item {
        font-size: 1rem;
        padding: 12px 16px;
    }

    .service-card {
        padding: 1rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }
}

/* Article styles */
/* Article styles */
/* Base article structure */
.content-box.article {
    display: block;
    padding: 2rem;
    margin: 0 auto 2rem;
    max-width: 900px;
}

/* Typography */
.content-box.article h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.content-box.article h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #00ff00;
    border-bottom: 2px solid #00ff00;
    padding-bottom: 10px;
}

.content-box.article h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: #00ff00;
}

.content-box.article h4 {
    font-size: 1.1rem;
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    color: #00ff00;
}

.content-box.article p {
    line-height: 1.6;
    margin-bottom: 1.2rem;
    color: #b0b0b0;
}

/* Lists */
.content-box.article ul {
    margin: 1rem 0 1.5rem 1.5rem;
    list-style-type: none;
}

.content-box.article ul li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
    color: #b0b0b0;
    position: relative;
}

.content-box.article ul li::before {
    content: ">";
    color: #00ff00;
    position: absolute;
    left: -1.2rem;
}

/* Code elements */
.content-box.article code {
    background: rgba(0, 255, 0, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #00ff00;
}

.content-box.article pre {
    background: rgba(0, 30, 0, 0.9);
    color: #b0ffb0;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    margin: 10px 0;
}

.content-box.article .code-comment {
    color: #88ff88;
    font-style: italic;
    margin-top: 8px;
    font-size: 0.9em;
}

/* Special content boxes */
.content-box.article .technique-card {
    background: rgba(0, 40, 0, 0.5);
    border: 1px solid #00ff00;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.content-box.article .warning-box {
    background: rgba(40, 0, 0, 0.5);
    border: 1px solid #ff0000;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.content-box.article .explanation {
    background: rgba(0, 50, 0, 0.3);
    padding: 15px;
    border-left: 4px solid #00ff00;
    margin: 15px 0;
}

/* Code comparison section */
.content-box.article .comparison-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.content-box.article .vulnerable-code {
    background: rgba(40, 0, 0, 0.3);
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ff0000;
}

.content-box.article .secure-code {
    background: rgba(0, 40, 0, 0.3);
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #00ff00;
}

/* Timeline section */
.content-box.article .timeline {
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 40, 0, 0.3);
    border-radius: 8px;
}

.content-box.article .timeline-item {
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 2px solid #00ff00;
}

/* Text styling */
.content-box.article strong {
    color: #00ff00;
}

.content-box.article a {
    color: #00ff00;
    text-decoration: none;
    border-bottom: 1px solid #00ff00;
    transition: all 0.3s ease;
}

.content-box.article a:hover {
    color: #00cc00;
    border-bottom-color: #00cc00;
}

/* Responsive styles */
@media (max-width: 768px) {
    .content-box.article {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .content-box.article h1 {
        font-size: 1.8rem;
    }
    
    .content-box.article h2 {
        font-size: 1.3rem;
    }
    
    .content-box.article h3 {
        font-size: 1.1rem;
    }

    .content-box.article .comparison-box {
        grid-template-columns: 1fr;
    }

    .content-box.article pre {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .content-box.article {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .content-box.article h1 {
        font-size: 1.5rem;
    }
    
    .content-box.article p,
    .content-box.article ul li {
        font-size: 0.9rem;
    }

    .content-box.article .timeline-item {
        padding-left: 15px;
    }

    .content-box.article pre {
        font-size: 12px;
    }

    .content-box.article .technique-card {
        padding: 15px;
    }
}

/* Add these to your article styles */

/* Unordered AND Ordered lists */
.content-box.article ul,
.content-box.article ol {
    margin: 1rem 0 1.5rem 1.5rem;
    list-style-type: none;
}

.content-box.article ul li,
.content-box.article ol li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
    color: #b0b0b0;
    position: relative;
}

/* Unordered list arrow marker */
.content-box.article ul li::before {
    content: ">";
    color: #00ff00;
    position: absolute;
    left: -1.2rem;
}

/* Ordered list number styling */
.content-box.article ol {
    counter-reset: item;
}

.content-box.article ol li {
    counter-increment: item;
}

.content-box.article ol li::before {
    content: counter(item) ".";
    color: #00ff00;
    position: absolute;
    left: -1.2rem;
}

/* additional CSS to make it look cool in mobile */

/* Enhance mobile article styles */
@media (max-width: 768px) {
    .content-box.article {
        padding: 1rem;
        margin: 1rem;
    }

    /* Improve technique cards on mobile */
    .content-box.article .technique-card {
        padding: 1rem;
        margin: 1rem 0;
    }

    /* Better text sizing for mobile */
    .content-box.article p,
    .content-box.article li,
    .content-box.article .code-comment {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* Improve code blocks on mobile */
    .content-box.article pre {
        padding: 0.8rem;
        font-size: 0.85rem;
        overflow-x: auto;
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    /* Better spacing for nested elements */
    .content-box.article .explanation {
        margin: 0.8rem 0;
        padding: 0.8rem;
    }

    /* Handle comparison boxes better */
    .content-box.article .comparison-box {
        margin: 0.8rem 0;
    }

    .content-box.article .vulnerable-code,
    .content-box.article .secure-code {
        padding: 0.8rem;
        margin: 0.5rem 0;
    }

    /* Timeline improvements */
    .content-box.article .timeline-item {
        padding: 0.8rem;
        margin: 0.8rem 0;
    }
}

@media (max-width: 480px) {
    .content-box.article {
        padding: 0.8rem;
        margin: 0.5rem;
    }

    .content-box.article h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .content-box.article h2 {
        font-size: 1.3rem;
    }

    .content-box.article h3 {
        font-size: 1.1rem;
    }

    .content-box.article pre {
        font-size: 0.8rem;
        padding: 0.6rem;
    }

    /* Nested content adjustments */
    .content-box.article .technique-card {
        padding: 0.8rem;
        margin: 0.8rem 0;
    }
}

/* main content About section stuff */

    ul {
        list-style-type: disc; /* Or 'circle', 'square', or 'none' */
        margin: 1rem 0; /* Adds spacing around the list */
        padding-left: 1.5rem; /* Indents the list */
    }
    ul li {
        font-weight: 500;
        font-size: 1.1rem; /* Slightly increases font size */
        color: #00ff00; /* Sets text color (example: green) */
        margin-bottom: 0.5rem; /* Adds spacing between items */
    }

/* Lab Login Page Specific Styles */
/* Login Page Styles */

/* General Login Page Styles */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #001f00, #000000);
    padding: 20px;
    font-family: 'Arial', sans-serif;
}

/* Login Box Styles */
.login-box {
    width: 100%;
    max-width: 360px;
    padding: 30px;
    background: rgba(0, 30, 0, 0.9);
    border: 1px solid rgba(0, 255, 0, 0.5);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    color: #00ff00;
}

.login-box h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.login-box p {
    font-size: 1rem;
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Form Styles */
.login-form-container {
    width: 100%;
}

.login-form-container .form-group {
    position: relative;
    margin-bottom: 1.2rem;
}

.login-form-container .form-group input {
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
    color: #00ff00;
    background: #000000;
    border: 1px solid #00ff00;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
}

.login-form-container .form-group input:focus {
    border-color: #00cc00;
}

.login-form-container .form-group label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: #808080;
    pointer-events: none;
    transition: all 0.3s ease;
}

.login-form-container .form-group input:focus ~ label,
.login-form-container .form-group input:not(:placeholder-shown) ~ label {
    top: -8px;
    left: 12px;
    font-size: 0.75rem;
    color: #00ff00;
    background: #001f00;
    padding: 0 4px;
}

/* Button Styles */
.submit-btn {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    font-weight: bold;
    color: #000;
    background: #00ff00;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.submit-btn:hover {
    background: #00cc00;
    color: #000;
}

/* Error Message Styles */
.error-message {
    display: none;
    color: #ff3333;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* footer email */
.emailLink {
    color: inherit; /* Match the text color */
    text-decoration: none; /* Remove underline */
}
.emailLink:hover {
    text-decoration: underline; /* Add underline on hover for accessibility */
}
