/* --- Base & Variables --- */
:root {
    --bg-color: #0e0e0e;
    --text-color: #ececec;
    --text-muted: #888888;
    --accent-color: #d4fe15; /* Neon Lime Accent */
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.loading {
    overflow: hidden; /* Prevent scroll until loaded */
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Custom Cursor --- */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference; /* Cool invert effect */
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor.hovering {
    width: 60px;
    height: 60px;
    background-color: white;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: 40px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.nav-links a {
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    padding: 150px 50px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(rgba(14, 14, 14, 0.65), rgba(14, 14, 14, 0.95)), url('bg.jpg') center/cover no-repeat;
    position: relative;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.float-icon {
    position: absolute;
    fill: var(--accent-color);
    opacity: 0.08;
    animation: float-icon 8s ease-in-out infinite alternate;
}

.icon-ios {
    top: 15%;
    left: 10%;
    width: 180px;
    height: 180px;
    animation-delay: 0s;
}

.icon-android {
    top: 55%;
    right: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 1.5s;
}

.icon-ai {
    bottom: 10%;
    left: 45%;
    width: 130px;
    height: 130px;
    animation-delay: 3s;
}

.icon-google {
    top: 30%;
    right: 15%;
    width: 140px;
    height: 140px;
    animation-delay: 2s;
}

.icon-flutter {
    bottom: 15%;
    right: 45%;
    width: 160px;
    height: 160px;
    animation-delay: 4.5s;
}

@keyframes float-icon {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    100% { transform: translateY(-40px) rotate(15deg) scale(1.05); }
}

.hero-middle {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 50px 0;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 15rem);
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin: 0;
}

.hero-extra {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 40px;
    padding-right: 2vw;
}

.spinning-badge {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: spin 15s linear infinite;
}

.badge-center {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: right;
}

.hero-stats .stat h3 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--accent-color);
    line-height: 1;
}

.hero-stats .stat p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-top: 5px;
    line-height: 1.4;
}

.line-wrap {
    overflow: hidden;
}

.reveal-text {
    display: block;
    transform: translateY(100%);
}

.accent-text {
    color: var(--accent-color);
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.hero-bottom p {
    max-width: 400px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.scroll-down {
    width: 32px;
    height: 32px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* --- Marquee --- */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: var(--accent-color);
    color: var(--bg-color);
    padding: 20px 0;
    transform: rotate(-2deg) scale(1.05); /* Slight tilt for edge */
    margin: 100px 0;
}

.marquee {
    display: flex;
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    animation: scroll-marquee 20s linear infinite;
}

.marquee span {
    padding: 0 30px;
}

.marquee .dot {
    font-size: 1rem;
    line-height: 2rem;
    vertical-align: middle;
}

@keyframes scroll-marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* --- About Section --- */
.about {
    padding: 150px 50px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.profile-img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    filter: grayscale(80%);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.profile-img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.about-header h2 {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.about-text p {
    font-size: 1.8rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.4;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--text-color);
    border-radius: 40px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: background 0.3s, color 0.3s;
}

.btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* --- Work / Experience Section --- */
.work {
    padding: 100px 50px;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 80px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.experience-list {
    display: flex;
    flex-direction: column;
}

.exp-row {
    display: grid;
    grid-template-columns: 200px 1fr 1fr;
    gap: 40px;
    padding: 60px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: padding 0.4s ease, background 0.4s ease;
}

.exp-row:hover {
    padding-left: 30px;
    padding-right: 30px;
    background: rgba(255,255,255,0.02);
}

.exp-date {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 1rem;
}

.exp-title h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 10px;
}

.exp-title span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 300;
}

.exp-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.exp-desc p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- Footer --- */
.footer {
    padding: 150px 50px 50px;
    background: var(--text-color);
    color: var(--bg-color);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 100px;
}

.footer-top h2 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 8rem);
    line-height: 0.9;
    letter-spacing: -0.03em;
}

.footer-top .accent-text {
    color: #111; /* Darken accent for light bg */
    -webkit-text-stroke: 1px var(--bg-color);
    color: transparent;
}

.socials {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 1.2rem;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .exp-row {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 40px 0;
    }
    .hero-middle {
        flex-direction: column;
        align-items: flex-start;
        gap: 50px;
    }
    .hero-extra {
        align-items: flex-start;
        padding-right: 0;
    }
    .hero-stats {
        text-align: left;
        flex-direction: row;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 20px;
    }
    .nav-links {
        display: none;
    }
    .hero {
        padding: 120px 20px 40px;
    }
    .about {
        padding: 80px 20px;
    }
    .work {
        padding: 80px 20px;
    }
    .footer {
        padding: 80px 20px 40px;
    }
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 50px;
    }
    
    /* Touch devices: disable custom cursor */
    @media (pointer: coarse) {
        * { cursor: auto; }
        .cursor { display: none; }
    }
}
