@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700;800&display=swap');

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', Arial, sans-serif;
    color: #e2e8f0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.10), rgba(15, 23, 42, 0.12)), url("futuristic-background-design_23-2148503793.avif") center/cover fixed no-repeat;
    background-blend-mode: overlay;
    overflow-x: hidden;
    position: relative;
}

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 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', Arial, sans-serif;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: rgba(79, 70, 229, 0.18);
    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);
    backdrop-filter: blur(18px);
}

header h1 {
    position: relative;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    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;
    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);
}

@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;
    color: transparent;
}

.skill-card h3 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    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;
    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;
}


@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 {
        min-height: auto;
        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: 'Space Grotesk', 'Inter', sans-serif;
        font-size: 1.15rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        background: linear-gradient(90deg, #38bdf8 0%, #8b5cf6 40%, #c084fc 70%, #9333ea 100%);
        -webkit-background-clip: text;
        color: transparent;
}

/* 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);
    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);
    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;
    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;
}

/* 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;
    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 {
    width: 100%;
    height: 100%;
    border: none;
}

.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;
}

.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;
}