:root {
    --bg-main: #000000;
    --bg-surface: #0a0a0a;
    --bg-card: rgba(15, 15, 15, 0.6);
    --bg-card-hover: rgba(25, 25, 25, 0.8);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    --text-primary: #ededed;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --accent-glow: #8b5cf6;
    /* Vercel Purple / Agentic */
    --accent-glow-cyan: #06b6d4;

    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Stunning Vercel/Linear Style Background Grid + Glow */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: -10;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.75" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)" opacity="0.04"/%3E%3C/svg%3E');
    pointer-events: none;
}

.bg-pattern {
    position: fixed;
    inset: 0;
    z-index: -9;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    pointer-events: none;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -8;
    opacity: 0.15;
    pointer-events: none;
}

.orb-primary {
    top: -20%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: var(--accent-glow);
}

.orb-secondary {
    bottom: -10%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: var(--accent-glow-cyan);
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
}

/* Sleek Sidebar */
.sidebar {
    position: sticky;
    top: 0;
    width: 320px;
    height: 100vh;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-subtle);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(10, 10, 10, 0.5) 100%);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

/* Right Navigation Sidebar */
.right-sidebar {
    position: sticky;
    top: 0;
    width: 280px;
    height: 100vh;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-subtle);
    background: linear-gradient(-90deg, rgba(0, 0, 0, 0) 0%, rgba(10, 10, 10, 0.5) 100%);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.right-sidebar .nav-header {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-family: var(--font-mono);
}

/* QR Code Contact Box */
.qr-contact-box {
    margin-top: auto;
    padding-top: 3rem;
}

.qr-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
}

.qr-header svg {
    color: var(--accent-glow-cyan);
}

.qr-wrapper {
    background: #0a0a0a;
    border: 1px solid var(--border-subtle);
    padding: 12px;
    border-radius: 12px;
    display: inline-block;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.qr-wrapper:hover {
    transform: translateY(-5px);
    border-color: var(--accent-glow);
    box-shadow: 0 10px 25px rgba(167, 139, 250, 0.15);
}

.qr-image {
    width: 120px;
    height: 120px;
    display: block;
    border-radius: 6px;
    opacity: 0.9;
}

.qr-wrapper:hover .qr-image {
    opacity: 1;
}

.qr-hint {
    font-size: 0.75rem;
    color: var(--text-subtle);
    margin-top: 1rem;
}


.profile-section {
    margin-bottom: 3rem;
}

.profile-avatar {
    width: 100%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    margin: 2.5rem 0 1rem 0;
    /* Creates space between the role and the button */
    padding: 3px;
    background: linear-gradient(135deg, var(--accent-glow), var(--accent-glow-cyan));
    position: relative;
    display: block;
}

.profile-avatar::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-glow), var(--accent-glow-cyan));
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.profile-avatar:hover::before {
    opacity: 0.8;
}

.profile-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    /* Slightly tighter than parent's 16px */
    object-fit: cover;
    object-position: center top;
    background-image: linear-gradient(to bottom, rgba(167, 139, 250, 0.05), rgba(0, 0, 0, 0.6)), var(--bg-surface);
    border: 3px solid var(--bg-main);
    padding: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
    color: #a78bfa;
    margin-bottom: 1.5rem;
    background: rgba(167, 139, 250, 0.1);
    padding: 6px 12px;
    border-radius: 99px;
    border: 1px solid rgba(167, 139, 250, 0.2);
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.1);
}

.pulse {
    width: 6px;
    height: 6px;
    background: #a78bfa;
    border-radius: 50%;
    box-shadow: 0 0 10px #a78bfa;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.name {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.role {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.specialty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link svg {
    opacity: 0.7;
    width: 18px;
    height: 18px;
    transition: all 0.2s ease;
}

.nav-link.active svg {
    opacity: 1;
    color: #a78bfa;
}

/* Socials at bottom of sidebar */
.social-links {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 8px 0;
    transition: color 0.2s ease;
}

.social-btn:hover {
    color: #fff;
}

/* Main Content Area */
.content {
    flex-grow: 1;
    padding: 3rem 5rem;
    max-width: 1100px;
}

.content-section {
    margin-bottom: 8rem;
    scroll-margin-top: 4rem;
}

.section-heading {
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.section-heading h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
}

.heading-line {
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(90deg, var(--border-subtle) 0%, transparent 100%);
}

/* Refined Premium Card */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.lead-text {
    font-size: 1.35rem;
    font-weight: 300;
    color: #fff;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.lead-text strong {
    font-weight: 500;
    color: #a78bfa;
}

.description-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Tags styling */
.tag {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 99px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    display: inline-block;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.tag.tech-tag {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.05);
    border-color: rgba(167, 139, 250, 0.15);
}

.tag.code-tag {
    color: #f472b6;
    background: rgba(244, 114, 182, 0.05);
    border-color: rgba(244, 114, 182, 0.15);
}

.tag.data-tag {
    color: #34d399;
    background: rgba(52, 211, 153, 0.05);
    border-color: rgba(52, 211, 153, 0.15);
}

.tag.cloud-tag {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.05);
    border-color: rgba(56, 189, 248, 0.15);
}

.tag.sec-tag {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.05);
    border-color: rgba(251, 191, 36, 0.15);
}

.tag.qa-tag {
    color: #fb7185;
    background: rgba(251, 113, 133, 0.05);
    border-color: rgba(251, 113, 133, 0.15);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

.skill-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.skill-card h3 {
    font-size: 1.05rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-card h3::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: linear-gradient(135deg, #a78bfa, #38bdf8);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Timeline V2 - Linear Style */
.timeline {
    position: relative;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--border-subtle) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: 4rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.5rem;
    top: 5px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2px solid var(--text-muted);
    transform: translateX(-50%);
    transition: all 0.3s ease;
    z-index: 1;
}

.timeline-item:hover .timeline-dot {
    border-color: #a78bfa;
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.4);
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.25rem;
}

.header-row h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.date-badge {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.job-title {
    font-size: 1rem;
    color: #a78bfa;
    font-weight: 400;
    margin-bottom: 1.25rem;
}

.job-desc {
    list-style: none;
    margin-bottom: 1.5rem;
}

.job-desc li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.job-desc li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
}

.stack-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--bg-card-hover);
}

.project-card:hover::before {
    opacity: 1;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.project-icon {
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

.project-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Education */
.ed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.ed-list,
.cert-list {
    list-style: none;
}

.ed-list li,
.cert-list>li {
    position: relative;
    margin-bottom: 1.5rem;
}

.ed-list li:last-child,
.cert-list>li:last-child {
    margin-bottom: 0;
}

.ed-list strong,
.cert-list strong {
    display: block;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.ed-list span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.cert-list ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
}

.cert-list ul li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cert-list ul li::before {
    content: '';
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
}

/* Forms */
.styled-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group label .required {
    color: #f43f5e;
}

.form-input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-input:focus {
    outline: none;
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    background: rgba(10, 10, 10, 0.8);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-footer {
    display: flex;
    flex-direction: row;
    /* Force row on desktop */
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1rem;
}

.turnstile-wrapper {
    min-height: 65px;
    max-width: 100%;
}

.cf-turnstile {
    max-width: 100% !important;
}

.cf-turnstile iframe {
    max-width: 100% !important;
}

.submit-btn {
    width: auto;
    padding: 12px 28px;
}

.form-status {
    font-size: 0.9rem;
    display: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
}

.form-status.success {
    display: block;
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.form-status.error {
    display: block;
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.2);
}

/* Primary Button */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    border: 1px solid var(--border-subtle);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    width: 100%;
}

.btn-primary:hover {
    background: rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.3);
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.btn-primary svg {
    color: #a78bfa;
    transition: transform 0.2s ease;
}

.btn-primary:hover svg {
    transform: translateY(1px);
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Mobile Header (Hidden by default) */
.mobile-header {
    display: none;
}

@media (max-width: 1200px) {
    .app-container {
        flex-direction: column;
    }

    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem 2rem;
        background: rgba(10, 10, 10, 0.9);
        backdrop-filter: blur(15px);
        border-bottom: 1px solid var(--border-subtle);
        position: sticky;
        top: 0;
        z-index: 90;
    }

    .mobile-title {
        font-weight: 600;
        font-size: 1.1rem;
        font-family: var(--font-mono);
        color: var(--text-main);
    }

    #mobile-menu-btn {
        background: none;
        border: none;
        color: var(--text-main);
        cursor: pointer;
        padding: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(3px);
        z-index: 95;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .menu-overlay.open {
        opacity: 1;
        pointer-events: all;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 2rem;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .sidebar header {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .social-links {
        justify-content: center;
        width: 100%;
        margin-top: 2rem;
    }

    .profile-glow {
        margin-left: auto;
        margin-right: auto;
    }

    .profile-avatar {
        max-width: 180px;
    }

    .right-sidebar {
        position: fixed;
        top: 0;
        right: -320px;
        width: 280px;
        height: 100vh;
        padding: 6rem 2rem 2rem 2rem;
        /* Give room for close button or top padding */
        border-left: 1px solid var(--border-subtle);
        background: #080808;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
        z-index: 100;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .right-sidebar.open {
        right: 0;
    }

    .content {
        padding: 2rem;
    }
}

/* Mobile & Tablet Specific Form Fixes */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .form-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .turnstile-wrapper {
        display: flex;
        justify-content: center;
        overflow: hidden;
        max-width: 100%;
    }

    .cf-turnstile {
        transform: scale(0.85);
        /* Shrink widget slightly to fit small screens */
        transform-origin: center center;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Extra small screens fix */
@media (max-width: 380px) {
    .cf-turnstile {
        transform: scale(0.75);
    }
}

/* Body Push-Down Logic */
body.cookie-banner-active .app-container {
    padding-top: 3rem;
}

.app-container {
    transition: padding-top 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Cookie Consent Banner (Floating Top Pill) */
.cookie-toast {
    position: fixed;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    /* Pill shape */
    padding: 0.6rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    visibility: hidden;
    width: max-content;
    max-width: 90vw;
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.cookie-toast.show {
    top: 1rem;
    opacity: 1;
    visibility: visible;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cookie-content h4 {
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-content h4 span {
    background: linear-gradient(90deg, #fff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cookie-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.cookie-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-actions .cookie-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    justify-content: center;
    white-space: nowrap;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

@media (max-width: 1024px) {
    .cookie-toast {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        border-radius: 20px;
        justify-content: flex-start;
        align-items: stretch;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .cookie-actions {
        width: 100%;
        gap: 0.5rem;
    }

    .cookie-actions .cookie-btn {
        flex: 1;
    }

    .profile-avatar {
        margin: auto;
    }
}