@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500&display=swap");

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    cursor: default;
}


.animated-area {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 0;
    background-color: #000;
    pointer-events: none;
}

.star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 2px #fff, 0 0 4px #fff; 
    animation: blink infinite ease-in-out;
    filter: brightness(1.5); 
}

@keyframes blink {
    0%, 100% { opacity: 0.2; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 4px #fff, 0 0 8px #fff; filter: brightness(2); }
}

.meteor {
    position: absolute;
    background-image: linear-gradient(to bottom, transparent, #fff);
    animation: shower 2s linear infinite;
    z-index: 1;
}

@keyframes shower {
    from { transform: rotate(50deg) translateY(-50%); opacity: 1; }
    to { transform: rotate(55deg) translateY(500%); opacity: 0; }
}


.main-nav {
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 2.5rem 5rem;
    position: relative;
    z-index: 10;
}

.welcome-link {
    font-size: 2.7rem;
    font-weight: 300;
    letter-spacing: 8px;
    color: #cecece !important;
    text-transform: uppercase;
    text-decoration: none;
}

.profile-container {
    display: flex;
    justify-content: center;

}

.profile-container {
    display: flex;
    justify-content: center;
    flex-grow: 1; 
    margin: 0; 
    padding: 20px 0;
}

.profile-img {
    width: 205px;        
    height: 205px;
    transform: translateY(-22px);
    border-radius: 50%;  
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transition: 0.4s ease;
}

.profile-img:hover {
    transform: scale(1.20); 
    border-color: #fff;
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.3);
}


.name-link h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 12px;
    color: #fff !important;
    margin-bottom: 20px;
    transition: 0.4s ease;
}

.name-link h1:hover {
    transform: scale(1.05);
    letter-spacing: 14px;
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 
                 0 0 30px rgba(255, 255, 255, 0.4),
                 0 0 50px rgba(255, 255, 255, 0.2);
    filter: brightness(1.2);
}

.social-title {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 8px;
    color: #fff;
    margin-top: 50px; 
    margin-bottom: 20px;
    text-transform: uppercase;
    text-align: center;
    opacity: 0.8;
}

a, a:visited { color: #cecece !important; text-decoration: none; transition: 0.3s; }
a:hover { color: #fff !important; }

.hero {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5;
}

.intro-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    min-height: 450px
}

.social-links { 
    list-style: none; 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
}

.social-links li {
    position: relative;
    display: inline-block;
}

.icon-circle {
    width: 70px; height: 70px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem;
    color: #fff !important;
}

.icon-circle::after {
    content: "USER: " attr(data-user); 
    
    font-family: inherit;
    background: rgba(0, 0, 0, 0.85); 
    border: 1px solid #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;  
    font-size: 1rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    backdrop-filter: blur(5px);
    pointer-events: none; 
}

.icon-circle::before {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: 0.3s ease;
}

.icon-circle:hover::after, 
.icon-circle:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.icon-circle:hover {
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.separator {
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.8rem;
    display: flex;
    justify-content: center;
    animation: elv-pulse 3s infinite;
}

@keyframes elv-pulse {
    0%, 100% { opacity: 0.5; filter: blur(1px); }
    50% { opacity: 1; filter: blur(0px); text-shadow: 0 0 10px #fff; }
    52% { opacity: 0.5; }
    54% { opacity: 1; }
}
.tagline {
    margin-top: 20px; 
    font-size: 1.3rem;
    font-weight: 400;
    color: #bbb;
    letter-spacing: 2px;
    text-align: center;
    line-height: 1.8;
}

.tagline a {
    font-weight: 500;
    color: #fff !important;
    text-decoration: underline !important;
}

@media (max-width: 768px) {
    .main-nav { padding: 1.5rem; }
    .name-link h1 { font-size: 2.8rem; letter-spacing: 8px; }
}
.tagline {
    margin-top: 20px; 
    font-size: 1.45rem;
    font-weight: 400;
    color: #bbb;
    letter-spacing: 2px;
    text-align: center;
    line-height: 1.8;
}

.separator {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


.separator.closed {
    transform: rotate(180deg);
}


.collapsible {
    max-height: 500px; 
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.5s ease;
    opacity: 1;
}


.collapsible.hidden {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
}

/* ===== Added: icon captions, certificate chips, mobile fixes ===== */

/* keep the hover tooltip anchored to the icon itself */
.icon-circle { position: relative; }

.social-links li { text-align: center; }

.icon-label {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.65);
}

/* slightly stronger icon circles and arrow */
.icon-circle {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.04);
}

.separator { color: rgba(255, 255, 255, 0.5); }

.icon-circle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

/* about block + certificate chips */
.collapsible { max-height: 3000px; }

.certs-title {
    margin: 28px 0 16px;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.certs {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 640px;
    margin: 0 auto;
    padding-bottom: 8px;
}

.certs li {
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 1rem;
    letter-spacing: 1px;
    color: #e2e2e2;
    white-space: nowrap;
}

.intro-content { padding: 0 20px; max-width: 100%; }

@media (max-width: 768px) {
    .welcome-link { font-size: 1.8rem; letter-spacing: 5px; }
    .name-link h1 { font-size: 2.4rem; letter-spacing: 8px; }
    .social-title { margin-top: 36px; letter-spacing: 5px; font-size: 1rem; }
    .social-links { gap: 14px; }
    .icon-circle { width: 60px; height: 60px; font-size: 1.3rem; }
    .tagline { font-size: 1.05rem; letter-spacing: 1px; }
    .certs-title { letter-spacing: 4px; font-size: 0.9rem; }
    .certs { gap: 8px; }
    .certs li { padding: 6px 14px; font-size: 0.9rem; }
}

/* ===== Added: skills section ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 60px;
    align-items: start;
    max-width: 920px;
    margin: 0 auto;
}

.skills-category {
    margin: 28px 0 14px;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: #e2e2e2;
}

/* skill names can be long: let them wrap instead of overflowing on small screens */
.skills .certs li {
    white-space: normal;
    text-align: center;
}

/* lead chips name the platform the chips after them belong to */
.certs li.lead {
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
}

@media (max-width: 768px) {
    .skills-grid { grid-template-columns: 1fr; row-gap: 10px; }
    .skills-category { font-size: 1.05rem; margin: 26px 0 12px; }
}

/* ===== Added: skills toggle (same arrow as the about block) ===== */
.skills-heading { margin: 30px 0 4px; }

.skills-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

.skills-toggle .separator { margin: 10px 0 0; }

.skills-toggle:focus-visible,
#toggle-arrow:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 8px;
    border-radius: 6px;
}

/* ===== Added: keep the three social icons centered =====
   each item has the same fixed width, so a wide label (TryHackMe)
   can no longer push its circle off-center */
.social-links { gap: 0; }

.social-links li {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90px;
}

@media (max-width: 768px) {
    .social-links li { width: 84px; }
}

/* ===== Added: one type scale for the whole site =====
   display  = WELCOME + name        heading = skill group titles
   label    = small uppercase titles body    = About line + chips
   letter-spacing: display / label / text (3 values only) */
:root {
    --fs-display: 2.8rem;   --ls-display: 10px;
    --fs-label: 1.05rem;    --ls-label: 6px;
    --fs-heading: 1.3rem;
    --fs-body: 1.2rem;      --ls-text: 1px;
    --fs-small: 0.9rem;
}

@media (max-width: 768px) {
    :root {
        --fs-display: 2.2rem;  --ls-display: 7px;
        --fs-label: 0.95rem;   --ls-label: 4px;
        --fs-heading: 1.15rem;
        --fs-body: 1rem;
        --fs-small: 0.85rem;
    }
}

.welcome-link,
.name-link h1 {
    font-size: var(--fs-display);
    font-weight: 300;
    letter-spacing: var(--ls-display);
}

.name-link h1:hover { letter-spacing: calc(var(--ls-display) + 2px); }

.social-title,
.certs-title {
    font-size: var(--fs-label);
    font-weight: 500;
    letter-spacing: var(--ls-label);
    color: rgba(255, 255, 255, 0.75);
    opacity: 1;
}

.skills-category {
    font-size: var(--fs-heading);
    font-weight: 500;
    letter-spacing: var(--ls-text);
}

.tagline {
    font-size: var(--fs-body);
    font-weight: 400;
    letter-spacing: var(--ls-text);
    color: #e2e2e2;
}

.certs li {
    font-size: var(--fs-body);
    letter-spacing: var(--ls-text);
}

.icon-label {
    font-size: var(--fs-small);
    letter-spacing: var(--ls-text);
}
.social-title {
    font-size: 1.4rem;
}
.tagline {
    font-size: 1.4rem;
}

.tagline strong {
    font-size: 1.4rem;
}
.skills-card:last-child .certs li {
    justify-self: center;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 14px;
    white-space: normal;
    text-align: center;
}

/* ===== Added: fixed top navigation (section jump links) ===== */
:root { --nav-h: 56px; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
}

body { padding-top: var(--nav-h); }

.top-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 1.5rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.top-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2.2rem;
}

.top-nav-logo {
    justify-self: start;
    font-size: var(--fs-heading);
    font-weight: 500;
    letter-spacing: 4px;
    color: #fff !important;
}

.top-nav-link {
    font-size: var(--fs-small);
    font-weight: 400;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    padding: 6px 2px;
    border-bottom: 1px solid transparent;
}

.top-nav-link.active {
    color: #fff !important;
    border-bottom-color: rgba(255, 255, 255, 0.65);
}

.top-nav-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .top-nav { display: flex; justify-content: space-between; padding: 0 0.9rem; }
    .top-nav-logo { letter-spacing: 2px; }
    .top-nav ul { gap: 0.9rem; }
    .top-nav-link { letter-spacing: 2px; font-size: 0.8rem; }
}

/* ===== Added: officially certified section ===== */
.verified {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 640px;
    margin: 0 auto;
    padding-bottom: 8px;
}

.verified-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 260px;
    padding: 18px 28px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    transition: 0.3s ease;
}

.verified-card:hover {
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.verified-name {
    font-size: var(--fs-heading);
    font-weight: 500;
    letter-spacing: var(--ls-label);
    color: #fff;
}

.verified-full {
    font-size: var(--fs-body);
    letter-spacing: var(--ls-text);
    color: #e2e2e2;
}

.verified-issuer {
    font-size: var(--fs-small);
    letter-spacing: var(--ls-text);
    color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 768px) {
    .verified-card { min-width: 0; width: 100%; padding: 16px 20px; }
}
