/* --- Design Tokens --- */
:root {
    --bg: #0b0d12;
    --bg-soft: #11141c;
    --surface: #161a23;
    --surface-2: #1b202b;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #f5f5f7;
    --text-muted: #9aa1ad;
    --text-dim: #6b7280;
    --accent: #e5b266;
    --accent-soft: #f1c98a;
    --link: #cbd1dc;
    --success: #34c285;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --t: 0.25s ease;
}

/* --- Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated mesh ambient backdrop */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(900px 600px at 12% 8%, rgba(99, 102, 241, 0.22), transparent 55%),
        radial-gradient(800px 700px at 92% 88%, rgba(236, 72, 153, 0.16), transparent 55%),
        radial-gradient(700px 500px at 50% 50%, rgba(245, 158, 11, 0.10), transparent 60%);
    pointer-events: none;
    z-index: -3;
    animation: meshShift 20s ease-in-out infinite alternate;
}

@keyframes meshShift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-3%, 2%) scale(1.05); }
    100% { transform: translate(2%, -2%) scale(1); }
}

/* Faint dot grid */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: -2;
    pointer-events: none;
    opacity: 0.55;
}

/* Floating gradient blobs */
.floating-blobs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-blobs span {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.45;
    animation: blobFloat 22s ease-in-out infinite;
}

.floating-blobs span:nth-child(1) {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, #6366f1, transparent 70%);
    top: 6%;
    left: -10%;
    animation-delay: 0s;
}

.floating-blobs span:nth-child(2) {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, #ec4899, transparent 70%);
    bottom: 8%;
    right: -8%;
    animation-delay: -7s;
    opacity: 0.35;
}

.floating-blobs span:nth-child(3) {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, #f59e0b, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    opacity: 0.22;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(50px, -40px) scale(1.1); }
    66%      { transform: translate(-40px, 50px) scale(0.95); }
}

/* Cursor glow (desktop only) */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.20) 0%, rgba(236, 72, 153, 0.10) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: transform 0.16s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    will-change: transform;
    mix-blend-mode: screen;
    filter: blur(6px);
    opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
    body:hover .cursor-glow { opacity: 1; }
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #ec4899, #f59e0b);
    background-size: 200% 100%;
    z-index: 9999;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
    transition: width 0.08s linear;
    animation: progressShift 5s ease infinite;
}

@keyframes progressShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* Film grain overlay */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grainShift 0.7s steps(4) infinite;
}

@keyframes grainShift {
    0%, 100% { transform: translate(0, 0); }
    25%      { transform: translate(-2%, 1%); }
    50%      { transform: translate(1%, -1%); }
    75%      { transform: translate(-1%, 2%); }
}

::selection {
    background: var(--accent);
    color: #1a1306;
}

/* --- Navigation --- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 18px 0;
    background: rgba(11, 13, 18, 0.72);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--border);
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 6px;
    list-style: none;
    flex-wrap: wrap;
    padding: 0 16px;
}

nav ul li a {
    color: var(--link);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.94rem;
    letter-spacing: 0.2px;
    padding: 9px 18px;
    border-radius: 999px;
    transition: var(--t);
    display: inline-block;
}

nav ul li a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

/* --- Hero --- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 90px 20px 70px;
    text-align: center;
}

.hero-content {
    max-width: 760px;
    width: 100%;
    animation: rise 0.7s ease-out;
}

.hero h1 {
    font-size: clamp(2.4rem, 7vw, 3.8rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.6rem;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.hero h2 {
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    color: var(--accent);
    margin-bottom: 22px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero p {
    font-size: 1.08rem;
    color: var(--text-muted);
    margin: 0 auto 32px;
    max-width: 560px;
}

.cta-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    background: var(--text);
    color: #0b0d12;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    transition: var(--t);
    border: 1px solid transparent;
    cursor: pointer;
    margin: 6px 0;
}

.btn:hover {
    background: var(--accent);
    color: #1a1306;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text);
    color: var(--text);
}

/* --- Profile picture --- */
.profile-picture {
    width: 190px;
    height: 190px;
    margin: 0 auto 28px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(160deg, var(--accent), rgba(229, 178, 102, 0.2));
    position: relative;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--bg);
    display: block;
}

/* --- Social links --- */
.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 38px;
    flex-wrap: wrap;
}

.social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--link);
    font-size: 1rem;
    transition: var(--t);
    text-decoration: none;
}

.social-links a:hover {
    color: var(--text);
    background: var(--surface-2);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

/* --- Modal --- */
.contact-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 13, 18, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--surface);
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    max-width: 440px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: var(--shadow);
}

.modal-content h3 {
    margin: 14px 0 4px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

.modal-content input {
    width: 100%;
    padding: 13px 16px;
    margin: 8px 0;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    outline: none;
    font-family: inherit;
    font-size: 0.96rem;
    transition: var(--t);
}

.modal-content input::placeholder { color: var(--text-dim); }
.modal-content input:focus {
    border-color: var(--accent);
    background: var(--bg);
}

.close-modal-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--t);
}

.close-modal-btn:hover {
    color: var(--text);
    background: var(--surface-2);
}

/* --- Gallery & Works --- */
.gallery-section,
.video-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 20px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 36px;
    text-align: center;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.slider-container {
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
    box-shadow: var(--shadow);
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.slider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.slider img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.slider-nav button {
    background: rgba(11, 13, 18, 0.7);
    backdrop-filter: blur(6px);
    color: var(--text);
    border: 1px solid var(--border);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--t);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav button:hover {
    background: var(--accent);
    color: #1a1306;
    border-color: var(--accent);
}

/* --- Video grid --- */
.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
    align-items: start;
}

.video-wrapper {
    background: var(--surface);
    padding: 14px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--t);
    align-self: start;
    display: flex;
    flex-direction: column;
}

.video-wrapper:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    display: block;
    background: #000;
    aspect-ratio: 9 / 16;
    object-fit: cover;
}

/* --- Animations --- */
@keyframes rise {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: var(--surface-2);
    border-radius: 5px;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #2a3142; }

/* --- Footer --- */
footer {
    padding: 50px 20px 36px;
    border-top: 1px solid var(--border);
    text-align: center;
    margin-top: 60px;
    background: var(--bg-soft);
}

footer p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 4px 0;
}

footer .footer-nav {
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

footer .footer-nav a {
    color: var(--link);
    text-decoration: none;
    padding: 6px 14px;
    font-size: 0.88rem;
    border-radius: 999px;
    transition: var(--t);
}

footer .footer-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.developer-credit {
    margin-top: 10px !important;
    font-size: 0.85rem !important;
    color: var(--text-dim);
}

.developer-credit a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--t);
}

.developer-credit a:hover {
    color: var(--accent-soft);
}

/* --- Scroll reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Floating availability notice --- */
.floating-notice {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 1500;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background: rgba(22, 26, 35, 0.92);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 4px 4px 4px 4px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
    color: var(--text);
    transform: translateY(140%);
    opacity: 0;
    animation: noticeIn 0.5s ease 0.6s forwards;
    transition: transform 0.4s ease, opacity 0.35s ease, border-color 0.25s ease;
    max-width: calc(100vw - 44px);
}

.floating-notice:hover {
    border-color: rgba(52, 194, 133, 0.45);
    transform: translateY(-2px);
}

.floating-notice.hidden {
    transform: translateY(160%);
    opacity: 0;
    pointer-events: none;
}

.floating-notice-inner {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 6px 8px 16px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(52, 194, 133, 0.55);
    animation: pulse 2.2s ease-out infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(52, 194, 133, 0.55); }
    70%  { box-shadow: 0 0 0 12px rgba(52, 194, 133, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 194, 133, 0); }
}

.floating-notice-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.25;
}

.badge-label {
    color: var(--text);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.2px;
}

.badge-text {
    color: var(--text-muted);
    font-size: 0.74rem;
    letter-spacing: 0.3px;
}

.floating-notice .badge-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #25d366;
    color: #042f1a;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.2px;
    white-space: nowrap;
    transition: var(--t);
}

.floating-notice .badge-cta i {
    font-size: 0.95rem;
    color: #042f1a;
}

.floating-notice:hover .badge-cta {
    background: #2ee078;
}

.floating-notice-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: var(--t);
    padding: 0;
}

.floating-notice-close:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
    transform: rotate(90deg);
}

@keyframes noticeIn {
    to { transform: translateY(0); opacity: 1; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    nav ul { gap: 2px; }
    nav ul li a { font-size: 0.86rem; padding: 8px 14px; }
    .hero { padding: 60px 18px 50px; }
    .profile-picture { width: 160px; height: 160px; }
    .modal-content { padding: 28px 22px; }
    .video-container { grid-template-columns: 1fr; gap: 18px; }
    .slider-container { min-height: 280px; }
    .slider img { max-height: 75vh; }
    footer { padding: 40px 20px 28px; margin-top: 50px; }
}

@media (max-width: 600px) {
    .floating-notice {
        bottom: 14px;
        right: 14px;
        left: 14px;
        max-width: none;
        border-radius: 18px;
    }
    .floating-notice-inner {
        padding: 10px 10px 10px 14px;
        gap: 10px;
        flex-wrap: nowrap;
    }
    .floating-notice .badge-cta {
        font-size: 0.74rem;
        padding: 7px 10px;
    }
    .badge-label { font-size: 0.76rem; }
    .badge-text { font-size: 0.68rem; }
}

@media (max-width: 400px) {
    .floating-notice-inner {
        padding: 9px 8px 9px 12px;
        gap: 8px;
    }
    .badge-label { font-size: 0.72rem; letter-spacing: 0.1px; }
    .badge-text { font-size: 0.62rem; letter-spacing: 0.2px; }
    .floating-notice .badge-cta {
        font-size: 0.7rem;
        padding: 6px 9px;
        gap: 5px;
    }
    .floating-notice .badge-cta i { font-size: 0.85rem; }
}
