/* Reset & Fonts */
body {
    font-family: 'Inter', Arial, sans-serif;
    margin:0; padding:0;
    background:#f9f9fb;
    color:#333;
}

/* Header */
header {
    background:#000000;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content: space-between;
    padding:15px 30px;
    position: sticky;
    top:0;
    z-index: 1000;
}

/* Nav Menu */
.nav-menu {
    list-style:none;
    display:flex;
    gap:25px;
    margin:0;
    padding:0;
}

.nav-menu li a {
    color:#fff;
    text-decoration:none;
    font-weight:600;
    transition: color 0.2s;
}

.nav-menu li a:hover {
    color:#FF5555;
}

/* Logo text */
.logo a {
    color: #fff;           /* white text */
    font-size: 1.5em;      /* bigger than normal text */
    font-weight: 700;       /* bold */
    text-decoration: none;  /* remove underline */
}

.logo a:hover {
    color:#FF5555;         /* subtle hover effect */
}

/* Hamburger */
.nav-toggle-label {
    display:none;
    font-size:2em;
    cursor:pointer;
}

/* Main / Sections */
main { max-width:900px; margin:40px auto; padding:0 20px; }
section { margin-bottom:60px; }
#hero { text-align:center; background:#FFFAF0; padding:60px 30px; border-radius:12px; box-shadow:0 5px 20px rgba(0,0,0,0.05);}
#hero h1 { font-size:2.5em; margin-bottom:15px; color:#0D1117; }
#hero p { font-size:1.2em; margin-bottom:25px; color:#444; }

/* Buttons */
.cta-button { display:inline-block; background:#FF5555; color:#fff; padding:15px 35px; border-radius:8px; text-decoration:none; font-weight:600; font-size:1em; transition: background 0.2s;}
.cta-button:hover { background:#e04343;}
button { background:#0D1117; color:#fff; padding:12px 20px; font-size:1em; font-weight:600; border:none; border-radius:8px; cursor:pointer; transition: background 0.2s;}
button:hover { background:#222; }

/* Forms */
form { background:#fff; padding:25px; border-radius:12px; box-shadow:0 5px 15px rgba(0,0,0,0.05); display:flex; flex-direction:column; gap:15px;}
input[type="text"], input[type="email"], select { padding:12px 15px; font-size:1em; border:1px solid #ddd; border-radius:8px; outline:none; transition:border-color 0.2s;}
input[type="text"]:focus, input[type="email"]:focus, select:focus { border-color:#FF5555; }

/* Scan Results */
#results { white-space: pre-wrap; background:#f5f5f5; padding:15px; border-radius:8px; min-height:120px; margin-top:10px; font-family:monospace; color:#222; }

/* Footer */
footer { text-align:center; padding:25px 0; font-size:0.9em; color:#777; border-top:1px solid #ddd; }

/* ===== Responsive ===== */
@media (max-width:768px) {
    .nav-menu { 
        flex-direction:column; 
        display:none; 
        background:#0D1117; 
        position:absolute; 
        top:70px; right:0; width:200px; padding:20px; border-radius:8px; 
    }
    .nav-menu li { margin-bottom:15px; }
    #nav-toggle:checked + .nav-toggle-label + .nav-menu { display:flex; }
    .nav-toggle-label { display:block; color:#fff; }
}

#demoModal .modal-content {
    position: relative;
    animation: shake 0.3s;
    animation-iteration-count: 1;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    25% { transform: translate(-1px, -2px) rotate(-1deg); }
    50% { transform: translate(-3px, 0px) rotate(1deg); }
    75% { transform: translate(3px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -1px) rotate(1deg); }
}

.issue-alert {
    background: linear-gradient(90deg, #ff4d4d, #ff0000);
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    margin: 8px 0;
    font-weight: 700;
    border: 2px solid #990000;
    box-shadow: 0 0 20px rgba(255,0,0,0.6);
    animation: pulseAlert 1.5s infinite;
}

@keyframes pulseAlert {
    0% { box-shadow: 0 0 10px rgba(255,0,0,0.4); }
    50% { box-shadow: 0 0 25px rgba(255,0,0,0.8); }
    100% { box-shadow: 0 0 10px rgba(255,0,0,0.4); }
}

.demo-button {
    display:inline-block;
    background:#990000;
    color:#fff;
    padding:10px 20px;
    border-radius:6px;
    font-size:1em;
    margin-top:5px;
    cursor:pointer;
    font-weight:700;
    text-transform:uppercase;
    box-shadow:0 0 10px rgba(255,0,0,0.7);
    transition: all 0.2s;
}

.demo-button:hover {
    background:#ff0000;
    transform: scale(1.05);
    box-shadow:0 0 20px rgba(255,0,0,1);
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 1.5em;
    cursor: pointer;
}

/* ===== Modal Polished Style ===== */
.modal {
    display: none; /* hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6); /* semi-transparent backdrop */
    transition: opacity 0.3s ease;
}

.modal-content {
    background-color: #1b1f26; /* darker than white for contrast */
    color: #fff;
    margin: 10% auto;
    padding: 25px 30px;
    border-radius: 12px;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(255,0,0,0.6);
    position: relative;
    animation: popIn 0.25s ease-out;
}

@keyframes popIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-content h3 {
    margin-top: 0;
    font-size: 1.3em;
    color: #ff4d4d;
}

.modal-content p {
    font-size: 1em;
    line-height: 1.4;
    color: #fff;
    margin-top: 10px;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 1.5em;
    cursor: pointer;
    color: #ff5555;
    transition: color 0.2s;
}

.close:hover {
    color: #ff0000;
}

/* Optional pulse effect like alerts */
.modal-content {
    border: 2px solid #990000;
    box-shadow: 0 0 25px rgba(255,0,0,0.7);
}

/* Logo container */
.logo {
    text-align: center;  /* center content horizontally */
    padding: 10px 0;
    position: sticky;    /* keeps it visible when scrolling */
    top: 0;
    background-color: transparent; /* <-- fixed here */
    z-index: 1000;       /* make sure it's on top */
}

/* Stop red blinking affecting header/logo */
.issue-alert, .demo-button {
    box-shadow: none !important;
    animation: none !important;
}

/* Logo link */
.logo-link {
    display: inline-flex;
    flex-direction: column; /* stack image above text */
    align-items: center;
    text-decoration: none;
    color: inherit;
}

/* Logo image */
.logo-link img {
    height: 120px;   /* bigger logo */
    width: auto;     /* maintain aspect ratio */
}

/* Logo text */
.logo-text {
    margin-top: 5px;
    font-size: 18px;   /* adjust text size */
    font-weight: bold;
    color: inherit;       /* adjust color */
}

/* Make sure it's responsive on mobile */
@media (max-width: 600px) {
    .logo-link img {
        height: 80px;   /* smaller on small screens */
    }
    .logo-text {
        font-size: 16px;
    }
}


/* Fix modal text color */
#demoModal .modal-content {
    color: #111; /* dark text */
    background-color: #fff; /* keep white background */
}

#demoModal .modal-content h2,
#demoModal .modal-content p {
    color: #111; /* ensure headings and paragraphs are dark */
}

#demoModal .modal-content {
    padding: 20px;
    font-size: 1rem; /* or 16px */
    line-height: 1.4;
}
/* Modal text colors */
#demoModal .modal-content {
    color: #222;          /* dark text for modal */
    font-size: 16px;      /* readable size on mobile */
    line-height: 1.5;     
}
#demoModal .modal-content h2 {
    color: #111;          /* slightly darker for title */
    font-size: 20px;
    margin-bottom: 10px;
}
#demoModal .modal-content p {
    color: #333;
}

