* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, sans-serif;
}

html, body {
    min-height: 100%;
}

body {
    background: linear-gradient(180deg, #f6f2ff 0%, #efe8ff 100%);
    color: #1b1b1b;
    overflow: hidden;
}

/* =========================
   LOADER
========================= */
#loader {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(255,255,255,0.06), transparent 35%),
        linear-gradient(135deg, #0b1220, #111827 45%, #1f2937 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-box {
    width: min(90%, 700px);
    text-align: center;
    padding: 30px 20px;
}

.project-tag {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.logo-shell {
    position: relative;
    display: inline-block;
    font-size: clamp(48px, 10vw, 110px);
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1;
    color: rgba(255,255,255,0.12);
    -webkit-text-stroke: 1px rgba(255,255,255,0.20);
    text-transform: uppercase;
}

.logo-fill {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0%;
    overflow: hidden;
    color: #ffffff;
    text-shadow:
        0 0 12px rgba(255,255,255,0.18),
        0 0 24px rgba(96,165,250,0.20);
    transition: height 0.18s linear;
    white-space: nowrap;
}

.logo-fill span {
    display: block;
    background: linear-gradient(to top, #60a5fa 0%, #93c5fd 45%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loading-row {
    margin: 30px auto 0;
    width: min(100%, 380px);
}

.progress-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255,255,255,0.78);
    font-size: 14px;
    margin-bottom: 10px;
}

.progress-track {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
    backdrop-filter: blur(4px);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.25);
}

.progress-bar {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #60a5fa, #93c5fd);
    box-shadow:
        0 0 12px rgba(96,165,250,0.45),
        0 0 30px rgba(37,99,235,0.25);
    transition: width 0.18s linear;
}

.loading-note {
    margin-top: 14px;
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    letter-spacing: 0.4px;
}

/* =========================
   MAIN PAGE
========================= */
#main-content {
    display: none;
    min-height: 100vh;
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 24px 56px;
    animation: pageFade 0.6s ease;
}

@keyframes pageFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-section {
    background: linear-gradient(180deg, #fbf9ff 0%, #f3eeff 100%);
    border: 1px solid #ddd1ff;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 16px 40px rgba(91, 64, 155, 0.08);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.section-heading h2 {
    font-size: 28px;
    font-weight: 800;
    color: #2f1f57;
    white-space: nowrap;
}

.section-line {
    height: 2px;
    flex: 1;
    background: linear-gradient(90deg, #d7c6ff 0%, rgba(215,198,255,0.35) 100%);
    border-radius: 999px;
}

.cards-grid {
    display: grid;
    gap: 22px;
}

.cards-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-grid.single-project-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
    margin: 0 auto;
}

.home-card {
    min-height: 280px;
    background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%);
    border: 1px solid #d9ccff;
    border-radius: 28px;
    text-decoration: none;
    color: inherit;
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 12px 28px rgba(111, 76, 170, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(111, 76, 170, 0.14);
    border-color: #c8b3ff;
}

.project-card {
    min-height: 320px;
    padding: 38px 32px;
    border-radius: 30px;
}

.card-icon {
    margin-bottom: 20px;
}

.icon-badge {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: linear-gradient(180deg, #f3ecff 0%, #e8ddff 100%);
    border: 1px solid #d4c1ff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.85),
        0 10px 22px rgba(111, 76, 170, 0.10);
}

.icon-svg {
    width: 46px;
    height: 46px;
    display: block;
}

.home-card h3 {
    font-size: 30px;
    font-weight: 800;
    color: #2b1950;
    line-height: 1.2;
}

.card-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 560px;
}

.card-text p {
    font-size: 16px;
    line-height: 1.65;
    color: #5b4a84;
    font-weight: 500;
}

.project-card .icon-badge {
    width: 106px;
    height: 106px;
}

.project-card .icon-svg {
    width: 52px;
    height: 52px;
}

.project-card h3 {
    font-size: 34px;
    margin-bottom: 2px;
}