@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #0e2136;
    overflow-x: hidden;
}

/* ── Particle Canvas ── */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ── Header ── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 100px;
    background: rgba(255, 255, 255, .07);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    z-index: 100;
    animation: headerSlideDown .6s ease forwards;
}

@keyframes headerSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
    transition: .6s;
}
.header:hover::before { left: 100%; }

.logo {
    color: #fff;
    font-size: 25px;
    text-decoration: none;
    font-weight: 700;
    cursor: default;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff 40%, #00c3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar a {
    color: #fff;
    font-size: 18px;
    margin-left: 35px;
    text-decoration: none;
    transition: color .3s;
    position: relative;
}
.navbar a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00c3ff;
    transition: width .3s;
}
.navbar a:hover { color: #00c3ff; }
.navbar a:hover::after { width: 100%; }

#menu-icon {
    font-size: 36px;
    color: #fff;
    display: none;
    cursor: pointer;
}

/* ── Sections ── */
section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
    position: relative;
    z-index: 1;
}

/* ─────────────────────────────────────────
   HOME SECTION
───────────────────────────────────────── */
.home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    gap: 40px;
    flex-wrap: wrap;
}

/* ── Entrance Animation Classes ── */
.anim-fade,
.anim-slide {
    opacity: 0;
}

.anim-fade  { animation: fadeUp   .7s ease forwards; }
.anim-slide { animation: slideIn  .7s ease forwards; }

/* Stagger delays */
.anim-d1 { animation-delay: .2s; }
.anim-d2 { animation-delay: .45s; }
.anim-d3 { animation-delay: .7s; }
.anim-d4 { animation-delay: .9s; }
.anim-d5 { animation-delay: 1.1s; }
.anim-d6 { animation-delay: 1.3s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Home Content ── */
.home-content {
    flex: 1 1 400px;
}

.welcome-tag {
    display: inline-block;
    font-size: .85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #00c3ff;
    margin-bottom: .6rem;
    padding: .3rem .9rem;
    border: 1px solid rgba(0,195,255,.35);
    border-radius: 100px;
    background: rgba(0,195,255,.06);
}

.home-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: .5rem;
}

.highlight {
    background: linear-gradient(135deg, #00c3ff, #6300c6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Typing Effect ── */
.role-line {
    font-size: 1.3rem;
    color: rgba(255,255,255,.8);
    margin-bottom: 1rem;
    min-height: 2rem;
    display: flex;
    align-items: center;
    gap: 2px;
}
.cursor {
    display: inline-block;
    color: #00c3ff;
    font-weight: 300;
    animation: blink .75s step-end infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.bio {
    font-size: .95rem;
    color: rgba(255,255,255,.6);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ── Buttons ── */
.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn {
    padding: .75rem 1.8rem;
    border-radius: 50px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform .25s, box-shadow .25s;
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.15);
    opacity: 0;
    transition: opacity .25s;
}
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-3px); }

.btn-primary {
    background: linear-gradient(135deg, #00c3ff, #6300c6);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,195,255,.35);
}
.btn-primary:hover {
    box-shadow: 0 8px 28px rgba(0,195,255,.5);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.4);
}
.btn-outline:hover {
    border-color: #00c3ff;
    box-shadow: 0 4px 20px rgba(0,195,255,.2);
}

/* ── Socials ── */
.socials {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.social-link {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: .85rem;
    padding: .4rem .9rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.1);
    transition: color .25s, border-color .25s, transform .25s;
}
.social-link i { font-size: 1.1rem; }
.social-link:hover {
    color: #00c3ff;
    border-color: rgba(0,195,255,.4);
    transform: translateY(-2px);
}

/* ── Profile ── */
.anim-profile {
    animation: profileReveal .9s cubic-bezier(.22,1,.36,1) .5s both;
}
@keyframes profileReveal {
    from { opacity: 0; transform: scale(.85) translateY(30px); }
    to   { opacity: 1; transform: scale(1)   translateY(0); }
}

.profile {
    text-align: center;
    position: relative;
    display: inline-block;
    max-width: 400px;
    width: 100%;
}
.profile img {
    border-radius: 48px 0;
    display: block;
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
}

/* Spinning conic border */
@property --deg {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

.profile::before,
.profile::after {
    content: "";
    position: absolute;
    inset: -4px;
    background: conic-gradient(
        from var(--deg),
        #00c3ff,
        #4d0199,
        #6300c6,
        #00c3ff
    );
    border-radius: 48px 0;
    z-index: 0;
    animation: autoRotate 2s linear infinite;
}
.profile::after {
    filter: blur(14px);
    opacity: .7;
    z-index: 0;
}

@keyframes autoRotate {
    to { --deg: 360deg; }
}

/* Floating subtle pulse on profile */
.profile img {
    animation: floatProfile 4s ease-in-out infinite;
}
@keyframes floatProfile {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* ── Other pages ── */
.pages {
    min-height: 100vh;
    padding: 80px 10%;
    color: #fff;
    position: relative;
    z-index: 1;
}

/* ── Smooth scroll ── */
html { scroll-behavior: smooth; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 992px) {
    .header { padding: 1.25rem 4%; }
}

@media (max-width: 768px) {
    #menu-icon { display: block; }

    .navbar {
        position: fixed;
        top: 77px;
        left: 0;
        width: 100%;
        padding: .5rem 4%;
        background: rgba(14, 33, 54, .95);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255,255,255,.1);
        display: none;
        z-index: 99;
    }
    .navbar.active { display: block; }
    .navbar a {
        display: block;
        margin: 1.5rem 4%;
    }

    .home {
        flex-direction: column-reverse;
        text-align: center;
    }
    .btn-group,
    .socials {
        justify-content: center;
    }
}
