/* =================================================================
   DESIGN SYSTEM: MODERN TECH OBSIDIAN PALETTE (PREMIUM)
================================================================= */
:root {
    --bg-base: #08090C;
    --bg-surface: #101218;
    --bg-surface-elevated: #161922;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(99, 102, 241, 0.4);
    
    /* Upgraded for Maximum Contrast & Readability */
    --text-primary: #FFFFFF;
    --text-secondary: #F8FAFC;
    --text-muted: #CBD5E1;

    --accent-indigo: #6366F1;
    --accent-violet: #8B5CF6;
    --accent-cyan: #06B6D4;
    --accent-emerald: #10B981;
    --danger: #EF4444;

    --glow-gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #06B6D4 100%);
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    /* Global Ambient Text Glow for readability */
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* World-Class Header Glows */
h1, h2, h3, h4, h5, h6 {
    color: #FFFFFF;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4), 0 0 25px rgba(99, 102, 241, 0.3);
}

/* Prevent inputs from glowing to maintain crisp typing */
input, textarea, select {
    text-shadow: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================= AMBIENT ORBS & GLASS ================= */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}
.orb-1 { width: 500px; height: 500px; background: var(--accent-indigo); top: -100px; left: -100px; }
.orb-2 { width: 450px; height: 450px; background: var(--accent-violet); top: 40%; right: -150px; }

.glass-panel {
    background: rgba(16, 18, 24, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    word-break: break-word; 
}

.gradient-text {
    background: var(--glow-gradient);
    -webkit-background-clip: text;
    background-clip: text; 
    -webkit-text-fill-color: transparent;
    color: transparent; 
    filter: drop-shadow(0px 2px 5px rgba(6, 182, 212, 0.3)); 
}

/* ================= BUTTONS & CTAS ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
}
.btn-primary { background: var(--text-primary); color: var(--bg-base); text-shadow: none; }
.btn-primary:hover { background: #E2E8F0; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25); }

.btn-secondary { background: var(--bg-surface-elevated); color: var(--text-primary); border-color: var(--border-subtle); }
.btn-secondary:hover { background: #202432; border-color: rgba(255, 255, 255, 0.4); text-shadow: 0 0 10px rgba(255,255,255,0.5); }

.btn-outline-glow { background: transparent; color: var(--text-primary); border-color: var(--border-subtle); }
.btn-outline-glow:hover { border-color: var(--accent-indigo); box-shadow: 0 0 15px rgba(99, 102, 241, 0.5); text-shadow: 0 0 10px rgba(99, 102, 241, 0.8); }

.btn-header-glow {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}
.btn-header-glow:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
    transform: translateY(-2px);
    color: #fff;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.8);
}

.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* ================= FLOATING NAVBAR ================= */
.navbar-wrapper {
    position: sticky;
    top: 16px;
    z-index: 1000;
    padding: 0 20px;
    margin-bottom: 40px;
}
.nav-glass {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(16, 18, 24, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    padding: 12px 24px;
    border-radius: var(--radius-full);
}
.brand-logo { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.5px; text-decoration: none; color: var(--text-primary); text-shadow: 0 0 15px rgba(255,255,255,0.4); }
.brand-logo span { color: var(--accent-indigo); text-shadow: 0 0 15px rgba(99, 102, 241, 0.8); }
.nav-menu { display: flex; gap: 20px; }
.nav-link { color: var(--text-secondary); text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: var(--transition); }
.nav-link:hover { color: #FFFFFF; text-shadow: 0 0 12px rgba(255, 255, 255, 0.8); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.admin-badge-link {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    color: var(--text-muted); border: 1px solid var(--border-subtle);
    text-decoration: none; font-size: 0.8rem; transition: var(--transition);
}
.admin-badge-link:hover { color: var(--accent-indigo); border-color: var(--accent-indigo); box-shadow: 0 0 15px rgba(99, 102, 241, 0.5); text-shadow: 0 0 10px rgba(99, 102, 241, 0.8); }

/* ================= HERO SECTION ================= */
.hero-section { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 60px 0 100px; }
.hero-content { flex: 1.2; }
.status-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.25); color: var(--accent-emerald); padding: 6px 14px; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600; margin-bottom: 24px; text-shadow: 0 0 10px rgba(16, 185, 129, 0.6); box-shadow: 0 0 15px rgba(16, 185, 129, 0.1); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-emerald); box-shadow: 0 0 12px var(--accent-emerald); }

.worldclass-text-reveal { animation: textEntranceReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes textEntranceReveal { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }

.hero-title { font-size: 3.8rem; font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 12px; text-shadow: none; }

.hero-role-wrapper { min-height: 60px; display: flex; align-items: flex-start; }

.hero-subtitle { font-size: 1.4rem; color: var(--text-secondary); font-weight: 500; margin-bottom: 18px; transition: opacity 0.3s ease-in-out; text-shadow: 0 0 10px rgba(255,255,255,0.3); }
.hero-bio { font-size: 1.05rem; color: var(--text-secondary); max-width: 580px; margin-bottom: 30px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-social-links { display: flex; gap: 12px; margin-left: 8px; }
.social-icon-btn { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--bg-surface); border: 1px solid var(--border-subtle); color: var(--text-secondary); text-decoration: none; font-size: 1.1rem; transition: var(--transition); }
.social-icon-btn:hover { color: #FFFFFF; border-color: var(--accent-indigo); transform: translateY(-2px); box-shadow: 0 5px 20px rgba(99,102,241,0.4); text-shadow: 0 0 12px rgba(255,255,255,0.8); }

.hero-visual { flex: 0.8; display: flex; justify-content: center; position: relative; }
.image-wrapper { position: relative; width: 320px; height: 380px; }
.image-wrapper img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); position: relative; z-index: 2; }
.profile-anim-entrance.loaded-anim { animation: profileWorldClassReveal 1.6s cubic-bezier(0.19, 1, 0.22, 1) forwards; }
@keyframes profileWorldClassReveal { 0% { opacity: 0; transform: scale(0.85) translateY(40px) rotate(-2deg); filter: blur(15px); } 100% { opacity: 1; transform: scale(1) translateY(0) rotate(0deg); filter: blur(0); } }
.img-glow { position: absolute; inset: -10px; background: var(--glow-gradient); border-radius: var(--radius-lg); filter: blur(25px); opacity: 0.35; z-index: 1; }

/* ================= SECTION COMMON ================= */
.section-block { padding: 70px 0; border-top: 1px solid var(--border-subtle); }
.section-header { margin-bottom: 36px; }
.section-tag { font-family: var(--font-mono); color: var(--accent-emerald); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 800; text-shadow: 0 0 12px rgba(16, 185, 129, 0.6); }
.section-title { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.8px; margin-top: 4px; }

/* ================= PANEL & CARD DISPLAYS ================= */

/* Sub-cards (Inner data blocks) get Violet border */
.premium-about-display { 
    padding: 30px !important; 
    border-left: 4px solid var(--accent-violet) !important; 
    background: linear-gradient(145deg, rgba(16, 18, 24, 0.9), rgba(16, 18, 24, 0.5)) !important; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important; 
    color: var(--text-primary) !important; 
    border-radius: var(--radius-md);
}

/* Main Outer Panels (Scroll Wrappers) get Cyan border */
.main-panel-display {
    padding: 30px !important; 
    border-left: 4px solid var(--accent-cyan) !important; 
    background: linear-gradient(145deg, rgba(16, 18, 24, 0.9), rgba(16, 18, 24, 0.5)) !important; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important; 
    color: var(--text-primary) !important; 
    border-radius: var(--radius-md);
}

.about-narrative-box { margin-bottom: 40px !important; }
#full-about { white-space: pre-wrap; font-size: 1.15rem; line-height: 1.8; color: var(--text-secondary); text-shadow: 0 0 8px rgba(255,255,255,0.25); }
.quote-icon { font-size: 2rem; background: var(--glow-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 15px; display: block; filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.6)); }
.about-card { padding: 36px; }
.specs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.spec-box { display: flex; flex-direction: column; gap: 4px; }
.spec-label { font-size: 0.78rem; text-transform: uppercase; color: var(--text-muted); font-family: var(--font-mono); text-shadow: 0 0 8px rgba(203, 213, 225, 0.3); }
.spec-val { font-size: 1rem; font-weight: 700; color: #FFFFFF; text-shadow: 0 0 12px rgba(255,255,255,0.4); }

/* ================= TIMELINE (EXPERIENCE) ================= */
.timeline { position: relative; padding-left: 32px; border-left: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 36px; }
.timeline-card { position: relative; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 26px; transition: var(--transition); word-break: break-word; }
.timeline-card:hover { border-color: var(--border-highlight); transform: translateX(4px); box-shadow: 0 10px 30px rgba(99,102,241,0.2); }
.timeline-card::before { content: ''; position: absolute; left: -39px; top: 24px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent-indigo); box-shadow: 0 0 15px var(--accent-indigo); }
.t-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.t-role { font-size: 1.25rem; font-weight: 700; color: #FFFFFF; text-shadow: 0 0 12px rgba(255,255,255,0.5); }
.t-company { font-size: 1.05rem; color: var(--accent-indigo); font-weight: 700; text-shadow: 0 0 12px rgba(99, 102, 241, 0.6); }
.t-date { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent-cyan); background: rgba(6, 182, 212, 0.1); padding: 4px 10px; border-radius: var(--radius-sm); border: 1px solid rgba(6, 182, 212, 0.2); font-weight: 600; text-shadow: 0 0 8px rgba(6, 182, 212, 0.5); }
.t-meta { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 12px; display: flex; gap: 16px; flex-wrap: wrap; }
.t-link { color: var(--accent-cyan); text-decoration: none; font-weight: 600; text-shadow: 0 0 10px rgba(6, 182, 212, 0.6); cursor: pointer; transition: var(--transition); }
.t-link:hover { color: #FFF; text-shadow: 0 0 15px rgba(6, 182, 212, 0.9); }

/* ================= CARDS GRID (PROJECTS / EDUCATION) ================= */
.cards-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 24px; 
    align-items: stretch; /* Enforces equal height alignment across rows */
}

.item-card { 
    background: var(--bg-surface); 
    border: 1px solid var(--border-subtle); 
    border-radius: var(--radius-md); 
    padding: 28px; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    transition: var(--transition); 
    word-break: break-word; 
    height: 100%;
    min-height: 260px;
}

.item-card:hover { border-color: var(--border-highlight); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2); }
.item-badge { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: var(--accent-violet); margin-bottom: 10px; display: inline-block; text-shadow: 0 0 12px rgba(139, 92, 246, 0.6); }
.item-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 6px; color: #FFFFFF; text-shadow: 0 0 12px rgba(255,255,255,0.4); }
.item-sub { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 12px; font-weight: 500; }
.item-address { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; display: block; }
.item-score { display: inline-block; background: rgba(6, 182, 212, 0.1); color: var(--accent-cyan); padding: 4px 10px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 700; margin-bottom: 12px; text-shadow: 0 0 10px rgba(6, 182, 212, 0.6); border: 1px solid rgba(6, 182, 212, 0.3); }
.item-desc { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 20px; line-height: 1.6; text-shadow: 0 0 8px rgba(255,255,255,0.2); }
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pill { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.8rem; color: #FFFFFF; font-weight: 600; text-shadow: 0 0 8px rgba(255,255,255,0.4); }
.card-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ================= SKILLS, LANGUAGES & SCROLL PANELS ================= */
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

/* Scrollable Fixed Box Implementation */
.fixed-height-panel {
    display: flex;
    flex-direction: column;
    height: 580px; 
}

.fixed-height-panel .panel-subtitle {
    flex-shrink: 0; 
    margin-bottom: 20px;
}

.scrollable-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 15px; 
}

.scrollable-content::-webkit-scrollbar { width: 6px; }
.scrollable-content::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); border-radius: 10px; }
.scrollable-content::-webkit-scrollbar-thumb { background: rgba(6, 182, 212, 0.6); border-radius: 10px; }
.scrollable-content::-webkit-scrollbar-thumb:hover { background: rgba(6, 182, 212, 0.9); }

.p-6 { padding: 28px; }
.panel-subtitle { font-size: 1.15rem; font-weight: 800; color: #FFFFFF; text-shadow: 0 0 15px rgba(255,255,255,0.5); }

.skills-flex { display: flex; flex-direction: column; gap: 16px; }
.skill-block { background: rgba(255,255,255,0.03); padding: 14px 18px; border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.1); }
.skill-header { display: flex; justify-content: space-between; margin-bottom: 6px; font-weight: 700; font-size: 0.95rem; color: #FFFFFF; text-shadow: 0 0 10px rgba(255,255,255,0.3); }
.skill-level-text { font-size: 0.85rem; font-weight: 700; color: var(--accent-cyan); font-family: var(--font-mono); text-shadow: 0 0 12px rgba(6, 182, 212, 0.7); }
.skill-progress-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.skill-progress-fill { height: 100%; background: var(--glow-gradient); border-radius: 3px; transition: width 1s ease; box-shadow: 0 0 10px rgba(99, 102, 241, 0.8); }

.languages-list { display: flex; flex-direction: column; gap: 16px; }
.lang-card { background: rgba(255,255,255,0.03); padding: 18px; border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.1); position: relative; overflow: hidden;}
.lang-card-header { display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; font-weight: 800; margin-bottom: 12px; color: #FFFFFF; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; text-shadow: 0 0 12px rgba(255,255,255,0.4); }
.lang-overall-badge { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); font-size: 0.8rem; padding: 4px 10px; border-radius: var(--radius-full); border: 1px solid rgba(16, 185, 129, 0.4); font-weight: 800; text-shadow: 0 0 10px rgba(16, 185, 129, 0.6); box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);}
.lang-metric-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-weight: 500; }
.lang-metric-label { width: 60px; font-size: 0.85rem; color: var(--text-secondary); text-transform: uppercase; text-shadow: 0 0 8px rgba(255,255,255,0.2); }

/* Glowing Interests (Delay dynamically set via JS) */
.interests-tags { display: flex; flex-wrap: wrap; gap: 14px; }
.interest-glow-pill {
    position: relative;
    background: rgba(16, 18, 24, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.8);
    color: #FFFFFF;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    animation: pulseNeon 2.5s infinite alternate;
    transition: transform 0.2s;
    cursor: default;
}
.interest-glow-pill:hover { transform: scale(1.05); }
@keyframes pulseNeon {
    0% { box-shadow: 0 0 8px rgba(99, 102, 241, 0.5), inset 0 0 4px rgba(99, 102, 241, 0.3); border-color: rgba(99, 102, 241, 0.8); text-shadow: 0 0 8px rgba(255,255,255,0.6); }
    100% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.9), inset 0 0 10px rgba(6, 182, 212, 0.5); border-color: rgba(6, 182, 212, 1); text-shadow: 0 0 15px #FFFFFF; color: #fff; }
}

/* ================= GLOWING CONTACT INFO ================= */
.contact-info-block h4 {
    color: var(--accent-cyan);
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    font-family: var(--font-mono);
    margin-bottom: 8px;
    text-shadow: 0 0 12px rgba(6, 182, 212, 0.7);
    letter-spacing: 1px;
}

.contact-info-block i {
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.8));
    margin-right: 8px;
}

.contact-info-block .contact-val {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(6, 182, 212, 0.6);
    font-size: 1.15rem;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
}

.contact-info-block a.contact-val:hover {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 0 30px rgba(6, 182, 212, 0.9);
    color: #fff;
}

/* ================= CREDENTIALS TABS ================= */
.credentials-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 28px; flex-wrap: wrap; }
.tab-header { font-size: 1.1rem; font-weight: 700; color: var(--text-muted); cursor: pointer; padding-bottom: 12px; position: relative; text-shadow: 0 0 8px rgba(203, 213, 225, 0.3); transition: var(--transition); }
.tab-header.active { color: #FFFFFF; text-shadow: 0 0 15px rgba(255,255,255,0.6); }
.tab-header:hover:not(.active) { color: var(--text-secondary); text-shadow: 0 0 10px rgba(255,255,255,0.4); }
.tab-header.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 3px; background: var(--accent-indigo); box-shadow: 0 0 10px var(--accent-indigo); }
.cred-pane { display: none; }
.cred-pane.active { display: block; animation: fadeIn 0.4s ease; }

/* ================= CONTACT FORM ================= */
.contact-card { padding: 40px; }
.contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full-width { grid-column: span 2; }
.form-group label { font-size: 0.9rem; font-weight: 700; color: var(--text-secondary); text-shadow: 0 0 8px rgba(255,255,255,0.3); }
.form-control { background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-sm); padding: 14px 16px; color: var(--text-primary); font-size: 0.95rem; font-weight: 500; outline: none; transition: var(--transition); }
.form-control:focus { border-color: var(--accent-indigo); box-shadow: 0 0 15px rgba(99, 102, 241, 0.3); background: rgba(0,0,0,0.4); }
.form-status { margin-top: 10px; font-size: 0.95rem; text-align: center; font-weight: 600; text-shadow: 0 0 10px rgba(255,255,255,0.4); }

/* ================= FOOTER ================= */
.footer { border-top: 1px solid var(--border-subtle); padding: 40px 0; margin-top: 60px; color: var(--text-secondary); font-size: 1.15rem; font-weight: 600; text-shadow: 0 0 10px rgba(255,255,255,0.3); }
.footer-content { display: flex; justify-content: center; align-items: center; text-align: center; flex-wrap: wrap; gap: 16px; }

/* =================================================================
   WORLD-CLASS EXECUTIVE ADMIN CONSOLE
================================================================= */
.admin-body { background: #040507; }
.auth-overlay { position: fixed; inset: 0; background: rgba(4, 5, 7, 0.95); backdrop-filter: blur(25px); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.auth-card { width: 100%; max-width: 440px; padding: 40px; border-radius: var(--radius-lg); background: linear-gradient(180deg, #10121a 0%, #0a0b10 100%); box-shadow: 0 20px 50px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.08); }
.lock-icon-circle { width: 52px; height: 52px; border-radius: 50%; background: rgba(99, 102, 241, 0.15); color: var(--accent-indigo); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; box-shadow: 0 0 25px rgba(99, 102, 241, 0.25); }
.auth-header h2 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-header p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 24px; }
.error-msg { color: var(--danger); font-size: 0.85rem; margin-top: 12px; }
.auth-footer-help { display: flex; justify-content: space-between; margin-top: 24px; font-size: 0.8rem; color: var(--text-muted); }
.back-link { color: var(--accent-indigo); text-decoration: none; }

.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 300px; background: #0a0b10; border-right: 1px solid #1a1c23; padding: 28px; display: flex; flex-direction: column; box-shadow: 5px 0 30px rgba(0,0,0,0.4); z-index: 10; }
.sidebar-brand { font-size: 1.2rem; font-weight: 800; margin-bottom: 24px; color: var(--text-primary); }
.user-email-badge { display: block; background: rgba(6, 182, 212, 0.08); padding: 8px 14px; border-radius: var(--radius-sm); font-size: 0.78rem; font-family: var(--font-mono); color: var(--accent-cyan); margin-bottom: 32px; overflow: hidden; text-overflow: ellipsis; border: 1px solid rgba(6, 182, 212, 0.2); }
.sidebar-nav { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.side-tab-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; background: transparent; border: none; border-radius: var(--radius-md); color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; cursor: pointer; text-align: left; transition: var(--transition); }
.side-tab-btn:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); }
.side-tab-btn.active { background: var(--glow-gradient); color: #fff; box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35); }
.sidebar-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.preview-site-link { text-align: center; color: var(--text-muted); font-size: 0.85rem; text-decoration: none; padding: 10px; transition: var(--transition); }
.preview-site-link:hover { color: var(--text-primary); }

.admin-main { flex: 1; display: flex; flex-direction: column; height: 100vh; overflow: hidden; position: relative; background: #06070a;}
.admin-topbar { padding: 24px 40px; background: rgba(6, 7, 10, 0.9); backdrop-filter: blur(20px); border-bottom: 1px solid #1a1c23; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; z-index: 5; box-shadow: 0 4px 25px rgba(0,0,0,0.3); }
.admin-topbar h2 { font-weight: 800; font-size: 1.6rem; letter-spacing: -0.5px; }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.save-status-indicator { font-size: 0.85rem; color: var(--text-muted); font-family: var(--font-mono); }
.admin-content-scroller { flex: 1; overflow-y: auto; padding: 40px; }

.admin-pane { display: none; animation: fadeIn 0.3s ease; }
.admin-pane.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.form-card { padding: 32px; box-shadow: 0 10px 40px rgba(0,0,0,0.3); background: #0e1017; border: 1px solid #1a1c23; border-radius: var(--radius-lg); }
.form-title { font-size: 1.25rem; margin-bottom: 24px; font-weight: 700; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pane-action-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 10px; }
.item-cards-stack { display: flex; flex-direction: column; gap: 20px; }

.editable-card { background: #12141c; border: 1px solid #1f222e; border-radius: var(--radius-md); padding: 24px; position: relative; word-break: break-word; transition: var(--transition); box-shadow: 0 4px 15px rgba(0,0,0,0.15);}
.editable-card:hover { border-color: rgba(255,255,255,0.2); box-shadow: 0 8px 25px rgba(0,0,0,0.3);}
.drag-handle { cursor: grab; color: var(--text-muted); font-size: 1.2rem; transition: color 0.2s ease; }
.drag-handle:active { cursor: grabbing; }
.drag-handle:hover { color: var(--accent-indigo); }

.hidden { display: none !important; }
.text-danger { color: var(--danger) !important; }

/* ================= DOCUMENT VIEWER MODAL ================= */
.doc-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(15px); display: flex; align-items: center; justify-content: center; z-index: 9999; opacity: 0; pointer-events: none; transition: var(--transition); }
.doc-overlay.active { opacity: 1; pointer-events: auto; }
.doc-modal-content { width: 95%; max-width: 1100px; height: 90vh; padding: 24px; position: relative; display: flex; flex-direction: column; background: var(--bg-surface); border: 1px solid rgba(255,255,255,0.1); }
.close-doc-btn { position: absolute; top: -20px; right: -20px; width: 44px; height: 44px; border-radius: 50%; background: var(--danger); color: white; border: 2px solid var(--bg-surface); cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4); z-index: 10000; transition: transform 0.2s; }
.close-doc-btn:hover { transform: scale(1.1); }
#doc-render-area { flex: 1; width: 100%; border-radius: var(--radius-sm); overflow: hidden; background: #ffffff; }

/* ================= MEDIA QUERIES (COMPREHENSIVE DEVICE SUPPORT) ================= */

@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .hero-section { gap: 30px; }
    .admin-sidebar { width: 250px; }
}

/* Premium Mobile Nav Update */
/* Hide toggle button on desktop */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
    margin-left: 8px;
    transition: var(--transition);
}
.mobile-menu-btn:hover { color: var(--accent-indigo); }

/* Premium Mobile Nav Overlay */
@media (max-width: 850px) {
    .mobile-menu-btn { display: block; }
    
    .nav-glass { padding: 12px 16px; }
    
    .nav-menu { 
        position: absolute;
        top: 75px;
        left: 16px;
        right: 16px;
        background: rgba(16, 18, 24, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid var(--border-highlight);
        border-radius: var(--radius-lg);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.6);
        
        /* Animation states */
        opacity: 0;
        pointer-events: none;
        transform: translateY(-15px) scale(0.98);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .nav-menu.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .nav-link {
        font-size: 1.1rem;
        color: var(--text-primary);
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .nav-link:last-child { border-bottom: none; padding-bottom: 0; }

    .hero-section { flex-direction: column-reverse; text-align: center; padding: 40px 0; }
    .hero-actions { justify-content: center; }
    .hero-social-links { margin-left: 0; margin-top: 10px; width: 100%; justify-content: center; }

    .grid-2-col, .contact-form-grid, .form-grid-2 { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: span 1; }
    
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; padding: 20px; border-right: none; border-bottom: 1px solid #1a1c23; }
    .admin-topbar { flex-direction: column; align-items: flex-start; padding: 20px; }
    .admin-content-scroller { padding: 20px; }
    
    .credentials-tabs { gap: 15px; }
    .tab-header { font-size: 0.95rem; }
}

@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 2.4rem; letter-spacing: -1px; }
    .hero-subtitle { font-size: 1.1rem; }
    .image-wrapper { width: 260px; height: 310px; margin: 0 auto; }
    .section-title { font-size: 1.8rem; }
    .cards-grid { grid-template-columns: 1fr; }
    .premium-about-display { padding: 25px !important; font-size: 1rem; }
    .main-panel-display { padding: 25px !important; font-size: 1rem; }
    .timeline { padding-left: 20px; gap: 24px; }
    .timeline-card { padding: 20px; }
    .timeline-card::before { left: -27px; width: 11px; height: 11px; }
    .t-role { font-size: 1.1rem; }
    .form-card { padding: 20px; }
    .editable-card { padding: 16px; }
    .fixed-height-panel { height: 450px; } /* Slightly smaller for mobile */
    
    /* MOBILE MODAL RESPONSIVENESS FIX */
    .doc-modal-content {
        width: 100%;
        height: 100dvh; 
        padding: 50px 12px 12px 12px; /* Top padding allows room for the close button inside */
        border-radius: 0;
        border: none;
    }
    .close-doc-btn {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .hero-title { font-size: 2rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .hero-social-links { width: 100%; justify-content: space-between; }
    .nav-glass { padding: 10px 14px; }
    .brand-logo { font-size: 1rem; }
    .btn-sm { font-size: 0.75rem; padding: 6px 10px; }
}