/* ==========================================================================
   GLOBAL BASE STYLES
   ========================================================================== */
body, html {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100% !important;
    background-color: #0f172a !important; /* Standardized to deep slate */
    font-family: 'Inter', sans-serif !important;
    color: #f8fafc !important;
}

.home-body {
    overflow-x: hidden !important;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Background Glow Effects */
.glow-bg {
    position: fixed;
    width: 80vw;
    height: 80vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, rgba(56,189,248,0.1) 0%, rgba(15,23,42,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}
.index-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56,189,248,0.15) 0%, rgba(15,23,42,0) 70%);
}
.glow-bg-success {
    background: radial-gradient(circle, rgba(74,222,128,0.15) 0%, rgba(15,23,42,0) 70%);
}

/* ==========================================================================
   UNIFIED NAVIGATION (GLASSMORPHISM)
   ========================================================================== */
.navbar-inverse {
    background-color: rgba(15, 23, 42, 0.90) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5) !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    z-index: 1000;
    margin-bottom: 0 !important;
}
.navbar-inverse .navbar-nav > li > a {
    color: #94a3b8 !important;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
    color: #fff !important;
}
.navbar-inverse .navbar-nav > li > a.active {
    color: #38bdf8 !important;
    font-weight: bold;
    border-bottom: 2px solid #38bdf8;
}

/* ==========================================================================
   PAGE HEADERS (Works, About, Contact)
   ========================================================================== */
.page-title {
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    letter-spacing: -1px !important;
    color: #ffffff !important;
    margin-top: 80px !important;
    margin-bottom: 15px !important;
}
.page-subtitle {
    color: #94a3b8 !important;
    font-size: 1.2rem !important;
    margin-bottom: 60px !important;
    line-height: 1.6;
}

/* ==========================================================================
   INDEX / HOME PAGE SPECIFICS
   ========================================================================== */
.hero-container {
    /* FIX: Changed from height: 100vh to min-height so content can expand without overlapping */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 20px 60px 20px;
    position: relative;
    z-index: 1;
}
.hero-title {
    font-size: 5.5rem !important; /* INCREASED SIZE */
    font-weight: 900 !important;
    letter-spacing: -1px !important;
    margin-bottom: 30px !important;
    margin-top: 0 !important;
    color: #ffffff !important;
    background: linear-gradient(to right, #ffffff, #94a3b8) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.btn-container {
    display: flex;
    gap: 25px; /* More breathing room */
    margin-bottom: 20px;
}
.btn-primary-custom {
    background-color: #2563eb !important;
    color: white !important;
    padding: 18px 40px !important; /* INCREASED BUTTON SIZE */
    border-radius: 8px !important;
    font-size: 1.25rem !important; /* INCREASED TEXT SIZE */
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: 1px solid #2563eb !important;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39) !important;
}
.btn-primary-custom:hover {
    background-color: #1d4ed8 !important;
    transform: translateY(-2px);
}
.btn-secondary-custom {
    background-color: transparent !important;
    color: #f8fafc !important;
    padding: 18px 40px !important; /* INCREASED BUTTON SIZE */
    border-radius: 8px !important;
    font-size: 1.25rem !important; /* INCREASED TEXT SIZE */
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: 1px solid #475569 !important;
}
.btn-secondary-custom:hover {
    background-color: #1e293b !important;
    border-color: #94a3b8 !important;
    transform: translateY(-2px);
}

.trust-bar {
    /* FIX: Replaced absolute positioning with relative margins. Now it will ALWAYS stay below buttons! */
    position: relative;
    margin-top: 60px;
    width: 100%;
    text-align: center;
    color: #475569;
    font-size: 1.1rem; /* INCREASED TEXT SIZE */
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;

    /* FIX: Forcing horizontal layout */
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;

    animation: fadeIn 2s ease-in 1s forwards;
    opacity: 0;
}
.trust-bar span {
    margin: 0;
    display: inline-block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   WORKS PAGE SPECIFICS
   ========================================================================== */
.card-container {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5) !important;
    padding: 30px !important;
    margin-top: -40px !important;
    position: relative;
    z-index: 2;
}
.card-container h4 { color: #38bdf8 !important; font-family: 'Roboto Mono', monospace; font-size: 1rem !important; margin-bottom: 10px !important; }
.card-container h3 { color: #f8fafc !important; font-size: 1.5rem !important; font-weight: 700 !important; margin-bottom: 15px !important; line-height: 1.3; }
.card-container p { color: #cbd5e1 !important; font-size: 1.05rem !important; line-height: 1.6 !important; margin-bottom: 25px !important; }
.btn-custom { background-color: transparent !important; color: #38bdf8 !important; border: 1px solid #38bdf8 !important; padding: 12px 24px !important; border-radius: 6px !important; font-size: 1.1rem !important; font-weight: 600 !important; text-decoration: none !important; transition: all 0.3s ease !important; display: inline-block; }
.btn-custom:hover { background-color: #38bdf8 !important; color: #0f172a !important; transform: translateY(-2px); }
.img-responsive { border-radius: 8px; border: 1px solid #334155; transition: transform 0.3s ease; position: relative; z-index: 1; width: 100%; }
.img-responsive:hover { transform: scale(1.02); box-shadow: 0 0 20px rgba(56, 189, 248, 0.2); }

/* ==========================================================================
   ABOUT PAGE SPECIFICS
   ========================================================================== */
.about-h3 { font-size: 2rem !important; font-weight: 700 !important; color: #f8fafc !important; margin-bottom: 20px !important; margin-top: 0 !important; }
.about-text { font-size: 1.15rem !important; line-height: 1.8 !important; color: #cbd5e1 !important; margin-bottom: 20px !important; }
.tech-box { background-color: #1e293b; border: 1px solid #334155; border-top: 3px solid #38bdf8; border-radius: 8px; padding: 25px 20px; height: 100%; box-shadow: 0 10px 20px rgba(0,0,0,0.3); margin-bottom: 20px; }
.tech-box h4 { color: #f8fafc !important; font-family: 'Roboto Mono', monospace; font-size: 1.15rem !important; margin-bottom: 20px !important; text-transform: uppercase; letter-spacing: 1px; }
.tech-box ul { list-style: none; padding: 0; margin: 0; }
.tech-box ul li { color: #94a3b8; font-size: 1.05rem; margin-bottom: 12px; padding-left: 20px; position: relative; }
.tech-box ul li::before { content: '>'; position: absolute; left: 0; color: #38bdf8; font-family: 'Roboto Mono', monospace; font-weight: bold; }

/* ==========================================================================
   CONTACT PAGE SPECIFICS
   ========================================================================== */
.terminal-box { background-color: #020617; border: 1px solid #1e293b; border-left: 4px solid #38bdf8; border-radius: 8px; padding: 30px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5); margin-bottom: 30px; font-size: 14px; line-height: 1.8; }
.payload-box { background-color: #1e293b; border: 1px solid #334155; border-radius: 8px; padding: 35px; box-shadow: 0 10px 25px rgba(0,0,0,0.3); }
.payload-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: bold; color: #64748b; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; display: block; }
.payload-input { width: 100%; background-color: #0f172a; border: 1px solid #334155; border-radius: 4px; padding: 14px 15px; color: #cbd5e1; font-size: 14px; margin-bottom: 25px; outline: none; transition: border-color 0.2s; }
.payload-input:focus { border-color: #38bdf8; }
.transmit-btn { width: 100%; background-color: #2563eb; color: white; font-weight: 700; padding: 16px; border-radius: 6px; transition: all 0.3s; border: none; font-size: 15px; }
.transmit-btn:hover { background-color: #1d4ed8; transform: translateY(-2px); }
.social-link { display: flex; align-items: center; color: #f8fafc !important; font-weight: 700; font-size: 14px; text-decoration: none !important; margin-bottom: 15px; transition: color 0.2s; }
.social-link:hover { color: #38bdf8 !important; }
.social-link span.arrow { color: #fff; font-size: 10px; margin-right: 10px; }

/* ==========================================================================
   RESUME PAGE SPECIFICS
   ========================================================================== */
.profile-card { background-color: #0f172a; border: 1px solid #1e293b; border-radius: 12px; padding: 30px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); margin-bottom: 25px; position: relative; overflow: hidden; }
.profile-title { font-size: 2.5rem; font-weight: 900; margin: 0 0 10px 0; }
.profile-subtitle { font-size: 1.2rem; color: #38bdf8; margin-bottom: 25px; }
.skill-badge { display: inline-block; padding: 6px 14px; background-color: #1e293b; color: #cbd5e1; border: 1px solid #334155; border-radius: 20px; font-size: 12px; font-weight: 600; margin: 4px 4px 0 0; }
.skill-badge.highlight { background-color: rgba(30, 58, 138, 0.3); color: #93c5fd; border-color: rgba(30, 64, 175, 0.5); }
.root-access-box { background-color: #000; border-top: 4px solid #ef4444; border-radius: 12px; padding: 25px; box-shadow: 0 20px 40px rgba(0,0,0,0.6); position: relative; overflow: hidden; margin-top: 30px; margin-bottom: 30px; }
.root-input { width: 100%; background-color: #0f172a; border: 1px solid #1e293b; color: #cbd5e1; padding: 12px; border-radius: 4px; margin-bottom: 10px; outline: none; font-size: 12px; }
.root-btn { width: 100%; background-color: #ef4444; color: white; border: none; padding: 12px; border-radius: 4px; font-weight: bold; font-size: 12px; text-transform: uppercase; }
.root-btn:hover { background-color: #dc2626; }
.chat-container { display: flex; flex-direction: column; height: 650px; background-color: #0f172a; border: 1px solid #1e293b; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); overflow: hidden; }
.chat-header { background-color: #151e2e; border-bottom: 1px solid #1e293b; padding: 15px 20px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: bold; }
.chat-history { flex-grow: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; }
.chat-input-area { background-color: #151e2e; border-top: 1px solid #1e293b; padding: 15px; position: relative; }
.chat-input { width: 100%; background-color: #0f172a; border: 1px solid #334155; color: #f8fafc; border-radius: 8px; padding: 14px 60px 14px 15px; outline: none; font-size: 14px; }
.chat-input:focus { border-color: #38bdf8; }
.chat-btn { position: absolute; right: 25px; top: 22px; background-color: #2563eb; color: white; border: none; padding: 8px 14px; border-radius: 6px; }
.msg-bubble { padding: 14px 18px; border-radius: 16px; font-size: 14px; max-width: 85%; margin-bottom: 15px; line-height: 1.6; }
.msg-ai { background-color: #1e293b; border: 1px solid #334155; border-top-left-radius: 2px; color: #f8fafc; align-self: flex-start; }
.msg-user { background-color: #2563eb; color: white; border-top-right-radius: 2px; margin-left: auto; align-self: flex-end; }
.chat-history::-webkit-scrollbar { width: 6px; }
.chat-history::-webkit-scrollbar-track { background: #0f172a; }
.chat-history::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }

/* ==========================================================================
   THANK YOU PAGE SPECIFICS
   ========================================================================== */
.success-container { min-height: 85vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 80px 20px 40px 20px; position: relative; z-index: 10; }
.status-code { font-family: 'Roboto Mono', monospace; color: #4ade80; font-size: 1.6rem; margin-bottom: 25px; letter-spacing: 2px; text-transform: uppercase; border: 1px solid #4ade80; padding: 10px 20px; border-radius: 6px; background-color: rgba(74, 222, 128, 0.1); animation: successPulse 2s infinite; }
@keyframes successPulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.success-title { font-size: 5.5rem !important; font-weight: 900 !important; letter-spacing: -1px !important; color: #ffffff !important; margin-bottom: 25px !important; margin-top: 0 !important; background: linear-gradient(to right, #ffffff, #94a3b8) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; line-height: 1.1 !important; }
.success-subtitle { color: #94a3b8 !important; font-size: 1.6rem !important; margin-bottom: 45px !important; max-width: 800px; line-height: 1.6; }
.terminal-output { font-family: 'Roboto Mono', monospace; color: #a3bea3; background-color: #050505; border: 1px solid #334155; border-left: 4px solid #4ade80; border-radius: 8px; padding: 30px; margin-bottom: 45px; text-align: left; width: 100%; max-width: 650px; font-size: 1.3rem; line-height: 1.7; box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
.btn-return { background-color: transparent !important; color: #f8fafc !important; padding: 18px 45px !important; border-radius: 8px !important; font-size: 1.4rem !important; font-weight: 600 !important; text-decoration: none !important; transition: all 0.3s ease !important; border: 1px solid #475569 !important; display: inline-block; }
.btn-return:hover { background-color: #1e293b !important; border-color: #38bdf8 !important; color: white !important; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2); }


/* ==========================================================================
PWNED PASSWORD CHECKER PAGE
========================================================================== */

.pwned-main-wrapper {
display: flex;
flex-direction: column;
justify-content: center;
flex-grow: 1;
padding-top: 140px;
padding-bottom: 80px;
position: relative;
z-index: 10;
}

.pwned-container {
max-width: 900px;
margin-left: auto;
margin-right: auto;
padding-left: 16px;
padding-right: 16px;
width: 100%;
}

.pwned-header {
text-align: center;
padding-top: 20px;
padding-bottom: 20px;
}

.pwned-badge {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 6px 16px;
border-radius: 9999px;
background-color: rgba(30, 58, 138, 0.5);
color: #38bdf8;
font-size: 14px;
font-weight: 500;
margin-bottom: 24px;
border: 1px solid rgba(56, 189, 248, 0.2);
font-family: 'JetBrains Mono', monospace;
}

.pwned-badge-icon {
width: 20px;
height: 20px;
}

.pwned-page-title {
font-size: 4rem !important;
font-weight: 800 !important;
color: #ffffff !important;
margin-top: 0 !important;
margin-bottom: 20px !important;
}

.pwned-title-highlight {
background: linear-gradient(to right, #38bdf8, #67e8f9);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.pwned-header-desc {
margin-top: 16px;
max-width: 700px;
margin-left: auto;
margin-right: auto;
font-size: 1.25rem;
color: #94a3b8;
line-height: 1.7;
}

.pwned-card {
background-color: #1e293b;
border-radius: 16px;
padding: 40px;
border: 1px solid #334155;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
margin-bottom: 48px;
}

.pwned-input-group {
position: relative;
margin-bottom: 24px;
}

.pwned-input {
width: 100%;
background-color: #0f172a;
border: 1px solid #475569;
border-radius: 12px;
padding: 20px 24px;
color: #ffffff;
font-size: 1.4rem;
font-family: 'JetBrains Mono', monospace;
outline: none;
transition: all 0.2s ease-in-out;
}

.pwned-input:focus {
border-color: #38bdf8;
box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.pwned-input::placeholder {
color: #64748b;
}

.pwned-eye-btn {
position: absolute;
right: 20px;
top: 50%;
transform: translateY(-50%);
color: #94a3b8;
background: transparent;
border: none;
padding: 8px;
cursor: pointer;
transition: color 0.2s ease;
}

.pwned-eye-btn:hover {
color: #ffffff;
}

.pwned-eye-icon {
width: 28px;
height: 28px;
}

.pwned-submit-btn {
width: 100%;
background-color: #2563eb;
color: #ffffff;
font-weight: 700;
font-size: 1.3rem;
padding: 20px;
border-radius: 12px;
border: 1px solid #2563eb;
box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
cursor: pointer;
transition: all 0.2s ease-in-out;
display: flex;
justify-content: center;
align-items: center;
gap: 12px;
}

.pwned-submit-btn:hover {
background-color: #3b82f6;
border-color: #3b82f6;
transform: translateY(-1px);
}

.pwned-submit-btn:disabled {
opacity: 0.7;
cursor: not-allowed;
}

.pwned-result-container {
margin-top: 32px;
border-radius: 12px;
padding: 28px;
border: 1px solid #334155;
transition: all 0.3s ease-in-out;
}

.pwned-result-danger {
background-color: rgba(127, 29, 29, 0.25);
border-color: rgba(239, 68, 68, 0.5);
}

.pwned-result-success {
background-color: rgba(6, 78, 59, 0.25);
border-color: rgba(16, 185, 129, 0.5);
}

.pwned-result-title {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 8px;
}

.pwned-result-title-danger {
color: #fca5a5;
}

.pwned-result-title-success {
color: #6ee7b7;
}

.pwned-result-text {
color: #cbd5e1;
font-size: 1.15rem;
line-height: 1.6;
}

/* ==========================================================================
   MOBILE RESPONSIVE FIXES (All Pages)
   ========================================================================== */
@media (max-width: 767px) {
    .navbar-collapse { background-color: #0f172a; border-top: 1px solid #334155; }

    .hero-container { padding-top: 100px; }
    .hero-title { font-size: 3.5rem !important; margin-bottom: 20px !important; }

    .btn-container { flex-direction: column; gap: 15px; width: 100%; max-width: 350px; margin-bottom: 10px; }
    .btn-primary-custom, .btn-secondary-custom { width: 100%; text-align: center; }

    .trust-bar {
        flex-direction: column; /* Force vertical stacking on mobile so it doesn't run off screen */
        gap: 12px;
        margin-top: 40px;
    }
    .trust-bar span.bullet { display: none !important; } /* Clean up the bullets when vertically stacked */

    .page-title { font-size: 2.5rem !important; }
    .card-container { padding: 20px !important; margin-top: -20px !important; }
    .btn-return { width: 100%; max-width: 350px; text-align: center; font-size: 1.2rem !important; }
    .terminal-output { font-size: 1.1rem; }
}

