#bgCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

nav {
    position: fixed !important;
    z-index: 50 !important;
}
section, footer {
    position: relative;
    z-index: 1;
    background: transparent;
}

section#hero-wrap { background: transparent; }

section:not(:first-of-type) {
    background: linear-gradient(180deg, rgba(6,4,24,0) 0%, rgba(6,4,24,0.5) 12%, rgba(6,4,24,0.5) 88%, rgba(6,4,24,0) 100%);
}
#mobileMenu {
    z-index: 50 !important;
}
#menuOverlay {
    z-index: 40 !important;
}
#artworkLightbox, #photoLightbox {
    z-index: 100 !important;
}
#mapModal, #successModal, #errorModal {
    z-index: 200 !important;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #060418; color: #ffffff; overflow-x: hidden; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #060418; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #3b82f6, #8b5cf6); border-radius: 3px; }

.text-gradient {
    background: linear-gradient(135deg, #60a5fa, #818cf8, #c084fc);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.text-gradient-blue {
    background: linear-gradient(135deg, #38bdf8, #60a5fa, #818cf8, #a78bfa);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}


@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}
.pulse-dot { animation: pulse-dot 2s ease-in-out infinite; }

.stat-card {
    background: rgba(59, 130, 246, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.18);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.stat-card:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(59, 130, 246, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6);
    transition: all 0.3s ease; position: relative; overflow: hidden;
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, #60a5fa, #818cf8, #a78bfa);
    opacity: 0; transition: opacity 0.3s ease;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
    box-shadow: 0 10px 30px -5px rgba(59, 130, 246, 0.45);
    transform: translateY(-1px);
}
.btn-primary span { position: relative; z-index: 1; }

.btn-outline {
    border: 1px solid rgba(99, 102, 241, 0.35);
    transition: all 0.3s ease;
}
.btn-outline:hover {
    border-color: rgba(99, 102, 241, 0.65);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -8px rgba(59, 130, 246, 0.25);
}

.nav-link {
    color: #a3a3c2; transition: color 0.2s ease, background 0.3s ease, padding 0.3s ease; 
    position: relative; border-radius: 8px; padding: 4px 10px;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -2px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease; border-radius: 1px;
}
.nav-link:hover { color: #ffffff; }
.nav-link:hover::after { width: 60%; }

.nav-link.active {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.28);
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.18);
}
.nav-link.active::after {
    width: 60%;
    background: linear-gradient(90deg, #60a5fa, #c084fc);
    box-shadow: 0 0 6px rgba(96, 165, 250, 0.6);
}

.photo-container { position: relative; }
.photo-container img { position: relative; z-index: 1; border-radius: 1.125rem; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }

.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.mobile-menu.open { transform: translateX(0); }

.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 8px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.marquee-track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-set {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.tech-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.12);
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: default;
    flex-shrink: 0;
}
.tech-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(59, 130, 246, 0.25);
}
.tech-item:hover .tech-name { color: #93c5fd; }
.tech-name {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    transition: color 0.3s ease;
}
.tech-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.tech-item:hover .tech-icon-wrap {
    background: rgba(59, 130, 246, 0.15);
    transform: scale(1.1);
}
@media (max-width: 640px) {
    .tech-item { padding: 6px 10px; gap: 6px; }
    .tech-icon-wrap { width: 24px; height: 24px; border-radius: 5px; }
    .tech-icon-wrap iconify-icon { width: 14px !important; }
    .tech-name { font-size: 10px; }
    .marquee-set { gap: 8px; }
    .marquee-track { animation-duration: 25s; }
}

.section-reveal {
    opacity: 0; transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.section-reveal.visible { opacity: 1; transform: translateY(0); }

.counter-number { font-variant-numeric: tabular-nums; }

.proj-card {
    background: rgba(59, 130, 246, 0.03);
    border: 1px solid rgba(99, 102, 241, 0.14);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.proj-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.06);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(59, 130, 246, 0.18);
}

.proj-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    font-size: 11px;
    font-weight: 700;
    color: #93c5fd;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    margin-top: 2px;
}

.proj-bullet {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.5;
}
.proj-bullet::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    flex-shrink: 0;
    margin-top: 6px;
}

.proj-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}
.proj-card:hover .proj-tag {
    border-color: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}

.artwork-item { overflow: hidden; border-radius: 0.75rem; position: relative; }
.artwork-item img { transition: transform 0.5s ease; width: 100%; height: 100%; object-fit: cover; display: block; }
.artwork-item:hover img { transform: scale(1.08); }
.artwork-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(6, 4, 24, 0.88) 0%, transparent 55%);
    opacity: 0; transition: opacity 0.3s ease;
    display: flex; align-items: flex-end; padding: 0.75rem;
}
.artwork-item:hover .artwork-overlay { opacity: 1; }

#artworkLightbox.open { opacity: 1; pointer-events: all; }
.art-lightbox-wrap {
    transform: scale(0.94) translateY(16px);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
#artworkLightbox.open .art-lightbox-wrap { transform: scale(1) translateY(0); }

.form-input {
    background: rgba(59, 130, 246, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.18);
    transition: all 0.3s ease; color: #fff;
}
.form-input:focus {
    outline: none; border-color: rgba(59, 130, 246, 0.55);
    background: rgba(59, 130, 246, 0.07);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.form-input::placeholder { color: #4b5280; }

.feedback-modal { transition: opacity 0.3s ease; }
.feedback-modal.show { opacity: 1 !important; pointer-events: auto !important; }
.feedback-modal.show .modal-box { transform: scale(1) !important; }

html { scroll-behavior: smooth; }

.name-large {
    font-size: clamp(2.2rem, 8vw, 6rem);
    font-weight: 800; line-height: 1; letter-spacing: -0.03em;
}

#profilePhotoWrap { overflow: hidden; }
#profilePhotoWrap img {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}
#profilePhotoWrap:hover img {
    transform: scale(1.04);
    box-shadow: 0 30px 60px -20px rgba(59, 130, 246, 0.35);
}
#photoLightbox.open { opacity: 1; pointer-events: all; }
.lightbox-img-wrap {
    transform: scale(0.85);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
#photoLightbox.open .lightbox-img-wrap { transform: scale(1); }

@media (max-width: 1023px) {
    .photo-container img { width: 260px; height: 320px; }
}
@media (max-width: 767px) {
    .photo-container img { width: 220px; height: 280px; }
}
@media (max-width: 640px) {
    .photo-container img { width: 180px; height: 230px; }
    .stat-card { padding: 12px !important; }
    .stat-card .text-2xl { font-size: 1.25rem; }
    .artwork-overlay { padding: 0.5rem; }
    .artwork-overlay span { font-size: 10px; }
    
    body { overflow-x: hidden; }
    .art-lightbox-wrap { border-radius: 1rem; }
}

* { word-break: break-word; }
a, button, span, p, h1, h2, h3 { word-break: normal; overflow-wrap: break-word; }

.delay-reveal-1 { transition-delay: 0.1s; }
.delay-reveal-2 { transition-delay: 0.2s; }
.delay-reveal-3 { transition-delay: 0.3s; }

.map-iframe { width: 100%; height: 100%; border: 0; display: block; }
