/* ===========================
   RAJAVARMAN PORTFOLIO – DARK BLUE GLASSMORPHISM
   =========================== */

/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after { box-sizing: border-box; }

body {
    background-color: #0b1326;
    background-image:
        radial-gradient(ellipse 80% 50% at 80% -10%, rgba(255,209,102,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 10% 80%, rgba(255,195,0,0.08) 0%, transparent 60%);
    background-attachment: fixed;
    color: #f7e4b5;
    overflow-x: hidden;
    position: relative;
    font-family: 'Inter', sans-serif;
}

/* =====================
   FLOATING DOODLE OVERLAY
   ===================== */
.doodle-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.doodle-overlay i {
    position: absolute;
    color: #c0c1ff;
    opacity: 0.28;
    transform: translate(-50%, -50%);
    will-change: transform;
}

/* =====================
   FLOATING KEYFRAMES
   ===================== */
@keyframes float-a {
    0%, 100% { transform: translate(-50%, -50%) translateY(0) rotate(0deg); }
    50%       { transform: translate(-50%, -50%) translateY(20px) rotate(4deg); }
}
@keyframes float-b {
    0%, 100% { transform: translate(-50%, -50%) translateY(0) rotate(0deg); }
    50%       { transform: translate(-50%, -50%) translateY(25px) rotate(-5deg); }
}
@keyframes float-c {
    0%, 100% { transform: translate(-50%, -50%) translateY(0) rotate(0deg); }
    50%       { transform: translate(-50%, -50%) translateY(18px) rotate(3deg); }
}

.doodle-overlay i:nth-child(3n+1) { animation: float-a 7s ease-in-out infinite alternate; }
.doodle-overlay i:nth-child(3n+2) { animation: float-b 9s ease-in-out infinite alternate; }
.doodle-overlay i:nth-child(3n)   { animation: float-c 11s ease-in-out infinite alternate; }

.doodle-overlay i:nth-child(1)  { animation-delay: 0s; }
.doodle-overlay i:nth-child(2)  { animation-delay: -0.5s; }
.doodle-overlay i:nth-child(3)  { animation-delay: -1s; }
.doodle-overlay i:nth-child(4)  { animation-delay: -1.5s; }
.doodle-overlay i:nth-child(5)  { animation-delay: -2s; }
.doodle-overlay i:nth-child(6)  { animation-delay: -2.5s; }
.doodle-overlay i:nth-child(7)  { animation-delay: -3s; }
.doodle-overlay i:nth-child(8)  { animation-delay: -3.5s; }
.doodle-overlay i:nth-child(9)  { animation-delay: -4s; }
.doodle-overlay i:nth-child(10) { animation-delay: -4.5s; }
.doodle-overlay i:nth-child(11) { animation-delay: -5s; }
.doodle-overlay i:nth-child(12) { animation-delay: -5.5s; }
.doodle-overlay i:nth-child(13) { animation-delay: -6s; }
.doodle-overlay i:nth-child(14) { animation-delay: -6.5s; }
.doodle-overlay i:nth-child(15) { animation-delay: -7s; }
.doodle-overlay i:nth-child(16) { animation-delay: -7.5s; }
.doodle-overlay i:nth-child(17) { animation-delay: -8s; }
.doodle-overlay i:nth-child(18) { animation-delay: -8.5s; }
.doodle-overlay i:nth-child(19) { animation-delay: -9s; }
.doodle-overlay i:nth-child(20) { animation-delay: -9.5s; }
.doodle-overlay i:nth-child(21) { animation-delay: -10s; }
.doodle-overlay i:nth-child(22) { animation-delay: -10.5s; }
.doodle-overlay i:nth-child(23) { animation-delay: -11s; }
.doodle-overlay i:nth-child(24) { animation-delay: -11.5s; }
.doodle-overlay i:nth-child(25) { animation-delay: -12s; }
.doodle-overlay i:nth-child(26) { animation-delay: -12.5s; }
.doodle-overlay i:nth-child(27) { animation-delay: -13s; }
.doodle-overlay i:nth-child(28) { animation-delay: -13.5s; }
.doodle-overlay i:nth-child(29) { animation-delay: -14s; }
.doodle-overlay i:nth-child(30) { animation-delay: -14.5s; }
.doodle-overlay i:nth-child(31) { animation-delay: -15s; }
.doodle-overlay i:nth-child(32) { animation-delay: -15.5s; }
.doodle-overlay i:nth-child(33) { animation-delay: -16s; }
.doodle-overlay i:nth-child(34) { animation-delay: -16.5s; }
.doodle-overlay i:nth-child(35) { animation-delay: -17s; }

@media (prefers-reduced-motion: reduce) {
    .doodle-overlay i { animation: none; }
}

/* =====================
   GLASS PANELS (from Stitch)
   ===================== */
.glass-panel {
    background-color: rgba(49, 57, 77, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(144, 143, 160, 0.2);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-panel:hover {
    border-color: rgba(192, 193, 255, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(192, 193, 255, 0.08);
}

.glass-panel,
.home__img-ring,
.about__side-card,
.about__img-wrap,
.skills__card,
.cert-card,
.portfolio__img,
.contact__wrapper {
    position: relative;
    z-index: 0;
}

.glass-panel::before,
.home__img-ring::before,
.about__side-card::before,
.about__img-wrap::before,
.skills__card::before,
.cert-card::before,
.portfolio__img::before,
.contact__wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px dashed rgba(255, 215, 0, 0.75);
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    box-shadow: 0 0 24px rgba(255, 215, 0, 0.18);
}

.glass-panel:hover::before,
.home__img-ring:hover::before,
.about__side-card:hover::before,
.about__img-wrap:hover::before,
.skills__card:hover::before,
.cert-card:hover::before,
.portfolio__img:hover::before,
.contact__wrapper:hover::before {
    opacity: 1;
    transform: translateY(-4px) scale(1);
    animation: float-gold-border 1.8s ease-in-out infinite alternate;
}

@keyframes float-gold-border {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(-6px) scale(1.01); }
}

/* =====================
   HEADER / NAV
   ===================== */
.l-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(11, 19, 38, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease;
}
.l-header.is-hidden { transform: translateY(-100%); }

.nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav__logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #dae2fd;
    text-decoration: none;
    letter-spacing: -0.01em;
}
.nav__logo:hover { color: #c0c1ff; }

.nav__list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0; padding: 0;
}
.nav__link {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #c7c4d7;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    width: 4px;
    border-radius: 50%;
    background: #4cd7f6;
    opacity: 0;
    transition: opacity 0.3s;
}
.nav__link.active,
.nav__link:hover { color: #c0c1ff; }
.nav__link.active::after,
.nav__link:hover::after { opacity: 1; }

.nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #c0c1ff;
    color: #1000a9;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: opacity 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 20px rgba(192,193,255,0.2);
}
.nav__cta:hover {
    opacity: 0.9;
    box-shadow: 0 0 30px rgba(192,193,255,0.4);
}

.nav__toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(192,193,255,0.2);
    color: #dae2fd;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 0.5rem;
    padding: 0.25rem 0.5rem;
}

@media (max-width: 768px) {
    .nav__toggle { display: flex; align-items: center; }
    .nav__cta { display: none; }
    .nav__menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(11, 19, 38, 0.97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding: 1.5rem 2rem;
        display: none;
        flex-direction: column;
    }
    .nav__menu.show { display: flex; }
    .nav__list { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
}

/* =====================
   MAIN LAYOUT
   ===================== */
.l-main { position: relative; z-index: 1; }

.bd-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.section {
    padding: 7.5rem 0;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: #dae2fd;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.section-accent {
    width: 4rem;
    height: 0.25rem;
    background: linear-gradient(90deg, #c0c1ff, #4cd7f6);
    border-radius: 9999px;
    margin-bottom: 3rem;
}

/* =====================
   HOME / HERO
   ===================== */
.home {
    height: calc(100svh - 4.5rem);
    min-height: 38rem;
    padding: 1.5rem 0;
}
.home__container {
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
}

.home__eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #4cd7f6;
    margin-bottom: 1rem;
    white-space: nowrap;
}

.home__title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.05em;
    color: #dae2fd;
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.home__role-card {
    display: inline-block;
    margin-bottom: 1.5rem;
}
.home__role {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    background: linear-gradient(135deg, #c0c1ff, #4cd7f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.4s;
}

.home__text {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #c7c4d7;
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.home__cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.home__cta {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #c0c1ff, #03b5d3);
    color: #1000a9;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 1rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: opacity 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 24px rgba(192,193,255,0.3);
}
.home__cta:hover {
    opacity: 0.9;
    box-shadow: 0 0 36px rgba(192,193,255,0.5);
}
/* Hero Profile Image */
.home__img-wrapper {
    flex-shrink: 0;
    position: absolute;
    top: 15%;
    right: 5%;
}
.home__img-ring {
    width: 320px;
    height: 300px;
    border-radius: 1.5rem;
    background: conic-gradient(from 180deg, #c0c1ff, #4cd7f6, #c0c1ff);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin-ring 12s linear infinite;
    box-shadow: 0 0 48px rgba(192,193,255,0.2), 0 0 80px rgba(76,215,246,0.1);
}
@keyframes spin-ring {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.home__img-inner {
    width: 100%;
    height: 135%;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #101b36;
    animation: spin-ring 12s linear infinite reverse; /* counter-rotate so image stays still */
}
.home__img {
    width: 100%;
    height: 115%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.5s;
}
.home__img-ring:hover .home__img { opacity: 1; }

/* Dive Down */
.home__down {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #c7c4d7;
    position: absolute;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    gap: 0.5rem;
    transition: color 0.3s;
    white-space: nowrap;
    z-index: 2;
}
.home__down:hover { color: #4cd7f6; }
.home__tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.6;
}
.down-arrow {
    font-size: 1.2rem;
    animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(8px); }
}
.down-text {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    opacity: 0.5;
}

/* Typewriter caret */
.caret {
    display: inline-block;
    animation: blink 0.9s infinite;
    color: #4cd7f6;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* =====================
   ABOUT
   ===================== */
.about {
    height: calc(100svh - 4.5rem);
    min-height: 38rem;
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
}
.about__container { max-width: 1280px; margin: 0 auto; padding: 0 2.5rem; }
.about__container { width: 100%; }
.about .section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }
.about .section-accent { margin-bottom: 1.25rem; }
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
.about__card {
    padding: 2rem;
    border-radius: 1rem;
}
.about__icon {
    width: 2.5rem; height: 2.5rem;
    border-radius: 50%;
    background: rgba(49, 66, 107, 0.9);
    display: flex; align-items: center; justify-content: center;
    color: #c0c1ff;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}
.about__text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.35;
    color: #c7c4d7;
    white-space: pre-wrap;
}
.about__subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #dae2fd;
    margin-bottom: 0.25rem;
}
.about__profession {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4cd7f6;
    margin-bottom: 1.25rem;
}
.about__social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.about__social-icon {
    display: flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(192,193,255,0.2);
    color: #c7c4d7;
    font-size: 1.1rem;
    text-decoration: none;
    transition: border-color 0.3s, color 0.3s, transform 0.3s;
}
.about__social-icon:hover {
    border-color: #4cd7f6;
    color: #4cd7f6;
    transform: translateY(-3px);
}

.about__side { display: flex; flex-direction: column; gap: 0.75rem; }
.about__side-card {
    padding: 1rem;
    border-radius: 1rem;
}
.about__side-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #dae2fd;
    margin-bottom: 0.75rem;
}
.about__img-wrap {
    padding: 0.5rem;
    border-radius: 1rem;
}
.about__avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    padding: 0.5rem;
    border-radius: 50%;
    background-color: rgba(192, 193, 255, 0.2);
}
.about__img-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    opacity: 1;
}

/* =====================
   SKILLS
   ===================== */
.skills__container { max-width: 1280px; margin: 0 auto; padding: 0 2.5rem; }
.skills__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.skills__card {
    padding: 2rem;
    border-radius: 1rem;
}
.skills__card-icon {
    width: 3.5rem; height: 3.5rem;
    border-radius: 1rem;
    background: rgba(34, 42, 61, 0.9);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(70, 69, 84, 0.3);
}
.skills__card-icon--primary { color: #c0c1ff; }
.skills__card-icon--tertiary { color: #ffb783; }
.skills__card-icon--secondary { color: #4cd7f6; }

.skills__subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #dae2fd;
    margin-bottom: 1rem;
}
.skills__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.skills__name {
    background: rgba(23, 31, 51, 0.9);
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    border: 1px solid rgba(192,193,255,0.1);
    transition: border-color 0.3s, color 0.3s;
}
.skills__name--primary { color: #c0c1ff; border-color: rgba(192,193,255,0.15); }
.skills__name--tertiary { color: #ffb783; border-color: rgba(255,183,131,0.15); }
.skills__name--secondary { color: #4cd7f6; border-color: rgba(76,215,246,0.15); }
.skills__name:hover { border-color: rgba(192,193,255,0.4); }

/* =====================
   CERTIFICATES
   ===================== */
.certificates__container { max-width: 1280px; margin: 0 auto; padding: 0 2.5rem; }
.certificates__intro {
    font-family: 'Inter', sans-serif;
    font-size: 1.0625rem;
    color: #c7c4d7;
    margin-bottom: 2.5rem;
    max-width: 600px;
}
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

/* Cert card - generated by certificates.js */
.cert-card {
    border-radius: 1rem !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: rgba(49, 57, 77, 0.3);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(144,143,160,0.2) !important;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s !important;
}
.cert-card:hover {
    border-color: rgba(192,193,255,0.45) !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(192,193,255,0.08);
}
.cert-thumb {
    height: 12rem;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    background: rgba(23,31,51,0.9);
}
.cert-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
}
.cert-card:hover .cert-thumb img { opacity: 1; transform: scale(1.04); }
.cert-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.cert-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem; font-weight: 600;
    color: #dae2fd;
    line-height: 1.3;
}
.cert-issuer {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    color: #c7c4d7;
    flex: 1;
}
.cert-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 0.75rem; }
.cert-date { font-family: 'Inter', sans-serif; font-size: 0.75rem; color: #908fa0; }
.cert-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem; font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(23,31,51,0.9);
}
.tag--teal { color: #4cd7f6; border: 1px solid rgba(76,215,246,0.2); }
.tag--orange { color: #ffb783; border: 1px solid rgba(255,183,131,0.2); }
.tag--yellow { color: #c0c1ff; border: 1px solid rgba(192,193,255,0.2); }
.expand-badge {
    display: none; /* hidden, use hover effect instead */
}

/* Cert Lightbox */
.cert-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.cert-lightbox.active { opacity: 1; pointer-events: auto; }
.cert-lightbox__backdrop {
    position: absolute; inset: 0;
    background: rgba(6, 14, 32, 0.85);
    backdrop-filter: blur(10px);
    cursor: pointer;
}
.cert-lightbox__box {
    position: relative; z-index: 1;
    width: 100%; max-width: 640px;
    background: rgba(23, 31, 51, 0.95);
    border: 1px solid rgba(192,193,255,0.2);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.cert-lightbox__close {
    position: absolute; top: 1rem; right: 1rem;
    background: rgba(49,57,77,0.6);
    border: 1px solid rgba(192,193,255,0.2);
    color: #dae2fd;
    width: 2rem; height: 2rem;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.cert-lightbox__close:hover { background: rgba(192,193,255,0.15); }
.cert-lightbox__issuer {
    font-family: 'Outfit', sans-serif; font-size: 1.25rem; font-weight: 600;
    color: #c0c1ff; margin-bottom: 0.25rem;
}
.cert-lightbox__meta { font-family: 'Inter', sans-serif; font-size: 0.875rem; color: #c7c4d7; margin-bottom: 1.5rem; }
.cert-lightbox__image img { width: 100%; border-radius: 0.75rem; border: 1px solid rgba(192,193,255,0.1); }
.cert-lightbox__footer { display: flex; justify-content: flex-end; margin-top: 1.5rem; }
.cert-lightbox__view {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #c0c1ff, #4cd7f6);
    color: #1000a9;
    font-family: 'Inter', sans-serif; font-size: 0.875rem; font-weight: 700;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: opacity 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 20px rgba(192,193,255,0.25);
}
.cert-lightbox__view:hover { opacity: 0.9; box-shadow: 0 0 30px rgba(192,193,255,0.45); }

/* =====================
   PORTFOLIO
   ===================== */
.portfolio__container { max-width: 1280px; margin: 0 auto; padding: 0 2.5rem; }
.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.portfolio__img {
    border-radius: 1rem;
    overflow: hidden;
    display: flex; flex-direction: column;
    background: rgba(49,57,77,0.3);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(144,143,160,0.2);
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.portfolio__img:hover {
    border-color: rgba(76,215,246,0.45);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(76,215,246,0.08);
}
.portfolio__thumb {
    height: 12rem;
    overflow: hidden;
    background: rgba(23,31,51,0.9);
}
.portfolio__thumb img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.65; mix-blend-mode: luminosity;
    transition: opacity 0.4s, transform 0.4s, mix-blend-mode 0.4s;
}
.portfolio__img:hover .portfolio__thumb img {
    opacity: 1; mix-blend-mode: normal; transform: scale(1.05);
}
.portfolio__description { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.portfolio__desc-title {
    font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 600;
    color: #dae2fd;
}
.portfolio__desc-text {
    font-family: 'Inter', sans-serif; font-size: 0.9rem;
    color: #c7c4d7; flex: 1;
}
.portfolio__desc-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 0.75rem;
}
.portfolio__desc-link {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-family: 'Inter', sans-serif; font-size: 0.8125rem; font-weight: 500;
    color: #c7c4d7;
    background: none; border: none; cursor: pointer; padding: 0;
    text-decoration: none;
    transition: color 0.3s;
}
.portfolio__desc-link:hover { color: #4cd7f6; }

/* Portfolio Lightbox */
.portfolio-lightbox {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.portfolio-lightbox.active { opacity: 1; pointer-events: auto; }
.portfolio-lightbox__backdrop {
    position: absolute; inset: 0;
    background: rgba(6,14,32,0.85); backdrop-filter: blur(10px); cursor: pointer;
}
.portfolio-lightbox__box {
    position: relative; z-index: 1;
    width: 100%; max-width: 480px;
    background: rgba(23,31,51,0.97);
    border: 1px solid rgba(192,193,255,0.2);
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.portfolio-lightbox__close {
    position: absolute; top: 1rem; right: 1rem;
    background: rgba(49,57,77,0.6); border: 1px solid rgba(192,193,255,0.2);
    color: #dae2fd; width: 2rem; height: 2rem;
    border-radius: 50%; font-size: 1.2rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.portfolio-lightbox__close:hover { background: rgba(192,193,255,0.15); }
.portfolio-lightbox__eyebrow {
    font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: #4cd7f6; margin-bottom: 0.5rem;
}
.portfolio-lightbox__title {
    font-family: 'Outfit', sans-serif; font-size: 1.75rem; font-weight: 700;
    color: #c0c1ff; margin-bottom: 1rem; letter-spacing: -0.01em;
}
.portfolio-lightbox__summary {
    font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 500;
    color: #dae2fd; margin-bottom: 0.75rem;
}
.portfolio-lightbox__description {
    font-family: 'Inter', sans-serif; font-size: 0.9375rem;
    color: #c7c4d7; line-height: 1.7; margin-bottom: 2rem;
}
.portfolio-lightbox__view {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%;
    background: linear-gradient(135deg, #c0c1ff, #4cd7f6);
    color: #1000a9;
    font-family: 'Inter', sans-serif; font-size: 0.875rem; font-weight: 700;
    letter-spacing: 0.05em; padding: 1rem 2rem;
    border-radius: 9999px; text-decoration: none;
    transition: opacity 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 20px rgba(192,193,255,0.25);
}
.portfolio-lightbox__view:hover { opacity: 0.9; box-shadow: 0 0 36px rgba(192,193,255,0.45); }

/* =====================
   CONTACT
   ===================== */
.contact__container { max-width: 1280px; margin: 0 auto; padding: 0 2.5rem; }
.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: rgba(49,57,77,0.3);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(144,143,160,0.2);
    border-radius: 1.5rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}
.contact__glow {
    position: absolute;
    right: -8rem; bottom: -8rem;
    width: 24rem; height: 24rem;
    background: rgba(128,131,255,0.08);
    border-radius: 50%;
    filter: blur(48px);
    pointer-events: none;
}
.contact__info { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2rem; }
.contact__info-title {
    font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 700;
    color: #dae2fd; margin-bottom: 0.5rem;
}
.contact__info-text {
    font-family: 'Inter', sans-serif; font-size: 0.9375rem;
    color: #c7c4d7; line-height: 1.6;
}
.contact__item { display: flex; align-items: center; gap: 1rem; }
.contact__item-icon {
    width: 3rem; height: 3rem;
    border-radius: 50%;
    background: rgba(23,31,51,0.9);
    border: 1px solid rgba(76,215,246,0.15);
    display: flex; align-items: center; justify-content: center;
    color: #4cd7f6; font-size: 1.25rem; flex-shrink: 0;
}
.contact__subtitle {
    font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: #908fa0; margin-bottom: 0.2rem;
}
.contact__text {
    font-family: 'Inter', sans-serif; font-size: 0.9375rem;
    color: #dae2fd;
}
a.contact__text {
    text-decoration: none;
    transition: color 0.15s ease;
}
a.contact__text:hover,
a.contact__text:focus-visible {
    color: #4cd7f6;
    text-decoration: underline;
}
a.contact__text:focus-visible {
    outline: 2px solid #4cd7f6;
    outline-offset: 3px;
    border-radius: 2px;
}
.contact__resume-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: 'Inter', sans-serif; font-size: 0.875rem; font-weight: 600;
    color: #c7c4d7;
    background: rgba(49,57,77,0.5);
    border: 1px solid rgba(192,193,255,0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem; text-decoration: none;
    transition: border-color 0.3s, color 0.3s;
    width: fit-content;
}
.contact__resume-link:hover { border-color: #c0c1ff; color: #c0c1ff; }

.contact__form { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 1.25rem; }
.contact__label {
    font-family: 'Inter', sans-serif; font-size: 0.8125rem; font-weight: 500;
    letter-spacing: 0.04em; color: #c7c4d7;
    display: block; margin-bottom: 0.375rem;
}
.contact__input {
    width: 100%;
    background: rgba(11,19,38,0.7);
    border: 1px solid rgba(70,69,84,0.7);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-family: 'Inter', sans-serif; font-size: 0.9375rem;
    color: #dae2fd;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    resize: none;
}
.contact__input::placeholder { color: #908fa0; }
.contact__input:focus {
    border-color: #4cd7f6;
    box-shadow: 0 0 0 3px rgba(76,215,246,0.1);
}
.contact__inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact__button {
    background: linear-gradient(135deg, #c0c1ff, #03b5d3);
    color: #1000a9;
    font-family: 'Inter', sans-serif; font-size: 0.875rem; font-weight: 700;
    letter-spacing: 0.05em;
    border: none; border-radius: 0.75rem;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: opacity 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 20px rgba(192,193,255,0.2);
    margin-top: 0.5rem;
}
.contact__button:hover { opacity: 0.9; box-shadow: 0 0 30px rgba(192,193,255,0.4); }

/* =====================
   FOOTER
   ===================== */
.footer {
    background: rgba(6,14,32,0.9);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 3rem 0;
}
.footer__container {
    max-width: 1280px; margin: 0 auto; padding: 0 2.5rem;
    display: flex; justify-content: flex-start; align-items: flex-start;
    flex-wrap: wrap; gap: 35rem;
    position: relative;
}
.footer__title {
    font-family: 'Outfit', sans-serif; font-size: 1.25rem; font-weight: 700;
    color: #dae2fd;
}
.footer__text {
    font-family: 'Inter', sans-serif; font-size: 0.875rem;
    color: #908fa0; margin-top: 0.25rem;
}
.footer__availability {
    font-family: 'Inter', sans-serif; font-size: 0.875rem;
    color: #c0c1ff; margin-top: 0.25rem;
}
.footer__updated {
    position: absolute;
    right: 12rem;
    bottom: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #7f7e94;
}
.footer__data { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__data ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; padding: 0; margin: 0; }
.footer__link {
    font-family: 'Inter', sans-serif; font-size: 0.875rem;
    color: #8c8b9e; text-decoration: none;
    transition: color 0.3s;
}
.footer__link:hover { color: #c0c1ff; }
.footer__social {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.25rem; height: 2.25rem;
    border-radius: 50%;
    border: 1px solid rgba(192,193,255,0.15);
    color: #908fa0; text-decoration: none;
    transition: border-color 0.3s, color 0.3s;
    margin-right: 1rem;
}
.footer__social:hover { border-color: #c0c1ff; color: #c0c1ff; }

/* =====================
   NAV BALL (unchanged logic)
   ===================== */
.nav-ball {
    position: fixed;
    bottom: 4rem;
    right: 10rem;
    width: 3.25rem; height: 3.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #c0c1ff, #4cd7f6);
    display: flex; align-items: center; justify-content: center;
    color: #1000a9;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 500;
    box-shadow: 0 0 24px rgba(192,193,255,0.35), 0 4px 16px rgba(0,0,0,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
    touch-action: none;
}
.nav-ball:hover { transform: scale(1.1); box-shadow: 0 0 36px rgba(192,193,255,0.55); }
.nav-ball.nb-open { transform: rotate(90deg) scale(1.08); }
.nav-ball.nav-ball--dragging { transition: none; cursor: grabbing; }
@keyframes nb-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.nav-ball.nb-switching i { animation: nb-spin 0.35s ease; }

.nav-ball-item {
    position: fixed;
    z-index: 499;
    display: flex; align-items: center; gap: 0.4rem;
    background: rgba(23,31,51,0.97);
    color: #dae2fd;
    border: 1px solid rgba(192,193,255,0.25);
    border-radius: 9999px;
    padding: 0.45rem 0.9rem 0.45rem 0.6rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem; font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) translate(0px, 0px) scale(0.6);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
    white-space: nowrap;
    user-select: none;
}
.nav-ball-item i { font-size: 1rem; color: #4cd7f6; }
.nav-ball-item.nb-show {
    opacity: 1; pointer-events: auto;
    transform: translate(-50%, -50%) translate(var(--x), var(--y)) scale(1);
}
.nav-ball-item:hover { background: rgba(49,57,77,0.97); border-color: #4cd7f6; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1024px) {
    .skills__grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .home__img-ring { width: 280px; height: 280px; }
}
@media (max-width: 768px) {
    .bd-grid { padding: 0 1.25rem; }
    .about__container, .skills__container, .portfolio__container, .certificates__container, .contact__container { padding: 0 1.25rem; }
    .section { padding: 5rem 0; }
    .home { height: auto; min-height: 0; padding: 5rem 0; }
    .about { height: auto; min-height: 0; padding: 5rem 0; display: block; }
    .home__container { flex-direction: column; min-height: auto; padding-top: 2rem; }
    .home__img-wrapper { position: relative; top: auto; right: auto; }
    .home__down { position: relative; left: auto; bottom: auto; transform: none; margin-top: 3rem; }
    .home__img-ring { width: 230px; height: 230px; }
    .about__avatar { width: 160px; height: 160px; }
    .about__grid { grid-template-columns: 1fr; }
    .skills__grid { grid-template-columns: 1fr; }
    .portfolio__grid { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: 1fr; }
    .contact__wrapper { grid-template-columns: 1fr; padding: 1.5rem; }
    .contact__inputs { grid-template-columns: 1fr; }
    .footer__container { flex-direction: column; align-items: flex-start; }
    .nav { padding: 1rem 1.25rem; }
    .doodle-overlay i { font-size: 28px !important; }
}

