/* ============================================================
   LIQUID GLASS THEME — Ashutosh Yadav Portfolio
   ============================================================ */

:root {
    /* Core palette — light mode */
    --bg-base:        #e8eaf6;
    --bg-deep:        #dde1f5;
    --bg-card:        rgba(255,255,255,0.15); /* Lowered opacity for deep liquid effect */
    --bg-card-hover:  rgba(255,255,255,0.25);
    --border-glass:   rgba(255,255,255,0.4);
    --border-subtle:  rgba(180,180,220,0.2);
    --text-primary:   #1a1a3e;
    --text-secondary: #4a4a7a;
    --text-muted:     #7a7aaa;

    /* Liquid glass shadows & refractive edges */
    --glass-shadow:   0 8px 32px rgba(80,80,180,0.12), 0 2px 8px rgba(80,80,180,0.08);
    --glass-shadow-hover: 0 20px 60px rgba(80,80,180,0.22), 0 4px 16px rgba(80,80,180,0.14);
    --glass-shadow-heavy: 0 30px 80px rgba(80,80,180,0.28);
    --refractive-inset: inset 1px 1px 2px rgba(255,255,255,0.9), inset -1px -1px 2px rgba(80,80,180,0.1);

    /* Orb colours */
    --orb-1: #a78bfa;
    --orb-2: #60a5fa;
    --orb-3: #f472b6;
    --orb-4: #34d399;

    /* Skin (overridden by color-*.css) */
    --skin-color: #fd0026;

    /* Gradients */
    --grad-skin:    linear-gradient(135deg, var(--skin-color), #a78bfa);
    --grad-aurora:  linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #34d399 100%);
    --grad-iridescent: linear-gradient(135deg, #f472b6, #a78bfa, #60a5fa, #34d399);

    /* Legacy aliases kept for compatibility */
    --bg-black-900: var(--bg-base);
    --bg-black-100: rgba(255,255,255,0.25);
    --bg-black-50:  rgba(180,180,220,0.15);
    --text-black-900: var(--text-primary);
    --text-black-700: var(--text-secondary);
    --gradient-primary: var(--grad-skin);
    --gradient-secondary: linear-gradient(135deg, #a78bfa, #60a5fa);
    --shadow-light:  var(--glass-shadow);
    --shadow-medium: var(--glass-shadow-hover);
    --shadow-heavy:  var(--glass-shadow-heavy);
}

/* ── Dark mode ── */
body.dark {
    --bg-base:        #0d0d1f;
    --bg-deep:        #111128;
    --bg-card:        rgba(255,255,255,0.03); /* Extremely low opacity for liquid dark glass */
    --bg-card-hover:  rgba(255,255,255,0.08);
    --border-glass:   rgba(255,255,255,0.08);
    --border-subtle:  rgba(255,255,255,0.04);
    --text-primary:   #f0f0ff;
    --text-secondary: #c0c0e0;
    --text-muted:     #8080b0;
    --glass-shadow:   0 8px 32px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4);
    --glass-shadow-hover: 0 20px 60px rgba(0,0,0,0.8), 0 4px 16px rgba(0,0,0,0.5);
    --glass-shadow-heavy: 0 30px 80px rgba(0,0,0,0.9);
    --refractive-inset: inset 1px 1px 2px rgba(255,255,255,0.15), inset -1px -1px 2px rgba(0,0,0,0.6);
    --bg-black-900: var(--bg-base);
    --bg-black-100: var(--bg-card);
    --bg-black-50:  var(--border-subtle);
    --text-black-900: var(--text-primary);
    --text-black-700: var(--text-secondary);
    --shadow-light:  var(--glass-shadow);
    --shadow-medium: var(--glass-shadow-hover);
    --shadow-heavy:  var(--glass-shadow-heavy);
}
/* ── Base ── */
body {
    line-height: 1.6;
    font-size: 16px;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    background-image:
        radial-gradient(ellipse at 20% 20%, rgba(167,139,250,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(96,165,250,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 10%, rgba(244,114,182,0.1) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-primary);
    overflow-x: hidden;
}
body.dark {
    background-image:
        radial-gradient(ellipse at 20% 20%, rgba(167,139,250,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(96,165,250,0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 10%, rgba(244,114,182,0.06) 0%, transparent 40%);
}
* { margin:0; padding:0; outline:none; text-decoration:none; box-sizing:border-box; }
::before,::after { box-sizing:border-box; }
ul { list-style:none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb {
    background: var(--grad-skin);
    border-radius: 10px;
}

/* ── Glass mixin helper ── */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-glass);
    box-shadow: var(--glass-shadow);
}

/* ── Animated background orbs (global) ── */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    animation: orbDrift 18s ease-in-out infinite alternate;
}
body::before {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(167,139,250,0.25) 0%, transparent 70%);
    top: -200px; left: -200px;
}
body::after {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(96,165,250,0.2) 0%, transparent 70%);
    bottom: -200px; right: -200px;
    animation-delay: -9s;
}
@keyframes orbDrift {
    0%   { transform: translate(0,0) scale(1); }
    50%  { transform: translate(80px,60px) scale(1.1); }
    100% { transform: translate(-40px,100px) scale(0.95); }
}

/* ── Sections ── */
.section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: block;
    padding: 0 30px;
    width: 100%;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.section.visible { opacity: 1; transform: translateY(0); }
.hidden { display: none; }

.padd-15 { padding-left:15px; padding-right:15px; }
.container { max-width:1100px; width:100%; margin:auto; }
.section .container { padding-top:80px; padding-bottom:80px; }

/* ── Section title ── */
.section-title {
    flex: 0 0 100%; max-width:100%;
    margin-bottom: 70px;
    text-align: center;
}
.section-title h2 {
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}
.section-title h2::after {
    content: '';
    display: block;
    margin: 14px auto 0;
    width: 60px; height: 4px;
    border-radius: 10px;
    background: var(--grad-skin);
    box-shadow: 0 0 20px rgba(167,139,250,0.5);
}

/* ── Row ── */
.row {
    display: flex; flex-wrap: wrap;
    margin-left: -15px; margin-right: -15px;
    position: relative;
}

/* ── Buttons ── */
.btn {
    font-size: 15px; font-weight: 700;
    padding: 14px 42px;
    color: white;
    border-radius: 50px;
    display: inline-block;
    white-space: nowrap;
    border: none;
    background: var(--grad-skin);
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
    position: relative; overflow: hidden;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 30px rgba(167,139,250,0.35);
    cursor: pointer;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg);
    animation: liquidShineSweep 5s ease-in-out infinite;
    pointer-events: none;
}
.btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 50px rgba(167,139,250,0.5);
}
.shadow-dark { box-shadow: var(--glass-shadow); }
/* ============================================================
   NAVBAR — Liquid Glass
   ============================================================ */
.aside {
    width: 100%;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    position: fixed;
    left: 0; top: 0;
    height: 72px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    z-index: 200;
    box-shadow: 0 4px 40px rgba(80,80,180,0.1), var(--refractive-inset);
    transition: all 0.3s ease;
}
body.dark .aside {
    background: rgba(13,13,31,0.3);
    border: none;
    box-shadow: 0 4px 40px rgba(0,0,0,0.5), var(--refractive-inset);
}

/* Logo */
.aside .logo { flex-shrink: 0; }
.aside .logo a {
    font-weight: 900;
    font-size: 26px;
    letter-spacing: 1px;
    color: var(--text-primary);
    position: relative;
    padding: 6px 14px;
    display: inline-block;
}
.aside .logo a span {
    font-family: cursive;
    font-size: 34px;
    background: var(--grad-iridescent);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: iridescent 4s ease infinite;
}
@keyframes iridescent {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.aside .logo a::before {
    content: '';
    position: absolute;
    width: 10px; height: 10px;
    border-bottom: 2.5px solid var(--orb-1);
    border-left:   2.5px solid var(--orb-1);
    bottom: 2px; left: 2px;
}
.aside .logo a::after {
    content: '';
    position: absolute;
    width: 10px; height: 10px;
    border-top:   2.5px solid var(--orb-2);
    border-right: 2.5px solid var(--orb-2);
    top: 2px; right: 2px;
}

/* Hamburger */
.aside .nav-toggler {
    height: 42px; width: 46px;
    border: 1px solid var(--border-glass);
    cursor: pointer;
    border-radius: 12px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.aside .nav-toggler span,
.aside .nav-toggler span::before,
.aside .nav-toggler span::after {
    height: 2px; width: 18px;
    background: var(--skin-color);
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}
.aside .nav-toggler span::before,
.aside .nav-toggler span::after {
    content: '';
    position: absolute;
    left: 0;
}
.aside .nav-toggler span::before { top: -6px; }
.aside .nav-toggler span::after  { top:  6px; }
.aside .nav-toggler.open span    { background: transparent; }
.aside .nav-toggler.open span::before { transform: rotate(45deg);  top: 0; }
.aside .nav-toggler.open span::after  { transform: rotate(-45deg); top: 0; }

/* Nav links */
.aside nav { display: flex; align-items: center; }
.aside .nav { display: flex; flex-direction: row; gap: 4px; margin-top: 0; }
.aside .nav li { display: inline-block; margin-bottom: 0; }
.aside .nav li a {
    font-size: 14px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 7px;
    color: var(--text-secondary);
    padding: 9px 18px;
    border-radius: 50px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    position: relative;
    border: 1px solid transparent;
}
.aside .nav li a:hover,
.aside .nav li a.active {
    color: var(--text-primary);
    background: var(--bg-card);
    border-color: var(--border-glass);
    box-shadow: 0 4px 20px rgba(167,139,250,0.2), inset 0 1px 0 rgba(255,255,255,0.5);
}
.aside .nav li a.active {
    background: linear-gradient(135deg, rgba(167,139,250,0.2), rgba(96,165,250,0.15));
}
.aside .nav li a i { font-size: 12px; opacity: 0.8; }
/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content { padding-top: 72px; }

/* ============================================================
   HOME SECTION
   ============================================================ */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: transparent;
}

/* Extra floating orbs in hero */
.home .orb-1, .home .orb-2, .home .orb-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: orbFloat 12s ease-in-out infinite alternate;
}
.home .orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(167,139,250,0.3) 0%, transparent 70%);
    top: -150px; right: -100px;
}
.home .orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(96,165,250,0.25) 0%, transparent 70%);
    bottom: -100px; left: -100px;
    animation-delay: -6s;
}
.home .orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(244,114,182,0.2) 0%, transparent 70%);
    top: 40%; left: 40%;
    animation-delay: -3s;
}
@keyframes orbFloat {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(60px,80px) scale(1.15); }
}

/* Social icons */
.social-container {
    display: flex;
    gap: 14px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}
.social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    border-radius: 16px;
    font-size: 20px;
    color: var(--text-primary);
    position: relative;
    transition: all 0.4s cubic-bezier(.68,-0.55,.265,1.55);
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.5);
    text-decoration: none;
}
body.dark .social { color: var(--text-primary); }
.social span {
    position: absolute;
    top: -44px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 10px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--glass-shadow);
}
.social span::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--border-glass);
}
.social:hover {
    transform: translateY(-10px) scale(1.12);
    background: var(--grad-skin);
    color: white;
    border-color: transparent;
    box-shadow: 0 16px 40px rgba(167,139,250,0.45);
}
.social:hover span {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Hero text */
.home .home-info {
    flex: 0 0 60%; max-width: 60%;
    position: relative; z-index: 2;
}
.home .home-info .my-world { margin-bottom: 20px; }
.home .home-info .my-world span {
    font-size: 52px; font-weight: 900;
    color: var(--text-primary);
    display: inline-block;
    animation: waveBounce 2s ease-in-out infinite;
    animation-delay: calc(0.06s * var(--i));
}
@keyframes waveBounce {
    0%,100% { transform: translateY(0); }
    20%      { transform: translateY(-22px); }
}
h3.hello {
    font-size: 28px; margin: 18px 0;
    font-weight: 600; color: var(--text-secondary);
}
h3.hello span {
    font-family: cursive; font-size: 30px; font-weight: 800;
    background: var(--grad-iridescent);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: iridescent 4s ease infinite;
}
h3.my-profession {
    font-size: 26px; margin: 18px 0;
    font-weight: 600; color: var(--text-secondary);
}
.typing {
    background: var(--grad-skin);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}
.home-info p {
    margin-bottom: 44px;
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.85;
    max-width: 520px;
}

/* Hero image */
.home .home-img {
    flex: 0 0 40%; max-width: 40%;
    text-align: center;
    position: relative; z-index: 2;
}
.home .home-img img {
    width: 340px; height: 340px;
    border-radius: 50%;
    object-fit: cover;
    position: relative; z-index: 2;
    animation: floatImg 7s ease-in-out infinite;
    border: 6px solid rgba(255,255,255,0.6);
    box-shadow:
        0 0 0 12px rgba(167,139,250,0.12),
        0 0 0 24px rgba(96,165,250,0.08),
        0 30px 80px rgba(80,80,180,0.3);
}
@keyframes floatImg {
    0%,100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-18px) rotate(1deg); }
}
.home .home-img::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 400px; height: 400px;
    border-radius: 50%;
    background: var(--grad-iridescent);
    background-size: 300% 300%;
    animation: iridescent 5s ease infinite, pulseRing 4s ease-in-out infinite;
    opacity: 0.18;
    filter: blur(30px);
    z-index: 1;
}
@keyframes pulseRing {
    0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 0.18; }
    50%      { transform: translate(-50%,-50%) scale(1.12); opacity: 0.28; }
}
/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about { background: transparent; }

.about .about-content { flex: 0 0 100%; max-width: 100%; }
.about .about-content .about-text { flex: 0 0 100%; max-width: 100%; margin-bottom: 30px; }
.about .about-content .about-text h3 {
    font-size: 26px; margin-bottom: 20px; font-weight: 700;
    color: var(--text-primary);
}
.about .about-content .about-text h3 span {
    background: var(--grad-iridescent);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: iridescent 4s ease infinite;
}
.about .about-content .about-text p {
    font-size: 16px; line-height: 1.9;
    color: var(--text-secondary); margin-bottom: 12px;
}

/* Personal info */
.about .about-content .personal-info {
    flex: 0 0 100%; max-width: 800px; margin: 40px auto 0;
}

/* Glass box wrapping all info items */
.about .about-content .personal-info .info-grid {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 8px 8px;
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.5);
    display: flex;
    flex-wrap: wrap;
}

.about .about-content .personal-info .info-item {
    flex: 0 0 50%; max-width: 50%;
    padding: 0;
}

.about .about-content .personal-info .info-item p {
    font-weight: 600;
    padding: 13px 18px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    transition: background 0.25s ease;
}
.about .about-content .personal-info .info-item p:hover {
    background: rgba(167,139,250,0.07);
    border-radius: 12px;
}

/* Right-column items get a left divider */
.about .about-content .personal-info .info-item:nth-child(even) p {
    border-left: 1px solid var(--border-subtle);
}

/* Remove bottom border from last two items */
.about .about-content .personal-info .info-item:nth-last-child(-n+2) p {
    border-bottom: none;
}

/* Icon badge per row */
.about .about-content .personal-info .info-item p .info-icon {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(167,139,250,0.2), rgba(96,165,250,0.15));
    border: 1px solid rgba(167,139,250,0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
}
.about .about-content .personal-info .info-item p .info-icon i {
    background: var(--grad-iridescent);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: iridescent 4s ease infinite;
}

.about .about-content .personal-info .info-item p .info-label {
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    display: block;
    line-height: 1.2;
}
.about .about-content .personal-info .info-item p .info-value {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 13px;
    display: block;
    line-height: 1.3;
    margin-top: 1px;
}

/* Stack label + value vertically inside the p */
.about .about-content .personal-info .info-item p {
    flex-direction: row;
    align-items: center;
}
.about .about-content .personal-info .info-item .info-text {
    display: flex;
    flex-direction: column;
}

.about .about-content .personal-info .buttons { margin-top: 24px; text-align: center; flex: 0 0 100%; }
.about .about-content .personal-info .buttons .btn { margin-top: 10px; }

/* Skills */
.skills {
    flex: 0 0 50%; max-width: 50%; margin-top: 40px;
}
.skills .skill-item p {
    font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-top: 0px; margin-bottom: 10px;
}

/* Scrollable glass box */
.skills .skills-scroll-box {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 28px 24px 20px;
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.5);
    max-height: 340px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    /* fade-out bottom hint removed */
}

/* Custom scrollbar inside the box */
.skills .skills-scroll-box::-webkit-scrollbar {
    width: 5px;
}
.skills .skills-scroll-box::-webkit-scrollbar-track {
    background: transparent;
}
.skills .skills-scroll-box::-webkit-scrollbar-thumb {
    background: var(--grad-skin);
    border-radius: 10px;
}

/* Scroll hint label */
.skills .scroll-hint {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    animation: hintBounce 2s ease-in-out infinite;
}
.skills .scroll-hint i {
    font-size: 10px;
}
@keyframes hintBounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50%       { transform: translateY(4px); opacity: 1; }
}

.skills .skill-item {
    flex: 0 0 100%; max-width: 100%; margin-bottom: 22px;
}
.skills .skill-item:last-child { margin-bottom: 8px; }

.skills .skill-item h2 {
    color: var(--text-primary); font-size: 18px; font-weight: 800; margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px;
}
.skills .skill-item h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

.skills .skill-item h5 {
    line-height: 34px; font-weight: 600; font-size: 14px;
    color: var(--text-primary); text-transform: capitalize;
    display: flex; justify-content: space-between; align-items: center;
}
.skills .skill-item .progress {
    height: 10px; border-radius: 40px; width: 100%;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.skills .skill-item .progress .progress-in {
    position: absolute; left: 0; top: 0; height: 100%;
    border-radius: 40px;
    background: var(--grad-iridescent);
    background-size: 300% 300%;
    animation: iridescent 4s ease infinite, progressLoad 1.5s ease forwards;
    box-shadow: 0 0 12px rgba(167,139,250,0.5);
}
@keyframes progressLoad { from { width: 0 !important; } }
.skills .skill-item .skill-percent {
    font-weight: 700; font-size: 12px;
    color: var(--text-muted);
    background: linear-gradient(135deg, rgba(167,139,250,0.15), rgba(96,165,250,0.1));
    border: 1px solid rgba(167,139,250,0.2);
    padding: 2px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* Timeline */
.about .about-content .education,
.about .about-content .experience { flex: 0 0 50%; max-width: 50%; margin-top: 40px; }
.about .about-content h3.title {
    font-size: 22px; margin-bottom: 25px; font-weight: 800;
    color: var(--text-primary);
    position: relative; padding-left: 16px;
}
.about .about-content h3.title::before {
    content: '';
    position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 100%;
    background: var(--grad-skin);
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(167,139,250,0.5);
}
.about .about-content .timeline-box { flex: 0 0 100%; max-width: 100%; }
.about .about-content .timeline {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.5);
}
.about .about-content .timeline .timeline-item {
    position: relative; padding-left: 28px; padding-bottom: 36px;
}
.about .about-content .timeline .timeline-item:last-child { padding-bottom: 0; }
.about .about-content .timeline .timeline-item::before {
    content: '';
    width: 2px; position: absolute;
    height: 100%; left: 7px; top: 0;
    background: linear-gradient(to bottom, var(--orb-1), var(--orb-2), transparent);
}
.about .about-content .timeline .circle-dot {
    position: absolute; left: 0; top: 4px;
    height: 16px; width: 16px; border-radius: 50%;
    background: var(--grad-skin);
    box-shadow: 0 0 0 4px rgba(167,139,250,0.2), 0 0 16px rgba(167,139,250,0.4);
}
.about .about-content .timeline .timeline-date {
    font-weight: 700; font-size: 12px; margin-bottom: 8px;
    color: var(--text-primary);
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, rgba(167,139,250,0.2), rgba(96,165,250,0.15));
    border: 1px solid rgba(167,139,250,0.3);
    padding: 4px 14px; border-radius: 20px;
    backdrop-filter: blur(10px);
}
.about .about-content .timeline .timeline-title {
    font-weight: 700; font-size: 16px; margin: 10px 0 8px;
    text-transform: capitalize; color: var(--text-primary);
}
.about .about-content .timeline .timeline-text {
    line-height: 1.7; font-size: 14px; color: var(--text-secondary);
}
/* ============================================================
   CERTIFICATIONS SECTION
   ============================================================ */
.certification { background: transparent; position: relative; overflow: hidden; }
.certification .container { padding-bottom: 30px; }
.certification .section-title { margin-bottom: 30px; }
.certification .certification-item { margin-bottom: 30px; flex: 0 0 25%; max-width: 25%; }
.certification .certification-item-inner {
    background: var(--bg-card);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: none;
    border-radius: 20px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.45s cubic-bezier(.4,0,.2,1);
    position: relative; overflow: hidden; height: 100%;
    box-shadow: var(--glass-shadow), var(--refractive-inset);
    cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
}
.certification .certification-item-inner:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--glass-shadow-hover);
}
.certification .certification-item-inner .icon {
    height: 50px; width: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(167,139,250,0.15), rgba(96,165,250,0.1));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
    transition: transform 0.3s ease; position: relative; z-index: 1;
}
.certification .certification-item-inner:hover .icon { transform: scale(1.1); }
.certification .certification-item-inner .icon .fa {
    font-size: 24px;
    background: var(--grad-skin); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.certification .certification-item-inner .cert-img {
    width: 100%; height: 100px; border-radius: 8px; margin-bottom: 16px;
    object-fit: cover; object-position: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.4s ease;
}
.certification .certification-item-inner:hover .cert-img { transform: scale(1.05); }
.certification .certification-item-inner h4 {
    font-size: 15px; color: var(--text-primary); font-weight: 700; line-height: 1.4; position: relative; z-index: 1;
}
.certification .certification-item-inner a { position: absolute; inset: 0; z-index: 10; }

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.service { background: transparent; position: relative; overflow: hidden; }
.service .container { padding-bottom: 30px; }
.service .section-title { margin-bottom: 30px; }
.service .service-item { margin-bottom: 30px; flex: 0 0 33.33%; max-width: 33.33%; }
.service .service-item .service-item-inner {
    background: var(--bg-card);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: none;
    border-radius: 28px;
    padding: 44px 28px;
    text-align: center;
    transition: all 0.45s cubic-bezier(.4,0,.2,1);
    position: relative; overflow: hidden; height: 100%;
    box-shadow: var(--glass-shadow), var(--refractive-inset);
}
/* Liquid shimmer on hover */
.service .service-item .service-item-inner::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(167,139,250,0.08) 60deg, transparent 120deg);
    animation: liquidSpin 8s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.service .service-item .service-item-inner:hover::before { opacity: 1; }
@keyframes liquidSpin { to { transform: rotate(360deg); } }

.service .service-item .service-item-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(167,139,250,0.12), rgba(96,165,250,0.08), rgba(244,114,182,0.06));
    opacity: 0;
    transition: opacity 0.4s ease;
}
.service .service-item .service-item-inner:hover::after { opacity: 1; }
.service .service-item .service-item-inner:hover {
    transform: translateY(-14px) scale(1.02);
    box-shadow: var(--glass-shadow-hover), inset 0 1px 0 rgba(255,255,255,0.7);
    border-color: rgba(167,139,250,0.4);
}
.service .service-item .service-item-inner .icon {
    height: 84px; width: 84px; border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    transition: all 0.45s ease;
    position: relative; z-index: 1;
    box-shadow: var(--glass-shadow);
}
.service .service-item .service-item-inner .icon .fa {
    font-size: 34px;
    background: var(--grad-iridescent);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: iridescent 4s ease infinite;
    transition: all 0.4s ease;
}
.service .service-item .service-item-inner:hover .icon {
    background: var(--grad-skin);
    border-color: transparent;
    transform: rotateY(180deg) scale(1.1);
    box-shadow: 0 12px 40px rgba(167,139,250,0.4);
}
.service .service-item .service-item-inner:hover .icon .fa {
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.service .service-item .service-item-inner h4 {
    font-size: 18px; margin-bottom: 14px;
    color: var(--text-primary); font-weight: 800;
    text-transform: capitalize; position: relative; z-index: 1;
}
.service .service-item .service-item-inner p {
    font-size: 14px; color: var(--text-secondary);
    line-height: 1.75; position: relative; z-index: 1;
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
.project { background: transparent; }
.project .container { padding-bottom: 30px; }
.project .section-title { margin-bottom: 30px; }
.project .project-item { flex: 0 0 33.33%; max-width: 33.33%; margin-bottom: 30px; }
/* ================== Infinite Project Slider ================== */
.project-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}



.project-slider-track {
    display: flex;
    width: max-content;
    animation: scroll-projects 25s linear infinite;
}

/* Pause animation on hover */
.project-slider-wrapper:hover .project-slider-track {
    animation-play-state: paused;
}

/* Specific fixed widths for sliding items so they form a continuous ribbon */
.project-slider-track .project-item {
    flex: 0 0 350px;
    max-width: 350px;
    padding: 0 15px;
    margin-bottom: 0;
}

@keyframes scroll-projects {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 767px) {
    .project-slider-track .project-item {
        flex: 0 0 calc(100vw - 60px);
        max-width: calc(100vw - 60px);
        padding: 0 10px;
    }
}

.project .project-item-inner {
    border-radius: 24px; overflow: hidden; cursor: pointer;
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    border: none;
    box-shadow: var(--glass-shadow), var(--refractive-inset);
    transition: all 0.45s cubic-bezier(.4,0,.2,1);
}
.project .project-item-inner::before {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-25deg);
    animation: liquidShineSweep 7s ease-in-out infinite;
    pointer-events: none;
    z-index: 10;
}
.project .project-item-inner:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--glass-shadow-hover);
}
.project .project-item-inner .project-img { 
    position: relative; 
    overflow: hidden; 
    aspect-ratio: 16 / 9; 
}
.project .project-item-inner .project-img::after {
    content: '↗ View Project';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(167,139,250,0.85), rgba(96,165,250,0.75));
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 16px; font-weight: 800;
    letter-spacing: 1px;
    opacity: 0; transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}
.project .project-item-inner:hover .project-img::after { opacity: 1; }
.project .project-item-inner .project-img a { display: block; width: 100%; height: 100%; position: relative; z-index: 1; }
.project .project-item-inner .project-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.6s cubic-bezier(.4,0,.2,1);
}
.project .project-item-inner:hover .project-img img { transform: scale(1.08); }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact { background: transparent; position: relative; overflow: hidden; }
.contact-title {
    background: var(--grad-iridescent);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: iridescent 4s ease infinite;
    text-align: center; font-size: 22px; font-weight: 800; margin-bottom: 10px;
}
.contact-sub-title {
    color: var(--text-muted); text-align: center;
    font-size: 12px; font-weight: 600; margin-bottom: 50px;
    letter-spacing: 3px; text-transform: uppercase;
}
.contact .contact-info-item {
    flex: 0 0 25%; max-width: 25%;
    text-align: center; margin-bottom: 50px;
    padding: 32px 16px; border-radius: 24px;
    transition: all 0.4s ease;
    background: transparent;
}
.contact .contact-info-item:hover {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--glass-shadow);
    transform: translateY(-8px);
}
.contact .contact-info-item .icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 20px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    margin-bottom: 16px;
    box-shadow: var(--glass-shadow);
}
.contact .contact-info-item .icon .fa {
    font-size: 24px;
    background: var(--grad-iridescent);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: iridescent 4s ease infinite;
}
.contact .contact-info-item h4 {
    font-size: 15px; font-weight: 800;
    color: var(--text-primary); margin-bottom: 8px;
}
.contact .contact-info-item p {
    font-size: 13px; line-height: 1.7; color: var(--text-secondary);
}
.contact .contact-form { flex: 0 0 100%; max-width: 100%; }
.contact .contact-form .col-6 { flex: 0 0 50%; max-width: 50%; }
.contact .contact-form .col-12 { flex: 0 0 100%; max-width: 100%; }
.contact .contact-form .form-item { margin-bottom: 24px; }
.contact .contact-form .form-item .form-control {
    width: 100%; height: 56px;
    border-radius: 16px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    padding: 10px 24px;
    font-size: 15px; color: var(--text-primary);
    transition: all 0.35s ease;
    font-family: inherit;
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.4);
}
.contact .contact-form .form-item .form-control::placeholder { color: var(--text-muted); }
.contact .contact-form .form-item .form-control:focus {
    border-color: rgba(167,139,250,0.6);
    box-shadow: 0 0 0 4px rgba(167,139,250,0.15), var(--glass-shadow);
    outline: none;
}
.contact .contact-form .form-item textarea.form-control {
    height: 160px; resize: vertical; padding-top: 16px;
}
.contact .contact-form .btn { height: 56px; padding: 0 60px; font-size: 16px; }
/* ============================================================
   TESTIMONIALS & UPCOMING PROJECT
   ============================================================ */
.testimonials .project-showcase {
    background: var(--bg-card);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 32px;
    padding: 40px;
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
}
.testimonials .project-showcase::before {
    content: '';
    position: absolute; top: -50px; right: -50px;
    width: 200px; height: 200px;
    background: var(--grad-skin);
    filter: blur(80px);
    opacity: 0.5;
    z-index: 0;
}
.testimonials .project-header {
    text-align: center; margin-bottom: 40px; position: relative; z-index: 1;
}
.testimonials .project-header .icon-pulse {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(167,139,250,0.1);
    color: var(--skin-color);
    font-size: 28px; margin-bottom: 20px;
    box-shadow: 0 0 0 0 rgba(167,139,250,0.4);
    animation: pulseIcon 2s infinite;
}
@keyframes pulseIcon {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(167,139,250,0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(167,139,250,0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(167,139,250,0); }
}
.testimonials .project-header h3 {
    font-size: 16px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px;
}
.testimonials .project-header h1 {
    font-size: 38px; font-weight: 800; color: var(--text-primary); margin-bottom: 16px;
    background: var(--grad-iridescent); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: iridescent 4s ease infinite; background-size: 300% 300%;
}
.testimonials .project-header .badge {
    background: linear-gradient(135deg, rgba(167,139,250,0.2), rgba(96,165,250,0.15));
    border: 1px solid rgba(167,139,250,0.3);
    padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; color: var(--text-primary);
}
.testimonials .project-body {
    position: relative; z-index: 1;
}
.testimonials .project-body .lead {
    font-size: 16px; line-height: 1.8; color: var(--text-primary); font-weight: 500; text-align: center; margin-bottom: 40px;
}
.testimonials .feature-grid {
    display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 40px;
}
.testimonials .feature-item {
    flex: 1 1 calc(50% - 24px); min-width: 250px;
    background: rgba(255,255,255,0.03); border: 1px solid var(--border-glass); border-radius: 20px; padding: 24px;
    transition: all 0.3s ease;
}
.testimonials .feature-item:hover {
    transform: translateY(-5px); background: rgba(255,255,255,0.08); border-color: rgba(167,139,250,0.4); box-shadow: var(--glass-shadow-hover);
}
.testimonials .feature-item i {
    font-size: 24px; color: var(--skin-color); margin-bottom: 16px;
}
.testimonials .feature-item h4 {
    font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px;
}
.testimonials .feature-item p {
    font-size: 14px; line-height: 1.6; color: var(--text-secondary); margin: 0;
}
.testimonials .project-footer {
    text-align: center; padding-top: 30px; border-top: 1px solid var(--border-glass);
}
.testimonials .project-footer p {
    font-size: 14px; font-style: italic; color: var(--text-muted); line-height: 1.7; margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
    .section .container { padding-top: 80px; }
}
@media (max-width: 991px) {
    .project .project-item { flex: 0 0 50%; max-width: 50%; }
    .contact .contact-info-item,
    .service .service-item,
    .certification .certification-item { flex: 0 0 50%; max-width: 50%; }
    .home .home-info { flex: 0 0 100%; max-width: 100%; text-align: center; }
    .home .home-img { flex: 0 0 100%; max-width: 100%; margin-top: 60px; display: flex; justify-content: center; }
    .home .home-img::after { width: 300px; height: 300px; }
    .home .home-img .ring-outer { width: 350px; height: 350px; }
    .social-container { justify-content: center; }
    .home-info p { margin-left: auto; margin-right: auto; }
}
@media (max-width: 767px) {
    .section .container { padding-top: 60px; padding-bottom: 40px; }
    .aside { padding: 0 20px; }
    .aside .nav-toggler { display: flex; }
    .aside nav {
        position: absolute; top: 72px; left: 0; width: 100%;
        background: rgba(255,255,255,0.7);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-bottom: 1px solid var(--border-glass);
        display: none; padding: 16px 0;
        box-shadow: 0 20px 60px rgba(80,80,180,0.15);
    }
    body.dark .aside nav { background: rgba(13,13,31,0.85); }
    .aside.open nav { display: block; }
    .aside .nav { flex-direction: column; gap: 0; }
    .aside .nav li { display: block; width: 100%; }
    .aside .nav li a { display: block; padding: 14px 28px; border-radius: 0; border: none; }
    .contact .contact-form .col-6,
    .contact .contact-info-item,
    .service .service-item,
    .certification .certification-item,
    .about .about-content .education,
    .about .about-content .experience,
    .skills,
    .about .about-content .personal-info,
    .about .about-content .personal-info .info-item { flex: 0 0 100%; max-width: 100%; }
    .about .about-content .personal-info .info-item:nth-child(even) p { border-left: none; }
    .project .project-item { flex: 0 0 100%; max-width: 100%; }
    .home .home-info .my-world span { font-size: 32px; }
    h3.hello { font-size: 20px; }
    h3.my-profession { font-size: 20px; }
    .section-title h2 { font-size: 32px; }
}

@media (max-width: 575px) {
    .section .container { padding-top: 40px; padding-bottom: 30px; }
    .home .home-img::after { width: 220px; height: 220px; }
    .home .home-img .ring-outer { width: 260px; height: 260px; }
    .home .home-info .my-world span { font-size: 26px; }
    h3.hello { font-size: 18px; }
    h3.my-profession { font-size: 18px; }
    .section-title h2 { font-size: 26px; }
    .about .about-content .timeline { padding: 24px 16px; }
    .about .about-content .timeline .timeline-item { padding-left: 20px; padding-bottom: 24px; }
    .about .about-content .timeline .timeline-item::before { left: 4px; }
    .about .about-content .timeline .circle-dot { width: 12px; height: 12px; top: 6px; }
    .padd-15 { padding-left: 10px; padding-right: 10px; }
    .footer .footer-content { flex-direction: column; text-align: center; gap: 15px; }
    .service .service-item .service-item-inner { padding: 20px 12px; }
    .project-slider-track .project-item { flex: 0 0 calc(100vw - 40px); max-width: calc(100vw - 40px); padding: 0 8px; }
    .project .project-item-inner .project-img { aspect-ratio: 2 / 1; }
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
    position: fixed; bottom: 32px; right: 32px;
    width: 52px; height: 52px; border-radius: 16px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    cursor: pointer; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.5);
    opacity: 0; visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
    z-index: 99;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover {
    transform: translateY(-6px);
    background: var(--grad-skin);
    color: white;
    border-color: transparent;
    box-shadow: 0 16px 40px rgba(167,139,250,0.45);
}

/* ============================================================
   SECTION BACKGROUNDS — all transparent to show global orbs
   ============================================================ */
.home, .about, .service, .project, .contact { background: transparent; }

/* ============================================================
   CONTACT FORM — Validation & Toast
   ============================================================ */

/* Field error message */
.form-group { position: relative; }
.field-error {
    display: none;
    font-size: 12px;
    font-weight: 600;
    color: #f87171;
    margin-top: 6px;
    padding-left: 4px;
    letter-spacing: 0.2px;
}
.form-group.has-error .field-error { display: block; }

/* Input states */
.form-group.has-error .form-control {
    border-color: rgba(248, 113, 113, 0.7) !important;
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12), var(--glass-shadow) !important;
}
.form-group.is-valid .form-control {
    border-color: rgba(52, 211, 153, 0.7) !important;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12), var(--glass-shadow) !important;
}

/* Send button disabled state */
#sendBtn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none !important;
}

/* ── Toast notification ── */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(.4, 0, .2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    white-space: nowrap;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    max-width: 90vw;
    white-space: normal;
    text-align: center;
}
.toast--show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.toast--success {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.9), rgba(16, 185, 129, 0.85));
    border: 1px solid rgba(52, 211, 153, 0.5);
}
.toast--error {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.9), rgba(239, 68, 68, 0.85));
    border: 1px solid rgba(248, 113, 113, 0.5);
}
.toast i { font-size: 18px; flex-shrink: 0; }

@media (max-width: 767px) {
    .toast {
        bottom: 80px;
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* ============================================================
   HOME SECTION — Animated Glassy Effects
   ============================================================ */

/* ── Morphing glass blobs ── */
.glass-morph {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.glass-morph-1 {
    width: 320px; height: 320px;
    top: 10%; left: 5%;
    background: linear-gradient(135deg,
        rgba(167,139,250,0.18) 0%,
        rgba(96,165,250,0.12) 50%,
        rgba(244,114,182,0.10) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.4),
        inset 0 -1px 0 rgba(255,255,255,0.1),
        0 20px 60px rgba(167,139,250,0.15);
    animation: morphBlob1 12s ease-in-out infinite;
}

.glass-morph-2 {
    width: 220px; height: 220px;
    bottom: 15%; right: 8%;
    background: linear-gradient(135deg,
        rgba(96,165,250,0.15) 0%,
        rgba(52,211,153,0.12) 50%,
        rgba(167,139,250,0.10) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        0 15px 50px rgba(96,165,250,0.15);
    animation: morphBlob2 15s ease-in-out infinite;
}

.glass-morph-3 {
    width: 160px; height: 160px;
    top: 55%; left: 42%;
    background: linear-gradient(135deg,
        rgba(244,114,182,0.14) 0%,
        rgba(167,139,250,0.10) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.3),
        0 10px 40px rgba(244,114,182,0.12);
    animation: morphBlob3 10s ease-in-out infinite;
}

@keyframes morphBlob1 {
    0%   { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: translate(0,0) rotate(0deg) scale(1); }
    25%  { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; transform: translate(20px,-15px) rotate(5deg) scale(1.05); }
    50%  { border-radius: 50% 60% 30% 60% / 40% 50% 60% 50%; transform: translate(-10px,20px) rotate(-3deg) scale(0.97); }
    75%  { border-radius: 40% 30% 60% 50% / 60% 40% 50% 40%; transform: translate(15px,10px) rotate(8deg) scale(1.03); }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: translate(0,0) rotate(0deg) scale(1); }
}

@keyframes morphBlob2 {
    0%   { border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; transform: translate(0,0) rotate(0deg) scale(1); }
    33%  { border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%; transform: translate(-20px,15px) rotate(-6deg) scale(1.08); }
    66%  { border-radius: 50% 50% 30% 70% / 50% 70% 30% 50%; transform: translate(10px,-20px) rotate(4deg) scale(0.95); }
    100% { border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; transform: translate(0,0) rotate(0deg) scale(1); }
}

@keyframes morphBlob3 {
    0%   { border-radius: 50% 50% 50% 50%; transform: translate(0,0) scale(1); }
    50%  { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: translate(-15px,-20px) scale(1.1); }
    100% { border-radius: 50% 50% 50% 50%; transform: translate(0,0) scale(1); }
}

/* ── Floating glass icon cards ── */
.floating-card {
    position: absolute;
    width: 64px; height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow:
        0 8px 32px rgba(80,80,180,0.15),
        inset 0 1px 0 rgba(255,255,255,0.7),
        inset 0 -1px 0 rgba(255,255,255,0.2);
}
body.dark .floating-card {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.12);
    box-shadow:
        0 8px 32px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.floating-card i {
    font-size: 26px;
    background: var(--grad-iridescent);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: iridescent 4s ease infinite;
}

/* Shimmer sweep on each card */
.floating-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255,255,255,0.35) 50%,
        transparent 70%
    );
    background-size: 200% 100%;
    animation: cardShimmer 3s ease-in-out infinite;
}

@keyframes cardShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.floating-card-1 {
    top: 18%; right: 12%;
    animation: floatCard1 8s ease-in-out infinite;
}
.floating-card-2 {
    bottom: 22%; left: 6%;
    animation: floatCard2 10s ease-in-out infinite;
    width: 56px; height: 56px;
    border-radius: 16px;
}
.floating-card-3 {
    top: 65%; right: 5%;
    animation: floatCard3 7s ease-in-out infinite;
    width: 52px; height: 52px;
    border-radius: 14px;
}

@keyframes floatCard1 {
    0%,100% { transform: translateY(0px) rotate(0deg); }
    25%      { transform: translateY(-18px) rotate(4deg); }
    75%      { transform: translateY(10px) rotate(-3deg); }
}
@keyframes floatCard2 {
    0%,100% { transform: translateY(0px) rotate(0deg); }
    33%      { transform: translateY(-14px) rotate(-5deg); }
    66%      { transform: translateY(8px) rotate(3deg); }
}
@keyframes floatCard3 {
    0%,100% { transform: translateY(0px) rotate(0deg); }
    50%      { transform: translateY(-20px) rotate(6deg); }
}

/* ── Particle dots grid ── */
.home::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(167,139,250,0.35) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
    animation: dotsDrift 20s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}
body.dark .home::before { opacity: 0.25; }

@keyframes dotsDrift {
    0%   { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

/* ── Glowing ring behind profile image ── */
.home .home-img::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 360px; height: 360px;
    border-radius: 50%;
    border: 2px solid transparent;
    background:
        linear-gradient(var(--bg-base), var(--bg-base)) padding-box,
        var(--grad-iridescent) border-box;
    background-size: 100%, 300% 300%;
    animation: ringRotate 6s linear infinite, iridescent 4s ease infinite;
    z-index: 0;
    pointer-events: none;
}
body.dark .home .home-img::after {
    background:
        linear-gradient(var(--bg-base), var(--bg-base)) padding-box,
        var(--grad-iridescent) border-box;
}

/* Second outer ring */
.home .home-img .ring-outer {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 420px; height: 420px;
    border-radius: 50%;
    border: 1px dashed rgba(167,139,250,0.35);
    animation: ringRotate 12s linear infinite reverse;
    z-index: 0;
    pointer-events: none;
}

/* Orbit dot on the ring */
.home .home-img .ring-outer::before {
    content: '';
    position: absolute;
    top: -5px; left: 50%;
    transform: translateX(-50%);
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--grad-skin);
    box-shadow: 0 0 12px rgba(167,139,250,0.8), 0 0 24px rgba(167,139,250,0.4);
}

/* Second orbit dot */
.home .home-img .ring-outer::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 50%;
    transform: translateX(-50%);
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--orb-3);
    box-shadow: 0 0 10px rgba(244,114,182,0.8);
}

@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── Glassmorphism stat chips below hero text ── */
.home-stats {
    display: flex;
    gap: 14px;
    margin-top: 36px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.stat-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 50px;
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow:
        0 4px 20px rgba(80,80,180,0.1),
        inset 0 1px 0 rgba(255,255,255,0.6);
    transition: all 0.35s cubic-bezier(.4,0,.2,1);
    cursor: default;
    position: relative;
    overflow: hidden;
}
body.dark .stat-chip {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
}

.stat-chip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: cardShimmer 4s ease-in-out infinite;
    border-radius: inherit;
}

.stat-chip:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 12px 35px rgba(167,139,250,0.25), inset 0 1px 0 rgba(255,255,255,0.7);
    border-color: rgba(167,139,250,0.4);
}

.stat-chip .chip-icon {
    font-size: 16px;
    background: var(--grad-iridescent);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: iridescent 4s ease infinite;
    position: relative;
    z-index: 1;
}

.stat-chip .chip-text {
    position: relative;
    z-index: 1;
}

.stat-chip .chip-text strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.stat-chip .chip-text span {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    line-height: 1.2;
}

/* ── Scroll indicator at bottom of home ── */
.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    cursor: pointer;
}

.scroll-indicator .mouse {
    width: 26px; height: 42px;
    border-radius: 13px;
    border: 2px solid rgba(167,139,250,0.5);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    position: relative;
    box-shadow: 0 4px 20px rgba(167,139,250,0.2), inset 0 1px 0 rgba(255,255,255,0.4);
}

.scroll-indicator .mouse::before {
    content: '';
    position: absolute;
    top: 7px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 8px;
    border-radius: 2px;
    background: var(--grad-skin);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%   { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(14px); opacity: 0; }
}

.scroll-indicator .scroll-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.scroll-indicator .scroll-arrows span {
    display: block;
    width: 10px; height: 10px;
    border-right: 2px solid rgba(167,139,250,0.6);
    border-bottom: 2px solid rgba(167,139,250,0.6);
    transform: rotate(45deg);
    animation: arrowFade 2s ease-in-out infinite;
}
.scroll-indicator .scroll-arrows span:nth-child(2) { animation-delay: 0.2s; }
.scroll-indicator .scroll-arrows span:nth-child(3) { animation-delay: 0.4s; }

@keyframes arrowFade {
    0%,100% { opacity: 0.2; }
    50%      { opacity: 1; }
}

/* Hide decorative elements on small screens */
@media (max-width: 767px) {
    .glass-morph-1 { width: 200px; height: 200px; }
    .glass-morph-2 { width: 140px; height: 140px; }
    .glass-morph-3 { display: none; }
    .floating-card-1 { top: 8%; right: 4%; width: 48px; height: 48px; }
    .floating-card-2 { display: none; }
    .floating-card-3 { display: none; }
    .home .home-img::after { width: 260px; height: 260px; }
    .home .home-img .ring-outer { width: 310px; height: 310px; }
    .home-stats { gap: 10px; }
    .stat-chip { padding: 8px 14px; }
    .scroll-indicator { display: none; }
}

/* ======================== Footer Styling ======================== */
.footer {
    width: 100%;
    padding: 30px 0;
    margin-top: 50px;
    background: var(--bg-card);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: none;
    box-shadow: 0 -4px 40px rgba(80,80,180,0.05), var(--refractive-inset);
    position: relative;
    z-index: 10;
}
body.dark .footer {
    box-shadow: 0 -4px 40px rgba(0,0,0,0.4), var(--refractive-inset);
}

.footer .footer-content {
    flex: 0 0 100%;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.footer p {
    font-size: 16px;
    color: var(--text-black-700);
    margin: 0;
    font-weight: 500;
}

.footer .footer-socials {
    display: flex;
    gap: 15px;
}

.footer .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-black-50);
    color: var(--text-black-900);
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer .social-icon:hover {
    background: var(--skin-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media (max-width: 767px) {
    .footer .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* ── Liquid Shine Sweep Keyframe ── */
@keyframes liquidShineSweep {
    0% { left: -150%; opacity: 0; }
    10% { left: -100%; opacity: 1; }
    30% { left: 150%; opacity: 1; }
    40% { left: 150%; opacity: 0; }
    100% { left: 150%; opacity: 0; }
}

/* ── Magic Cursor ── */
*, *::before, *::after, *:hover, *:active, *:focus {
    cursor: none !important;
}

#magic-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    /* Glassy water bubble styles */
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), rgba(255,255,255,0.1));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: inset 0 0 10px rgba(255,255,255,0.9), 0 5px 15px rgba(0,0,0,0.2);
    /* Morphing animation for liquid wobble */
    animation: bubbleWobble 4s ease-in-out infinite;
    transition: width 0.3s ease, height 0.3s ease, background 0.4s ease, box-shadow 0.4s ease;
}

/* Hover State: RGB Liquid Hand Gesture */
#magic-cursor.is-hovering {
    width: 60px; height: 60px;
    background: url('Images/rgb_hand.png') center/contain no-repeat;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: pulseHand 2s ease-in-out infinite;
    mix-blend-mode: screen;
}

@keyframes pulseHand {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* Typing State: Vertical Liquid Glass Caret */
#magic-cursor.is-typing {
    width: 6px; height: 32px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px) saturate(150%);
    box-shadow: inset 0 0 5px rgba(255,255,255,0.8), 0 0 10px rgba(167,139,250,0.5);
    animation: caretPulse 1.2s ease-in-out infinite;
    mix-blend-mode: normal;
}

@keyframes caretPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ============================================================
   LIQUID GLASS POPUP MODAL
   ============================================================ */
.glass-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10000;
    display: none; align-items: center; justify-content: center;
    background: rgba(10, 10, 20, 0.6);
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    opacity: 0; visibility: hidden;
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
}
.glass-modal.active {
    display: flex; opacity: 1; visibility: visible;
}
.glass-modal-content {
    position: relative;
    width: 90%; max-width: 1000px;
    height: 85vh;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 20px 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 0 20px rgba(255,255,255,0.1);
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column;
}
.glass-modal.active .glass-modal-content {
    transform: scale(1) translateY(0);
}
.glass-modal-close {
    position: absolute; top: 10px; right: 20px;
    font-size: 30px; color: var(--text-primary);
    cursor: pointer; font-weight: bold;
    transition: color 0.3s ease;
    z-index: 10001;
}
.glass-modal-close:hover { color: var(--skin-color); }
#glass-modal-body {
    flex: 1; width: 100%; height: 100%;
    border-radius: 12px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
#glass-modal-body img {
    max-width: 100%; max-height: 100%; object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.cert-frame {
    width: 100%; height: 100%;
    border: none; border-radius: 8px;
    background: white; /* PDF viewers usually need white bg */
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

@keyframes bubbleWobble {
    0% { border-radius: 50% 50% 50% 50%; }
    25% { border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%; }
    50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    75% { border-radius: 30% 70% 60% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 50% 50% 50% 50%; }
}

@keyframes rgbFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
