:root {
    --bg-base: #f4f5f7;
    --text-main: #0f1419;
    --text-muted: #536471;
    --card-bg: #ffffff;
    --primary-color: #000000;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-radius: 20px;
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf5f0; 
}
::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #333333;
}

body, a, button, input, textarea, .cursor-pointer, .project-card, .social-pill, .bento-card, .skill-item {
    cursor: none !important;
}

.custom-sprite-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 999999999; 
    width: 40px; 
    height: 40px;
    background-image: url('https://cdn-icons-png.flaticon.com/512/10613/10613611.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: -8px;
    margin-top: -5px;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-sprite-cursor.hovering {
    transform: scale(1.3); 
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: transparent; 
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
    width: 100vw;
}

.page-wrapper {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    overflow-y: clip;
}

.fixed-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -10;
    background-color: #fdf5f0; 
    overflow: hidden;
}

.fixed-bg::before, .fixed-bg::after, .bg-shape-3 {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: driftBlob 15s infinite alternate ease-in-out;
}

.fixed-bg::before { 
    top: -10%; right: -20%; left: auto;
    width: 90vw; height: 90vw;
    background: radial-gradient(circle, rgba(255, 150, 195, 0.7) 0%, transparent 65%);
}

.fixed-bg::after { 
    bottom: -20%; left: 20%; top: auto; right: auto;
    width: 80vw; height: 80vw;
    background: radial-gradient(circle, rgba(160, 195, 255, 0.65) 0%, transparent 65%);
    animation-delay: -5s;
}

.bg-shape-3 { 
    top: 20%; left: -20%; bottom: auto; right: auto;
    width: 70vw; height: 70vw;
    background: radial-gradient(circle, rgba(255, 225, 190, 0.8) 0%, transparent 65%);
    animation-delay: -10s;
}

@keyframes driftBlob {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.05) translate(4%, 4%); } 
}

* { box-sizing: border-box; }

.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 20px 0; z-index: 1000;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 5%;
    display: flex; justify-content: space-between; align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem; 
    font-weight: 800; 
    letter-spacing: -0.5px;
    color: var(--primary-color);
}
.logo img {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.nav-links {
    list-style: none; display: flex; margin: 0; padding: 0; gap: 30px;
}
.nav-links a {
    text-decoration: none; color: var(--text-muted);
    font-weight: 500; font-size: 1rem; transition: var(--transition);
}
.nav-links a:hover { color: var(--primary-color); }

section {
    max-width: 1200px; margin: 0 auto; padding: 120px 5% 60px;
}
.section-header { margin-bottom: 50px; }
.section-header h2 {
    font-size: 2.5rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -1px;
}
.sub-line {
    height: 4px; width: 60px; background: var(--primary-color); border-radius: 2px;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: 100px;
}

.hero-content {
    flex: 1;
    min-width: 320px;
    max-width: 600px;
    margin-right: 40px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(135deg, #ff6b6b 0%, #4a90e2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.typewrite > .wrap {
    border-right: 0.08em solid var(--primary-color);
    padding-right: 2px;
    animation: blink-caret 0.75s step-end infinite;
}
@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-color); }
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-socials {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.social-pill {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 100px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.social-pill:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.social-pill svg {
    width: 20px; height: 20px; margin-right: 10px;
}

.hero-image-wrap {
    flex: 1;
    min-width: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

.hero-image-wrap img {
    width: 450px;
    height: 450px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    border: 10px solid #ffffff;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.hero-actions { display: flex; gap: 15px; margin-bottom: 25px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 32px; font-weight: 600; text-decoration: none;
    border-radius: 100px; transition: var(--transition);
    font-size: 1rem; border: none; font-family: inherit;
}
.btn-primary { background: var(--primary-color); color: #fff; border: 2px solid var(--primary-color); }
.btn-primary:hover { background: transparent; color: var(--primary-color); }
.btn-outline { background: transparent; color: var(--primary-color); border: 2px solid var(--border-color); }
.btn-outline:hover { border-color: var(--primary-color); }

.marquee-wrapper {
    width: 100%; overflow: hidden; background: #ffffff;
    padding: 25px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
}
.marquee {
    display: flex; width: max-content;
    animation: scrollAnimation 30s linear infinite; padding-left: 30px;
}
@keyframes scrollAnimation {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.skill-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 25px; background: var(--bg-base);
    border-radius: 100px; margin-right: 30px; border: 1px solid var(--border-color);
}
.skill-item img { width: 28px; height: 28px; object-fit: contain; }
.skill-item span { font-weight: 700; font-size: 1.1rem; }
.skill-item img.invert { filter: invert(1); }

.about-bento {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.bento-card {
    background: var(--card-bg); border-radius: var(--border-radius);
    padding: 40px; border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02); 
}
.about-desc { grid-column: 1 / 4; }
.about-desc h3 { font-size: 2rem; margin: 0 0 20px 0; }
.about-desc p {
    font-size: 1.15rem; color: var(--text-muted); line-height: 1.6; margin: 0;
}
.stat-card {
    display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center;
}
.stat-card.outline { background: transparent; border: 2px dashed var(--border-color); box-shadow: none; }
.stat-number {
    font-size: 3.5rem; font-weight: 800; margin: 0 0 10px 0; letter-spacing: -2px;
    background: linear-gradient(135deg, #000 0%, #555 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 1rem; color: var(--text-muted); font-weight: 500; margin: 0; }

.project-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px;
}
.project-card {
    background: var(--card-bg); border-radius: var(--border-radius); overflow: hidden;
    border: 1px solid var(--border-color); box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    display: flex; flex-direction: column; will-change: transform;
}

.project-img-wrapper {
    width: 100%; height: 300px; background: rgba(0,0,0,0.02); overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.project-img-wrapper img {
    width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 10px;
}
.project-card:hover .project-img-wrapper img { transform: scale(1.05); }

.modal, .modal * {
    cursor: none !important;
}
.modal {
    display: none;
    position: fixed;
    z-index: 9999999; 
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}
.modal-content {
    max-width: 90vw; max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    animation: zoomInModal 0.3s ease;
}
@keyframes zoomInModal {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}
.cross-close {
    position: absolute;
    top: 25px; right: 40px;
    color: #ffffff;
    font-size: 55px;
    font-weight: 300;
    line-height: 1;
    transition: 0.3s;
}
.cross-close:hover { color: #ff6b6b; transform: scale(1.1); }

.project-info { 
    padding: 30px; flex-grow: 1; display: flex; flex-direction: column; 
}
.project-meta {
    font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
    color: var(--text-muted); letter-spacing: 1px; margin-bottom: 10px;
}
.project-info h3 { font-size: 1.8rem; margin: 0 0 15px 0; font-weight: 700; color: var(--text-main); }
.project-info p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; margin: 0 0 25px 0; flex-grow: 1; }
.project-link {
    font-weight: 700; color: var(--primary-color); text-decoration: none;
    font-size: 1.1rem; display: inline-flex; align-items: center; transition: var(--transition);
}
.project-link:hover { transform: translateX(10px); }

.load-more-container {
    text-align: center;
    margin-top: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.contact-method {
    text-align: center;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    transition: transform 0.4s;
    background: #ffffff; 
}
.contact-method:hover {
    transform: translateY(-10px);
}
.contact-icon {
    width: 80px; height: 80px; 
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    margin-bottom: 25px;
}
.contact-icon svg { width: 40px; height: 40px; color: #fff; }
.tg-icon { background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%); box-shadow: 0 10px 20px rgba(0, 114, 255, 0.3); }
.gh-icon { background: linear-gradient(135deg, #333 0%, #000 100%); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.contact-method h3 { font-size: 2rem; margin: 0 0 10px; }
.contact-method p { color: var(--text-muted); font-size: 1.1rem; margin: 0 0 30px; }

footer { border-top: 1px solid var(--border-color); padding: 30px 5%; }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); }
.footer-socials a { color: var(--text-muted); text-decoration: none; margin-left: 20px; font-weight: 600; transition: var(--transition); }
.footer-socials a:hover { color: var(--primary-color); }

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.appear { opacity: 1; transform: translateY(0); }

.hamburger { display: none; cursor: pointer; z-index: 1001; }
.hamburger .line { width: 30px; height: 2px; background: var(--text-main); margin: 6px 0; transition: var(--transition); }

@media (max-width: 900px) {
    .hero { flex-direction: column-reverse; text-align: center; justify-content: center; }
    .hero-content { margin-right: 0; margin-top: 40px;}
    .hero-content h1 { font-size: 3rem; }
    .hero-image-wrap img { width: 320px; height: 320px; }
    .hero-actions { justify-content: center; }
    .hero-socials { justify-content: center; }

    .project-grid { grid-template-columns: 1fr; }
    .about-bento { grid-template-columns: 1fr; }
    .about-desc { grid-column: 1 / 2; }
}

@media (max-width: 768px) {
    body, a, button, .cursor-pointer, .project-card, .social-pill, .bento-card, .skill-item {
        cursor: auto !important;
    }

    .custom-sprite-cursor {
        display: none !important;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        position: fixed; right: -100%; top: 0; height: 100vh; width: 80%; max-width: 400px;
        background: #ffffff; flex-direction: column; align-items: center; justify-content: center;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    .nav-links.active { right: 0; }
    .hamburger { display: block; }
    .hamburger.active .line:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .hamburger.active .line:nth-child(2) { opacity: 0; }
    .hamburger.active .line:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
    
    .tilt-target { transform: none !important; }
}
