:root {
    --primary-color: #5b8c8a; /* muted teal */
    --secondary-color: #cbb58a; /* warm beige */
    --background-color: #0b1220; /* deep slate */
    --background-color2: #68798abd; /* soft grey */
    --text-color: #e6eef6; /* soft off-white */
    --muted-color: #9aa4b2;
    --card-bg: rgba(11, 18, 32, 0.7);
    --glass-bg: rgba(230, 238, 246, 0.03);
    --accent-glow: rgba(91, 140, 138, 0.08);
    --button-bg: linear-gradient(135deg, rgba(91,140,138,0.12), rgba(203,181,138,0.06));
    --surface-border: rgba(255, 255, 255, 0.08);
    --surface-shadow: rgba(0, 0, 0, 0.3);
    --radius-lg: 24px;
}

html[data-theme="dark"] {
    --primary-color: #5b8c8a; /* muted teal */
    --secondary-color: #cbb58a; /* warm beige */
    --background-color: #0b1220; /* deep slate */
    --background-color2: #68798abd; /* soft grey */
    --text-color: #e6eef6; /* soft off-white */
    --muted-color: #9aa4b2;
    --card-bg: rgba(11, 18, 32, 0.7);
    --glass-bg: rgba(230, 238, 246, 0.03);
    --accent-glow: rgba(91, 140, 138, 0.08);
    --button-bg: linear-gradient(135deg, rgba(91,140,138,0.12), rgba(203,181,138,0.06));
    --surface-border: rgba(255, 255, 255, 0.08);
    --surface-shadow: rgba(0, 0, 0, 0.3);
    --radius-lg: 24px;
}

html[data-theme="light"] {
    --primary-color: #2f6f6d;
    --secondary-color: #8d6e4b;
    --background-color: #f7f3ea;
    --background-color2: #d2d8df;
    --text-color: #1f2937;
    --muted-color: #52616b;
    --card-bg: rgba(255, 255, 255, 0.76);
    --glass-bg: rgba(31, 41, 55, 0.05);
    --accent-glow: rgba(47, 111, 109, 0.09);
    --button-bg: linear-gradient(135deg, rgba(47, 111, 109, 0.12), rgba(141, 110, 75, 0.08));
    --surface-border: rgba(31, 41, 55, 0.12);
    --surface-shadow: rgba(31, 41, 55, 0.12);
}

/* 1. Base Setup & Fluid Layout */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 1rem;
    min-height: 100dvh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* Modern UX Mesh Gradient: Smooth, non-distracting colors */
    background-color: var(--background-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(88, 134, 130, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(203, 181, 138, 0.08) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(130, 180, 170, 0.06) 0px, transparent 50%);

    transition: background-color 0.3s ease,
            color 0.3s ease,
            border-color 0.3s ease,
            box-shadow 0.3s ease,
            opacity 0.3s ease;
}

.theme-toggle {
    position: relative;
    padding: 1rem;
    right: 1rem;
    z-index: 1000;
    width: 3.25rem;
    height: 3.25rem;
    border: 1px solid var(--surface-border);
    border-radius: 100px;
    background: var(--card-bg);
    box-shadow: 0 12px 30px var(--surface-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                opacity 0.3s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px var(--surface-shadow);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.theme-icon {
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

html[data-theme="dark"] .theme-icon-sun {
    opacity: 1;
}

html[data-theme="light"] .theme-icon-moon {
    opacity: 1;
}

.site-header {
    width: min(100%, 1400px);
    margin: 0 auto 1rem;
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--surface-border);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px var(--surface-shadow);
    position: sticky;
    top: 1rem;
    z-index: 900;
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                opacity 0.3s ease;
}

.site-header nav {
    margin-left: auto;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: 0.025rem;
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                opacity 0.3s ease;
}

.site-brand img {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                opacity 0.3s ease;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 100px;
    color: var(--text-color);
    background: var(--glass-bg);
    border: 1px solid transparent;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nav-link:hover {
    transform: translateY(-1px);
    border-color: var(--surface-border);
    background: rgba(255, 255, 255, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* 2. Glassmorphism Content Container */
.ux-card {
    width: min(100%, 1400px);
    min-height: calc(100dvh - 2rem);
    padding: clamp(2rem, 4vw, 4rem);
    max-width: none;
    border-radius: var(--radius-lg);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    
    /* Semitransparent background allows colors to peak through */
    background: var(--card-bg);
    
    /* Glass blur filters out complex background noise */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* Subtle border provides definition and depth */
    border: 1px solid var(--surface-border);
    box-shadow: 0 20px 25px -5px var(--surface-shadow);
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                opacity 0.3s ease;
}

.ux-card::before {
    /*Gentle color glow*/
    content: "";
    position: absolute;
    width: 60%;
    height:60%;
    top:-10%;
    left: -20%;
    background: radial-gradient(circle at 20% 20%, var(--accent-glow), transparent 100%);
    transform: rotate(-10deg);
    pointer-events: none;
    opacity: 0.9;
}

.ux-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 35px -10px var(--surface-shadow);
}

@keyframes floatCard {
    0% {transform: translateY(0px);}
    50% {transform: translateY(-4px);}
    100% {transform: translateY(0px);}
}

.ux-card {animation: floatCard 4s ease-in-out infinite;}

.ux-card h1 {
    margin: 0;
    font-size: clamp(2.25rem, 4vw, 4rem);
    letter-spacing: -0.025em;
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                opacity 0.3s ease;
}

.ux-card p {
    margin: 0;
    color: var(--muted-color);
    max-width: 60ch;
    line-height: 1.6;
    font-size: 1.05rem;
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                opacity 0.3s ease;
}

.ux-card img {
    width: min(100%, 260px);
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.logo { margin-top: 0.25rem; }

.logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 35px -10px var(--surface-shadow);
}

.logo1 { width: auto; height: 150px; margin-bottom: 1rem; }

header {
    padding: 1rem;
    margin-bottom: auto;
}

footer {
    padding: 1rem;
    margin-top: auto;
}

.description {
    border: 4px solid;
    border-image: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-image-slice: 1;
}

.box {
    width: 100%;
    max-width: 600px;
    padding: 1rem;
    margin: 1rem auto;
    background-color: var(--glass-bg);
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                opacity 0.3s ease;
}

.ux-card a {
    display: inline-block;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    background: var(--button-bg);
    color: var(--text-color);
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(26, 39, 32, 0.35);
    transition: transform 0.08s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.ux-card a:hover { transform: translateY(-4px) scale(1.1); opacity: 0.98; }

/* Grid improvements */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
    width: 100%;
    align-self: stretch;
}
.grid a { 
    display: block;
    padding: 0.9rem 1rem;
    background-color: var(--glass-bg);
    border-radius: 10px;
    color: var(--text-color);
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                opacity 0.3s ease;
}

.grid a:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.45); }

.return {
    width: 100%;
    max-width: 200px;
    padding: 1rem;
    margin: 7rem auto;
    background-color: var(--glass-bg);
    border-radius: 25px;
    text-align: center;
    text-decoration: none;
    border: 1px solid var(--surface-border);
}

/* Responsive tweaks */

@media (max-width: 900px) {
    .ux-card { width: min(100%, 760px); }
}
@media (max-width: 420px) {
    .ux-card { padding: 1.25rem; border-radius: 16px; }
    .logo1 { height: 90px; }
}