/* 
 * 💎 UNIFIED THEME: "DIGITAL PRISM"
 * Concept: A single continuous glass surface over a fluid aurora.
 * strict consistency. No random dark blocks.
 */

:root {
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Palette */
    --text-main: #334155;
    /* Soft Slate-700 for easier reading */
    --text-muted: #475569;
    /* Slate-600 */
    --text-heading: #1e293b;
    /* Slate-800 - Strong but not harsh black */

    /* Glass System - STRICTLY ENFORCED */
    --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 240, 245, 0.4) 100%);
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
    --glass-blur: blur(24px);
}

/* UTILITY: Glass Background (Replaces bg-white) */
.bg-glass {
    background: var(--glass-gradient) !important;
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Responsive Utility Fix for Glass */
@media (min-width: 992px) {
    .bg-lg-transparent.bg-glass {
        background: transparent !important;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
    }
}

/* GLOBAL RESET */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    /* THEME GRADIENT: Unique "Ethereal Sunrise" */
    background: linear-gradient(180deg, #fff1eb 0%, #ace0f9 100%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 700;
    /* Enforce global bold */
    line-height: 1.7;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
.font-heading {
    font-family: var(--font-heading);
    /* UNIQUE GRADIENT: Purple -> Blue */
    background: linear-gradient(90deg, #9257C8 0%, #42AED8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* Fallback */
    font-weight: 700;
    letter-spacing: -0.02em;
    display: inline-block;
}

/* Explicit Heading Hierarchy (Standard Web Scale) */
h1,
.h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2,
.h2 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1.25rem;
}

h3,
.h3 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h4,
.h4 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

h5,
.h5 {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    color: var(--text-heading) !important;
    -webkit-text-fill-color: initial;
    background: none;
}

h6,
.h6 {
    font-size: 1rem;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted) !important;
    -webkit-text-fill-color: initial;
    background: none;
}

/* TRANSPARENCY ENFORCEMENT */
section,
header,
footer {
    background: transparent !important;
    width: 100%;
    position: relative;
    padding-left: 0;
    padding-right: 0;
}

.py-section {
    padding: 6rem 0;
}

/* 💎 THE GLASS CARD (Used Everywhere) */
.card,
.marquee-wrapper,
.navbar {
    background: var(--glass-gradient) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.card {
    border-radius: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px 0 rgba(65, 88, 208, 0.15);
    border-color: #C850C0;
    /* Magenta Highlight */
}

/* NAV SPECIFICS */
.navbar {
    border-radius: 0 0 1.5rem 1.5rem;
    border-top: none;
    padding: 1rem 0;
}

.nav-link {
    font-weight: 700 !important;
    color: var(--text-muted) !important;
}

.nav-link.active {
    color: var(--text-heading) !important;
}

/* FOOTER - GRADIENT GLASS */
footer {
    border-top: var(--glass-border);
    background: var(--glass-gradient) !important;
    backdrop-filter: var(--glass-blur);
    padding-top: 5rem;
    padding-bottom: 2rem;
    margin-top: 4rem;
}

/* Force Gradient on Footer Headings */
footer h3,
footer h4,
footer h5,
footer .h6 {
    background: linear-gradient(90deg, #9257C8 0%, #42AED8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
    font-family: var(--font-heading);
}

footer p,
footer li,
footer a {
    color: var(--text-muted) !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

footer a:hover {
    background: linear-gradient(90deg, #9257C8 0%, #42AED8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
}

/* BUTTONS - PILL SHAPE */
.btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 0.8rem 2rem;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(90deg, #9257C8 0%, #42AED8 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(146, 87, 200, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(90deg, #9257C8 0%, #42AED8 80%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 174, 216, 0.4);
}

.btn-outline-dark {
    border: 2px solid var(--text-heading);
    color: var(--text-heading);
    background: transparent;
}

.btn-outline-dark:hover {
    background: var(--text-heading);
    color: white;
}

/* MARQUEE SPECIFICS */
.marquee-wrapper {
    width: 100%;
    padding: 3rem 0;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: inline-flex;
    gap: 2rem;
    animation: scroll 25s linear infinite;
    min-width: max-content;
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

.skill-pill {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
    font-size: 1.1rem;
    color: #4338ca;
    /* Gradient Border Trick */
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(45deg, #4158D0, #C850C0, #FFCC70) border-box;
    border: 2px solid transparent;
    box-shadow: 0 8px 20px rgba(65, 88, 208, 0.15);
}

.skill-pill:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 10px 25px rgba(200, 80, 192, 0.3);
    cursor: default;
}

/* ANIMATIONS */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes prism-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.navbar-brand,
.text-gradient,
.text-gradient-secondary {
    background: linear-gradient(300deg, #9257C8, #FFCC70, #42AED8, #9257C8);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-brand {
    animation: prism-flow 5s ease infinite;
}

/* Responsive Adjustments & Reveal Logic */
@media (max-width: 768px) {

    h1,
    .h1 {
        font-size: 2.5rem;
    }

    h2,
    .h2 {
        font-size: 2rem;
    }

    h3,
    .h3 {
        font-size: 1.75rem;
    }

    .py-section {
        padding: 4rem 0;
    }
}

@media (min-width: 768px) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 💎 THEME OVERRIDES (Fix for Bootstrap Defaults) */
.text-primary {
    color: #9257C8 !important;
    /* Theme Purple */
}

.bg-primary {
    background-color: #9257C8 !important;
}

.btn-outline-primary {
    color: #9257C8;
    border: 2px solid #9257C8;
    background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:active {
    background: linear-gradient(90deg, #9257C8 0%, #42AED8 100%);
    border-color: transparent;
    color: white;
}

/* Frosty Output Box */
.bg-frost {
    background: rgba(255, 255, 255, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
}