:root[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --green-play: #059669;
    --border: #e2e8f0;
    --card-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06);
}

:root[data-theme="dark"] {
    --bg-primary: #090d16;
    --bg-secondary: #111827;
    --bg-tertiary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --green-play: #10b981;
    --border: #1f2937;
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background-color: color-mix(in srgb, var(--bg-primary) 85%, transparent);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.theme-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    cursor: pointer;
    font-size: 1rem;
}

/* Hero Section with Avatar */
.hero {
    padding: 5rem 0 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background-color: var(--bg-secondary);
    color: var(--accent);
    border: 1px solid var(--border);
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.35rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.gradient-text {
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

/* Profile Avatar Styling */
.hero-avatar-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-glow {
    position: absolute;
    width: 270px;
    height: 270px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.profile-avatar {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow: var(--card-shadow);
    position: relative;
    z-index: 1;
    background-color: var(--bg-secondary);
}

.avatar-status {
    margin-top: -16px;
    z-index: 2;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--card-shadow);
}

.pulse-dot {
    width: 9px;
    height: 9px;
    background-color: var(--green-play);
    border-radius: 50%;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.35rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-playstore {
    background-color: var(--accent);
    color: #ffffff;
}

.btn-playstore:hover {
    filter: brightness(1.1);
}

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Sections */
.section {
    padding: 4.5rem 0;
    border-top: 1px solid var(--border);
}

.section-title {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-desc {
    color: var(--text-secondary);
    margin-bottom: 2.25rem;
    font-size: 0.95rem;
}

/* Flagship Lumeria Card */
.spotlight-kicker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--green-play);
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 0.3rem;
}

.flagship-card {
    margin-top: 1.5rem;
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--accent);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    display: grid;
    grid-template-columns: 1.15fr 1fr;
}

.flagship-carousel {
    height: 100% !important;
    min-height: 360px;
}

.install-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 6;
    background: rgba(5, 150, 105, 0.95);
    color: #fff;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.flagship-content {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flagship-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.flagship-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.flagship-highlights {
    padding-left: 1.2rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.flagship-highlights li {
    margin-bottom: 0.4rem;
}

.flagship-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

/* Projects & Media Carousel */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 1.75rem;
}

.project-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.media-carousel {
    position: relative;
    width: 100%;
    height: 240px;
    background-color: transparent;
    overflow: hidden;
}

.carousel-track,
.carousel-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-slide {
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fixed Caption Visibility & Wrapping */
.media-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.95));
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 1.25rem 0.85rem 0.5rem 0.85rem;
    text-align: center;
    z-index: 4;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.dot.active {
    background: var(--accent);
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background-color: var(--bg-tertiary);
    color: var(--accent);
    font-weight: 500;
}

.project-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    flex-grow: 1;
}

/* Project Links & Buttons Alignment */
.project-links {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-icon {
    opacity: 0.85;
}

.github-btn {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.github-btn:hover {
    border-color: var(--accent);
    background-color: color-mix(in srgb, var(--bg-tertiary) 70%, var(--accent));
}

.demo-btn {
    background: linear-gradient(135deg, var(--accent), #06b6d4);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.demo-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Freelance Cards */
.freelance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.freelance-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.75rem;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease;
    box-shadow: var(--card-shadow);
}

.freelance-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.freelance-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.freelance-platform {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent);
}

.freelance-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

.freelance-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.freelance-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.freelance-cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
}

/* Experience Timeline */
.timeline {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-left: 2px solid var(--border);
    padding-left: 1.75rem;
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -2.15rem;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent);
}

.timeline-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.timeline-item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.timeline-item h3 span {
    color: var(--text-secondary);
    font-weight: 500;
}

.timeline-item ul {
    padding-left: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.timeline-item li {
    margin-bottom: 0.35rem;
}

/* Skills Grid */
.skills-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.skill-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-text {
    color: var(--text-secondary);
    margin: 1rem 0 1.5rem;
}

.direct-links p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.direct-links a {
    color: var(--accent);
    text-decoration: none;
}

.contact-form {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-status {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
}

.footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Testimonials Grid & Column Header Layout */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 1.75rem;
}

.testimonial-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.testimonial-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.testimonial-top-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 2px;
}

.testimonial-project {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    background-color: var(--bg-tertiary);
    color: var(--accent);
    font-weight: 500;
}

.testimonial-quote {
    color: var(--text-primary);
    font-size: 0.92rem;
    font-style: italic;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #06b6d4);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-author h4 {
    font-size: 0.92rem;
    font-weight: 700;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .hero-grid,
    .flagship-card,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .hero-avatar-wrapper {
        order: -1;
    }
    .nav-links a {
        display: none;
    }
}

/* 2026 visual refresh */
:root[data-theme="light"] {
    --bg-primary: #f7f9fc;
    --bg-secondary: rgba(255, 255, 255, 0.82);
    --bg-tertiary: #edf2f8;
    --text-primary: #101827;
    --text-secondary: #526176;
    --accent: #1769e0;
    --accent-hover: #0d56c5;
    --accent-soft: rgba(23, 105, 224, 0.1);
    --cyan: #06a6b9;
    --border: rgba(37, 63, 94, 0.12);
    --card-shadow: 0 20px 60px -35px rgba(15, 38, 72, 0.28);
}

:root[data-theme="dark"] {
    --bg-primary: #070b12;
    --bg-secondary: rgba(15, 23, 36, 0.78);
    --bg-tertiary: #172235;
    --text-primary: #f3f7fc;
    --text-secondary: #9daabd;
    --accent: #5592ff;
    --accent-hover: #7aa9ff;
    --accent-soft: rgba(85, 146, 255, 0.12);
    --cyan: #22d3c5;
    --border: rgba(148, 163, 184, 0.14);
    --card-shadow: 0 24px 70px -36px rgba(0, 0, 0, 0.85);
}

html {
    scroll-padding-top: 6rem;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 30rem),
        radial-gradient(circle at 88% 30%, color-mix(in srgb, var(--cyan) 7%, transparent), transparent 26rem);
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    opacity: 0.2;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, black, transparent 75%);
}

::selection {
    color: #fff;
    background: var(--accent);
}

.scroll-progress {
    position: fixed;
    inset: 0 0 auto;
    height: 3px;
    z-index: 200;
}

.scroll-progress span {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
    box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 70%, transparent);
}

.ambient-orb {
    position: fixed;
    z-index: -2;
    width: 22rem;
    aspect-ratio: 1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
    opacity: 0.09;
    animation: orb-drift 16s ease-in-out infinite alternate;
}

.ambient-orb-one { top: 12%; left: -10rem; background: var(--accent); }
.ambient-orb-two { right: -12rem; top: 55%; background: var(--cyan); animation-delay: -8s; }

.container { max-width: 1200px; }

.navbar {
    background: color-mix(in srgb, var(--bg-primary) 78%, transparent);
    border-bottom-color: color-mix(in srgb, var(--border) 75%, transparent);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.nav-content { height: 5rem; }

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 1.15rem;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    margin-right: 0.4rem;
    border-radius: 0.65rem;
    color: white !important;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    box-shadow: 0 8px 24px -10px var(--accent);
}

.nav-links { gap: 1.25rem; }

.nav-links a {
    position: relative;
    font-size: 0.84rem;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -0.5rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
    transition: right 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--text-primary); }

.theme-btn {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    border-radius: 50%;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.theme-btn:hover { transform: rotate(12deg); border-color: var(--accent); }

.hero {
    position: relative;
    min-height: calc(100vh - 5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5.75rem 0 4.25rem;
}

.hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); gap: 5rem; }

.hero-text { animation: hero-enter 0.8s cubic-bezier(.2,.8,.2,1) both; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-primary);
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--accent) 28%, transparent);
    letter-spacing: 0.02em;
}

.badge-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--cyan) 45%, transparent);
    animation: badge-pulse 2s infinite;
}

.hero h1 {
    max-width: 12ch;
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
    margin-bottom: 1.5rem;
}

.gradient-text {
    padding-right: 0.06em;
    background-image: linear-gradient(110deg, var(--accent) 5%, var(--cyan) 52%, var(--accent) 95%);
    background-size: 200% auto;
    animation: gradient-flow 7s linear infinite;
}

.subtitle { max-width: 760px; font-size: 1.02rem; line-height: 1.85; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 46px;
    border-radius: 0.8rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary, .btn-playstore { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--cyan))); box-shadow: 0 12px 30px -14px var(--accent); }
.btn-primary:hover, .btn-playstore:hover { box-shadow: 0 18px 34px -15px var(--accent); }

.hero-avatar-wrapper {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    isolation: isolate;
    transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    transition: transform 0.18s ease-out;
    animation: avatar-enter 0.9s 0.15s cubic-bezier(.2,.8,.2,1) both;
}

.hero-avatar-wrapper::before,
.hero-avatar-wrapper::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    border-radius: 50%;
    animation: orbit 18s linear infinite;
}

.hero-avatar-wrapper::before { width: 320px; height: 320px; }
.hero-avatar-wrapper::after { width: 365px; height: 365px; animation-direction: reverse; animation-duration: 25s; }

.avatar-glow { width: 340px; height: 340px; animation: glow-breathe 4s ease-in-out infinite; }

.profile-avatar {
    width: min(310px, 76vw);
    height: min(360px, 88vw);
    border-radius: 2.25rem;
    object-fit: cover;
    object-position: center 24%;
    border: 1px solid color-mix(in srgb, var(--accent) 60%, white 15%);
    box-shadow: 0 35px 80px -35px color-mix(in srgb, var(--accent) 55%, #000);
}

.avatar-status {
    margin-top: -18px;
    padding: 0.55rem 1rem;
    backdrop-filter: blur(18px);
}

.pulse-dot { animation: badge-pulse 2s infinite; }

.quick-stats {
    gap: 0;
    padding-top: 0;
    border: 1px solid var(--border);
    border-radius: 1.1rem;
    overflow: hidden;
    background: color-mix(in srgb, var(--bg-secondary) 76%, transparent);
    backdrop-filter: blur(16px);
}

.stat { padding: 1.35rem 1.4rem; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat-num { font-size: 1.25rem; letter-spacing: -0.03em; }

.section { padding: 6.5rem 0; border-top-color: color-mix(in srgb, var(--border) 65%, transparent); }
.section-header { max-width: 760px; margin-bottom: 2.3rem; }
.section-title { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: -0.045em; }
.section-desc { max-width: 660px; line-height: 1.7; margin-bottom: 0; }

.spotlight-kicker { margin-bottom: 0.65rem; }

.flagship-card {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    position: relative;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border));
    border-radius: 1.5rem;
    background: linear-gradient(145deg, color-mix(in srgb, var(--bg-secondary) 92%, var(--accent) 8%), var(--bg-secondary));
    box-shadow: 0 35px 90px -50px color-mix(in srgb, var(--accent) 45%, #000);
}

.flagship-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255,255,255,0.06), transparent 28%);
}

.flagship-carousel { min-height: 520px; background: linear-gradient(145deg, #0b1220, #101e36); }
.flagship-carousel .carousel-slide { padding: 1.75rem; }

.flagship-carousel .carousel-slide img,
.flagship-carousel .carousel-slide video {
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(0,0,0,0.4));
}

.flagship-content { padding: clamp(2rem, 5vw, 3.5rem); }
.flagship-content h3 { font-size: clamp(1.7rem, 3vw, 2.35rem); letter-spacing: -0.04em; }
.flagship-desc { line-height: 1.75; }
.flagship-highlights { max-height: 260px; overflow: auto; padding-right: 0.75rem; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.flagship-highlights li::marker { color: var(--cyan); }

.projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }

.project-card,
.freelance-card,
.testimonial-card,
.skill-card,
.contact-form {
    border-color: var(--border);
    background: var(--bg-secondary);
    backdrop-filter: blur(14px);
    box-shadow: var(--card-shadow);
}

.project-card,
.freelance-card {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    transition: transform 0.22s ease-out, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover,
.freelance-card:hover,
.testimonial-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: 0 28px 65px -38px color-mix(in srgb, var(--accent) 35%, #000); }

.project-card:hover,
.freelance-card:hover { transform: perspective(1000px) translateY(-5px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }

.media-carousel { height: 285px; background: linear-gradient(145deg, #0b111c, #142036); }

.project-card .carousel-slide { padding: 0.75rem; }
.project-card .carousel-slide img,
.project-card .carousel-slide video { object-fit: contain; border-radius: 0.75rem; }

.testimonial-card .media-carousel { height: 260px; background: var(--bg-tertiary); }
.testimonial-card .carousel-slide { padding: 0.65rem; }
.testimonial-card .carousel-slide img { object-fit: contain; border-radius: 0.65rem; }

.carousel-slide.active { display: block; animation: media-reveal 0.45s ease both; }

.carousel-btn {
    width: 40px;
    height: 40px;
    background: rgba(7, 11, 18, 0.76);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.carousel-btn:hover { transform: translateY(-50%) scale(1.08); background: var(--accent); }
.dot { cursor: pointer; transition: width 0.25s ease, background-color 0.25s ease; }
.dot.active { width: 22px; border-radius: 999px; }

.project-content { padding: 1.75rem; }
.project-content h3 { font-size: 1.3rem; letter-spacing: -0.025em; }
.project-content p { line-height: 1.7; }

.tag { border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent); background: var(--accent-soft); }
.project-links { justify-content: flex-start; gap: 0.75rem; }

.freelance-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.freelance-card { min-height: 250px; padding: 2rem; }
.freelance-cta::after { content: ""; display: inline-block; width: 1.8rem; height: 1px; margin: 0 0 0.25rem 0.55rem; background: currentColor; transition: width 0.25s ease; }
.freelance-card:hover .freelance-cta::after { width: 2.8rem; }

.timeline { gap: 0; border-left: 0; padding-left: 0; }
.timeline-item { padding: 0 0 2.75rem 3.25rem; border-left: 1px solid var(--border); }
.timeline-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline-item::before { left: -0.48rem; top: 0.2rem; width: 15px; height: 15px; border: 4px solid var(--bg-primary); box-shadow: 0 0 0 1px var(--accent), 0 0 22px var(--accent-soft); }
.timeline-item h3 { font-size: 1.25rem; }
.timeline-item ul { max-width: 900px; line-height: 1.75; }

.skill-card { position: relative; overflow: hidden; padding: 1.75rem; transition: transform 0.25s ease, border-color 0.25s ease; }
.skill-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(var(--accent), var(--cyan)); transform: scaleY(0); transform-origin: bottom; transition: transform 0.3s ease; }
.skill-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.skill-card:hover::before { transform: scaleY(1); }

.contact-wrapper { position: relative; padding: clamp(1.5rem, 4vw, 3.5rem); border: 1px solid var(--border); border-radius: 1.5rem; background: linear-gradient(145deg, var(--bg-secondary), color-mix(in srgb, var(--bg-secondary) 90%, var(--accent) 10%)); overflow: hidden; }
.contact-wrapper::after { content: ""; position: absolute; z-index: 0; width: 17rem; height: 17rem; right: -8rem; bottom: -8rem; border-radius: 50%; background: var(--accent-soft); filter: blur(25px); }
.contact-info, .contact-form { position: relative; z-index: 1; }
.contact-form { background: color-mix(in srgb, var(--bg-primary) 74%, transparent); }
.form-group input, .form-group textarea { transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.form-group input:focus, .form-group textarea:focus { box-shadow: 0 0 0 4px var(--accent-soft); transform: translateY(-1px); }

.reveal {
    opacity: 0;
    translate: 0 24px;
    transition: opacity 0.7s var(--reveal-delay, 0ms) cubic-bezier(.2,.8,.2,1), translate 0.7s var(--reveal-delay, 0ms) cubic-bezier(.2,.8,.2,1);
}

.reveal.is-visible { opacity: 1; translate: 0 0; }

@keyframes hero-enter { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes avatar-enter { from { opacity: 0; transform: perspective(900px) translateY(30px) scale(0.96); } to { opacity: 1; transform: perspective(900px) translateY(0) scale(1); } }
@keyframes media-reveal { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: scale(1); } }
@keyframes gradient-flow { to { background-position: 200% center; } }
@keyframes badge-pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes glow-breathe { 50% { opacity: 0.72; transform: scale(1.08); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes orb-drift { to { transform: translate3d(3rem, 4rem, 0) scale(1.12); } }

@media (max-width: 1050px) {
    .nav-links { gap: 0.9rem; }
    .nav-links a { font-size: 0.78rem; }
    .hero-grid { gap: 2.5rem; }
    .freelance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .hero { min-height: auto; padding-top: 3.5rem; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero h1, .subtitle { margin-left: auto; margin-right: auto; }
    .cta-group { justify-content: center; }
    .hero-avatar-wrapper { margin-bottom: 1rem; }
    .hero-avatar-wrapper::before { width: 290px; height: 290px; }
    .hero-avatar-wrapper::after { width: 325px; height: 325px; }
    .profile-avatar { width: 270px; height: 310px; }
    .flagship-card { grid-template-columns: 1fr; }
    .flagship-carousel { min-height: 430px; }
    .projects-grid { grid-template-columns: 1fr; }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 640px) {
    .container { padding-left: 1rem; padding-right: 1rem; }
    .nav-content { height: 4.5rem; }
    .logo { font-size: 1rem; }
    .logo-mark { width: 1.8rem; height: 1.8rem; }
    .hero { padding: 2.75rem 0 3.5rem; }
    .hero h1 { font-size: clamp(2.75rem, 14vw, 4.3rem); }
    .subtitle { font-size: 0.95rem; }
    .cta-group .btn { flex: 1 1 calc(50% - 0.5rem); }
    .cta-group .btn-primary { flex-basis: 100%; }
    .quick-stats { grid-template-columns: repeat(2, 1fr); }
    .stat { padding: 1.05rem; }
    .stat-num { font-size: 1.05rem; }
    .stat-label { font-size: 0.76rem; }
    .section { padding: 4.5rem 0; }
    .flagship-carousel { min-height: 360px; }
    .flagship-carousel .carousel-slide { padding: 1rem; }
    .media-carousel { height: 230px; }
    .freelance-grid, .skills-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .contact-wrapper { padding: 1.1rem; }
    .contact-form { padding: 1.25rem; }
    .project-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; translate: none; }
}

/* Structured experience, skills, testimonials, and controls */
.nav-links {
    gap: 1rem;
}

.nav-links a {
    font-size: 0.78rem;
}

.btn-icon {
    flex: 0 0 auto;
    transition: transform 0.25s ease;
}

.btn:hover .btn-icon,
.project-btn:hover .btn-icon {
    transform: translateY(-1px) scale(1.06);
}

.project-links {
    justify-content: space-between;
    gap: 1.25rem;
}

.testimonial-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: -0.5rem 0 2rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: color-mix(in srgb, var(--bg-secondary) 80%, transparent);
    backdrop-filter: blur(14px);
}

.testimonial-summary > div {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem 1.25rem;
    border-right: 1px solid var(--border);
}

.testimonial-summary > div:last-child {
    border-right: 0;
}

.testimonial-summary strong {
    color: var(--accent);
    font-size: 1.25rem;
}

.testimonial-summary span {
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
}

.testimonial-card {
    position: relative;
    border-radius: 1.15rem;
}

.testimonial-card-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.testimonial-identity {
    min-width: 0;
    flex: 1;
}

.testimonial-identity h4 {
    font-size: 0.92rem;
    line-height: 1.2;
}

.testimonial-identity span {
    display: block;
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 0.74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.55rem;
    border: 1px solid color-mix(in srgb, var(--green-play) 35%, transparent);
    border-radius: 999px;
    color: var(--green-play);
    background: color-mix(in srgb, var(--green-play) 9%, transparent);
    font-size: 0.68rem;
    font-weight: 700;
}

.testimonial-card .media-carousel {
    height: 285px;
    border-bottom: 1px solid var(--border);
}

.testimonial-card .carousel-slide {
    padding: 0.85rem;
}

.testimonial-content {
    padding: 1.15rem 1.25rem 1.35rem;
}

.testimonial-rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.testimonial-project {
    max-width: 68%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.testimonial-proof-note {
    margin-top: 0.85rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.55;
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.7rem;
}

.timeline-meta span {
    display: inline-flex;
    padding: 0.25rem 0.6rem;
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    border-radius: 999px;
    background: var(--accent-soft);
}

.timeline-item h3 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    align-items: baseline;
}

.timeline-item h3 span::before {
    content: "@";
    margin-right: 0.3rem;
    color: var(--accent);
}

.skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.skill-card {
    display: flex;
    flex-direction: column;
    min-height: 270px;
}

.skill-card-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.skill-card-head h3 {
    margin: 0;
    color: var(--text-primary);
}

.skill-icon {
    display: grid;
    place-items: center;
    min-width: 2.7rem;
    height: 2.7rem;
    padding: 0 0.45rem;
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    border-radius: 0.8rem;
    color: var(--accent);
    background: var(--accent-soft);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 800;
}

.skill-card > p {
    margin-bottom: 1.25rem;
    line-height: 1.65;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: auto;
}

.skill-tags span {
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-secondary);
    background: color-mix(in srgb, var(--bg-tertiary) 72%, transparent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 500;
}

.recognition-block {
    margin-top: 1.75rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--bg-secondary) 90%, var(--accent) 10%), var(--bg-secondary));
}

.recognition-heading {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.recognition-heading > div > span {
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.recognition-heading h3 {
    font-size: 1.3rem;
    letter-spacing: -0.025em;
}

.recognition-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #e86b20);
    box-shadow: 0 12px 25px -12px #f59e0b;
}

.recognition-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.recognition-card {
    position: relative;
    min-height: 155px;
    padding: 1.15rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    background: color-mix(in srgb, var(--bg-primary) 70%, transparent);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.recognition-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, #f59e0b 48%, var(--border));
}

.recognition-year {
    display: block;
    margin-bottom: 0.7rem;
    color: #f59e0b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
}

.recognition-card h4 {
    margin-bottom: 0.35rem;
    font-size: 0.94rem;
    line-height: 1.35;
}

.recognition-card p,
.recognition-card small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.45;
}

@media (max-width: 1100px) {
    .nav-links { gap: 0.65rem; }
    .nav-links a { font-size: 0.72rem; }
    .recognition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .testimonial-summary { grid-template-columns: 1fr; }
    .testimonial-summary > div { justify-content: flex-start; border-right: 0; border-bottom: 1px solid var(--border); }
    .testimonial-summary > div:last-child { border-bottom: 0; }
    .skills-grid { grid-template-columns: 1fr; }
    .skill-card { min-height: auto; }
    .recognition-grid { grid-template-columns: 1fr; }
    .recognition-card { min-height: auto; }
}

@media (max-width: 420px) {
    .testimonial-card-head { align-items: flex-start; flex-wrap: wrap; }
    .verified-badge { margin-left: 3.5rem; }
    .testimonial-rating-row { align-items: flex-start; flex-direction: column; }
    .testimonial-project { max-width: 100%; }
}

/* Certificate credentials and promotional contact details */
.recognition-card {
    display: flex;
    flex-direction: column;
}

.recognition-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}

.recognition-meta .recognition-year {
    margin-bottom: 0;
}

.recognition-type {
    padding: 0.2rem 0.45rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
}

.credential-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.9rem;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
}

.credential-link svg {
    transition: transform 0.2s ease;
}

.credential-link:hover svg {
    transform: translate(2px, -2px);
}

.contact-availability {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid color-mix(in srgb, var(--green-play) 32%, transparent);
    border-radius: 999px;
    color: var(--green-play);
    background: color-mix(in srgb, var(--green-play) 9%, transparent);
    font-size: 0.76rem;
    font-weight: 700;
}

/* Portfolio identity, compact projects, and freelance profile actions */
.logo {
    gap: 0.7rem;
}

.logo-mark {
    width: 2.55rem;
    height: 2.55rem;
    margin-right: 0;
    border: 1px solid color-mix(in srgb, var(--cyan) 45%, white 20%);
    border-radius: 0.85rem;
    transform: rotate(-3deg);
    box-shadow: 0 12px 28px -13px var(--accent);
}

.logo-mark svg {
    width: 1.75rem;
    height: 1.75rem;
    transform: rotate(3deg);
}

.logo-copy {
    display: flex;
    flex-direction: column;
    color: var(--text-primary) !important;
    line-height: 1.05;
}

.logo-copy strong {
    font-size: 0.96rem;
    letter-spacing: -0.025em;
    white-space: nowrap;
}

.logo-copy small {
    margin-top: 0.28rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.project-card[hidden] {
    display: none !important;
}

.projects-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2.25rem;
}

.projects-toggle {
    min-width: 210px;
    border-color: color-mix(in srgb, var(--accent) 38%, var(--border));
    color: var(--text-primary);
    background: color-mix(in srgb, var(--bg-secondary) 84%, transparent);
    box-shadow: var(--card-shadow);
}

.projects-toggle svg {
    color: var(--accent);
    transition: transform 0.25s ease;
}

.projects-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.freelance-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-primary);
}

.freelance-cta::after {
    display: none;
}

.freelance-arrow {
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    box-shadow: 0 9px 20px -10px var(--accent);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.freelance-card:hover .freelance-arrow {
    transform: translateX(4px);
    box-shadow: 0 12px 24px -9px var(--accent);
}

@media (max-width: 1100px) {
    .logo-copy small { display: none; }
    .logo-copy strong { font-size: 0.88rem; }
}

@media (max-width: 640px) {
    .logo-mark { width: 2.2rem; height: 2.2rem; }
    .logo-mark svg { width: 1.5rem; height: 1.5rem; }
    .logo-copy strong { font-size: 0.82rem; }
}

/* Animated dark / light theme switch */
.theme-btn {
    position: relative;
    display: block;
    width: 3.75rem;
    height: 2rem;
    flex: 0 0 auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
    border-radius: 999px;
    background: transparent;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12), 0 7px 18px -10px var(--accent);
    cursor: pointer;
    isolation: isolate;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.theme-btn:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--accent) 65%, var(--border));
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12), 0 10px 24px -10px var(--accent);
}

.theme-btn:active {
    transform: translateY(0) scale(0.97);
}

.theme-btn:focus-visible {
    outline: 3px solid var(--accent-soft);
    outline-offset: 3px;
}

.theme-track {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    background: linear-gradient(135deg, #71c8ff, #b9e6ff);
    transition: background 0.45s cubic-bezier(.2,.8,.2,1);
}

:root[data-theme="dark"] .theme-track {
    background: linear-gradient(135deg, #111b36, #263b70);
}

.theme-track::before,
.theme-track::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    transition: transform 0.45s ease, opacity 0.35s ease;
}

.theme-track::before {
    width: 1.25rem;
    height: 0.32rem;
    right: 0.28rem;
    bottom: 0.3rem;
    box-shadow: -0.45rem 0.06rem 0 -0.05rem rgba(255, 255, 255, 0.72);
}

.theme-track::after {
    width: 0.65rem;
    height: 0.24rem;
    right: 0.72rem;
    bottom: 0.55rem;
}

:root[data-theme="dark"] .theme-track::before,
:root[data-theme="dark"] .theme-track::after {
    opacity: 0;
    transform: translateY(0.8rem);
}

.theme-thumb {
    position: absolute;
    top: 0.18rem;
    left: 0.18rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 1.52rem;
    height: 1.52rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    color: #d77708;
    background: #fff8d6;
    box-shadow: 0 3px 9px rgba(30, 64, 120, 0.24);
    transition: transform 0.48s cubic-bezier(.34,1.56,.64,1), color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

:root[data-theme="dark"] .theme-thumb {
    color: #d8e5ff;
    background: #18223f;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.38), inset -2px -2px 5px rgba(255, 255, 255, 0.06);
    transform: translateX(1.72rem);
}

.theme-thumb svg {
    position: absolute;
    width: 0.95rem;
    height: 0.95rem;
    transition: opacity 0.3s ease, transform 0.48s cubic-bezier(.34,1.56,.64,1);
}

.theme-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-moon {
    opacity: 0;
    transform: rotate(-70deg) scale(0.5);
}

:root[data-theme="dark"] .theme-sun {
    opacity: 0;
    transform: rotate(100deg) scale(0.45);
}

:root[data-theme="dark"] .theme-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-stars {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(-0.4rem);
    transition: opacity 0.35s ease 0.1s, transform 0.4s ease;
}

:root[data-theme="dark"] .theme-stars {
    opacity: 1;
    transform: translateY(0);
}

.theme-stars i {
    position: absolute;
    width: 0.12rem;
    height: 0.12rem;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 4px rgba(255,255,255,.75);
    animation: star-twinkle 2.2s ease-in-out infinite;
}

.theme-stars i:nth-child(1) { left: 0.62rem; top: 0.45rem; }
.theme-stars i:nth-child(2) { left: 1.12rem; top: 1.18rem; animation-delay: -0.8s; }
.theme-stars i:nth-child(3) { left: 1.48rem; top: 0.55rem; animation-delay: -1.45s; }

@keyframes star-twinkle {
    50% { opacity: 0.35; transform: scale(0.65); }
}

/* Lumeria product showcase */
.flagship-card {
    grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
    align-items: stretch;
    border-color: color-mix(in srgb, var(--accent) 36%, var(--border));
    background:
        radial-gradient(circle at 100% 0, color-mix(in srgb, var(--cyan) 10%, transparent), transparent 22rem),
        linear-gradient(145deg, color-mix(in srgb, var(--bg-secondary) 94%, var(--accent) 6%), var(--bg-secondary));
}

.flagship-carousel {
    min-height: 760px;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 38%, rgba(85, 146, 255, 0.2), transparent 18rem),
        linear-gradient(150deg, #07101e, #10203c 55%, #091320);
}

.flagship-carousel::before {
    content: "";
    position: absolute;
    inset: 5rem 10% 3rem;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 45% 45% 2rem 2rem;
    background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
    box-shadow: inset 0 1px rgba(255,255,255,.08), 0 35px 70px rgba(0,0,0,.28);
}

.flagship-carousel .carousel-slide {
    padding: 5.25rem 2rem 3.25rem;
}

.flagship-carousel .carousel-slide img,
.flagship-carousel .carousel-slide video {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 25px 36px rgba(0,0,0,.55));
}

.lumeria-media-meta {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: rgba(255,255,255,.64);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.lumeria-live {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #7ef0c1;
}

.lumeria-live i {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #35dfa2;
    box-shadow: 0 0 0 0 rgba(53,223,162,.45);
    animation: badge-pulse 2s infinite;
}

.flagship-content {
    justify-content: flex-start;
    padding: clamp(2rem, 4vw, 3.25rem);
}

.lumeria-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.lumeria-mark {
    display: grid;
    place-items: center;
    width: 3.35rem;
    height: 3.35rem;
    flex: 0 0 auto;
    border: 1px solid color-mix(in srgb, #d7a23c 45%, var(--border));
    border-radius: 1rem;
    padding: 0.28rem;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 15px 30px -18px #d7a23c;
}

.lumeria-mark img {
    width: 100%;
    height: 100%;
    border-radius: 0.72rem;
    object-fit: contain;
}

.lumeria-subtitle {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lumeria-title-row h3 {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.lumeria-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    background: color-mix(in srgb, var(--bg-primary) 45%, transparent);
}

.lumeria-proof-grid > div {
    padding: 0.85rem 0.9rem;
    border-right: 1px solid var(--border);
}

.lumeria-proof-grid > div:last-child {
    border-right: 0;
}

.lumeria-proof-grid strong,
.lumeria-proof-grid span {
    display: block;
}

.lumeria-proof-grid strong {
    color: var(--text-primary);
    font-size: 0.83rem;
    line-height: 1.25;
}

.lumeria-proof-grid span {
    margin-top: 0.2rem;
    color: var(--text-secondary);
    font-size: 0.63rem;
}

.flagship-content .flagship-desc {
    margin-bottom: 1.4rem;
    font-size: 0.88rem;
    line-height: 1.75;
}

.lumeria-tags {
    margin-bottom: 1.4rem;
}

.lumeria-highlights {
    display: grid;
    gap: 0.6rem;
}

.lumeria-highlight {
    display: grid;
    grid-template-columns: 1.45rem 1fr;
    gap: 0.65rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: color-mix(in srgb, var(--bg-primary) 42%, transparent);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.lumeria-highlight:hover {
    transform: translateX(3px);
    border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
}

.lumeria-highlight > span {
    display: grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    font-size: 0.7rem;
    font-weight: 800;
}

.lumeria-highlight p {
    color: var(--text-secondary);
    font-size: 0.79rem;
    line-height: 1.55;
}

.lumeria-details {
    margin-top: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: color-mix(in srgb, var(--bg-tertiary) 55%, transparent);
}

.lumeria-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.lumeria-details summary::-webkit-details-marker { display: none; }

.lumeria-details summary span {
    color: var(--accent);
    font-size: 1.2rem;
    transition: transform 0.25s ease;
}

.lumeria-details[open] summary span { transform: rotate(45deg); }

.lumeria-details ul {
    padding: 0 1.1rem 1rem 2.25rem;
    color: var(--text-secondary);
    font-size: 0.76rem;
    line-height: 1.6;
}

.lumeria-details li { margin-top: 0.55rem; }

.flagship-actions {
    margin-top: 1.35rem;
    justify-content: center;
    width: 100%;
}

@media (max-width: 900px) {
    .flagship-card { grid-template-columns: 1fr; }
    .flagship-carousel { min-height: 520px; }
}

@media (max-width: 640px) {
    .flagship-carousel { min-height: 430px; }
    .flagship-carousel .carousel-slide { padding: 4.5rem 1rem 2.75rem; }
    .lumeria-title-row { align-items: flex-start; }
    .lumeria-subtitle { line-height: 1.5; }
    .lumeria-proof-grid { grid-template-columns: 1fr; }
    .lumeria-proof-grid > div { border-right: 0; border-bottom: 1px solid var(--border); }
    .lumeria-proof-grid > div:last-child { border-bottom: 0; }
    .flagship-actions .btn { width: 100%; }
}

/* Contact section motion and interaction */
.contact-wrapper {
    isolation: isolate;
}

.contact-wrapper::before {
    content: "";
    position: absolute;
    z-index: 0;
    width: 26rem;
    height: 26rem;
    left: -13rem;
    top: -16rem;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--cyan) 24%, transparent), transparent 68%);
    filter: blur(4px);
    animation: contact-glow-drift 8s ease-in-out infinite alternate;
}

.contact-motion {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.contact-orbit {
    position: absolute;
    right: -7.5rem;
    top: -7.5rem;
    width: 21rem;
    height: 21rem;
    border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
    border-radius: 50%;
    box-shadow:
        0 0 0 2.8rem color-mix(in srgb, var(--accent) 3%, transparent),
        0 0 0 5.6rem color-mix(in srgb, var(--cyan) 2.5%, transparent);
    animation: contact-orbit-spin 18s linear infinite;
}

.contact-orbit::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -0.3rem;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 18px var(--cyan);
}

.contact-bubble {
    position: absolute;
    z-index: 0;
    display: grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
    border-radius: 0.9rem;
    color: var(--accent);
    background: color-mix(in srgb, var(--bg-primary) 72%, transparent);
    box-shadow: 0 14px 28px -16px var(--accent);
    backdrop-filter: blur(8px);
}

.contact-bubble svg {
    width: 1.25rem;
    height: 1.25rem;
}

.contact-bubble-mail {
    top: 12%;
    right: 43%;
    animation: contact-float 5.5s ease-in-out infinite;
}

.contact-bubble-chat {
    right: 2.5%;
    bottom: 11%;
    animation: contact-float 6.4s -2.2s ease-in-out infinite;
}

.contact-bubble-send {
    left: 42%;
    bottom: 5%;
    animation: contact-float 5.9s -3.7s ease-in-out infinite;
}

.contact-wrapper.is-visible .contact-info > * {
    animation: contact-content-in 0.65s cubic-bezier(.2,.8,.2,1) both;
}

.contact-wrapper.is-visible .contact-info > *:nth-child(2) { animation-delay: 80ms; }
.contact-wrapper.is-visible .contact-info > *:nth-child(3) { animation-delay: 150ms; }
.contact-wrapper.is-visible .contact-info > *:nth-child(4) { animation-delay: 220ms; }

.contact-wrapper.is-visible .form-group,
.contact-wrapper.is-visible .contact-form > .btn,
.contact-wrapper.is-visible .form-status {
    animation: contact-field-in 0.58s cubic-bezier(.2,.8,.2,1) both;
}

.contact-wrapper.is-visible .form-group:nth-child(1) { animation-delay: 120ms; }
.contact-wrapper.is-visible .form-group:nth-child(2) { animation-delay: 190ms; }
.contact-wrapper.is-visible .form-group:nth-child(3) { animation-delay: 260ms; }
.contact-wrapper.is-visible .form-group:nth-child(4) { animation-delay: 330ms; }
.contact-wrapper.is-visible .contact-form > .btn { animation-delay: 400ms; }

.form-group label {
    transition: color 0.2s ease, transform 0.2s ease;
}

.form-group:focus-within label {
    color: var(--accent);
    transform: translateX(0.2rem);
}

.contact-form .btn-primary {
    position: relative;
    overflow: hidden;
}

.contact-form .btn-primary::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -35%;
    width: 25%;
    height: 200%;
    transform: rotate(20deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
    transition: left 0.65s ease;
}

.contact-form .btn-primary:hover::after {
    left: 115%;
}

.direct-links a {
    position: relative;
}

.direct-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -0.12rem;
    height: 1px;
    background: currentColor;
    transition: right 0.25s ease;
}

.direct-links a:hover::after { right: 0; }

@keyframes contact-content-in {
    from { opacity: 0; transform: translateX(-18px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes contact-field-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes contact-glow-drift {
    to { transform: translate3d(5rem, 3rem, 0) scale(1.12); }
}

@keyframes contact-orbit-spin {
    to { transform: rotate(360deg); }
}

@keyframes contact-float {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
    50% { transform: translate3d(0, -12px, 0) rotate(3deg); }
}

@media (max-width: 900px) {
    .contact-bubble-mail { right: 8%; top: 7%; }
    .contact-bubble-send { left: 4%; bottom: 42%; }
}

@media (max-width: 640px) {
    .contact-bubble { opacity: 0.35; transform: scale(0.8); }
    .contact-bubble-chat { display: none; }
}

/* Contact hierarchy, message watermark, and send-success celebration */
.contact-info .section-title {
    max-width: 15ch;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1.12;
}

.contact-form > *:not(.contact-form-watermark) {
    position: relative;
    z-index: 1;
}

.contact-form-watermark {
    position: absolute;
    z-index: 0;
    top: -3.75rem;
    right: -3rem;
    width: 12rem;
    height: 12rem;
    color: var(--accent);
    opacity: 0.105;
    filter: drop-shadow(0 0 18px color-mix(in srgb, var(--accent) 45%, transparent));
    pointer-events: none;
    animation: message-watermark-float 7s ease-in-out infinite;
}

.success-check {
    width: 0;
    opacity: 0;
    transform: scale(0.3) rotate(-35deg);
}

.contact-form.is-success {
    animation: form-success-glow 1.1s cubic-bezier(.2,.8,.2,1);
}

.contact-form.is-success .btn-primary {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 16px 34px -14px rgba(16,185,129,.85);
}

.contact-form.is-success .send-plane {
    animation: send-plane-flight 0.58s cubic-bezier(.4,0,.2,1) forwards;
}

.contact-form.is-success .success-check {
    animation: success-check-pop 0.42s 0.48s cubic-bezier(.34,1.56,.64,1) forwards;
}

.contact-form.is-success .form-status {
    color: var(--green-play);
    animation: success-message-in 0.45s 0.35s ease both;
}

.contact-form.is-error .form-status {
    color: #ef4444;
}

.send-success-burst {
    position: absolute !important;
    z-index: 3 !important;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
}

.send-success-burst i {
    --burst-x: 0px;
    --burst-y: -30px;
    position: absolute;
    width: 0.3rem;
    height: 0.3rem;
    margin: -0.15rem;
    border-radius: 50%;
    background: #d1fae5;
    opacity: 0;
}

.send-success-burst i:nth-child(1) { --burst-x: -55px; --burst-y: -22px; }
.send-success-burst i:nth-child(2) { --burst-x: -35px; --burst-y: 25px; background: #fef3c7; }
.send-success-burst i:nth-child(3) { --burst-x: 0px; --burst-y: -34px; background: #ffffff; }
.send-success-burst i:nth-child(4) { --burst-x: 38px; --burst-y: -25px; background: #bfdbfe; }
.send-success-burst i:nth-child(5) { --burst-x: 55px; --burst-y: 18px; background: #fef3c7; }
.send-success-burst i:nth-child(6) { --burst-x: 5px; --burst-y: 30px; }

.contact-form.is-success .send-success-burst i {
    animation: success-burst 0.8s 0.28s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes message-watermark-float {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-5deg); }
    50% { transform: translate3d(-0.6rem, 0.75rem, 0) rotate(2deg); }
}

@keyframes send-plane-flight {
    0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); }
    55% { opacity: 1; transform: translate(12px, -8px) rotate(-10deg) scale(1.08); }
    100% { opacity: 0; transform: translate(72px, -42px) rotate(-16deg) scale(0.35); }
}

@keyframes success-check-pop {
    from { width: 0; opacity: 0; transform: scale(0.3) rotate(-35deg); }
    to { width: 18px; opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes success-burst {
    0% { opacity: 0; transform: translate(0, 0) scale(0.3); }
    22% { opacity: 1; }
    100% { opacity: 0; transform: translate(var(--burst-x), var(--burst-y)) scale(1); }
}

@keyframes form-success-glow {
    0%, 100% { border-color: var(--border); box-shadow: var(--card-shadow); }
    40% { border-color: rgba(16,185,129,.72); box-shadow: 0 0 0 5px rgba(16,185,129,.1), 0 24px 55px -28px rgba(16,185,129,.8); }
}

@keyframes success-message-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
    .contact-info .section-title { font-size: 1.8rem; }
    .contact-form-watermark { top: -2.8rem; right: -2.8rem; width: 9rem; height: 9rem; }
}

/* Media smoothing and final visual polish */
:root {
    --media-radius: 20px;
}

.profile-avatar {
    border-radius: var(--media-radius);
}

.project-card .carousel-slide img,
.project-card .carousel-slide video,
.testimonial-card .carousel-slide img,
.testimonial-card .carousel-slide video,
.flagship-carousel .carousel-slide img,
.flagship-carousel .carousel-slide video {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--media-radius);
    box-shadow: 0 22px 45px -28px rgba(0, 0, 0, 0.8);
    transition: transform 0.45s cubic-bezier(.2,.8,.2,1), filter 0.45s ease, box-shadow 0.45s ease;
}

.project-card:hover .carousel-slide.active img,
.testimonial-card:hover .carousel-slide.active img,
.flagship-card:hover .carousel-slide.active img {
    transform: scale(1.015);
    filter: saturate(1.06) contrast(1.02);
    box-shadow: 0 28px 54px -28px rgba(0, 0, 0, 0.92);
}

.section-header {
    position: relative;
    padding-left: 1.15rem;
}

.section-header::before {
    content: "";
    position: absolute;
    top: 0.2rem;
    bottom: 0.25rem;
    left: 0;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(to bottom, var(--accent), var(--cyan), transparent);
    box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 38%, transparent);
}

.project-card,
.testimonial-card,
.freelance-card,
.skill-card,
.recognition-card {
    position: relative;
    isolation: isolate;
}

.project-card::after,
.testimonial-card::after,
.freelance-card::after,
.skill-card::after,
.recognition-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle at 80% 0, color-mix(in srgb, var(--accent) 12%, transparent), transparent 42%);
    transition: opacity 0.35s ease;
}

.project-card > *,
.testimonial-card > *,
.freelance-card > *,
.skill-card > *,
.recognition-card > * {
    position: relative;
    z-index: 1;
}

.project-card:hover::after,
.testimonial-card:hover::after,
.freelance-card:hover::after,
.skill-card:hover::after,
.recognition-card:hover::after {
    opacity: 1;
}

.stat {
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.stat:hover {
    z-index: 1;
    transform: translateY(-3px);
    background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.stat-num {
    background: linear-gradient(110deg, var(--accent), var(--cyan));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 640px) {
    .section-header { padding-left: 0.85rem; }
    .project-card .carousel-slide,
    .testimonial-card .carousel-slide { padding: 0.6rem; }
}

/* Professional animated contact footer */
.footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 0;
    text-align: left;
    color: var(--text-primary);
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--bg-secondary) 94%, var(--accent) 6%), var(--bg-primary));
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.2;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: -35%;
    width: 32%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--accent), transparent);
    box-shadow: 0 0 15px var(--accent);
    animation: footer-signal 7s ease-in-out infinite;
}

.footer-container {
    position: relative;
    z-index: 1;
    padding-top: 4.5rem;
    padding-bottom: 1.5rem;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.45fr);
    gap: clamp(2.5rem, 7vw, 6rem);
    align-items: start;
}

.footer-brand {
    max-width: 390px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--text-primary);
    text-decoration: none;
}

.footer-logo img {
    width: 3.25rem;
    height: 3.25rem;
    max-width: 3.25rem;
    flex: 0 0 3.25rem;
    object-fit: contain;
    border-radius: 1rem;
    filter: drop-shadow(0 12px 20px color-mix(in srgb, var(--accent) 30%, transparent));
    transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
}

.footer-logo:hover img {
    transform: translateY(-3px) rotate(-4deg) scale(1.04);
}

.footer-logo > span {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.footer-logo strong {
    font-size: 1.05rem;
    letter-spacing: -0.025em;
}

.footer-logo small {
    margin-top: 0.35rem;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-brand > p {
    margin: 1.35rem 0 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.75;
}

.footer-availability {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 0.72rem;
    border: 1px solid color-mix(in srgb, var(--green-play) 32%, transparent);
    border-radius: 999px;
    color: var(--green-play);
    background: color-mix(in srgb, var(--green-play) 8%, transparent);
    font-size: 0.7rem;
    font-weight: 700;
}

.footer-availability i {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--green-play);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--green-play) 45%, transparent);
    animation: footer-availability-pulse 2.2s infinite;
}

.footer-channels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.footer-channel {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    min-height: 86px;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 1rem;
    color: var(--text-primary);
    background: color-mix(in srgb, var(--bg-secondary) 76%, transparent);
    box-shadow: 0 18px 45px -32px rgba(0,0,0,.72);
    text-decoration: none;
    backdrop-filter: blur(14px);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.footer-channel::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(110deg, transparent 20%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 75%);
    transform: translateX(-65%);
    transition: opacity 0.3s ease, transform 0.55s ease;
}

.footer-channel:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 48%, var(--border));
    box-shadow: 0 25px 52px -30px color-mix(in srgb, var(--accent) 32%, #000);
}

.footer-channel:hover::before {
    opacity: 1;
    transform: translateX(65%);
}

.footer-channel > * {
    position: relative;
    z-index: 1;
}

.footer-channel-icon {
    display: grid;
    place-items: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.8rem;
    color: var(--accent);
    background: var(--accent-soft);
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}

.footer-channel-icon svg {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    max-width: 1.25rem;
    max-height: 1.25rem;
    flex: 0 0 1.25rem;
}

.footer-channel:hover .footer-channel-icon {
    transform: rotate(-5deg) scale(1.08);
}

.footer-channel-whatsapp .footer-channel-icon {
    color: #ffffff;
    background: #25d366;
    box-shadow: 0 10px 22px -12px #25d366;
    animation: whatsapp-soft-pulse 3s ease-in-out infinite;
}

.footer-channel-linkedin .footer-channel-icon {
    color: #ffffff;
    background: #0a66c2;
}

.footer-channel-phone .footer-channel-icon {
    color: var(--cyan);
    background: color-mix(in srgb, var(--cyan) 11%, transparent);
}

.footer-channel-copy {
    min-width: 0;
}

.footer-channel-copy small,
.footer-channel-copy strong {
    display: block;
}

.footer-channel-copy small {
    margin-bottom: 0.22rem;
    color: var(--text-secondary);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-channel-copy strong {
    overflow: hidden;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.footer-channel-arrow {
    color: var(--text-secondary);
    font-size: 1rem;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-channel:hover .footer-channel-arrow {
    color: var(--accent);
    transform: translate(2px, -2px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3.25rem;
    padding-top: 1.35rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.76rem;
}

/* Keep essential footer navigation visible even if stale reveal classes remain. */
.footer-bottom.reveal {
    opacity: 1;
    translate: none;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.25s ease;
}

.back-to-top svg {
    transition: transform 0.25s ease;
}

.back-to-top:hover { color: var(--accent); }
.back-to-top:hover svg { transform: translateY(-3px); }

.footer-glow {
    position: absolute;
    z-index: -1;
    width: 22rem;
    height: 22rem;
    border-radius: 50%;
    filter: blur(85px);
    opacity: 0.09;
    pointer-events: none;
    animation: footer-glow-drift 11s ease-in-out infinite alternate;
}

.footer-glow-one { left: -8rem; top: -9rem; background: var(--cyan); }
.footer-glow-two { right: -8rem; bottom: -10rem; background: var(--accent); animation-delay: -5s; }

@keyframes footer-signal {
    0% { left: -35%; opacity: 0; }
    15%, 75% { opacity: 1; }
    100% { left: 105%; opacity: 0; }
}

@keyframes footer-availability-pulse {
    70% { box-shadow: 0 0 0 8px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes whatsapp-soft-pulse {
    0%, 100% { box-shadow: 0 10px 22px -12px #25d366; }
    50% { box-shadow: 0 10px 28px -8px rgba(37,211,102,.85); }
}

@keyframes footer-glow-drift {
    to { transform: translate3d(3rem, 1.5rem, 0) scale(1.12); }
}

@media (max-width: 900px) {
    .footer-main { grid-template-columns: 1fr; }
    .footer-brand { max-width: 620px; }
}

@media (max-width: 640px) {
    .footer-container { padding-top: 3.5rem; }
    .footer-channels { grid-template-columns: 1fr; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
    .footer-channel { min-height: 80px; }
}

/* Compact footer layout */
.footer-container {
    padding-top: 2.25rem;
    padding-bottom: 1rem;
}

.footer-main {
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.footer-brand {
    width: max-content;
}

.footer-logo {
    gap: 0.65rem;
}

.footer-logo img {
    width: 2.6rem;
    height: 2.6rem;
    max-width: 2.6rem;
    flex-basis: 2.6rem;
    border-radius: 0.8rem;
}

.footer-logo strong {
    font-size: 0.9rem;
}

.footer-logo small {
    margin-top: 0.25rem;
    font-size: 0.52rem;
}

.footer-channels {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
}

.footer-channel {
    min-height: 58px;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.78rem;
}

.footer-channel-icon {
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 0.62rem;
}

.footer-channel-icon svg {
    width: 1rem;
    height: 1rem;
}

.footer-channel-copy strong {
    font-size: 0.72rem;
}

.footer-channel-arrow {
    font-size: 0.82rem;
}

.footer-bottom {
    margin-top: 1.25rem;
    padding-top: 0.9rem;
    font-size: 0.7rem;
}

.footer-glow {
    width: 15rem;
    height: 15rem;
    filter: blur(65px);
}

@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .footer-channels {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .footer-container { padding-top: 2rem; }
    .footer-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-bottom { gap: 0.65rem; margin-top: 1rem; }
    .footer-channel { min-height: 54px; }
}
