:root {
    --text: #e2e8f0;
    --muted-bg: rgba(15, 23, 42, 0.12);
    --accent: #6366f1;
}

/* Lightweight reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Rockwell, 'Courier New', 'Segoe UI', Roboto, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    color: var(--text);
    scroll-behavior: smooth;
    /* Background gradient overlay with an image; keep a solid-color fallback */
    background-color: rgba(15, 23, 42, 0.42);
    background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.10), var(--muted-bg)), url("futuristic-background-design_23-2148503793.avif");
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    overflow-x: hidden;
    position: relative;
}

strong, b { font-weight: 700; }

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 16% 20%, rgba(59, 130, 246, 0.18), transparent 16%),
        radial-gradient(circle at 84% 18%, rgba(168, 213, 255, 0.18), transparent 18%),
        radial-gradient(circle at 34% 74%, rgba(168, 85, 247, 0.12), transparent 14%);
    filter: blur(1px);
    animation: backgroundShift 18s ease-in-out infinite;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.32) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 140px 140px, 70px 70px;
    background-position: 14% 18%, 72% 84%;
    opacity: 0.08;
}

@keyframes backgroundShift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-3%, 2%) scale(1.02);
    }
}

/* NAVBAR */

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: rgba(79, 70, 229, 0.18);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(147, 51, 234, 0.20);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(79, 70, 229, 0.10);
}

/* LOGO */
.logo {
    color: #e0e7ff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* NAV LINKS */
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links li {
    cursor: pointer;
    position: relative;
    transition: transform 0.25s ease, color 0.25s ease;
}

.nav-links a {
    color: #dbeafe;
    text-decoration: none;
    font-weight: 600;
}

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    gap: 6px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: #c4b5fd;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links li:hover a {
    color: #d8b4fe;
    transform: translateY(-2px);
}

.profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(168, 85, 247, 0.18);
    box-shadow: 8px 12px 30px rgba(79, 70, 229, 0.08);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    cursor: pointer;
}

/* 3D HOVER EFFECT */
.profile:hover {
    transform: rotateX(10deg) rotateY(-10deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 229, 255, 0.3);
}

/* PROFILE IMAGE */
.profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(56, 189, 248, 0.45);
    transform: translateZ(20px);
}

/* TEXT */
.info h4 {
    color: #0f172a;
    font-size: 14px;
}

.info p {
    color: #2563eb;
    font-size: 12px;
}

/* Header */
header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background: rgba(15, 23, 42, 0.42);
    border-bottom: 1px solid rgba(99, 102, 241, 0.18);
    box-shadow: inset 0 0 0 1000px rgba(15, 23, 42, 0.08);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

header h1 {
    position: relative;
    font-family: inherit;
    font-size: clamp(3rem, 6vw, 5rem);
    margin: 20px 0 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1.05;
    color: #eef2ff;
    text-shadow: 0 0 30px rgba(96, 165, 250, 0.35);
}

header h1::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18), transparent 55%);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: -1;
}

header h1:hover::before {
    opacity: 1;
    transform: scale(1.08);
}

header h1 .name-highlight {
    display: inline-block;
    background: linear-gradient(90deg, #60a5fa 0%, #6366f1 30%, #7c3aed 60%, #d946ef 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: text-shadow 0.35s ease, transform 0.35s ease;
    animation: gradientFlow 6s ease infinite;
}

header h1:hover .name-highlight {
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.9), 0 0 20px rgba(123, 44, 237, 0.85);
    transform: translateY(-2px);
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(90deg, #60a5fa 0%, #6366f1 30%, #7c3aed 60%, #d946ef 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    animation: gradientFlow 6s ease infinite;
}

.hero-badge:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.hero-button:hover,
.hero-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(99, 102, 241, 0.24);
    opacity: 0.98;
}

.hero-button-secondary {
    background: rgba(255, 255, 255, 0.10);
    color: #eef2ff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.admin-logout {
    display: inline-flex;
    margin-top: 16px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.project-card {
    padding: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(148, 197, 253, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 50px rgba(79, 70, 229, 0.16);
    border-color: rgba(192, 132, 252, 0.6);
}

.project-tag {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #eef2ff;
    background: rgba(99, 102, 241, 0.18);
    margin-bottom: 16px;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.10);
    color: #eef2ff;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.project-link:hover,
.project-link:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.18);
}

.project-link-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #c7d2fe;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(340px, 1.2fr);
    gap: 28px;
    margin-top: 24px;
}

.hidden-section {
    display: none;
}

.hidden-section[aria-hidden="false"] {
    display: block;
}

.contact-summary h3 {
    margin-top: 0;
    color: #eef2ff;
}

.contact-summary p {
    color: #cbd5e1;
    line-height: 1.8;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-form label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #dbeafe;
}

.contact-form input,
.contact-form textarea {
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 197, 253, 0.18);
    color: #eef2ff;
}

.form-error {
    color: #f8d7da;
    background: rgba(220, 38, 38, 0.12);
    border-radius: 12px;
    padding: 12px;
    display: none;
    margin-top: 10px;
}

.feature-note {
    margin-top: 14px;
    padding: 12px 14px;
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(148, 197, 253, 0.22);
    border-radius: 16px;
    color: #eef2ff;
    font-size: 0.95rem;
}

@media (max-width: 880px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .project-actions {
        justify-content: flex-start;
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.85s ease, transform 0.85s ease;
    will-change: opacity, transform;
}

.animate-on-scroll.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

h2,
.skill-card h3,
.video-card-details h3,
.footer-branding h3,
.project-title {
    background: linear-gradient(90deg, #38bdf8 0%, #8b5cf6 40%, #c084fc 70%, #9333ea 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.skill-card h3 {
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

header p#typing {
    color: #334155;
    font-size: 1.05rem;
    max-width: 640px;
    line-height: 1.8;
}

/* Typing cursor */
#typing {
    display: inline-block;
    white-space: pre-wrap;
}

#typing::after {
    content: '|';
    display: inline-block;
    margin-left: 6px;
    color: rgba(255,255,255,0.9);
    animation: blinkCursor 1s steps(2, start) infinite;
}

@keyframes blinkCursor {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* Click hint and pointer cursor for revealable areas */
.revealable {
    cursor: pointer;
    position: relative;
}

.revealable .click-hint {
    position: absolute;
    right: 12px;
    top: 8px;
    background: linear-gradient(180deg, rgba(0,0,0,0.32), rgba(0,0,0,0.22));
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    opacity: 0.95;
    pointer-events: none;
    -webkit-backdrop-filter: blur(4px) saturate(120%);
    backdrop-filter: blur(4px) saturate(120%);
    box-shadow: 0 6px 18px rgba(2,6,23,0.28);
}

/* Profile */
.profile-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(125, 211, 252, 0.52);
    box-shadow: 0 16px 50px rgba(47, 124, 224, 0.24);
}

/* 3D Skill Cards */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    perspective: 1000px;
}

/* Hint text shown under the upload field */
.upload-hint {
    margin-top: 6px;
    color: #dbeafe;
    font-size: 0.92rem;
}

.no-js-warning {
    display: block;
    margin: 0;
    padding: 18px 24px;
    background: rgba(220, 38, 38, 0.12);
    color: #f8fafc;
    text-align: center;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(248, 113, 113, 0.35);
}

.mute-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.2rem;
    margin-top: 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.mute-button:hover,
.mute-button:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 940px) {
    .navbar {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 18px 24px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .nav-links.nav-open {
        max-height: 260px;
    }

    .profile {
        justify-content: center;
        margin: 0 auto;
    }

    header {
        padding-top: 40px;
    }

    .video-portfolio-container {
        padding: 0 16px;
    }

    .video-management-panel {
        width: 100%;
        padding: 26px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.60);
        border: 1px solid rgba(148, 197, 253, 0.18);
    }

    .admin-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 22px;
        border: 1px solid rgba(255, 173, 88, 0.25);
        border-radius: 999px;
        background: linear-gradient(135deg, #ac6c2d, #d89f6b);
        color: #fff;
        font-size: 0.95rem;
        font-weight: 700;
        cursor: pointer;
        transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    }

    .admin-btn:hover,
    .admin-btn:focus {
        transform: translateY(-1px);
        box-shadow: 0 20px 40px rgba(255, 158, 82, 0.15);
        opacity: 0.96;
    }
}

@media (max-width: 780px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-branding,
    .footer-links {
        width: 100%;
        max-width: 480px;
    }

    .footer-links {
        padding-top: 15px;
    }

    .video-header h2 {
        font-size: 1.9rem;
    }

    .video-header p {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .navbar {
        padding: 18px 18px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-toggle span {
        width: 20px;
    }

    .profile {
        width: 100%;
        justify-content: center;
    }

    header {
        padding: 40px 18px 60px;
    }

    header h1 {
        font-size: 2.75rem;
    }

    header p#typing {
        font-size: 1rem;
        max-width: 100%;
    }

    section {
        padding: 60px 16px;
    }

    .video-showcase-grid {
        gap: 18px;
    }

    .video-management-panel {
        padding: 22px;
    }
}

.skill-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0.40)),
        url('futuristic-background-design_23-2148503793.avif') center/cover no-repeat;
    padding: 24px;
    border-radius: 22px;
    border: 1px solid rgba(148, 197, 253, 0.18);
    transform-style: preserve-3d;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
    border-color: rgba(59, 130, 246, 0.42);
}

.skill-card h3 {
        margin-bottom: 10px;
        font-family: inherit;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        background: linear-gradient(90deg, #38bdf8 0%, #8b5cf6 40%, #c084fc 70%, #9333ea 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
}

.skill-rating {
    margin-top: 20px;
    display: grid;
    gap: 14px;
}

.skill-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: #dbeafe;
    font-size: 0.88rem;
}

.skill-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    margin-top: 6px;
}

.skill-level {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #60a5fa, #7c3aed);
    transition: width 0.4s ease;
}

.skill-level-95 { width: 95%; }
.skill-level-92 { width: 92%; }
.skill-level-90 { width: 90%; }
.skill-level-88 { width: 88%; }
.skill-level-85 { width: 85%; }
.skill-level-80 { width: 80%; }

/* Sections */
section {
    padding: 80px 20px;
    max-width: 1140px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.30);
    border: 1px solid rgba(148, 197, 253, 0.12);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

#about {
    background: rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(147, 197, 253, 0.16);
    color: #e2e8f0;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
}

#about h2 {
    color: #f8fafc;
}

#about p {
    color: #cbd5e1;
    line-height: 1.9;
}

.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #00c0ff;
    color: #040b18;
    padding: 12px 20px;
    border-radius: 28px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 14px 34px rgba(0, 138, 241, 0.28);
    transition: 0.3s ease, transform 0.3s ease;
}

.whatsapp-btn:hover {
    background: #d67a38;
    transform: translateY(-2px);
}

.site-footer {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.95), rgba(99, 102, 241, 0.92));
    border-top: 1px solid rgba(167, 139, 250, 0.45);
    padding: 40px 20px 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    max-width: 1140px;
    margin: 0 auto;
    background: rgba(67, 56, 202, 0.18);
    padding: 28px;
    border-radius: 24px;
    border: 1px solid rgba(167, 139, 250, 0.30);
    box-shadow: 0 22px 60px rgba(79, 70, 229, 0.18);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.footer-branding h3,
.footer-links p {
    margin: 0 0 10px;
    background: linear-gradient(90deg, #60a5fa 0%, #8b5cf6 45%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-profile h4,
.footer-profile p {
    margin: 0;
    color: #dbeafe;
}

.footer-branding p,
.footer-links a {
    color: #eef2ff;
}

.footer-links a {
    display: inline-block;
    padding: 10px 16px;
    margin-top: 6px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-links .email-button {
    border: 1px solid rgba(66, 133, 244, 0.85);
    color: #4285f4;
    background: rgba(66, 133, 244, 0.08);
}

.footer-links .email-button:hover {
    color: #ffffff;
    background: rgba(66, 133, 244, 0.95);
    border-color: rgba(66, 133, 244, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(66, 133, 244, 0.18);
}

.footer-links .whatsapp-button {
    border: 1px solid rgba(37, 211, 102, 0.85);
    color: #25d366;
    background: rgba(37, 211, 102, 0.10);
}

.footer-links .whatsapp-button:hover {
    color: #ffffff;
    background: rgba(37, 211, 102, 0.95);
    border-color: rgba(37, 211, 102, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.18);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    color: #475569;
    font-size: 0.9rem;
}

@media (max-width: 780px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-branding,
    .footer-links {
        width: 100%;
        max-width: 480px;
    }

    .footer-links {
        padding-top: 15px;
    }
}

/* Admin visibility — must be outside any media query */
.admin-only {
    display: none !important;
}

.admin-only.admin-visible {
    display: block !important;
}

.admin-floating-btn {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 25;
    padding: 16px 22px;
    border-radius: 999px;
    box-shadow: 0 18px 36px rgba(79, 70, 229, 0.28);
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-floating-btn:hover,
.admin-floating-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(79, 70, 229, 0.34);
}

/* Remove button on video cards */
.delete-video-btn {
    margin-top: 14px;
    padding: 8px 18px;
    background: #7f1d1d;
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.delete-video-btn:hover {
    background: #991b1b;
}

/* Container Layout Architecture */
.video-portfolio-container {
    max-width: 1140px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: system-ui, -apple-system, sans-serif;
}

.video-header {
    text-align: center;
    margin-bottom: 40px;
}

.video-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: linear-gradient(90deg, #60a5fa 0%, #6366f1 40%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.video-header p {
    color: #c7d2fe;
    font-size: 1.05rem;
}

/* Grid Design Rules */
.video-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.video-showcase-card {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.35), rgba(107, 33, 168, 0.32));
    border: 1px solid rgba(147, 197, 253, 0.28);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.video-showcase-card:hover {
    transform: translateY(-6px);
    border-color: rgba(192, 132, 252, 0.75);
    box-shadow: 0 25px 70px rgba(79, 70, 229, 0.24);
}

.video-frame-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-frame-container iframe,
.video-frame-container video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    object-fit: cover;
}

.video-card-details {
    padding: 20px;
}

.video-card-details h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    color: #eef2ff;
}

.video-card-details p {
    margin: 0;
    font-size: 0.95rem;
    color: #dbeafe;
    line-height: 1.6;
}

/* Management Form Panel Styles */
.video-management-panel {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(148, 197, 253, 0.20);
    border-radius: 20px;
    padding: 32px;
    max-width: 680px;
    margin: 0 auto;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.video-management-panel h3 {
    margin: 0 0 5px 0;
    color: #1f2937;
    font-size: 1.4rem;
}

.panel-note {
    color: #888888;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.upload-form-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-group input,
.input-group textarea {
    background: #222222;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 0.98rem;
    transition: border-color 0.2s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #00bcd4;
}

.submit-video-btn {
    background: #00bcd4;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 10px;
}

.submit-video-btn:hover {
    background: #0097a7;
}

/* Small floating Theme button linking to fonts-and-colors.html */
.meta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(99,102,241,0.95), rgba(124,58,237,0.95));
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(79,70,229,0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
}
.meta-button:hover { transform: translateY(-2px); opacity: 0.98 }

/* Footer layout: center bottom text and button */
.site-footer .footer-bottom { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* Place Theme button under footer branding */
.footer-branding { display:flex; flex-direction:column; align-items:flex-start; gap:8px }
.footer-branding .meta-button { margin-top:6px; padding:8px 12px; font-size:0.95rem }

/* Styles for the fonts-and-colors page */
.meta-page { max-width: 880px; margin: 48px auto; padding: 28px; }
.meta-page .font-sample { margin-top: 18px; padding: 18px; border-radius: 8px; background: rgba(255,255,255,0.04); }
.meta-page .font-sample.primary { font-family: Rockwell, 'Courier New', system-ui, -apple-system, sans-serif; }
.meta-page .font-sample.secondary { font-family: 'Courier New', monospace; }
.meta-page .mt-18 { margin-top: 18px; }
.meta-page .swatches { display:flex; gap:12px; flex-wrap:wrap; margin-top:16px; }
.meta-page .swatch { width:120px; height:80px; border-radius:8px; box-shadow:0 8px 20px rgba(2,6,23,0.12); display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700 }
.meta-page .swatch--text { background: #e2e8f0; color: #0f172a }
.meta-page .swatch--accent { background: #6366f1 }
.meta-page .swatch--gradient { background: linear-gradient(90deg,#60a5fa,#6366f1,#7c3aed,#d946ef) }
.meta-page .swatch--navbar { background: rgba(79,70,229,0.18) }

.resume-card {
    position: relative;
    max-width: 760px;
    margin: 32px auto;
    padding: 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
}

.resume-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

.resume-header .resume-intro {
    max-width: none;
}

.profile-photo {
    width: 110px;
    height: 110px;
    justify-self: start;
    align-self: center;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.22);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.resume-header h1 {
    margin: 0;
    font-size: clamp(2.3rem, 5vw, 3rem);
    line-height: 1.05;
}

.resume-header .role {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 1.05rem;
}

.resume-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.resume-section:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.resume-grid {
    display: grid;
    gap: 18px;
}

.resume-grid > div {
    display: grid;
    gap: 10px;
}

.resume-section h2 {
    margin: 0 0 12px;
    font-size: 1.18rem;
    color: #eef2ff;
}

.resume-section p,
.resume-section ul {
    color: #dbeafe;
    line-height: 1.7;
}

.resume-section ul {
    list-style: disc inside;
    padding-left: 0;
}

.resume-footer {
    margin-top: 30px;
    display: flex;
    justify-content: flex-start;
}

.resume-footer .back {
    color: #c7d2fe;
    text-decoration: none;
    font-weight: 700;
}

.resume-footer .back:hover {
    text-decoration: underline;
}

@media (max-width: 720px) {
    .profile-photo {
        width: 100px;
        height: 100px;
        justify-self: center;
    }
}

