:root {
    --bg-dark: #030303;
    --bg-grid: rgba(255, 255, 255, 0.02);
    --text-main: #fcfcfc;
    --text-muted: #9fa3a9;
    --text-darker: #70747a;
    --accent-1: #6E44FF;
    /* Vibrant purple */
    --accent-2: #00F0FF;
    /* Cyan */
    --accent-3: #FF3366;
    /* Vibrant Pink */
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-border-hover: rgba(255, 255, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    selection-background: var(--accent-1);
    selection-color: white;
    cursor: default;
}

code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--accent-2);
}

/* Background Effects */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(var(--bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.35;
    animation: float 25s infinite ease-in-out alternate;
    pointer-events: none;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-1) 0%, transparent 60%);
    top: -15%;
    left: -10%;
}

.blob-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-2) 0%, transparent 60%);
    bottom: -15%;
    right: -15%;
    animation-delay: -5s;
    opacity: 0.25;
}

.blob-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-3) 0%, transparent 60%);
    top: 60%;
    left: 40%;
    animation-delay: -10s;
    opacity: 0.15;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1) rotate(5deg);
    }

    66% {
        transform: translate(-30px, 40px) scale(0.9) rotate(-5deg);
    }

    100% {
        transform: translate(40px, 60px) scale(1.05) rotate(2deg);
    }
}

/* Custom Cursor Glow */
.glow-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: screen;
}

/* Layout Elements */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 0 2rem;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.logo span {
    color: var(--text-darker);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-item:hover {
    color: var(--text-main);
}

.contact-btn {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 1.4rem;
    border: 1px solid var(--card-border);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-btn svg {
    transition: transform 0.3s ease;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(0, 119, 181, 0.4);
    /* LinkedIn Blue Glow */
}

/* Social Icons in Navbar */
.social-nav {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--card-border);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
    color: #fff;
}

.social-icon.insta:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.4);
}

.social-icon.fb:hover {
    background: #1877F2;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.social-icon.linkedin:hover {
    background: #0077b5;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.4);
}

.social-icon.github:hover {
    background: #333;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-top: 2rem;
    max-width: 800px;
}

.badge-wrapper {
    margin-bottom: 2rem;
}

.badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-1);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-1);
}

.title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(110deg, #fff 0%, #a280ff 30%, #00f0ff 70%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 6s linear infinite;
    display: inline-block;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3.5rem;
    line-height: 1.6;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.primary-btn {
    text-decoration: none;
    background: var(--text-main);
    color: var(--bg-dark);
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
    background: #fff;
}

.secondary-btn {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, color 0.3s;
    padding-bottom: 4px;
}

.secondary-btn:hover {
    color: var(--accent-2);
    border-color: var(--accent-2);
}

/* Lab Section (Tools Grid) */
.lab-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-header h2 span {
    color: var(--text-darker);
    font-weight: 300;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
    font-weight: 300;
    max-width: 500px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
}

/* Premium Glass Card */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.interactive-card {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card-border-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.1), transparent 40%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.interactive-card:hover .card-border-glow {
    opacity: 1;
}

.interactive-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(110, 68, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: var(--card-border-hover);
}

.tool-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    position: relative;
    z-index: 2;
}

.dots {
    display: flex;
    gap: 7px;
    margin-right: 20px;
}

.dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #333;
}

.dots span:nth-child(1) {
    background: #ff5f56;
}

.dots span:nth-child(2) {
    background: #ffbd2e;
}

.dots span:nth-child(3) {
    background: #27c93f;
}

.tool-tab {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-darker);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.tool-body {
    padding: 2.2rem;
    flex: 1;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.icon-wrapper {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
}

.icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.icon-box.highlight {
    background: rgba(110, 68, 255, 0.1);
    border-color: rgba(110, 68, 255, 0.3);
    color: var(--accent-1);
    position: relative;
}

.icon-box.highlight::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(110, 68, 255, 0.6), rgba(0, 240, 255, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.arrow {
    color: var(--text-darker);
}

.interactive-card:hover .arrow {
    animation: bounceRight 2s infinite ease-in-out;
}

@keyframes bounceRight {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
        color: var(--accent-2);
    }
}

.tool-body h3 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
}

.tool-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex: 1;
}

.action-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.5rem;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-2);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-2);
}

.notify-btn {
    background: var(--text-main);
    color: var(--bg-dark);
    border: none;
    border-radius: 100px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.notify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
    background: #fff;
}

/* Placeholder Card */
.placeholder-card {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.08);
    background: transparent;
    box-shadow: none;
    min-height: 380px;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 2rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.placeholder-card:hover .placeholder-content {
    opacity: 0.8;
}

.empty-icon {
    color: var(--text-darker);
    margin-bottom: 1.5rem;
}

.placeholder-content h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.placeholder-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pulse {
    animation: pulsing 2s infinite;
}

@keyframes pulsing {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(110, 68, 255, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(110, 68, 255, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(110, 68, 255, 0);
    }
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--card-border);
    color: var(--text-darker);
    font-size: 0.85rem;
    padding: 2rem 0;
    margin-top: auto;
}

/* Animations Triggered via JS or Initial Load */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: revealUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Resume Page Specifics --- */
.resume-header {
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.resume-bio {
    padding: 3rem;
    margin-top: 2rem;
}

.resume-bio h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.resume-bio p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.social-bar {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.social-bar h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-family: 'Outfit';
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-btn .icon {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
}

.insta-card:hover {
    background: rgba(220, 39, 67, 0.1);
    border-color: rgba(220, 39, 67, 0.4);
    box-shadow: 0 8px 20px rgba(220, 39, 67, 0.15);
}

.insta-card:hover .icon {
    color: #dc2743;
}

.fb-card:hover {
    background: rgba(24, 119, 242, 0.1);
    border-color: rgba(24, 119, 242, 0.4);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.15);
}

.fb-card:hover .icon {
    color: #1877F2;
}

.linkedin-card:hover {
    background: rgba(0, 119, 181, 0.1);
    border-color: rgba(0, 119, 181, 0.4);
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.15);
}

.linkedin-card:hover .icon {
    color: #0077b5;
}

.github-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

.github-card:hover .icon {
    color: #fff;
}

.resume-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.resume-column {
    padding: 2.5rem;
}

.col-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 1rem;
}

.resume-column ul {
    list-style: none;
}

.resume-column ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.resume-column ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-1);
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid rgba(255, 255, 255, 0.06);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-2);
}

.timeline-item .date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-2);
    margin-bottom: 0.5rem;
}

.timeline-item h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    .hero {
        min-height: 70vh;
        margin-bottom: 2rem;
    }

    .title {
        font-size: 2.8rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
        gap: 1rem;
    }

    .primary-btn,
    .secondary-btn {
        text-align: center;
    }

    .secondary-btn {
        border: 1px solid var(--card-border);
        border-radius: 100px;
        padding: 0.8rem 2rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

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

    footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .blob {
        display: none;
    }

    /* Much better perf on mobile */
    .glow-cursor {
        display: none !important;
    }
}