@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;700;800&display=swap');

:root {
    --bg-main: #f6f8ff;
    --bg-soft: #eef2ff;
    --bg-card: rgba(255, 255, 255, 0.88);

    --text-main: #0b1220;
    --text-muted: #5f6b85;
    --text-light: #cfd6e6;

    --border-color: rgba(140, 156, 186, 0.18);

    --primary: #5b3df5;
    --primary-dark: #4328d8;
    --secondary: #2563eb;
    --accent: #f4c542;
    --accent-dark: #dfb32f;

    --gradient-main: linear-gradient(135deg, #5b3df5 0%, #2563eb 58%, #7c3aed 100%);
    --gradient-soft: linear-gradient(135deg, rgba(91, 61, 245, 0.14) 0%, rgba(37, 99, 235, 0.14) 100%);
    --gradient-accent: linear-gradient(135deg, #f4c542 0%, #ffe072 100%);

    --shadow-sm: 0 12px 30px rgba(12, 18, 32, 0.08);
    --shadow-md: 0 20px 48px rgba(73, 58, 204, 0.14);
    --shadow-lg: 0 28px 68px rgba(12, 18, 32, 0.14);

    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;

    --container-width: 1220px;
    --header-height: 84px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(91, 61, 245, 0.08), transparent 26%),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 28%),
        linear-gradient(180deg, #f8faff 0%, #f2f5ff 100%);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(100% - 32px, var(--container-width));
    margin: 0 auto;
}

.page-content {
    min-height: calc(100vh - 160px);
}

/* =========================
   HEADER
========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(140, 156, 186, 0.14);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
    box-shadow: 0 12px 36px rgba(12, 18, 32, 0.08);
}

.nav-wrap {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    padding: 5px;
    box-shadow: var(--shadow-sm);
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-text strong {
    font-size: 1rem;
    color: var(--text-main);
    white-space: nowrap;
}

.brand-text small {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
    background: rgba(91, 61, 245, 0.08);
    color: var(--primary-dark);
}

.nav-toggle {
    display: none;
    border: 0;
    background: var(--gradient-main);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

/* =========================
   HERO
========================= */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 96px 0 58px;
    background:
        radial-gradient(circle at 10% 20%, rgba(91, 61, 245, 0.16), transparent 26%),
        radial-gradient(circle at 90% 18%, rgba(37, 99, 235, 0.14), transparent 24%),
        radial-gradient(circle at 75% 72%, rgba(244, 197, 66, 0.10), transparent 18%);
}

.hero-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(18px);
    pointer-events: none;
}

.hero-orb-1 {
    width: 260px;
    height: 260px;
    top: 30px;
    right: -70px;
    background: rgba(91, 61, 245, 0.14);
}

.hero-orb-2 {
    width: 220px;
    height: 220px;
    bottom: 30px;
    left: -60px;
    background: rgba(37, 99, 235, 0.12);
}

.hero-orb-3 {
    width: 180px;
    height: 180px;
    top: 120px;
    left: 45%;
    background: rgba(244, 197, 66, 0.10);
}

.hero-grid,
.hero-info-row {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 34px;
    align-items: center;
}

.eyebrow,
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 14px;
}

.section-label.light {
    color: #e9e8ff;
}

/* HERO TITLE BEAUTIFUL STYLE */
.hero-title {
    margin: 0 0 22px;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(1.0rem, 2.9vw, 2.7rem);
    line-height: 0.98;
    letter-spacing: -1.8px;
    font-weight: 800;
    color: #09101f;
    text-wrap: balance;
}

.hero-title-line {
    display: block;
}

.title-strong {
    background: linear-gradient(135deg, #4f46e5 0%, #2563eb 45%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.title-chip {
    display: inline-block;
    padding: 4px 12px;
    margin: 3px 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(91, 61, 245, 0.10);
    box-shadow: 0 10px 24px rgba(73, 58, 204, 0.10);
    color: #2d3a61;
    font-size: 0.88em;
    line-height: 1.2;
    vertical-align: middle;
}

.hero-lead,
.page-intro {
    color: var(--text-muted);
    font-size: 1.08rem;
    max-width: 760px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero-mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 34px;
}

.mini-stat {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-sm);
    border-radius: 18px;
    padding: 16px 18px;
    min-width: 150px;
    position: relative;
    overflow: hidden;
}

.mini-stat::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-main);
}

.mini-stat strong {
    display: block;
    font-size: 1.3rem;
}

.mini-stat span {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.hero-visual {
    position: relative;
}

.hero-card-shell {
    position: relative;
    min-height: 620px;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(240,244,255,0.90) 100%);
    border: 1px solid rgba(255,255,255,0.65);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    padding: 28px;
}

.hero-card-shell::before {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    top: -80px;
    right: -70px;
    background: rgba(91, 61, 245, 0.14);
    filter: blur(10px);
}

.hero-card-shell::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    bottom: -70px;
    left: -60px;
    background: rgba(244, 197, 66, 0.12);
    filter: blur(10px);
}

.hero-logo-badge {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 2;
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-photo-wrap {
    position: absolute;
    inset: 90px 18px 0 18px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1;
}

.hero-photo {
    max-height: 545px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 22px 36px rgba(15, 23, 42, 0.16));
}

.hero-info-row {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hero-info-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-sm);
    border-radius: 20px;
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
}

.hero-info-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--gradient-main);
}

.hero-info-card strong {
    display: block;
    font-size: 1.05rem;
    color: var(--text-main);
}

.hero-info-card small {
    display: block;
    color: var(--text-muted);
    margin-top: 4px;
}

.accent-card::before {
    background: var(--gradient-accent);
}

.panel-label {
    display: block;
    color: var(--primary-dark);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    margin-bottom: 6px;
}

/* =========================
   BUTTONS
========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 16px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn.small-btn {
    min-height: 46px;
    padding: 0 18px;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 14px 34px rgba(91, 61, 245, 0.22);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(91, 61, 245, 0.28);
}

.btn-outline {
    border: 1px solid rgba(91, 61, 245, 0.16);
    background: rgba(255,255,255,0.84);
    color: var(--text-main);
    box-shadow: 0 8px 22px rgba(12, 18, 32, 0.04);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--primary-dark);
    box-shadow: 0 12px 24px rgba(244, 197, 66, 0.14);
}

.btn-light {
    background: #fff;
    color: var(--primary-dark);
}

/* =========================
   SECTIONS / CARDS
========================= */
.section-block {
    padding: 76px 0;
}

.alt-bg {
    background: linear-gradient(180deg, rgba(238, 242, 255, 0.8) 0%, rgba(247, 249, 255, 0.95) 100%);
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading.centered {
    text-align: center;
}

.section-heading h2,
.split-section h2,
.cta-box h2,
.info-card h2,
.project-card h2,
.project-detail-card h2 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 2.5vw, 2.6rem);
    line-height: 1.14;
}

.section-heading h2::after,
.split-section h2::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin-top: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.section-heading.centered h2::after {
    margin-left: auto;
    margin-right: auto;
}

.section-heading p,
.muted-paragraph,
.project-card p,
.info-card p,
.project-detail-card p {
    color: var(--text-muted);
}

.card-grid {
    display: grid;
    gap: 24px;
}

.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.72);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.info-card:hover,
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(91, 61, 245, 0.14);
}

.premium-card {
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 22px;
    width: 72px;
    height: 4px;
    border-radius: 999px;
    background: var(--gradient-main);
}

/* SERVICE IMAGE CARDS */
.service-card {
    text-align: center;
}

.service-art {
    width: 100%;
    max-width: 220px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-art img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 16px 24px rgba(61, 87, 177, 0.12));
}

.service-card h3 {
    margin: 8px 0 10px;
    font-size: 1.25rem;
}

/* GLASS GREEN PROJECT TAG */
.project-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(28, 192, 120, 0.14);
    border: 1px solid rgba(28, 192, 120, 0.24);
    backdrop-filter: blur(12px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        0 10px 22px rgba(28, 192, 120, 0.14);
    color: #0d8c59;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.project-card-top h3,
.project-card h2 {
    margin: 0 0 10px;
}

/* =========================
   DEVICE MOCKUPS
========================= */
.device-showcase {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    margin: 24px 0 18px;
    min-height: 430px;
}

.compact-showcase {
    min-height: 300px;
    margin-top: 18px;
}

.detail-showcase {
    min-height: 520px;
}

.laptop-device {
    width: min(100%, 760px);
    position: relative;
    z-index: 1;
}

.laptop-topbar {
    height: 18px;
    background: linear-gradient(180deg, #2d3748, #111827);
    border-radius: 22px 22px 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
}

.laptop-topbar span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
}

.laptop-screen {
    background: #0f172a;
    padding: 12px;
    border-left: 2px solid #1f2937;
    border-right: 2px solid #1f2937;
    overflow: hidden;
    box-shadow: 0 18px 32px rgba(12, 18, 32, 0.12);
}

.laptop-screen img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    background: #fff;
}

.laptop-base {
    width: 108%;
    height: 16px;
    margin: 0 auto;
    background: linear-gradient(to bottom, #d7dee9, #9aa6b8);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
}

.phone-device {
    position: absolute;
    right: 0;
    bottom: 8px;
    width: 220px;
    padding: 12px;
    background: linear-gradient(180deg, #161f33, #0b1220);
    border-radius: 34px;
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.22);
    z-index: 2;
}

.phone-device.small-phone {
    width: 150px;
    right: 8px;
    bottom: 0;
}

.phone-notch {
    width: 96px;
    height: 16px;
    background: #020617;
    border-radius: 0 0 12px 12px;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.phone-screen {
    background: #fff;
    border-radius: 26px;
    overflow: hidden;
    min-height: 390px;
}

.phone-device.small-phone .phone-screen {
    min-height: 270px;
    border-radius: 22px;
}

.phone-screen img {
    width: 100%;
    height: auto;
    display: block;
}

.device-placeholder {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    text-align: center;
    color: #475569;
    background: linear-gradient(135deg, rgba(91, 61, 245, 0.10), rgba(37, 99, 235, 0.10));
}

.device-placeholder strong {
    font-size: 1rem;
    color: var(--text-main);
}

.device-placeholder span {
    font-size: 0.92rem;
}

.phone-placeholder {
    min-height: 390px;
    font-size: 0.88rem;
}

.phone-device.small-phone .phone-placeholder {
    min-height: 270px;
    padding: 16px;
}

.device-note {
    color: var(--text-muted);
    margin-top: 16px;
}

/* =========================
   SPLIT / STACK / PROCESS
========================= */
.split-section {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 28px;
    align-items: center;
}

.feature-stack {
    display: grid;
    gap: 16px;
}

.feature-stack-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255,255,255,0.72);
    box-shadow: var(--shadow-sm);
    border-radius: 18px;
    padding: 18px 20px;
}

.feature-stack-card strong {
    display: block;
    margin-bottom: 4px;
}

.feature-stack-card span {
    color: var(--text-muted);
}

.process-grid {
    margin-top: 8px;
}

.process-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255,255,255,0.72);
    box-shadow: var(--shadow-sm);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.process-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-main);
}

.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(244, 197, 66, 0.18);
    color: #8a6200;
    font-weight: 800;
    margin-bottom: 14px;
}

.skill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-cloud span,
.stack-list span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(140, 156, 186, 0.18);
    color: var(--text-main);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
}

/* =========================
   CTA
========================= */
.cta-section {
    padding: 0 0 76px;
}

.cta-box {
    background:
        radial-gradient(circle at top right, rgba(244, 197, 66, 0.18), transparent 24%),
        linear-gradient(135deg, #4d33ee 0%, #2563eb 60%, #6d28d9 100%);
    border-radius: var(--radius-xl);
    padding: 36px;
    color: #fff;
    box-shadow: 0 24px 56px rgba(73, 58, 204, 0.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.88);
    max-width: 720px;
}

/* =========================
   INNER PAGES
========================= */
.page-hero.compact {
    padding: 72px 0 18px;
}

.about-grid,
.contact-grid,
.detail-grid {
    display: grid;
    gap: 24px;
}

.about-grid,
.contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-grid {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: start;
}

.detail-main {
    display: grid;
    gap: 24px;
}

.sticky-card {
    position: sticky;
    top: calc(var(--header-height) + 18px);
}

.project-meta {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.meta-item {
    display: grid;
    gap: 6px;
}

.meta-item strong {
    color: var(--text-main);
}

.meta-item span {
    color: var(--text-muted);
}

.highlight-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text-muted);
}

.highlight-list li + li {
    margin-top: 10px;
}

/* =========================
   CONTACT
========================= */
.contact-list {
    display: grid;
    gap: 18px;
}

.contact-item {
    display: grid;
    gap: 4px;
}

.contact-item strong {
    color: var(--text-main);
}

.contact-item span {
    color: var(--text-muted);
}

.contact-form {
    display: grid;
    gap: 16px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(140, 156, 186, 0.18);
    background: #fff;
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(91, 61, 245, 0.12);
}

.form-textarea {
    min-height: 160px;
    padding-top: 14px;
    resize: vertical;
}

.form-note {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* =========================
   FOOTER
========================= */
.site-footer {
    background: #0f172a;
    color: #e2e8f0;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.9fr;
    gap: 28px;
    padding: 52px 0;
}

.site-footer h3,
.site-footer h4 {
    margin-top: 0;
    color: #fff;
}

.site-footer p,
.footer-links li {
    color: #cbd5e1;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 16px 0;
    color: #94a3b8;
    font-size: 0.94rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1200px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-card-shell {
        min-height: 560px;
    }

    .hero-photo {
        max-height: 470px;
    }
}

@media (max-width: 1024px) {
    .split-section,
    .detail-grid,
    .about-grid,
    .contact-grid,
    .two-col,
    .three-col,
    .four-col,
    .footer-grid,
    .hero-info-row {
        grid-template-columns: 1fr;
    }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .device-showcase.detail-showcase {
        min-height: 440px;
    }

    .phone-device {
        width: 180px;
    }

    .phone-screen,
    .phone-placeholder {
        min-height: 320px;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 16px;
        left: 16px;
        background: #fff;
        border: 1px solid rgba(140, 156, 186, 0.18);
        border-radius: 18px;
        box-shadow: var(--shadow-sm);
        padding: 12px;
        display: none;
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        width: 100%;
    }

    .brand-text small {
        display: none;
    }

    .hero-section {
        padding-top: 58px;
    }

    .hero-card-shell {
        min-height: 470px;
    }

    .hero-logo-badge {
        width: 74px;
        height: 74px;
    }

    .hero-photo {
        max-height: 395px;
    }

    .device-showcase,
    .device-showcase.detail-showcase,
    .compact-showcase {
        min-height: auto;
        padding-bottom: 0;
        display: block;
    }

    .laptop-device {
        width: 100%;
    }

    .phone-device,
    .phone-device.small-phone {
        position: relative;
        right: auto;
        bottom: auto;
        width: 180px;
        margin: 18px auto 0;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, var(--container-width));
    }

    .hero-title {
        font-size: 2.15rem;
        line-height: 1.02;
    }

    .hero-card-shell,
    .info-card,
    .project-card,
    .process-card {
        padding: 22px;
    }

    .mini-stat {
        min-width: 100%;
    }

    .btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
    }

    .hero-card-shell {
        min-height: 420px;
    }

    .hero-photo {
        max-height: 335px;
    }

    .hero-photo-wrap {
        inset: 82px 12px 0 12px;
    }

    .service-art {
        max-width: 180px;
    }
}

/* =========================
   PROJECTS PAGE PREMIUM ADDITIONS
========================= */

.projects-hero,
.project-detail-hero {
    position: relative;
    overflow: hidden;
}

.projects-hero::before,
.project-detail-hero::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -60px;
    top: 10px;
    border-radius: 50%;
    background: rgba(91, 61, 245, 0.10);
    filter: blur(20px);
    pointer-events: none;
}

.projects-intro-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 28px;
    padding: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255,255,255,0.72);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.projects-intro-card h2 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
    line-height: 1.12;
}

.projects-intro-card p {
    margin: 0;
    color: var(--text-muted);
}

.projects-intro-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.intro-stat-box {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.72);
    box-shadow: var(--shadow-sm);
    border-radius: 18px;
    padding: 18px 16px;
    text-align: center;
}

.intro-stat-box strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-main);
}

.intro-stat-box span {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.project-list-card {
    position: relative;
}

.project-meta-strip {
    margin-top: 10px;
    margin-bottom: 8px;
}

.meta-chip {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(91, 61, 245, 0.08);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.meta-chip strong {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary-dark);
}

.meta-chip span {
    color: var(--text-main);
    font-weight: 600;
}

.project-card-actions {
    margin-top: 18px;
}

/* =========================
   PROJECT DETAIL PREMIUM ADDITIONS
========================= */

.project-overview-card {
    position: relative;
    overflow: hidden;
}

.project-overview-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.project-overview-top h2 {
    margin: 0;
}

.project-detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 22px 0 18px;
}

.detail-meta-box {
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(255,255,255,0.72);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    border-radius: 18px;
    padding: 16px;
}

.detail-meta-box strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary-dark);
}

.detail-meta-box span {
    color: var(--text-main);
    font-weight: 600;
}

.project-side-card h3 {
    margin-top: 0;
    margin-bottom: 14px;
}

.side-card-divider {
    height: 1px;
    margin: 22px 0;
    background: linear-gradient(90deg, rgba(91, 61, 245, 0.16), rgba(37, 99, 235, 0.06), transparent);
}

.side-summary {
    color: var(--text-muted);
    margin-bottom: 18px;
}

.video-placeholder-box {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 180px;
    padding: 24px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(91, 61, 245, 0.08), rgba(37, 99, 235, 0.08));
    border: 1px dashed rgba(91, 61, 245, 0.18);
}

.video-placeholder-icon {
    width: 74px;
    height: 74px;
    min-width: 74px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-main);
    color: #fff;
    font-size: 1.4rem;
    box-shadow: var(--shadow-sm);
}

.video-placeholder-box strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.video-placeholder-box p {
    margin: 0;
    color: var(--text-muted);
}

/* =========================
   RESPONSIVE ADDITIONS
========================= */

@media (max-width: 1024px) {
    .projects-intro-card,
    .projects-intro-stats,
    .project-detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .project-overview-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .projects-intro-card,
    .video-placeholder-box {
        padding: 22px;
    }

    .video-placeholder-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .video-placeholder-icon {
        width: 62px;
        height: 62px;
        min-width: 62px;
    }
}

/* =========================
   ABOUT PAGE PREMIUM ADDITIONS
========================= */

.about-hero,
.contact-hero {
    position: relative;
    overflow: hidden;
}

.about-hero::before,
.contact-hero::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    left: -60px;
    top: 0;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
    filter: blur(20px);
    pointer-events: none;
}

.about-premium-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: start;
}

.about-profile-card {
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(255,255,255,0.72);
    box-shadow: var(--shadow-sm);
    border-radius: 26px;
    padding: 28px;
    backdrop-filter: blur(10px);
}

.about-profile-top {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: center;
}

.about-avatar-wrap {
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(240,244,255,0.92));
    border-radius: 24px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.about-avatar {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    margin: 0 auto;
    filter: drop-shadow(0 16px 28px rgba(15, 23, 42, 0.12));
}

.about-profile-copy h2 {
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 2.6vw, 2.5rem);
    line-height: 1.12;
}

.about-role {
    margin: 0 0 12px;
    color: var(--primary-dark);
    font-weight: 700;
}

.about-summary {
    color: var(--text-muted);
    margin: 0;
}

.about-mini-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.about-mini-card {
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(255,255,255,0.72);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    border-radius: 18px;
    padding: 16px;
}

.about-mini-card strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 6px;
}

.about-mini-card span {
    color: var(--text-muted);
    font-size: 0.94rem;
}

.about-side-panel {
    display: grid;
    gap: 18px;
}

.about-side-card {
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(255,255,255,0.72);
    box-shadow: var(--shadow-sm);
    border-radius: 22px;
    padding: 24px;
}

.about-side-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.about-side-card p {
    color: var(--text-muted);
    margin: 0;
}

.accent-side-card {
    position: relative;
    overflow: hidden;
}

.accent-side-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--gradient-accent);
}

.about-text-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.strength-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* =========================
   CONTACT PAGE PREMIUM ADDITIONS
========================= */

.contact-premium-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: start;
}

.contact-main-card,
.contact-side-card,
.contact-form-card {
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(255,255,255,0.72);
    box-shadow: var(--shadow-sm);
    border-radius: 24px;
    padding: 28px;
    backdrop-filter: blur(10px);
}

.contact-main-card h2,
.contact-side-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.contact-intro-text {
    color: var(--text-muted);
    margin-bottom: 22px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-info-box {
    background: rgba(255,255,255,0.76);
    border: 1px solid rgba(255,255,255,0.72);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    border-radius: 18px;
    padding: 16px;
}

.contact-info-box strong {
    display: block;
    margin-bottom: 6px;
    color: var(--primary-dark);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.contact-info-box span {
    color: var(--text-main);
    font-weight: 600;
}

.contact-note-box {
    margin-top: 22px;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(91, 61, 245, 0.06), rgba(37, 99, 235, 0.06));
    border: 1px dashed rgba(91, 61, 245, 0.14);
}

.contact-note-box p {
    margin: 0;
    color: var(--text-muted);
}

.contact-side-inner {
    height: 100%;
}

.contact-service-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.contact-service-item {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.74);
    border: 1px solid rgba(255,255,255,0.72);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.contact-service-item strong {
    display: block;
    margin-bottom: 4px;
}

.contact-service-item span {
    color: var(--text-muted);
}

.premium-contact-form {
    gap: 18px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
}

/* =========================
   RESPONSIVE ADDITIONS
========================= */

@media (max-width: 1024px) {
    .about-premium-grid,
    .contact-premium-grid,
    .about-profile-top,
    .about-mini-cards,
    .contact-info-grid,
    .contact-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .about-profile-card,
    .contact-main-card,
    .contact-side-card,
    .contact-form-card {
        padding: 22px;
    }

    .contact-form-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* =========================
   HOME SHOWCASE WITH SYNCED LAPTOP + PHONE
========================= */

.portfolio-showcase-section {
    position: relative;
    overflow: hidden;
}

.portfolio-showcase-shell {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: stretch;
}

.portfolio-device-side,
.portfolio-info-side {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255,255,255,0.72);
    box-shadow: var(--shadow-sm);
    border-radius: 28px;
    padding: 24px;
    backdrop-filter: blur(12px);
}

.showcase-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.showcase-count {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-weight: 800;
    color: var(--text-main);
}

.showcase-count span {
    font-size: 1.4rem;
}

.showcase-count small {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.showcase-nav-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.showcase-arrow {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 14px;
    background: rgba(91, 61, 245, 0.10);
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 18px rgba(73, 58, 204, 0.08);
}

.showcase-arrow:hover {
    background: var(--gradient-main);
    color: #fff;
    transform: translateY(-2px);
}

.portfolio-slide-stage {
    position: relative;
    min-height: 540px;
    overflow: hidden;
}

.portfolio-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(28px, 0, 0) scale(0.985);
    transition:
        opacity 0.55s ease,
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.55s ease;
}

.portfolio-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
}

.portfolio-laptop {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.portfolio-laptop-topbar {
    height: 18px;
    background: linear-gradient(180deg, #2d3748, #111827);
    border-radius: 22px 22px 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
}

.portfolio-laptop-topbar span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
}

.portfolio-laptop-screen {
    background: #0f172a;
    padding: 14px;
    border-left: 2px solid #1f2937;
    border-right: 2px solid #1f2937;
    overflow: hidden;
    box-shadow: 0 20px 36px rgba(12, 18, 32, 0.12);
}

.portfolio-laptop-screen img {
    width: 100%;
    display: block;
    border-radius: 12px;
    background: #fff;
}

.portfolio-laptop-base {
    width: 108%;
    height: 16px;
    margin: 0 auto;
    background: linear-gradient(to bottom, #d7dee9, #9aa6b8);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.portfolio-phone {
    position: absolute;
    right: 26px;
    bottom: 10px;
    width: 195px;
    padding: 12px;
    background: linear-gradient(180deg, #161f33, #0b1220);
    border-radius: 34px;
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.22);
    z-index: 3;
    transform: translate3d(0, 0, 0);
    transition:
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s ease;
}

.portfolio-slide.active .portfolio-phone {
    animation: phoneFloatIn 0.78s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes phoneFloatIn {
    0% {
        opacity: 0;
        transform: translate3d(22px, 12px, 0) scale(0.94) rotate(-2deg);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    }
}

.portfolio-phone-notch {
    width: 96px;
    height: 16px;
    background: #020617;
    border-radius: 0 0 12px 12px;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.portfolio-phone-screen {
    background: #fff;
    border-radius: 26px;
    overflow: hidden;
    min-height: 350px;
}

.portfolio-phone-screen img {
    width: 100%;
    display: block;
}

.showcase-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.showcase-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(148, 163, 184, 0.45);
    cursor: pointer;
    transition: all 0.25s ease;
}

.showcase-dot.active {
    background: linear-gradient(135deg, #5b3df5 0%, #2563eb 100%);
    transform: scale(1.18);
    box-shadow: 0 6px 14px rgba(73, 58, 204, 0.18);
}

.portfolio-info-panel {
    display: none;
    animation: showcaseInfoFade 0.5s ease;
}

.portfolio-info-panel.active {
    display: block;
}

@keyframes showcaseInfoFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-info-panel h3 {
    margin: 8px 0 12px;
    font-size: clamp(1.6rem, 2.4vw, 2.3rem);
    line-height: 1.12;
}

.showcase-built-for {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
    color: var(--text-muted);
}

.showcase-built-for strong {
    color: var(--text-main);
}

.showcase-summary {
    color: var(--text-muted);
    margin-bottom: 18px;
}

.showcase-highlights-wrap {
    margin-top: 18px;
}

.showcase-highlights-wrap h4 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: var(--text-main);
}

.compact-highlight-list {
    margin: 0;
    padding-left: 18px;
}

.compact-highlight-list li {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.showcase-bottom-row {
    margin-top: 18px;
    margin-bottom: 18px;
}

.mobile-available-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.24);
    color: #047857;
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        0 10px 22px rgba(16, 185, 129, 0.10);
}

.showcase-actions {
    margin-top: 16px;
}

/* =========================
   CLEAN PROJECTS PAGE CARDS
========================= */

.clean-project-grid {
    align-items: stretch;
}

.clean-project-card {
    overflow: hidden;
    padding: 0;
}

.clean-project-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(91, 61, 245, 0.08), rgba(37, 99, 235, 0.10));
    overflow: hidden;
    border-radius: 22px 22px 0 0;
}

.clean-project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clean-project-body {
    padding: 24px;
}

.project-thumb-placeholder {
    min-height: 100%;
    height: 100%;
}

/* =========================
   GLASS GREEN LABEL OVERRIDE
========================= */

.project-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(28, 192, 120, 0.14);
    border: 1px solid rgba(28, 192, 120, 0.24);
    backdrop-filter: blur(12px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        0 10px 22px rgba(28, 192, 120, 0.14);
    color: #0d8c59;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.4px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
    .portfolio-showcase-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .portfolio-slide-stage {
        min-height: 430px;
    }

    .portfolio-phone {
        width: 150px;
        right: 10px;
        bottom: 0;
    }

    .portfolio-phone-screen {
        min-height: 270px;
    }
}

@media (max-width: 640px) {
    .portfolio-device-side,
    .portfolio-info-side {
        padding: 20px;
    }

    .showcase-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .portfolio-slide-stage {
        min-height: 320px;
    }

    .portfolio-phone {
        position: relative;
        right: auto;
        bottom: auto;
        width: 150px;
        margin: 18px auto 0;
    }

    .portfolio-phone-screen {
        min-height: 270px;
    }
}

/* Project detail metadata polish */
.project-detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 22px 0 18px;
}

.detail-meta-box {
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(255,255,255,0.72);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    border-radius: 18px;
    padding: 16px;
}

.detail-meta-box strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary-dark);
}

.detail-meta-box span {
    color: var(--text-main);
    font-weight: 700;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.24);
    color: #047857;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        0 10px 22px rgba(16, 185, 129, 0.10);
}

.contact-alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-weight: 600;
}

.success-alert {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: #047857;
}

.error-alert {
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.20);
    color: #b91c1c;
}

/* =========================
   CONTACT ADMIN INBOX
========================= */

.admin-inbox-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.admin-page-title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.1;
}

.admin-page-subtitle {
    margin: 6px 0 0;
    color: var(--text-muted);
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.admin-stat-card {
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(255,255,255,0.72);
    box-shadow: var(--shadow-sm);
    border-radius: 20px;
    padding: 20px;
}

.admin-stat-card strong {
    display: block;
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.admin-stat-card span {
    color: var(--text-muted);
    font-weight: 600;
}

.unread-card {
    background: rgba(16, 185, 129, 0.10);
    border-color: rgba(16, 185, 129, 0.16);
}

.admin-toolbar-card {
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(255,255,255,0.72);
    box-shadow: var(--shadow-sm);
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 20px;
}

.admin-search-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.admin-search-form .form-input {
    flex: 1;
}

.admin-message-list {
    display: grid;
    gap: 18px;
}

.admin-message-card {
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(255,255,255,0.72);
    box-shadow: var(--shadow-sm);
    border-radius: 22px;
    padding: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-message-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.admin-message-card.is-unread {
    border-left: 5px solid #10b981;
}

.admin-message-card.is-read {
    border-left: 5px solid rgba(148, 163, 184, 0.65);
}

.admin-message-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.admin-message-main h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.admin-message-meta {
    display: grid;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.admin-message-meta strong {
    color: var(--text-main);
}

.admin-message-status-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.message-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
}

.unread-badge {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: #047857;
}

.read-badge {
    background: rgba(148, 163, 184, 0.14);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #475569;
}

.admin-message-body {
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(91, 61, 245, 0.05), rgba(37, 99, 235, 0.05));
    color: var(--text-main);
    white-space: normal;
    word-break: break-word;
}

.admin-message-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.danger-btn {
    border-color: rgba(239, 68, 68, 0.22);
    color: #b91c1c;
}

.danger-btn:hover {
    background: rgba(239, 68, 68, 0.10);
    border-color: rgba(239, 68, 68, 0.30);
    color: #991b1b;
}

@media (max-width: 900px) {
    .admin-inbox-header,
    .admin-message-top,
    .admin-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}