/* ====================
   RESET & BASE
   ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    cursor: none;
}

body {
    background-color: #0a0a0a;
    color: #e5e5e5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300;
    line-height: 1.5;
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor - forced on all elements */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: rgba(200, 200, 200, 0.85);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.08s linear;
}

/* Force cursor to remain custom dot on all interactive elements */
a, button, .cat-btn, .hero-cta, .social-icon, .gallery-item, .modal-close {
    cursor: none !important;
}

/* Global Grain Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    background-repeat: repeat;
    opacity: 0.25;
    mix-blend-mode: overlay;
}

::selection {
    background: #2a2a2a;
    color: #e0e0e0;
}

/* ====================
   TYPOGRAPHY
   ==================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    color: #ececec;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 1px;
    background: #5a5a5a;
    transition: width 0.4s ease;
}

.section-title:hover::after {
    width: 120px;
}

/* ====================
   HERO SECTION - Matrix Background
   ==================== */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #030303;
}

.hero-content {
    z-index: 3;
    position: relative;
}

.hero-title {
    font-size: 7rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #f0f0f0 0%, #a0a0a0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #bcbcbc;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid rgba(180, 180, 180, 0.4);
    color: #ddd;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: all 0.4s ease;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(5px);
    cursor: none !important;
}

.hero-cta:hover {
    background: rgba(40, 40, 40, 0.7);
    border-color: #aaa;
    transform: translateY(-3px);
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    opacity: 0.5;
    animation: bounceSoft 2s infinite;
    color: #aaa;
    z-index: 3;
}

@keyframes bounceSoft {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.9; }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease forwards;
}

.animate-fade-up-delay {
    animation: fadeUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.animate-fade-up-delay2 {
    animation: fadeUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================
   ABOUT SECTION - Left Personal Details + Right Bio
   ==================== */
.about {
    padding: 100px 5%;
    background: #0a0a0a;
    border-top: 1px solid #1c1c1c;
    border-bottom: 1px solid #1c1c1c;
}

.about-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: stretch;
}

/* LEFT SIDE - Personal Details */
.about-personal {
    flex: 1.2;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.9s ease;
}

.about-personal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.personal-details {
    margin: 2rem 0 2rem 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    padding: 1.5rem 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(60, 60, 60, 0.3);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    font-weight: 400;
}

.detail-value {
    font-size: 1rem;
    color: #ddd;
    font-weight: 350;
}

.specialization {
    margin-top: 1.5rem;
}

.specialization h3 {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 1rem;
    font-weight: 400;
}

.specialization-list {
    list-style: none;
    padding: 0;
}

.specialization-list li {
    padding: 0.5rem 0;
    color: #c0c0c0;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.2rem;
}

.specialization-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #6a6a6a;
}

/* RIGHT SIDE - Bio Card */
.about-bio {
    flex: 0.8;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease 0.15s, transform 0.9s ease 0.15s;
}

.about-bio.revealed {
    opacity: 1;
    transform: translateY(0);
}

.bio-card {
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 4px;
    border-left: 2px solid #5a5a5a;
    height: 100%;
}

.bio-card h3 {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 1.2rem;
}

.bio-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.bio-sign {
    font-size: 0.9rem;
    font-style: italic;
    color: #aaa;
    text-align: right;
}

/* ====================
   GALLERY - TRUE MASONRY
   ==================== */
.gallery {
    padding: 100px 5% 120px;
    background: #070707;
}

.gallery-header {
    max-width: 1400px;
    margin: 0 auto 3rem auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
}

.gallery-categories {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.cat-btn {
    background: transparent;
    border: none;
    color: #9a9a9a;
    font-family: 'Inter', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 6px 0;
    transition: all 0.25s;
    border-bottom: 1px solid transparent;
    cursor: none !important;
}

.cat-btn.active {
    color: #e0e0e0;
    border-bottom-color: #7a7a7a;
}

.cat-btn:hover {
    color: #fff;
    border-bottom-color: #5a5a5a;
}

.gallery-grid {
    max-width: 1400px;
    margin: 0 auto;
    column-count: 4;
    column-gap: 1.5rem;
}

@media (max-width: 1200px) {
    .gallery-grid { column-count: 3; }
}
@media (max-width: 800px) {
    .gallery-grid { column-count: 2; }
}
@media (max-width: 550px) {
    .gallery-grid { column-count: 1; }
}

.gallery-item {
    position: relative;
    break-inside: avoid;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border-radius: 3px;
    overflow: hidden;
    background: #111;
    cursor: none !important;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    opacity: 0;
    transform: scale(0.98);
}

.gallery-item img.loaded {
    opacity: 1;
    transform: scale(1);
}

.skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    z-index: 2;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 0 0 2px rgba(150, 150, 150, 0.2), 0 20px 30px -10px black;
    z-index: 5;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item.hide {
    display: none;
}

/* ====================
   MODAL
   ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    cursor: none !important;
}

.modal-content {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    animation: zoomFade 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 25px 45px rgba(0,0,0,0.5);
}

@keyframes zoomFade {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #ddd;
    font-size: 3rem;
    font-weight: 300;
    transition: 0.2s;
    cursor: none !important;
}

.modal-close:hover {
    color: white;
}

/* ====================
   SOCIAL
   ==================== */
.social {
    padding: 70px 5% 60px;
    text-align: center;
    background: #050505;
}

.social-subtle {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.social-icon {
    color: #a5a5a5;
    transition: all 0.25s ease;
    display: inline-flex;
    padding: 8px;
    cursor: none !important;
}

.social-icon:hover {
    color: #efefef;
    transform: scale(1.12) translateY(-3px);
}

/* ====================
   FOOTER
   ==================== */
.footer {
    background: #030303;
    padding: 2rem 5%;
    border-top: 1px solid #1a1a1a;
    text-align: center;
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
}

.footer-copyright {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: #777;
    margin-bottom: 0.5rem;
}

.footer-credit {
    font-size: 0.7rem;
    color: #555;
}

/* ====================
   RESPONSIVE
   ==================== */
@media (max-width: 800px) {
    .hero-title { font-size: 4rem; }
    .hero-tagline { font-size: 0.9rem; letter-spacing: 0.15em; }
    .section-title { font-size: 2rem; }
    .about-container { flex-direction: column; gap: 2rem; }
    .cursor-dot { display: none; }
    body { cursor: auto; }
    a, button, .cat-btn, .hero-cta, .social-icon, .gallery-item, .modal-close {
        cursor: pointer !important;
    }
}

@media (max-width: 550px) {
    .gallery-header { flex-direction: column; align-items: flex-start; }
    .modal-close { top: 20px; right: 25px; font-size: 2.5rem; }
}

img {
    pointer-events: auto;
    user-select: none;
    -webkit-user-drag: none;
}