/* -------------------------------------------------------
RESET & BASE
------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* -------------------------------------------------------
THEME VARIABLES + FONT SYSTEM
------------------------------------------------------- */
:root {
    /* Background / color system */
    --bg: radial-gradient(circle at top, #0b1120, #020617 55%, #020617 100%);
    --bg-solid: #020617;
    --text: #e5e7eb;
    --card-bg: rgba(15, 23, 42, 0.9);
    --border: rgba(148, 163, 233, 0.4);
    --muted: #9ca3af;
    --accent: #4f46e5;

    --pill-blue: #3b82f6;
    --pill-green: #22c55e;
    --pill-amber: #fbbf24;
    --pill-pink: #ec4899;
    --pill-teal: #14b8a6;

    --shadow-soft: 0 26px 80px rgba(15, 23, 42, 0.9);
    --shadow-subtle: 0 18px 45px rgba(15, 23, 42, 0.85);

    /* Font families for font switcher */
    --font-default: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-serif: "Merriweather", Georgia, "Times New Roman", serif;
    --font-rounded: "Nunito", "Segoe UI Rounded", "Segoe UI", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    --font-geometric: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-classic: "Lato", "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Active font (JS will change this) */
    --font-current: var(--font-default);
}

/* Light mode override (used by data-theme="light" if you want) */
[data-theme="light"] {
    --bg: radial-gradient(circle at top, #e0f2fe, #eef2ff 48%, #f9fafb 100%);
    --bg-solid: #f9fafb;
    --text: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.96);
    --border: rgba(15, 23, 42, 0.08);
    --muted: #6b7280;
    --shadow-soft: 0 26px 90px rgba(148, 163, 233, 0.55);
    --shadow-subtle: 0 18px 50px rgba(148, 163, 233, 0.5);
}

/* -------------------------------------------------------
BODY / GLOBAL
------------------------------------------------------- */
body {
    font-family: var(--font-current);
    background: var(--bg);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: var(--text);
    line-height: 1.7;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        font-family 0.25s ease;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Layout container */
.container {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 28px;
}

.content {
    padding: 30px 0 44px;
    text-align: center;
    /* Global centered feel */
}

.muted {
    color: var(--muted);
}

/* Global section spacing */
section {
    margin-bottom: 32px;
}

/* -------------------------------------------------------
HEADER
------------------------------------------------------- */
.site-header {
    background: linear-gradient(to bottom,
            rgba(15, 23, 42, 0.96),
            rgba(15, 23, 42, 0.85));
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 233, 0.4);
    position: sticky;
    top: 0;
    z-index: 100;
}

[data-theme="light"] .site-header {
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.98),
            rgba(255, 255, 255, 0.95));
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Bigger profile avatar with Ethiopian color rings */
.brand-avatar-glow {
    position: relative;
    width: 72px;
    /* was 50px */
    height: 72px;
    /* was 50px */
    flex-shrink: 0;
}

/* Outer glow ring: green–yellow–red */
.brand-avatar-glow::before {
    content: "";
    position: absolute;
    inset: -8px;
    /* a bit thicker ring */
    border-radius: 999px;
    background: conic-gradient(from 220deg,
            #16a34a,
            /* green */
            #facc15,
            /* yellow */
            #dc2626,
            /* red */
            #16a34a
            /* green again to loop */
        );
    filter: blur(6px);
    opacity: 0.9;
}

/* Inner clean ring */
.brand-avatar-glow::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 999px;
    border: 2px solid rgba(15, 23, 42, 0.9);
    /* dark ring in dark mode */
}

[data-theme="light"] .brand-avatar-glow::after {
    border-color: rgba(148, 163, 233, 0.5);
    /* softer ring in light mode */
}

.brand-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border: 3px solid #020617;
    /* slightly thicker to feel premium */
}

[data-theme="light"] .brand-photo {
    border-color: #f9fafb;
    /* clean white edge in light mode */
}


.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #e5e7eb;
}

.brand-tagline {
    font-size: 12px;
    color: #9ca3af;
}

[data-theme="light"] .brand-name {
    color: #111827;
}

[data-theme="light"] .brand-tagline {
    color: #6b7280;
}

/* Nav */
.nav {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.nav a {
    position: relative;
    padding: 4px 0;
    color: #e5e7eb;
    opacity: 0.9;
}

.nav a:hover {
    opacity: 1;
}

[data-theme="light"] .nav a {
    color: #111827;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #eab308, #ef4444);
    transition: width 0.2s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a.active {
    font-weight: 600;
}

/* Header actions (theme, font, toggles) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 233, 0.7);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    width: 40px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.7);
}

[data-theme="light"] .theme-toggle {
    background: #f9fafb;
    color: #111827;
    box-shadow: 0 10px 30px rgba(148, 163, 233, 0.45);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 34px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 233, 0.7);
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: #e5e7eb;
    width: 18px;
    margin: 0 auto;
}

[data-theme="light"] .nav-toggle span {
    background: #111827;
}

/* -------------------------------------------------------
HERO
------------------------------------------------------- */
.hero {
    margin-top: 26px;
    border-radius: 26px;
    padding: 30px 24px;
    background:
        radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.15), transparent 55%),
        radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.18), transparent 55%),
        linear-gradient(135deg, #020617, #020617);
    color: #e5e7eb;
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
    gap: 26px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: -80px;
    background:
        radial-gradient(circle at 15% 80%, rgba(34, 197, 94, 0.15), transparent 60%),
        radial-gradient(circle at 90% 85%, rgba(248, 250, 252, 0.06), transparent 60%);
    opacity: 0.7;
    pointer-events: none;
}

[data-theme="light"] .hero {
    background:
        radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.16), transparent 60%),
        radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.18), transparent 55%),
        linear-gradient(135deg, #eff6ff, #f5f3ff);
    color: #0f172a;
}

/* Hero content */
.hero-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 233, 0.6);
    padding: 3px 10px 3px 4px;
    font-size: 12px;
    color: #e5e7eb;
    width: fit-content;
}

[data-theme="light"] .hero-badge {
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
}

.badge-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.45);
}

/* Greeting */
.hero-greeting {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    letter-spacing: 0.03em;
    margin-top: 8px;
}

.hero-wave {
    font-size: 22px;
    animation: wave 1.4s ease-in-out infinite;
    transform-origin: 70% 70%;
}

.hero-name {
    font-weight: 700;
}

/* Title & subtitle */
.hero-title {
    font-size: 28px;
    line-height: 1.25;
    font-weight: 750;
    max-width: 28rem;
}

.hero-subtitle {
    max-width: 32rem;
    font-size: 14px;
    color: rgba(226, 232, 240, 0.95);
}

[data-theme="light"] .hero-subtitle {
    color: #475569;
}

/* Actions */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

/* Tags */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(15, 23, 42, 0.7);
    color: #e5e7eb;
}

.hero-tag i {
    font-size: 12px;
}

[data-theme="light"] .hero-tag {
    background: rgba(255, 255, 255, 0.9);
    color: #111827;
}

/* -------------------------------------------------------
HERO QUICK LINKS – NEW CARD STYLE
------------------------------------------------------- */

/* Grid of cards instead of vertical pills */
.hero-pills {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

/* Card look: soft, rectangular with accent strip */
.hero-pill {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 14px 12px 16px;
    border-radius: 18px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-subtle);
    text-align: left;
    overflow: hidden;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease;
}

/* Vertical color strip on the left */
.hero-pill::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #22c55e, #eab308, #3b82f6);
    opacity: 0.9;
}

/* Soft background highlight */
.hero-pill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(148, 163, 233, 0.18), transparent 60%);
    opacity: 0.9;
    pointer-events: none;
}

/* Content above the overlays */
.hero-pill>* {
    position: relative;
    z-index: 1;
}

.hero-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.9);
    border-color: rgba(129, 140, 248, 0.9);
}

/* Light theme tweak */
[data-theme="light"] .hero-pill {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 46px rgba(148, 163, 233, 0.55);
}

/* Icon circle */
.pill-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #0f172a;
    flex-shrink: 0;
}

.pill-icon-blue {
    background: #dbeafe;
}

.pill-icon-green {
    background: #bbf7d0;
}

.pill-icon-amber {
    background: #fef3c7;
}

.pill-icon-pink {
    background: #fce7f3;
}

.pill-icon-teal {
    background: #ccfbf1;
}

/* Text area */
.pill-text {
    display: flex;
    flex-direction: column;
    font-size: 13px;
}

.pill-label {
    font-weight: 650;
    font-size: 14px;
    margin-bottom: 2px;
}

.pill-sub {
    font-size: 12px;
    opacity: 0.85;
}

/* On narrow screens, keep cards full-width */

@media (max-width: 480px) {
    .brand-name {
        font-size: 16px;
    }

    .brand-tagline {
        font-size: 11px;
    }

    .brand-avatar-glow {
        width: 60px;
        height: 60px;
        /* a bit smaller on tiny screens */
    }
}



/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: #4f46e5;
    color: #f9fafb;
    box-shadow: 0 14px 45px rgba(79, 70, 229, 0.7);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: #4338ca;
}

.btn-glow-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.5);
}

.btn-ghost {
    border: 1px solid rgba(148, 163, 233, 0.7);
    background: transparent;
    color: #e5e7eb;
}

[data-theme="light"] .btn-ghost {
    color: #111827;
    background: rgba(255, 255, 255, 0.88);
}

.btn-arrow {
    font-size: 16px;
}

/* Animations */
@keyframes wave {
    0% {
        transform: rotate(0deg);
    }

    15% {
        transform: rotate(14deg);
    }

    30% {
        transform: rotate(-8deg);
    }

    45% {
        transform: rotate(14deg);
    }

    60% {
        transform: rotate(-4deg);
    }

    75% {
        transform: rotate(10deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.fade-in-down {
    animation: fadeInDown 0.6s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.7s ease-out;
}

.slide-up {
    animation: slideUp 0.7s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------------------------
HOME HIGHLIGHT
------------------------------------------------------- */
.home-highlight {
    margin-top: 30px;
}

.section-title {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    justify-content: center;
}

.section-pill {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: conic-gradient(#22c55e, #eab308, #ef4444, #3b82f6, #22c55e);
}

.section-sub {
    font-size: 13px;
    margin-bottom: 14px;
}

/* Cards & grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    justify-items: center;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 16px 16px 18px;
    max-width: 380px;
}

.card-raised {
    box-shadow: var(--shadow-subtle);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.card-text {
    font-size: 14px;
    color: var(--muted);
}

.card-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #0f172a;
}

.card-icon-blue {
    background: #dbeafe;
}

.card-icon-green {
    background: #bbf7d0;
}

.card-icon-amber {
    background: #fef3c7;
}

/* Hover lift */
.hover-lift {
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.9);
    border-color: rgba(129, 140, 248, 0.9);
}

/* Equal & centered home-build cards */
.home-build-grid {
    align-items: stretch;
}

.home-build-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.home-build-card .card-title {
    justify-content: center;
}

.home-build-card .card-text {
    flex-grow: 1;
}

.card-roles {
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
}

/* Skeleton loaders (optional) */
.card-skeleton {
    background: linear-gradient(120deg,
            rgba(148, 163, 233, 0.12),
            rgba(148, 163, 233, 0.03),
            rgba(148, 163, 233, 0.12));
    background-size: 200% 100%;
    animation: skeleton 1.4s ease-in-out infinite;
}

.skeleton-title,
.skeleton-text {
    border-radius: 999px;
    background: rgba(148, 163, 233, 0.24);
    margin-bottom: 8px;
}

.skeleton-title {
    height: 14px;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.skeleton-text {
    height: 10px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.skeleton-text.short {
    width: 70%;
}

@keyframes skeleton {
    0% {
        background-position: 0% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* -------------------------------------------------------
CTA BAND
------------------------------------------------------- */
.cta-band {
    margin-top: 28px;
    border-radius: 22px;
    padding: 18px 18px;
    background: linear-gradient(135deg, #4f46e5, #22c55e);
    color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 22px 58px rgba(15, 23, 42, 0.9);
}

.cta-text h2 {
    font-size: 18px;
    margin-bottom: 4px;
}

.cta-text p {
    font-size: 13px;
}

/* -------------------------------------------------------
GENERIC PAGE ELEMENTS (ABOUT, PORTFOLIO, ETC.)
------------------------------------------------------- */
.page-header {
    margin-bottom: 22px;
}

.page-header h1 {
    font-size: 24px;
    margin-bottom: 6px;
}

.page-header p {
    max-width: 640px;
    margin: 4px auto 0;
}


/* -----------------------------
   NEW PREMIUM PORTFOLIO CARDS
------------------------------*/

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 22px;
}

.portfolio-card {
    background: var(--card-bg);
    padding: 22px;
    border-radius: 22px;
    border: 1px solid var(--border);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 65px rgba(15, 23, 42, 0.35);
}

.portfolio-icon-box {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text);
}

.portfolio-icon-green {
    background: #bbf7d0;
    color: #065f46;
}

.portfolio-icon-blue {
    background: #dbeafe;
    color: #1e3a8a;
}

.portfolio-icon-amber {
    background: #fef3c7;
    color: #92400e;
}

.portfolio-icon-pink {
    background: #fce7f3;
    color: #9d174d;
}

.portfolio-icon-purple {
    background: #ede9fe;
    color: #5b21b6;
}

.portfolio-title {
    font-size: 18px;
    font-weight: 700;
}

.portfolio-category {
    font-size: 14px;
    color: var(--muted);
    margin-top: -6px;
}

.portfolio-desc {
    font-size: 14px;
    color: var(--text);
    opacity: 0.9;
    margin-top: 4px;
    line-height: 1.55;
}

.portfolio-roles {
    font-size: 13px;
    color: var(--muted);
    font-style: italic;
    margin-top: 4px;
}

.portfolio-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.portfolio-btn:hover {
    opacity: 0.85;
}

/* Example about card */
.about-card {
    box-shadow: var(--shadow-subtle);
    width: 100%;
}

/* Forms (Contact) */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field.full-width {
    grid-column: 1 / -1;
}

.field-label {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.label-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #0f172a;
}

.label-icon-blue {
    background: #dbeafe;
}

.label-icon-green {
    background: #bbf7d0;
}

.label-icon-amber {
    background: #fef3c7;
}

.label-icon-pink {
    background: #fce7f3;
}

input[type="text"],
input[type="email"],
input[type="url"],
textarea {
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.15);
    padding: 8px 10px;
    font-size: 14px;
    color: var(--text);
    outline: none;
}

[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="url"],
[data-theme="light"] textarea {
    background: rgba(255, 255, 255, 0.96);
}

input::placeholder,
textarea::placeholder {
    color: var(--muted);
}

textarea {
    resize: vertical;
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    margin-top: 4px;
}


/* -------------------------------------------------------
CONTACT PAGE SPECIFIC
------------------------------------------------------- */
.contact-page .contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr);
    gap: 18px;
    align-items: stretch;
    margin-top: 8px;
}

/* Make contact cards left-aligned inside */
.contact-page .contact-card {
    text-align: left;
}

/* Nice header inside each contact card */
.contact-card-header {
    text-align: center;
    margin-bottom: 14px;
}

.contact-card-title {
    font-size: 18px;
    margin-top: 6px;
}

.contact-card-sub {
    font-size: 13px;
}

/* Big beautiful icon badge */
.contact-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin: 0 auto;
    background: radial-gradient(circle at 30% 0%, #22c55e, #0f172a);
    color: #f9fafb;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
}

.contact-icon-badge-primary {
    background: radial-gradient(circle at 30% 0%, #4f46e5, #0f172a);
}

/* Contact list styles */
.contact-list {
    list-style: none;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-list-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    color: #0f172a;
}

.contact-list-icon-primary {
    background: #dbeafe;
}

.contact-list-icon-secondary {
    background: #bbf7d0;
}

.contact-list-icon-soft {
    background: #fef3c7;
}

.contact-list-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
}

.contact-list-label {
    font-weight: 600;
}

.contact-list-text a {
    color: var(--accent);
    text-decoration: none;
}

.contact-list-text a:hover {
    text-decoration: underline;
}

/* Small note at bottom of info card */
.contact-note {
    font-size: 12px;
    margin-top: 12px;
}

/* Fine-tune form card */
.contact-form-card .contact-form {
    margin-top: 6px;
}

/* Make contact fields slightly more spacious */
.contact-form-card .field input,
.contact-form-card .field textarea {
    font-size: 14px;
}

/* Responsive: stack cards on small screens */
@media (max-width: 900px) {
    .contact-page .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------------
FOOTER
------------------------------------------------------- */
/* Center footer titles */
.site-footer .footer-column h3 {
    text-align: center;
    width: 100%;
}

/* Center links + icons for perfect balance */
.footer-links-horizontal,
.footer-social-row {
    justify-content: center;
    text-align: center;
}

.site-footer {
    margin-top: 22px;
    border-top: 1px solid rgba(148, 163, 233, 0.35);
    padding-top: 12px;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(16px);
}

[data-theme="light"] .site-footer {
    background: rgba(255, 255, 255, 0.97);
}

.footer-accent {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #22c55e, #eab308, #ef4444, #3b82f6);
    border-radius: 999px;
    opacity: 0.9;
}

.footer-main-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0 8px;
}

.footer-column h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    color: var(--muted);
}

/* Explore links horizontal */
.footer-links-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 14px;
}

.footer-links-horizontal a {
    color: var(--text);
    opacity: 0.9;
}

.footer-links-horizontal a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Social icons */
.footer-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: #020617;
    color: #e5e7eb;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.9);
}

/* Brand icon colors (dark mode / base) */
.social-fb i {
    color: #1877f2;
}

.social-x i {
    color: #e5e7eb;
}

.social-ig i {
    background: radial-gradient(circle at 30% 30%,
            #fdf497 0%,
            #fd5949 40%,
            #d6249f 70%,
            #285aeb 100%);
    -webkit-background-clip: text;
    color: transparent;
}

.social-yt i {
    color: #ff0000;
}

.social-tt i {
    color: #ffffff;
}

.social-li i {
    color: #0a66c2;
}

.social-gh i {
    color: #e5e7eb;
}

/* LIGHT MODE: colorful, visible social icons */
[data-theme="light"] .social {
    box-shadow: 0 12px 30px rgba(148, 163, 233, 0.7);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

/* Facebook */
[data-theme="light"] .social-fb {
    background: #1877f2;
}

[data-theme="light"] .social-fb i {
    color: #ffffff;
}

/* X */
[data-theme="light"] .social-x {
    background: #000000;
}

[data-theme="light"] .social-x i {
    color: #ffffff;
}

/* Instagram */
[data-theme="light"] .social-ig {
    background: radial-gradient(circle at 30% 30%,
            #fdf497 0%,
            #fd5949 40%,
            #d6249f 70%,
            #285aeb 100%);
}

[data-theme="light"] .social-ig i {
    color: #ffffff;
    background: transparent;
}

/* YouTube */
[data-theme="light"] .social-yt {
    background: #ff0000;
}

[data-theme="light"] .social-yt i {
    color: #ffffff;
}

/* TikTok */
[data-theme="light"] .social-tt {
    background: #000000;
}

[data-theme="light"] .social-tt i {
    color: #ffffff;
}

/* LinkedIn */
[data-theme="light"] .social-li {
    background: #0a66c2;
}

[data-theme="light"] .social-li i {
    color: #ffffff;
}

/* GitHub */
[data-theme="light"] .social-gh {
    background: #000000;
}

[data-theme="light"] .social-gh i {
    color: #ffffff;
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid rgba(148, 163, 233, 0.35);
    padding: 8px 18px 12px;
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.footer-bottom a {
    color: #4f46e5;
}

/* Center footer on small devices */
@media (max-width: 768px) {
    .footer-main-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links-horizontal {
        justify-content: center;
    }

    .footer-social-row {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* -------------------------------------------------------
RESPONSIVE & CENTERING
------------------------------------------------------- */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        align-items: center;
    }

    .hero-main {
        align-items: center;
    }

    .hero-title {
        max-width: none;
    }

    .hero-subtitle {
        max-width: 32rem;
    }

    .hero-badge {
        margin-inline: auto;
    }

    .hero-tags {
        justify-content: center;
    }

    .hero-pills {
        align-items: center;
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-band {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        inset: 54px 12px auto 12px;
        padding: 12px 10px;
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.98);
        box-shadow: 0 18px 48px rgba(15, 23, 42, 0.95);
        flex-direction: column;
        gap: 10px;
        z-index: 90;
    }

    [data-theme="light"] .nav {
        background: #ffffff;
        box-shadow: 0 18px 40px rgba(148, 163, 233, 0.55);
    }

    .nav.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding-left: 22px;
        padding-right: 22px;
    }

    .content {
        padding-top: 24px;
    }

    .hero {
        padding: 22px 18px;
    }

    /* Stronger centering on mobile */
    .content,
    .page-header,
    .page-header p,
    .hero,
    .home-highlight,
    .card,
    .cta-band,
    section,
    h1,
    h2,
    h3,
    p {
        text-align: center;
    }

    .card {
        width: 100%;
        max-width: 520px;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 16px;
    }

    .brand-tagline {
        font-size: 11px;
    }
}

/* -------------------------------------------------------
THEME & FONT SWITCHER PANEL
------------------------------------------------------- */
.theme-chooser {
    position: relative;
}

.theme-switcher-btn {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 233, 0.7);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    width: 40px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
}

[data-theme="light"] .theme-switcher-btn {
    background: #f9fafb;
    color: #111827;
}

.theme-switcher-panel {
    position: absolute;
    right: 0;
    top: 40px;
    min-width: 160px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 233, 0.7);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.95);
    display: none;
    z-index: 99;
}

[data-theme="light"] .theme-switcher-panel {
    background: #ffffff;
    border-color: rgba(148, 163, 233, 0.4);
    box-shadow: 0 18px 44px rgba(148, 163, 233, 0.5);
}

.theme-switcher-panel.open {
    display: block;
}

.theme-option {
    width: 100%;
    text-align: left;
    padding: 6px 8px;
    margin-bottom: 4px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #e5e7eb;
    font-size: 13px;
    cursor: pointer;
}

[data-theme="light"] .theme-option {
    color: #111827;
}

.theme-option:hover {
    background: rgba(148, 163, 233, 0.2);
}

[data-theme="light"] .theme-option:hover {
    background: rgba(191, 219, 254, 0.7);
}

.theme-option.active {
    background: linear-gradient(90deg, #4f46e5, #22c55e);
    color: #f9fafb;
}

/* -------------------------------------------------------
ABOUT PAGE SPECIFIC
------------------------------------------------------- */
.about-page .about-card {
    text-align: left;
}

/* Keep h2 titles centered in the about card */
.about-page .about-card .card-title {
    justify-content: center;
    text-align: center;
}

/* Make paragraphs / normal text left-aligned */
.about-page .about-card p,
.about-page .about-card .card-text {
    text-align: left;
}

/* -------------------------------------------------------
ABOUT PAGE BALANCE
------------------------------------------------------- */

/* Center the main About card and make it wider */
.about-page .about-card {
    max-width: 100%;
    /* wider than default card */
    margin: 24px auto 0;
    /* auto left/right = centered */
    text-align: left;
    /* keep paragraph text normal */
}

/* Optional: keep inner content left even though .content is centered */
.about-page .about-card-inner {
    text-align: left;
}

/* -------------------------------------------------------
CONTACT PAGE LAYOUT
------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.contact-card {
    text-align: left;
    padding: 20px 18px 22px;
}

.contact-list {
    margin-top: 6px;
    padding-left: 18px;
    font-size: 13px;
}

.contact-list li {
    margin-bottom: 3px;
}

.contact-info-block {
    margin-top: 12px;
}

.contact-info-block .card-text {
    margin-bottom: 6px;
}

.contact-note {
    margin-top: 10px;
    font-size: 13px;
}

.contact-form-grid .field-label {
    align-items: center;
}

.contact-form-grid input[type="text"],
.contact-form-grid input[type="email"],
.contact-form-grid textarea {
    background: rgba(15, 23, 42, 0.25);
    border-radius: 12px;
}

[data-theme="light"] .contact-form-grid input[type="text"],
[data-theme="light"] .contact-form-grid input[type="email"],
[data-theme="light"] .contact-form-grid textarea {
    background: rgba(255, 255, 255, 0.96);
}

.contact-status {
    margin-top: 8px;
    font-size: 13px;
}

/* Contact page responsive */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* On small screens, override the global centering for about card text */
@media (max-width: 768px) {

    .about-page .about-card p,
    .about-page .about-card .card-text {
        text-align: left;
    }
}