/* =========================================
   DigiCraft — Global Stylesheet
   Author: DigiCraft Dev Team
   Version: 1.0.0
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700;800&family=Instrument+Sans:ital,wght@0,400;0,600;1,400&display=swap');
/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --clr-bg:        #080C12;
    --clr-bg2:       #0D1320;
    --clr-bg3:       #111926;
    --clr-surface:   #141E2E;
    --clr-border:    rgba(255,255,255,0.07);
    --clr-accent:    #00E5FF;
    --clr-accent2:   #7B61FF;
    --clr-accent3:   #00FFB2;
    --clr-text:      #E8EDF5;
    --clr-muted:     #8899B0;
    --clr-heading:   #FFFFFF;
    --radius-sm:     6px;
    --radius-md:     12px;
    --radius-lg:     20px;
    --radius-xl:     32px;
     --font-display:  'Outfit', sans-serif;
    --font-body:     'Instrument Sans', sans-serif;
    /* --font-display:  'Syne', sans-serif;
    --font-body:     'DM Sans', sans-serif; */
    --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-glow:   0 0 40px rgba(0,229,255,0.08);
    --shadow-card:   0 4px 32px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--clr-heading);
    line-height: 1.2;
    font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p  { color: var(--clr-text); font-size: 1rem; line-height: 1.8; }

.text-muted    { color: var(--clr-muted); }
.text-accent   { color: var(--clr-accent); }
.text-accent2  { color: var(--clr-accent2); }
.text-center   { text-align: center; }
.fw-500        { font-weight: 500; }

/* ── Layout ── */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.section   { padding-block: 100px; }
.section-sm { padding-block: 64px; }

/* ── Grid ── */
.grid-2  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.auto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }

/* ── Flex Utilities ── */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.gap-1       { gap: 8px; }
.gap-2       { gap: 16px; }
.gap-3       { gap: 24px; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all var(--transition);
    text-transform: uppercase;
    white-space: nowrap;
}
.btn-primary {
    background: var(--clr-accent);
    color: #080C12;
}
.btn-primary:hover {
    background: #33ecff;
    box-shadow: 0 0 24px rgba(0,229,255,0.35);
    transform: translateY(-2px);
}
.btn-outline {
    border: 1.5px solid rgba(0,229,255,0.4);
    color: var(--clr-accent);
    background: transparent;
}
.btn-outline:hover {
    background: rgba(0,229,255,0.08);
    border-color: var(--clr-accent);
    transform: translateY(-2px);
}
.btn-ghost {
    color: var(--clr-text);
    border: 1.5px solid var(--clr-border);
}
.btn-ghost:hover {
    background: var(--clr-surface);
    color: var(--clr-heading);
}
.btn svg, .btn i { width: 18px; height: 18px; font-size: 18px; }

/* ── Section Labels ── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-accent);
    background: rgba(0,229,255,0.07);
    border: 1px solid rgba(0,229,255,0.15);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}
.section-label::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--clr-accent);
    border-radius: 50%;
    display: inline-block;
}
.section-header { margin-bottom: 60px; }
.section-header p { max-width: 580px; color: var(--clr-muted); font-size: 1.05rem; margin-top: 16px; }
.section-header.text-center p { margin-inline: auto; }

/* ── Cards ── */
.card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(0,229,255,0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
}
.card:hover {
    border-color: rgba(0,229,255,0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card), 0 0 30px rgba(0,229,255,0.06);
}
.card:hover::before { opacity: 1; }

/* ── Icon Box ── */
.icon-box {
    width: 52px; height: 52px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,229,255,0.08);
    border: 1px solid rgba(0,229,255,0.15);
    font-size: 24px;
    color: var(--clr-accent);
    margin-bottom: 20px;
    flex-shrink: 0;
}
.icon-box.purple {
    background: rgba(123,97,255,0.1);
    border-color: rgba(123,97,255,0.2);
    color: var(--clr-accent2);
}
.icon-box.green {
    background: rgba(0,255,178,0.08);
    border-color: rgba(0,255,178,0.15);
    color: var(--clr-accent3);
}

/* ── Badges ── */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: var(--font-display);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.badge-cyan   { background: rgba(0,229,255,0.12); color: var(--clr-accent); }
.badge-purple { background: rgba(123,97,255,0.15); color: #A090FF; }
.badge-green  { background: rgba(0,255,178,0.1);  color: var(--clr-accent3); }
.badge-amber  { background: rgba(255,180,0,0.1);  color: #FFB400; }
.badge-red    { background: rgba(255,80,80,0.1);  color: #FF6B6B; }

/* ── Divider ── */
.divider {
    height: 1px;
    background: var(--clr-border);
    margin-block: 0;
}

/* ── Noise Texture ── */
.noise::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.4;
    z-index: 0;
}

/* ── Glow Orb ── */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
.orb-cyan   { background: rgba(0,229,255,0.12); }
.orb-purple { background: rgba(123,97,255,0.1); }

/* ── Page Hero (Internal) ── */
.page-hero {
    padding-block: 120px 80px;
    position: relative;
    overflow: hidden;
    background: var(--clr-bg2);
    border-bottom: 1px solid var(--clr-border);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 16px; }
.page-hero p  { color: var(--clr-muted); max-width: 560px; font-size: 1.05rem; }
.page-hero .breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem;
    color: var(--clr-muted);
    margin-bottom: 24px;
}
.page-hero .breadcrumb a { color: var(--clr-accent); }
.page-hero .breadcrumb span { color: var(--clr-muted); }

/* ── Forms ── */
.form-group   { margin-bottom: 24px; }
.form-label   { display: block; font-size: 0.88rem; font-weight: 500; color: var(--clr-muted); margin-bottom: 8px; font-family: var(--font-display); letter-spacing: 0.04em; }
.form-control {
    width: 100%;
    background: var(--clr-bg3);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--clr-heading);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: rgba(0,229,255,0.4);
    box-shadow: 0 0 0 4px rgba(0,229,255,0.06);
}
.form-control::placeholder { color: var(--clr-muted); opacity: 0.7; }
textarea.form-control { resize: vertical; min-height: 140px; }
select.form-control { appearance: none; cursor: pointer; }

/* ── Stats ── */
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--clr-heading);
    line-height: 1;
}
.stat-label {
    font-size: 0.88rem;
    color: var(--clr-muted);
    margin-top: 6px;
    font-weight: 500;
}

/* ── Progress Bar ── */
.progress-wrap { margin-bottom: 20px; }
.progress-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.progress-info span { font-size: 0.88rem; font-weight: 500; font-family: var(--font-display); }
.progress-info .pct { color: var(--clr-accent); }
.progress-bar-track {
    height: 5px;
    background: var(--clr-bg3);
    border-radius: 100px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent2));
    border-radius: 100px;
    transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* ── Timeline ── */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
    content: '';
    position: absolute; left: 0; top: 8px; bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--clr-accent), transparent);
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item::before {
    content: '';
    position: absolute; left: -37px; top: 6px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--clr-accent);
    box-shadow: 0 0 0 4px rgba(0,229,255,0.15);
}
.timeline-year {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--clr-accent);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.timeline-title { font-size: 1.05rem; font-weight: 600; color: var(--clr-heading); margin-bottom: 8px; }
.timeline-desc  { font-size: 0.92rem; color: var(--clr-muted); }

/* ── Tag Cloud ── */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
    padding: 7px 16px;
    border-radius: 100px;
    background: var(--clr-bg3);
    border: 1px solid var(--clr-border);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--clr-muted);
    transition: all var(--transition);
}
.tag:hover {
    border-color: rgba(0,229,255,0.3);
    color: var(--clr-accent);
    background: rgba(0,229,255,0.05);
}

/* ── Pagination ── */
.pagination { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.page-item {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; font-weight: 500; font-family: var(--font-display);
    cursor: pointer;
    transition: all var(--transition);
    color: var(--clr-text);
}
.page-item:hover, .page-item.active {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    color: #080C12;
}

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,229,255,0.3); }
    50%       { box-shadow: 0 0 0 12px rgba(0,229,255,0); }
}
.animate-fade-up { animation: fadeUp 0.7s ease forwards; }
.animate-float   { animation: float 6s ease-in-out infinite; }

/* ── Scroll Reveal ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .section    { padding-block: 64px; }
    .section-sm { padding-block: 40px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .page-hero  { padding-block: 100px 60px; }
}
@media (max-width: 480px) {
    .container { padding-inline: 16px; }
    .btn { padding: 12px 24px; font-size: 0.82rem; }
}
