* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f8fc;
    color: #20263a;
    overflow-x: hidden;
}


/* ================= NAVBAR ================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 5%;

    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #e7eaf2;

    backdrop-filter: blur(15px);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 7px;
    color: #5264b8;
}

.navbar nav {
    display: flex;
    gap: 32px;
}

.navbar nav a {
    color: #424b63;
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s;
}

.navbar nav a:hover {
    color: #5264b8;
}

.resume-btn {
    padding: 11px 20px;

    border-radius: 25px;

    background: transparent;
    color: #5264b8;

    border: 1px solid #7180c7;

    cursor: pointer;
    transition: 0.3s;
}

.resume-btn:hover {
    background: #eef1ff;
    transform: translateY(-2px);
}


/* ================= HERO ================= */

.hero {
    min-height: calc(100vh - 80px);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 70px 7%;

    position: relative;

    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(115, 130, 210, 0.10),
            transparent 30%
        ),
        #f7f8fc;
}

.hero-content {
    width: 52%;
}

.hello {
    color: #6171bd;
    font-size: 18px;
    letter-spacing: 7px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(60px, 7vw, 105px);
    line-height: 0.9;
    font-weight: 900;
    color: #20263a;
}

.hero h1 span {
    color: #5969bd;
}

.hero h2 {
    margin-top: 40px;
    font-size: 35px;
    color: #30384e;
}

#typingText {
    border-right: 4px solid #6575c2;
    padding-right: 8px;
}

.intro {
    margin-top: 25px;
    max-width: 650px;

    font-size: 19px;
    line-height: 1.7;

    color: #687287;
}


/* ================= BUTTONS ================= */

.hero-buttons,
.contact-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.primary-btn,
.secondary-btn {
    display: inline-block;

    padding: 15px 25px;

    border-radius: 30px;

    text-decoration: none;
    font-weight: bold;

    transition: 0.3s;
}

.primary-btn {
    background: #5969bd;
    color: white;

    border: none;

    box-shadow: 0 8px 22px rgba(89, 105, 189, 0.15);
}

.primary-btn:hover {
    background: #4d5eaf;
    transform: translateY(-4px);
}

.secondary-btn {
    background: white;
    color: #5262ad;

    border: 1px solid #d7dcf0;
}

.secondary-btn:hover {
    background: #f0f2ff;
    transform: translateY(-4px);
}

.small {
    padding: 10px 16px;
    font-size: 13px;
}


/* ================= PILLS ================= */

.skill-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.skill-pills span,
.tags span {
    padding: 8px 14px;

    border: 1px solid #dce1f2;
    border-radius: 20px;

    color: #59678f;
    font-size: 13px;

    background: #f0f2fb;
}


/* ================= AI VISUAL ================= */

.avatar-area {
    width: 43%;

    display: flex;
    flex-direction: column;
    align-items: center;

    position: relative;
}

.ai-visual {
    width: 470px;
    height: 470px;

    max-width: 90vw;
    max-height: 90vw;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
}


/* ================= AI GLOW ================= */

.avatar-glow {
    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(99, 116, 194, 0.14),
            transparent 68%
        );

    filter: blur(15px);

    animation: glowPulse 4s ease-in-out infinite;
}


/* ================= AI CORE ================= */

.ai-core {
    width: 155px;
    height: 155px;

    border-radius: 50%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    position: relative;
    z-index: 5;

    background: white;

    border: 3px solid #aab5e2;

    box-shadow:
        0 0 25px rgba(91, 108, 186, 0.16),
        0 15px 40px rgba(55, 68, 120, 0.10);

    animation: avatarFloat 4s ease-in-out infinite;
}

.ai-core-symbol {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: #eef1ff;

    color: #5365b5;

    font-size: 22px;
    font-weight: 800;

    margin-bottom: 8px;
}

.ai-core span {
    color: #4f60af;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 2px;
}

.ai-core small {
    color: #8992a9;
    font-size: 9px;
    letter-spacing: 2px;
    margin-top: 3px;
}


/* ================= ORBITS ================= */

.orbit {
    position: absolute;

    border: 1px solid rgba(91, 107, 181, 0.22);

    border-radius: 50%;
}

.orbit-one {
    width: 300px;
    height: 300px;

    animation: orbitRotate 18s linear infinite;
}

.orbit-two {
    width: 410px;
    height: 410px;

    border-style: dashed;

    animation: orbitRotateReverse 25s linear infinite;
}


/* ================= AI NODES ================= */

.ai-node {
    position: absolute;

    width: 72px;
    height: 72px;

    border-radius: 18px;

    background: white;

    border: 1px solid #dce1f1;

    box-shadow:
        0 8px 25px rgba(60, 70, 120, 0.08);

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    z-index: 6;

    font-size: 24px;

    animation: nodeFloat 4s ease-in-out infinite;
}

.ai-node small {
    margin-top: 4px;

    color: #657096;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.node-python {
    top: 45px;
    left: 55px;
    animation-delay: 0s;
}

.node-ml {
    top: 45px;
    right: 55px;
    animation-delay: 0.8s;
}

.node-nlp {
    bottom: 45px;
    left: 55px;
    animation-delay: 1.5s;
}

.node-data {
    bottom: 45px;
    right: 55px;
    animation-delay: 2.2s;
}


/* ================= VOICE CARD ================= */

.voice-card {
    width: 360px;

    margin-top: -20px;

    padding: 20px;

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.96);

    border: 1px solid #dce1ef;

    box-shadow:
        0 15px 40px rgba(48, 60, 120, 0.10);

    position: relative;

    z-index: 10;
}

.assistant-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.assistant-title strong {
    color: #30384d;
}

.assistant-title small {
    display: block;
    color: #8991a5;
    margin-top: 5px;
}

.online-dot {
    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: #54b889;

    box-shadow: 0 0 8px rgba(84, 184, 137, 0.35);
}

.voice-card p {
    color: #687287;
    line-height: 1.5;
    margin: 15px 0;
}

.voice-card button {
    width: 100%;

    padding: 12px;

    border: none;
    border-radius: 25px;

    background: #5969bd;

    color: white;

    font-weight: bold;

    cursor: pointer;

    transition: 0.3s;
}

.voice-card button:hover {
    background: #4d5eaf;
    transform: translateY(-2px);
}


/* ================= SECTIONS ================= */

.section {
    min-height: 500px;

    padding: 100px 7%;

    position: relative;

    background: #f7f8fc;
}

.section:nth-of-type(even) {
    background: #ffffff;
}

.section-label {
    color: #6372bd;

    letter-spacing: 5px;

    font-size: 14px;

    margin-bottom: 15px;
}

.section h2 {
    font-size: 45px;

    color: #283147;

    margin-bottom: 45px;
}


/* ================= ABOUT ================= */

.about-grid {
    display: grid;

    grid-template-columns: 2fr 1fr;

    gap: 40px;
}

.about-text p {
    color: #697389;

    font-size: 18px;

    line-height: 1.8;

    margin-bottom: 20px;
}

.info-card,
.skill-card,
.project-card,
.timeline-card,
.certificate-card {

    background: #ffffff;

    border: 1px solid #e2e5ef;

    border-radius: 20px;

    padding: 28px;

    transition: 0.3s;

    box-shadow:
        0 8px 25px rgba(55, 65, 110, 0.035);
}

.info-card:hover,
.skill-card:hover,
.project-card:hover,
.timeline-card:hover,
.certificate-card:hover {

    transform: translateY(-6px);

    border-color: #aeb8e2;

    box-shadow:
        0 15px 35px rgba(70, 82, 145, 0.08);
}


/* ================= SKILLS ================= */

.skills-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.skill-card {
    font-size: 30px;
}

.skill-card h3 {
    color: #30394f;

    font-size: 20px;

    margin: 15px 0 8px;
}

.skill-card p {
    color: #7a8498;

    font-size: 14px;
}


/* ================= PROJECTS ================= */

.projects-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}

.project-card {
    min-height: 350px;
}

.project-icon {
    font-size: 38px;
}

.project-card h3 {
    color: #30394f;

    font-size: 22px;

    margin: 18px 0;
}

.project-card p {
    color: #727c90;

    line-height: 1.6;

    min-height: 100px;
}

.tags {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin: 20px 0;
}

.project-buttons {
    margin-top: 20px;
}


/* ================= EXPERIENCE ================= */

.timeline {
    display: grid;

    gap: 25px;

    max-width: 900px;
}

.timeline-card h3 {
    color: #30394f;

    margin-bottom: 12px;
}

.timeline-card p {
    color: #727c90;

    line-height: 1.7;
}


/* ================= CERTIFICATES ================= */

.certificate-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 25px;
}

.certificate-card {
    font-size: 30px;
}

.certificate-card h3 {
    color: #30394f;

    font-size: 20px;

    margin: 15px 0;
}

.certificate-card p {
    font-size: 14px;

    color: #7a8498;
}


/* ================= CONTACT ================= */

.contact-section {
    text-align: center;

    background: #ffffff;
}

.contact-section > p:not(.section-label) {
    max-width: 700px;

    margin: auto;

    color: #727c90;

    font-size: 18px;

    line-height: 1.7;
}

.contact-buttons {
    justify-content: center;
}

.contact-email {
    margin-top: 28px !important;

    color: #5262ad !important;

    font-size: 17px !important;

    font-weight: 600;
}


/* ================= FOOTER ================= */

footer {
    padding: 30px 7%;

    display: flex;

    justify-content: space-between;

    color: #8a92a5;

    border-top: 1px solid #e2e5ee;

    background: #f7f8fc;
}


/* ================= ANIMATIONS ================= */

@keyframes avatarFloat {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes glowPulse {

    0%, 100% {
        opacity: 0.45;
        transform: scale(0.96);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.04);
    }
}

@keyframes nodeFloat {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

@keyframes orbitRotate {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes orbitRotateReverse {

    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}


/* ================= SPEAKING ANIMATION ================= */

.avatar-area.speaking .ai-core {
    transform: scale(1.04);

    box-shadow:
        0 0 30px rgba(89, 105, 189, 0.25),
        0 15px 40px rgba(55, 68, 120, 0.12);

    animation:
        avatarFloat 4s ease-in-out infinite,
        aiSpeaking 0.55s infinite alternate;
}

.avatar-area.speaking .ai-core-symbol {
    background: #e4e8ff;
}

@keyframes aiSpeaking {

    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.08);
    }
}


/* ================= MOBILE ================= */

@media(max-width: 1000px) {

    .navbar nav {
        display: none;
    }

    .hero {
        flex-direction: column;

        text-align: center;

        gap: 70px;
    }

    .hero-content {
        width: 100%;
    }

    .avatar-area {
        width: 100%;
    }

    .about-grid,
    .skills-grid,
    .projects-grid,
    .certificate-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons,
    .skill-pills {
        justify-content: center;
    }

    .certificate-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    footer {
        flex-direction: column;

        gap: 10px;

        text-align: center;
    }
}


@media(max-width: 600px) {

    .navbar {
        height: auto;

        padding: 18px 5%;
    }

    .logo {
        font-size: 18px;
        letter-spacing: 4px;
    }

    .resume-btn {
        padding: 9px 13px;
        font-size: 12px;
    }

    .hero {
        padding: 60px 6%;
    }

    .hero h1 {
        font-size: clamp(48px, 15vw, 75px);
    }

    .hero h2 {
        font-size: 25px;
    }

    .intro {
        font-size: 16px;
    }

    .ai-visual {
        width: 340px;
        height: 340px;
    }

    .orbit-one {
        width: 220px;
        height: 220px;
    }

    .orbit-two {
        width: 300px;
        height: 300px;
    }

    .ai-core {
        width: 120px;
        height: 120px;
    }

    .ai-core-symbol {
        width: 50px;
        height: 50px;
        font-size: 17px;
    }

    .ai-node {
        width: 58px;
        height: 58px;
        font-size: 19px;
    }

    .node-python {
        top: 28px;
        left: 35px;
    }

    .node-ml {
        top: 28px;
        right: 35px;
    }

    .node-nlp {
        bottom: 28px;
        left: 35px;
    }

    .node-data {
        bottom: 28px;
        right: 35px;
    }

    .voice-card {
        width: min(360px, 90vw);
    }

    .section {
        padding: 75px 6%;
    }

    .section h2 {
        font-size: 35px;
    }

    .certificate-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons,
    .contact-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}