:root {
    --bg-dark: #0a0407;
    --card-bg: rgba(28, 12, 18, 0.78);
    --card-border: rgba(244, 63, 94, 0.22);
    --accent-red: #f43f5e;
    --accent-rose: #fb7185;
    --accent-ruby: #e11d48;
    --accent-cyan: #38bdf8;
    --accent-green: #10b981;
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --font-handwriting: 'Caveat', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Full-Screen Intro Splash */
.intro-splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #060204;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: transform 0.85s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.85s ease;
}

.intro-splash-overlay.splash-exit-anim {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.splash-ambient-glow {
    position: absolute;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.35), rgba(225, 29, 72, 0.2), transparent 70%);
    filter: blur(120px);
    pointer-events: none;
    animation: splashPulse 6s ease-in-out infinite alternate;
}

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

.splash-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.splash-text-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.splash-handwriting-text {
    font-family: var(--font-handwriting);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(244, 63, 94, 0.7), 0 0 60px rgba(225, 29, 72, 0.4);
}

.splash-cursor {
    font-family: var(--font-mono);
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--accent-red);
    margin-left: 6px;
    animation: blinkCursor 0.8s infinite;
}

.splash-subtitle {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent-rose);
    margin-top: 1rem;
}

.splash-skip-btn {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.splash-skip-btn:hover {
    background: rgba(244, 63, 94, 0.3);
    border-color: var(--accent-red);
}

/* Ambient Glowing Crimson Mesh Orbs */
.ambient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: -1;
}

.orb-1 {
    width: 650px;
    height: 650px;
    top: -120px;
    left: -120px;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.25), rgba(225, 29, 72, 0.15), transparent 70%);
}

.orb-2 {
    width: 650px;
    height: 650px;
    bottom: -120px;
    right: -120px;
    background: radial-gradient(circle, rgba(251, 113, 133, 0.2), rgba(168, 85, 247, 0.1), transparent 70%);
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(244, 63, 94, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244, 63, 94, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 99;
    background: rgba(10, 4, 7, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(244, 63, 94, 0.2);
}

.nav-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-code {
    color: var(--accent-red);
    font-family: var(--font-mono);
}

.gradient-text {
    background: linear-gradient(135deg, #f43f5e, #fb7185);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.25s ease;
}

.nav-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(244, 63, 94, 0.6);
}

.btn-owner-lock {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.35);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-owner-lock:hover {
    background: rgba(244, 63, 94, 0.3);
    border-color: var(--accent-red);
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 2, 4, 0.88);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.5rem;
}

.modal-glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 0 40px rgba(244, 63, 94, 0.25);
    border-radius: 16px;
    padding: 2rem;
    max-width: 440px;
    width: 100%;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.modal-header h3 {
    color: #ffffff;
    font-family: var(--font-heading);
}

.btn-close {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 1.5rem;
    cursor: pointer;
}

.pin-input-group {
    display: flex;
    gap: 8px;
    margin-top: 1rem;
}

.pin-input-group input {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: var(--font-mono);
    outline: none;
}

.btn-primary-glow {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-ruby));
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.4);
}

.error-msg {
    color: #f43f5e;
    font-size: 0.85rem;
    margin-top: 8px;
}

/* Main Layout */
.main-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(3.2rem, 7.5vw, 5.8rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.5px;
    color: #ffffff;
    text-shadow: 0 0 40px rgba(244, 63, 94, 0.3);
}

.dot-accent {
    color: var(--accent-red);
}

/* Cyber Terminal Card */
.cyber-terminal-card {
    width: 100%;
    background: rgba(18, 8, 12, 0.9);
    border: 1px solid rgba(244, 63, 94, 0.35);
    border-radius: 14px;
    padding: 1.5rem;
    font-family: var(--font-mono);
    box-shadow: 0 0 35px rgba(244, 63, 94, 0.2);
}

.terminal-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.92rem;
    min-height: 100px;
}

.term-line {
    color: #ffffff;
}

.term-prompt {
    color: var(--accent-rose);
    font-weight: 600;
}

.term-response {
    color: #cbd5e1;
}

.term-response.green {
    color: var(--accent-green);
}

.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(244, 63, 94, 0.2);
}

.terminal-input-row input {
    flex: 1;
    background: none;
    border: none;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    outline: none;
}

/* Action Buttons */
.hero-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.btn-white-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #0a0407;
    font-weight: 800;
    font-size: 0.92rem;
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-white-action:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(244, 63, 94, 0.4);
}

.btn-outline-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-outline-action:hover {
    background: rgba(244, 63, 94, 0.25);
    border-color: var(--accent-red);
    transform: translateY(-2px);
}

.btn-outline-action.small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Social Icons */
.social-icons-row {
    display: flex;
    gap: 10px;
}

.social-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.social-icon-btn:hover {
    background: rgba(244, 63, 94, 0.3);
    border-color: var(--accent-red);
    transform: translateY(-2px);
}

/* Admin Banner */
.owner-admin-banner {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.4);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    width: 100%;
}

.unlocked-tag {
    font-weight: 700;
    color: var(--accent-rose);
    font-size: 0.9rem;
}

.admin-action-row {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.btn-white-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: #0a0407;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-white-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-admin-action.danger, .btn-delete-card {
    background: rgba(244, 63, 94, 0.2);
    border: 1px solid rgba(244, 63, 94, 0.5);
    color: #f43f5e;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-delete-card:hover {
    background: #f43f5e;
    color: #ffffff;
}

/* Cyber Sections */
.cyber-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-header-simple h2, .section-header-flex h2 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    color: #ffffff;
}

.section-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Profile Card */
.profile-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title-row h3 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-rose);
    letter-spacing: 1px;
}

.profile-bio {
    font-size: 1.08rem;
    color: #cbd5e1;
    line-height: 1.7;
}

.profile-grid-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.94rem;
}

.info-row .label {
    color: #94a3b8;
}

.info-row .val {
    color: #ffffff;
    font-weight: 600;
}

.info-row .val.highlight {
    color: var(--accent-rose);
    font-family: var(--font-mono);
}

/* Timeline Box */
.timeline-box {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-header h4 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-rose);
    letter-spacing: 1px;
}

.timeline-item {
    position: relative;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(244, 63, 94, 0.3);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-dot {
    position: absolute;
    left: -5px;
    top: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-red);
}

.timeline-dot.cyan {
    background: var(--accent-cyan);
}

.timeline-year {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent-rose);
}

.timeline-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.timeline-desc {
    font-size: 0.92rem;
    color: #cbd5e1;
}

/* Project Card */
.project-card-cyber {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(14px);
    transition: all 0.3s ease;
}

.project-card-cyber:hover {
    border-color: var(--accent-red);
    box-shadow: 0 0 35px rgba(244, 63, 94, 0.3);
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.project-type-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-rose);
    letter-spacing: 1px;
    font-weight: 600;
}

.external-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 1.2rem;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.project-desc {
    color: #cbd5e1;
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
}

.project-actions-row {
    display: flex;
    gap: 10px;
}

/* Resume Cyber Card */
.resume-cyber-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 1.5rem;
}

.empty-resume-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.doc-icon {
    font-size: 2rem;
}

.empty-resume-box h4 {
    font-size: 1.05rem;
    color: #ffffff;
}

.empty-resume-box p {
    font-size: 0.88rem;
    color: #cbd5e1;
}

.active-resume-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.resume-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.verified-tag {
    font-size: 0.8rem;
    color: var(--accent-green);
}

.resume-right {
    display: flex;
    gap: 8px;
}

/* Contact Build Section */
.contact-build-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    align-items: center;
}

.contact-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #ffffff;
}

.contact-subtext {
    color: #cbd5e1;
    max-width: 520px;
    margin: 0.5rem auto 1.5rem;
    font-size: 1rem;
}

.email-direct-link {
    font-family: var(--font-mono);
    font-size: clamp(1.15rem, 3vw, 1.7rem);
    color: var(--accent-rose);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.email-direct-link:hover {
    color: #ffffff;
    text-shadow: 0 0 25px rgba(244, 63, 94, 0.7);
}

.contact-social-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    transition: color 0.25s ease;
}

.footer-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
}

/* Footer */
.footer {
    border-top: 1px solid rgba(244, 63, 94, 0.2);
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.footer a {
    color: var(--accent-rose);
    text-decoration: none;
    font-weight: 600;
}

.hidden {
    display: none !important;
}

.hidden-file-input {
    display: none;
}

/* Responsive */
@media (max-width: 650px) {
    .nav-links {
        display: none;
    }
    
    .hero-actions-row {
        flex-direction: column;
    }

    .info-row {
        flex-direction: column;
        gap: 2px;
    }
}
