/* Base Reset */
:root {
    --bg-main: #050505;
    --bg-sec: #0a0a0a;
    --bg-card: #111111;
    --text-main: #ffffff;
    --text-muted: #888888;

    --accent-glow: #00f0ff;
    --accent-sec: #7000ff;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Cursor --- */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-main);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    animation: pulseCursor 2s infinite;
}

/* --- Ambient Background --- */
.bg-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
}

.bg-gradient-orb {
    position: fixed;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -2;
    filter: blur(80px);
}

/* --- Nav --- */
.pro-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
}

.nav-cta {
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    transition: 0.3s;
}

.nav-cta:hover {
    background: white;
    color: black;
}

/* --- Containers --- */
.main-container {
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-padding {
    padding: 120px 0;
}

.title-lg {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.line-decor {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 60px;
}

/* --- Hero --- */
.hero-section {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    padding-top: 80px;
}

.hero-heading {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    line-height: 0.95;
    margin-bottom: 30px;
    letter-spacing: -3px;
}

.hero-heading .line {
    display: block;
}

.text-accent {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
    background: linear-gradient(90deg, var(--accent-glow), transparent);
    -webkit-background-clip: text;
    /* -webkit-text-fill-color: transparent; */
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 40px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--accent-glow);
    margin-bottom: 20px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
}

.ping {
    width: 8px;
    height: 8px;
    background: var(--accent-glow);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
    animation: blink 2s infinite;
}

/* --- Buttons --- */
.btn-magnetic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.btn-fill {
    position: absolute;
    width: 0%;
    height: 100%;
    background: white;
    top: 0;
    left: 0;
    z-index: -1;
    transition: 0.4s var(--ease-out);
}

.btn-magnetic:hover {
    color: black;
    border-color: white;
}

.btn-magnetic:hover .btn-fill {
    width: 100%;
}

.social-mini {
    display: inline-flex;
    gap: 20px;
    margin-left: 30px;
    vertical-align: middle;
}

.social-mini a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: 0.3s;
}

.social-mini a:hover {
    color: white;
    transform: translateY(-3px);
}

/* --- Hero Visual (Profile) --- */
.hero-split-visual {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.tilt-card {
    position: relative;
    width: 400px;
    height: 500px;
    transform-style: preserve-3d;
    transition: transform 0.1s;
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    filter: grayscale(80%) contrast(1.1);
    transition: 0.5s;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.tilt-card:hover .profile-pic {
    filter: grayscale(0%);
}

/* Profile Card Shine Effect */
.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 40%);
    pointer-events: none;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: translateZ(51px);
    /* Ensure it sits ON TOP of the image (which is at 50px) */
}

/* Moving Sheen */
/* Moving Sheen Animation */
.img-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: skewX(-25deg);
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: overlay;
    transition: 0s;
}

.tilt-card:hover .img-overlay::after {
    left: 200%;
    transition: 0.8s ease-in-out;
}

.tilt-card:hover .img-overlay {
    border-color: rgba(0, 240, 255, 0.8);
    box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.3);
}

/* Float Cards */
.float-card {
    position: absolute;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 5;
    transform: translateZ(30px);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.float-card:hover {
    border-color: var(--accent-glow);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
    background: rgba(20, 25, 30, 0.95);
    transform: translateZ(40px) translateY(-5px);
    cursor: auto;
}

.card-k8s {
    top: 50px;
    left: -40px;
}

.card-aws {
    bottom: 60px;
    right: -30px;
}

.float-card i {
    color: var(--accent-glow);
}

/* --- Marquee --- */
.tech-marquee {
    width: 100vw;
    margin-left: -5%;
    /* Counteract container padding */
    padding: 40px 0;
    background: var(--bg-sec);
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee-content {
    display: flex;
    gap: 50px;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
    font-weight: 700;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-content span.sep {
    color: var(--accent-sec);
    font-size: 1.5rem;
    vertical-align: middle;
}

/* --- Bento Grid (About) --- */
.bento-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 250px;
    gap: 20px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: 0.3s;
}

.bento-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.bio-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 10px;
}

.stat-card {
    align-items: center;
    text-align: center;
}

.stat-card .number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
}

.stat-card.highlight .number {
    color: var(--accent-glow);
}

.focus-list {
    list-style: none;
    margin-top: 20px;
}

.focus-list li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.focus-list i {
    color: var(--accent-glow);
    margin-right: 10px;
}

/* --- Work Feed --- */
.experience-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.job-card {
    display: grid;
    grid-template-columns: 1fr 3fr;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.job-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: #151515;
}

.job-company {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.job-date {
    display: block;
    color: var(--text-muted);
    margin-top: 10px;
    font-size: 0.9rem;
}

.job-role {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 400;
}

.job-desc {
    color: var(--text-muted);
    margin-bottom: 20px;
    max-width: 800px;
}

.tech-tags span {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    margin-right: 10px;
    color: #ccc;
}

/* --- Footer --- */
.footer-pro {
    padding: 80px 5%;
    background: var(--bg-sec);
    text-align: center;
}

.footer-cta {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 30px;
}

.email-link {
    font-size: 1.5rem;
    color: var(--accent-glow);
    text-decoration: none;
}

.footer-bottom {
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

/* --- Mobile Responsive Improvements --- */
@media (max-width: 900px) {
    .main-container {
        padding: 0 20px;
    }

    .section-padding {
        padding: 80px 0;
    }

    /* Nav */
    .pro-nav {
        padding: 20px;
        background: rgba(5, 5, 5, 0.9);
        backdrop-filter: blur(10px);
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-links {
        display: none;
        /* Hidden for simple mobile nav*/
    }

    .nav-cta {
        padding: 8px 15px;
        font-size: 0.75rem;
    }

    /* Hero */
    .hero-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: 100px;
        gap: 40px;
        text-align: center;
        min-height: auto;
        margin-bottom: 60px;
    }

    .hero-heading {
        font-size: 3rem;
        line-height: 1.1;
    }

    .hero-sub {
        font-size: 1rem;
        margin: 0 auto 30px auto;
    }

    .hero-actions {
        justify-content: center;
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .social-mini {
        margin-left: 0;
    }

    /* Hero Visual */
    .hero-split-visual {
        width: 100%;
        margin-top: 20px;
        order: -1;
    }

    .tilt-card {
        width: 100%;
        max-width: 350px;
        height: 400px;
        margin: 0 auto;
    }

    .float-card {
        transform: translateZ(0);
        z-index: 10;
        font-size: 0.8rem;
        padding: 8px 15px;
    }

    .card-k8s {
        top: 20px;
        left: -10px;
    }

    .card-aws {
        bottom: 30px;
        right: -10px;
    }

    /* Bento Grid */
    .bento-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .bento-card {
        min-height: auto;
        padding: 25px;
    }

    /* Stats */
    .stat-card .number {
        font-size: 2.5rem;
    }

    /* Job Cards */
    .job-card {
        grid-template-columns: 1fr;
        padding: 25px;
        gap: 15px;
    }

    .job-role {
        font-size: 1.4rem;
    }

    .tech-tags span {
        margin-bottom: 8px;
    }

    /* Marquee */
    .tech-marquee {
        padding: 20px 0;
    }

    .marquee-content {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer-cta {
        font-size: 2rem;
    }

    .email-link {
        font-size: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}

/* --- New Bento Card Styles --- */
.modules-card {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--bg-card) 0%, #111 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.caps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.cap-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 5px;
    text-align: center;
    border-radius: 8px;
    font-size: 0.8rem;
    font-family: var(--font-tech);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    transition: 0.3s;
    letter-spacing: 1px;
}

.cap-item:hover {
    border-color: var(--accent-glow);
    color: #fff;
    background: rgba(0, 240, 255, 0.05);
    transform: translateY(-3px);
}

@media (max-width: 900px) {
    .caps-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Image Mask for Clipping --- */
.pic-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    z-index: 1;
    transform: translateZ(0);
    /* Anchor for the image inside */
    pointer-events: none;
}