/* ======================================
   PROFESSIONAL DESIGN SYSTEM
   ====================================== */

:root {
    --bg: #ffffff;
    --text-dark: #0b0b0b;
    --text-muted: #8b8b8b;
    --text-light: #6b7280;
    --accent-black: #111111;
    --accent-blue: var(--brand-primary, #0066ff);
    --subtle-border: rgba(0, 0, 0, 0.06);
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, system-ui, sans-serif;
    --container: 1280px;
    --container-padding: 48px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    width: 100%;
    overflow-x: hidden;
}

html,
body {
    height: 100%;
    background: var(--bg);
    color: var(--text-dark);
    font-family: var(--font-family);
    line-height: 1.5;
}

body {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

main {
    flex: 1;
}

pre {
    background: #0f172a;
    /* dark navy */
    color: #e2e8f0;
    /* soft white */
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 0.95rem;
    line-height: 1.6;
}

code {
    font-family: 'Fira Code', monospace;
}

pre code {
    display: block;
    white-space: pre;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
    min-width: 0;
}

.resume-download-page {
    padding: var(--container-padding);
}

/* NAVIGATION */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0px 4px 9px #24242414;
}

.navbar-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 60px;
}

.navbar-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.navbar-brand__logo {
    max-height: 48px;
    width: auto;
    margin-right: 12px;
    vertical-align: middle;
}

.navbar-menu {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
}

.navbar-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.navbar-menu a:hover {
    color: var(--text-dark);
}

.nav-link-active {
    color: var(--accent-blue) !important;
    position: relative;
}

.nav-link-active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-blue);
    border-radius: 2px;
}

/* Back Link Styling */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    padding: 0.5rem 0;
}

.back-link:hover {
    color: var(--text-dark);
    gap: 0.75rem;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.navbar-menu.active {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--subtle-border);
    padding: 20px 0;
    gap: 0;
}

.navbar-menu.active a {
    display: block;
    padding: 12px var(--container-padding);
}

/* HERO */
@keyframes floatAnimation {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-30px);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.hero {
    width: 100%;
    padding: 140px 0 100px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(250, 250, 250, 0.5) 100%);
    position: relative;
    overflow-x: hidden;
}

.hero::before {
    display: none;
}

.hero::after {
    display: none;
}

.hero .container {
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-width: 0;
}

.hero-text {
    max-width: 600px;
    min-width: 0;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: slideInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.hero-image-blob {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
}

.hero-image-blob::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(173, 216, 230, 0.3) 0%, rgba(135, 206, 250, 0.2) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blobMorph 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes blobMorph {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

.hero-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blobMorph 8s ease-in-out infinite;
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    color: var(--text-dark);
    letter-spacing: -2px;
    animation: slideInDown 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: linear-gradient(135deg, var(--brand-primary, #2B87B8) 0%, var(--text-dark) 50%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-muted);
    margin-bottom: 48px;
    line-height: 1.6;
    max-width: 600px;
    font-weight: 500;
    animation: slideInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.hero-cta {
    display: flex;
    gap: 20px;
    align-items: center;
    animation: slideInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
    border: none;
    cursor: pointer;
    text-align: center;
    position: relative;
}

.btn-primary {
    background: var(--brand-primary, #2B87B8);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(43, 135, 184, 0.3);
}

.btn-primary:hover {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(43, 135, 184, 0.6);
}

.btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(43, 135, 184, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--brand-primary, #2B87B8);
    color: var(--brand-primary, #2B87B8);
}

.btn-secondary:hover {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, color 0.3s ease, box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: var(--brand-primary, #2B87B8);
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(43, 135, 184, 0.4);
}

.btn-secondary:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(43, 135, 184, 0.2);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 16px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* UTILITIES */
.py-20 {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.mb-8 {
    margin-bottom: 32px;
}

.mt-4 {
    margin-top: 16px;
}

.mt-8 {
    margin-top: 32px;
}

/* GRIDS */
.grid {
    display: grid;
    gap: 24px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* PROJECT CARDS */
.project-card {
    background: var(--bg);
    border: 1px solid var(--subtle-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

@keyframes shine-slide {
    from {
        transform: translateX(-120%) skewX(-10deg);
    }

    to {
        transform: translateX(120%) skewX(-10deg);
    }
}

/* PROJECT DETAIL PAGE */
.project-detail {
    padding-top: 32px;
}

.project-detail h1 {
    margin-top: 8px;
    margin-bottom: 8px;
}

.project-banner {
    width: 100%;
    height: 400px;
    margin: -32px 0 32px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.project-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .project-banner {
        height: 280px;
        margin: -32px -20px 24px -20px;
        border-radius: 0;
    }
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    pointer-events: none;
    transform: skewX(-10deg);
    transition: opacity 0.35s ease;
}

.project-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 18px 40px rgba(0, 102, 255, 0.12);
    transform: translateY(-6px) scale(1.005);
}

.project-card:hover .project-thumbnail {
    transform: scale(1.04);
    filter: brightness(1.08);
}

.project-card:hover::after {
    opacity: 1;
    animation: shine-slide 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.project-thumbnail {
    width: 100%;
    max-width: 175px;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
    flex-shrink: 0;
    margin: 0 auto;
}

.project-content {
    padding: 24px;
    /* flex-grow: 1; */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all var(--transition-smooth);
}

.project-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.project-description {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
    /* flex-grow: 1; */
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.project-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 102, 255, 0.05) 100%);
    color: var(--accent-blue);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(0, 102, 255, 0.2);
    transition: all var(--transition-smooth);
}

.project-tag:hover {
    background: rgba(0, 102, 255, 0.15);
    border-color: var(--accent-blue);
}

/* CARDS */
.card {
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--subtle-border);
    overflow: hidden;
}

.section-card {
    background: var(--bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--subtle-border);
    margin-bottom: 20px;
}

/* PAGE HEADERS */
.page-header {
    margin-top: 80px;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.page-header .lead {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
}

.page-header--with-action {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.page-header__text {
    flex: 1;
    min-width: 0;
}

.page-header__action {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .page-header--with-action {
        flex-direction: column;
        align-items: stretch;
    }

    .page-header__action {
        align-self: flex-start;
    }
}

/* ACCESSIBILITY: Respect motion preferences */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* TEXT UTILITIES */
.text-center {
    text-align: center;
}

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

.lead {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

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

.mt-8 {
    margin-top: 2rem;
}

/* RESUME ITEM STYLING */
.resume-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(0, 102, 255, 0.05);
    transition: all 0.3s ease;
}

/* .resume-item:hover {
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.1);
    transform: translateY(-2px);
} */

/* SKILL PILL STYLING */
.skill-pill {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 102, 255, 0.05));
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-blue);
    border: 1px solid rgba(0, 102, 255, 0.2);
    transition: all var(--transition-smooth);
    animation: slideInUp 0.4s ease-out backwards;
}

.skill-pill:hover {
    background: rgba(0, 102, 255, 0.15);
    transform: translateY(-2px);
}

.footer {
    background: var(--bg);
    border-top: 1px solid var(--subtle-border);
    padding: 60px 0 40px;
    margin-top: 80px;
}

.footer .container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px 48px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.footer-brand:hover {
    color: var(--text-dark);
}

.footer-brand__logo {
    display: block;
    width: auto;
    height: 40px;
    max-height: 40px;
    object-fit: contain;
}

.footer-brand__name {
    font-size: 16px;
    font-weight: 700;
}

.footer-section p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--text-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--subtle-border);
    color: var(--text-light);
    font-size: 13px;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px 40px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 28px;
        margin-top: 48px;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
        margin-bottom: 28px;
    }

    .footer-section h3 {
        margin-bottom: 12px;
    }

    .footer-section ul li {
        margin-bottom: 10px;
    }

    .footer-bottom {
        padding-top: 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 32px 0 24px;
        margin-top: 40px;
    }

    .footer-content {
        gap: 24px;
        margin-bottom: 24px;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .footer-section p {
        font-size: 13px;
        max-width: 28em;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-section ul {
        padding: 0;
        display: inline-flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 20px;
    }

    .footer-section ul li {
        margin-bottom: 0;
    }

    .footer-bottom {
        padding-top: 20px;
        font-size: 12px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .footer-bottom p {
        margin: 0;
    }
}

/* ALERTS */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #991b1b;
}

/* UTILITIES */
.muted {
    color: var(--text-muted);
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

/* FORMS */
input,
textarea,
select {
    font-family: var(--font-family);
}

input.error,
textarea.error {
    border-color: #dc2626;
}

.contact-section {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-page {
    padding: 4.5rem 0 5.5rem;
    background: #fafafa;
}

.contact-header {
    text-align: center;
    margin-bottom: 2.75rem;
    animation: contactHeroIn 0.6s ease-out forwards;
}

@keyframes contactHeroIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

.contact-title {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 800;
    color: var(--text-dark, #1d1d1f);
    margin: 0 0 0.75rem;
    letter-spacing: -0.04em;
    line-height: 1.15;
    position: relative;
    display: inline-block;
}

.contact-title::after {
    content: '';
    display: block;
    width: 4rem;
    height: 4px;
    margin: 0.75rem auto 0;
    border-radius: 2px;
    background: var(--brand-primary, #2b87b8);
}

.contact-lead {
    font-size: 1.2rem;
    color: var(--text-muted, #6e6e73);
    line-height: 1.65;
    margin: 0;
    letter-spacing: 0.02em;
    max-width: 36ch;
    margin-left: auto;
    margin-right: auto;
}

.contact-alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.contact-alert--success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.contact-alert--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Two-column: company info + form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    animation: contactGridIn 0.6s ease-out 0.15s both;
}

@keyframes contactGridIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 300px 1fr;
        gap: 2.25rem;
    }
}

/* Company / contact info card – solid accent, no shadow */
.contact-info__card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem 1.75rem 1.75rem 2rem;
    border: 1px solid #e5e5e7;
    position: sticky;
    top: 6rem;
    overflow: hidden;
}

.contact-info__card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 16px 0 0 16px;
    /* background: var(--brand-primary, #2b87b8); */
}

.contact-info__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark, #1d1d1f);
    margin: 0 0 0.25rem;
}

.contact-info__tagline {
    font-size: 0.8125rem;
    color: var(--text-muted, #6e6e73);
    margin: 0 0 1.25rem;
}

.contact-info__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.contact-info__item:last-of-type {
    margin-bottom: 0;
}

.contact-info__icon {
    font-size: 1.25rem;
    color: var(--brand-primary, #2b87b8);
    flex-shrink: 0;
}

.contact-info__item a {
    color: var(--text-dark, #1d1d1f);
    text-decoration: none;
    font-size: 0.9375rem;
    word-break: break-all;
    transition: color 0.2s ease;
}

.contact-info__item a:hover {
    color: var(--brand-primary, #2b87b8);
}

.contact-info__social {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e8e8ec;
}

.contact-info__social-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted, #6e6e73);
    display: block;
    margin-bottom: 0.75rem;
}

.contact-info__social-links {
    display: flex;
    gap: 0.5rem;
}

.contact-info__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f0f4f8;
    color: var(--text-muted, #6e6e73);
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.contact-info__social-link .material-symbols-outlined {
    font-size: 1.25rem;
}

.contact-info__social-link:hover {
    background: var(--brand-primary, #2b87b8);
    color: #fff;
    transform: translateY(-2px);
}

.contact-form-wrap {
    min-width: 0;
}

/* Form card – solid accent, no shadow */
.contact-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 2rem 2rem 2.25rem;
    border: 1px solid #e5e5e7;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 16px 0 0 16px;
    /* background: var(--brand-primary, #2b87b8); */
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--text-dark, #1d1d1f);
}

.contact-form .form-input,
.contact-form .form-textarea {
    border-radius: 12px;
    border: 1px solid #e0e0e5;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-form .form-input:hover,
.contact-form .form-textarea:hover {
    border-color: #d0d0d8;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 600px) {
    .contact-form__row {
        grid-template-columns: 1fr;
    }
}

.contact-form__submit {
    margin-top: 1.75rem;
    padding-top: 0.25rem;
}

.contact-submit {
    width: 100%;
    max-width: 320px;
    display: inline-block;
    text-align: center;
    box-shadow: none;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.9rem 1.5rem;
    background: var(--brand-primary, #2b87b8);
    border: none;
    color: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.contact-submit:hover {
    box-shadow: none;
    transform: scale(1.02);
    opacity: 0.95;
}

/* Flat focus state for contact form inputs – no shadow */
.contact-card .form-input:focus,
.contact-card .form-textarea:focus {
    box-shadow: none;
    border-color: var(--brand-primary, #2b87b8);
    outline: none;
    border-width: 2px;
}

@media (max-width: 480px) {
    .contact-submit {
        max-width: none;
    }
}

/* RESPONSIVE */
/* PREMIUM ANIMATIONS & KEYFRAMES */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes cardHoverGlow {
    0% {
        box-shadow: 0 4px 20px rgba(0, 102, 255, 0.1);
    }

    100% {
        box-shadow: 0 16px 48px rgba(0, 102, 255, 0.2);
    }
}

/* BUTTON ANIMATIONS */
.btn {
    position: relative;
    transition: all var(--transition-spring);
}

.btn-primary {
    max-width: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* PROJECT CARD ENHANCEMENTS */
.project-card {
    position: relative;
}

/* SECTION REVEAL ANIMATIONS */
.section-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.section-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.stagger-item {
    animation: slideInUp 0.6s ease-out backwards;
}

.stagger-item:nth-child(1) {
    animation-delay: 0s;
}

.stagger-item:nth-child(2) {
    animation-delay: 0.1s;
}

.stagger-item:nth-child(3) {
    animation-delay: 0.2s;
}

.stagger-item:nth-child(4) {
    animation-delay: 0.3s;
}

.stagger-item:nth-child(5) {
    animation-delay: 0.4s;
}

.stagger-item:nth-child(6) {
    animation-delay: 0.5s;
}

/* NAVIGATION ANIMATIONS */
.navbar-menu a {
    position: relative;
    transition: color var(--transition-smooth);
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width var(--transition-smooth);
}

.navbar-menu a:hover::after {
    width: 100%;
}


/* ===== Project Detail (UI Refresh) ===== */
.project-detail {
    padding-top: 28px;
}

/* soft page background helps card pop */
body.page-project-detail {
    background: #f6f7fb;
    height: auto;
}

/* card */
.project-detail-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    padding: 32px;
    margin: 18px auto 48px auto;
}

/* grid */
.project-detail-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 40px;
    align-items: start;
}

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

    .project-detail-card {
        padding: 22px;
    }
}

/* media */
.project-media-block {
    margin-bottom: 16px;
}

.project-media-col {
    position: sticky;
    top: 110px;
}

@media (max-width: 900px) {
    .project-media-col {
        position: static;
        top: auto;
    }
}

.project-media {
    width: 100%;
    display: block;
    border-radius: 14px;
    background: #eef2f7;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.project-screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 900px) {
    .project-screenshot-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 520px) {
    .project-screenshot-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-screenshot {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}

.project-screenshot-btn {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-screenshot-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.project-screenshot-btn:focus-visible {
    outline: 3px solid rgba(0, 102, 255, 0.35);
    outline-offset: 3px;
}

/* typography */
.project-title-h1 {
    font-size: 44px;
    line-height: 1.08;
    letter-spacing: -1px;
    margin: 0 0 10px 0;
}

.project-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0 0 16px 0;
}

.project-body {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(15, 23, 42, 0.9);
    margin-top: 14px;
}

.project-section {
    margin-top: 18px;
}

.project-section-title {
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.55);
    font-weight: 800;
    margin: 0 0 10px 0;
}

/* meta pills */
.project-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 102, 255, 0.06);
    border: 1px solid rgba(0, 102, 255, 0.14);
    font-size: 13px;
    color: rgba(15, 23, 42, 0.92);
}

.meta-pill .material-symbols-outlined {
    font-size: 18px;
    color: rgba(0, 102, 255, 0.9);
}

.meta-pill strong {
    color: rgba(15, 23, 42, 0.55);
    font-weight: 800;
}

/* embed */
.project-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #0b1220;
}

.project-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* links & CTA grouping */
.project-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
    align-items: center;
}

.project-cta {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    text-align: left;
}

.link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

.link:hover {
    text-decoration: underline;
}

/* lightbox */
.lightbox[hidden] {
    display: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(6px);
}

.lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    max-height: 85vh;
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.lightbox__close {
    justify-self: end;
}

.lightbox__img {
    width: 100%;
    height: auto;
    max-height: calc(85vh - 64px);
    object-fit: contain;
    border-radius: 12px;
    background: #0b1220;
}

/* Tablet: 769px – 1024px */
@media (max-width: 1024px) {
    :root {
        --container-padding: 32px;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding: 100px 0 80px;
    }

    .hero-title {
        font-size: 48px;
        letter-spacing: -1.5px;
    }

    .hero-content-wrapper {
        gap: 40px;
    }

    .hero-subtitle {
        font-size: 20px;
        margin-bottom: 36px;
    }

    .hero-image-blob {
        max-width: 400px;
    }

    .page-header h1 {
        font-size: 36px;
    }
}

/* Mobile / narrow tablet: stacked hero */
@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
    }

    /* Full-width layout on mobile: override any body zoom so content uses full viewport */
    body {
        zoom: 100%;
    }

    .navbar-menu {
        display: none;
    }

    /* When mobile toggle is open, show the nav as an overlay */
    .mobile-menu-toggle[aria-expanded="true"] + .navbar-menu,
    .navbar-menu.active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 8px 0 16px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
        z-index: 1000;
    }

    .navbar-menu.active a,
    .mobile-menu-toggle[aria-expanded="true"] + .navbar-menu a {
        display: block;
        padding: 12px var(--container-padding);
    }

    .mobile-menu-toggle {
        display: block;
    }

    main {
        width: 100%;
        min-width: 0;
    }

    .hero {
        padding: 80px 0 110px;
    }

    .hero .container {
        max-width: 80%;
        min-width: 0;
    }

    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-text {
        max-width: none;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        order: -1;
    }

    .hero-image-blob {
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 36px;
        animation: slideInDown 0.6s ease-out !important;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 28px;
        animation: slideInUp 0.6s ease-out 0.05s both !important;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        align-items: stretch;
        animation: slideInUp 0.6s ease-out 0.1s both !important;
    }

    .hero-cta .btn {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding-left: 20px;
        padding-right: 20px;
    }

    .btn {
        width: 100%;
    }

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

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

    .page-header h1 {
        font-size: 28px;
    }



    .py-20 {
        padding: 100px 0;
    }

    /* Disable hover overlays on touch devices */
    .project-card::before,
    .project-card::after {
        display: none;
    }

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

@media (max-width: 480px) {
    :root {
        --container-padding: 16px;
    }

    .hero {
        padding: 60px 0 50px;
        overflow: visible;
    }

    .hero-title {
        font-size: 26px;
        margin-bottom: 16px;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .hero-cta .btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 14px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .project-content {
        padding: 16px;
    }

    .navbar-brand {
        font-size: 20px;
    }

    .navbar-brand__logo {
        max-height: 40px;
    }

    /* Optimize animations for smaller screens */
    .stagger-item {
        animation: slideInUp 0.4s ease-out backwards !important;
    }

    .stagger-item:nth-child(1) {
        animation-delay: 0s !important;
    }

    .stagger-item:nth-child(2) {
        animation-delay: 0.05s !important;
    }

    .stagger-item:nth-child(3) {
        animation-delay: 0.1s !important;
    }

    .stagger-item:nth-child(4) {
        animation-delay: 0.15s !important;
    }

    .stagger-item:nth-child(5) {
        animation-delay: 0.2s !important;
    }

    .stagger-item:nth-child(6) {
        animation-delay: 0.25s !important;
    }
}