/* =====================================================
   GLOBAL
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --bg: #020b17;
    --bg2: #061426;
    --card: rgba(7, 25, 48, 0.72);

    --blue: #4d7fff;
    --blue-light: #6b9cff;
    --cyan: #4db8ff;

    --text: #f4f7ff;
    --muted: #9caac0;

    --border: rgba(83, 136, 222, 0.35);

    --shadow:
        0 0 35px rgba(38, 100, 220, 0.10);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;

    background:
        radial-gradient(
            circle at 70% 10%,
            rgba(28, 85, 180, 0.18),
            transparent 28%
        ),
        radial-gradient(
            circle at 10% 50%,
            rgba(12, 72, 155, 0.12),
            transparent 25%
        ),
        var(--bg);

    color: var(--text);

    line-height: 1.6;

    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

section {
    scroll-margin-top: 90px;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(2, 11, 23, 0.88);

    backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(65, 110, 190, 0.18);
}

.nav-container {
    max-width: 1180px;
    margin: auto;

    min-height: 70px;

    display: flex;
    align-items: center;
    gap: 30px;

    padding: 0 24px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;

    font-weight: 700;

    white-space: nowrap;
}

.logo {
    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    color: #6d91ff;

    font-size: 21px;
    font-weight: 800;

    background: rgba(49, 98, 225, 0.12);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 27px;

    margin-left: auto;
}

.nav-links a {
    color: #b9c4d7;

    font-size: 12px;

    position: relative;

    transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.nav-links a.active::after {
    content: "";

    position: absolute;

    height: 2px;
    width: 30px;

    left: 50%;
    bottom: -15px;

    transform: translateX(-50%);

    background: var(--blue);
}

.resume-btn {
    border: 1px solid #6686e8;

    padding: 10px 17px;

    border-radius: 25px;

    font-size: 11px;
    font-weight: 600;

    display: flex;
    align-items: center;
    gap: 8px;

    transition: 0.3s ease;

    white-space: nowrap;
}

.resume-btn:hover {
    background: rgba(73, 117, 235, 0.15);

    box-shadow:
        0 0 20px rgba(77, 127, 255, 0.25);
}


/* =====================================================
   HERO
===================================================== */

.hero {
    min-height: 365px;

    border-bottom: 1px solid rgba(66, 110, 180, 0.2);

    position: relative;
}

.hero-container {
    max-width: 1180px;

    min-height: 365px;

    margin: auto;

    padding: 35px 24px 0;

    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;
}

.hero-content {
    position: relative;

    z-index: 5;

    padding-bottom: 28px;
}

.hello {
    color: #eef3ff;

    font-size: 15px;

    margin-bottom: 1px;
}

.hero h1 {
    font-size: clamp(44px, 5vw, 61px);

    line-height: 1.05;

    letter-spacing: -2px;

    font-weight: 800;

    margin-bottom: 7px;
}

.hero h1 span {
    color: var(--blue);
}

.hero h2 {
    font-size: 22px;

    margin-bottom: 5px;
}

.hero-description {
    color: var(--muted);

    max-width: 470px;

    font-size: 14px;

    line-height: 1.65;

    margin-bottom: 18px;
}


/* TECHNOLOGY PILLS */

.tech-pills {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    max-width: 490px;

    margin-bottom: 18px;
}

.tech-pills span {
    background: rgba(18, 40, 70, 0.75);

    border: 1px solid rgba(70, 111, 173, 0.24);

    border-radius: 18px;

    padding: 5px 11px;

    color: #c9d3e5;

    font-size: 11px;

    display: flex;
    align-items: center;
    gap: 7px;
}

.tech-pills i {
    color: #4d8fff;

    font-size: 13px;
}


/* HERO BUTTONS */

.hero-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 17px;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 38px;

    padding: 0 17px;

    border-radius: 8px;

    font-size: 11px;

    font-weight: 600;

    transition: 0.3s ease;
}

.primary-btn {
    background:
        linear-gradient(
            135deg,
            #3569e8,
            #6595ff
        );

    box-shadow:
        0 7px 25px rgba(55, 102, 230, 0.23);
}

.primary-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 30px rgba(55, 102, 230, 0.35);
}

.secondary-btn {
    border: 1px solid #5579d9;

    color: #e4ebff;
}

.secondary-btn:hover {
    background: rgba(67, 111, 225, 0.12);
}


/* SOCIAL */

.social-links {
    display: flex;

    gap: 23px;
}

.social-links a {
    color: #8495b2;

    font-size: 11px;

    display: flex;
    align-items: center;
    gap: 7px;

    transition: 0.25s ease;
}

.social-links a:hover {
    color: #6e9aff;
}


/* HERO IMAGE */

.hero-image-area {
    height: 365px;

    position: relative;

    display: flex;

    align-items: flex-end;
    justify-content: center;
}

.hero-glow {
    position: absolute;

    width: 410px;
    height: 410px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(40, 105, 255, 0.34),
            rgba(21, 68, 166, 0.14) 42%,
            transparent 68%
        );

    filter: blur(5px);

    bottom: -100px;
}

.hero-glow::after {
    content: "";

    position: absolute;

    inset: 35px;

    border-radius: 50%;

    border: 1px solid rgba(74, 127, 255, 0.25);
}

.profile-image {
    position: relative;

    z-index: 4;

    width: min(440px, 90%);

    height: 420px;

    object-fit: contain;

    object-position: bottom center;

    align-self: flex-end;

    filter:
        drop-shadow(
            0 15px 30px rgba(0, 0, 0, 0.35)
        );
}


/* DECORATIONS */

.tech-decoration {
    position: absolute;

    z-index: 3;

    width: 45px;
    height: 45px;

    border: 2px solid rgba(72, 134, 255, 0.85);

    border-radius: 12px;

    color: #5993ff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 21px;

    box-shadow:
        0 0 25px rgba(46, 104, 237, 0.16);
}

.decoration-1 {
    top: 47px;
    right: 30px;

    border-radius: 50%;
}

.decoration-2 {
    top: 140px;
    right: 12px;
}

.decoration-3 {
    bottom: 125px;
    right: 15px;
}

.build-text {
    position: absolute;

    left: 80px;
    top: 73px;

    z-index: 5;

    color: #77a4ff;

    font-size: 16px;

    line-height: 1.4;

    transform: rotate(-5deg);

    font-family: "Inter", sans-serif;
}

.build-text span {
    display: block;
}

.arrow-line {
    font-size: 42px;

    line-height: 25px;

    margin-left: 40px;

    transform: rotate(15deg);
}


/* =====================================================
   SECTION COMMON
===================================================== */

.about-skills-section,
.projects-section,
.experience-section,
.education-section,
.github-section,
.contact-section {
    max-width: 1180px;

    margin: auto;

    padding: 32px 24px;
}

.section-grid {
    display: grid;

    grid-template-columns: 0.75fr 1.25fr;

    gap: 35px;
}

.section-heading {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 20px;
}

.section-heading h2 {
    font-size: 18px;

    font-weight: 700;
}

.section-number {
    color: #4d85f7;

    font-size: 18px;

    font-weight: 700;
}


/* =====================================================
   ABOUT
===================================================== */

.about-section {
    padding-right: 25px;

    border-right: 1px solid rgba(70, 111, 170, 0.25);
}

.about-section > p {
    color: #a9b6ca;

    font-size: 12px;

    line-height: 1.75;

    margin-bottom: 8px;
}

.about-details {
    display: flex;

    flex-wrap: wrap;

    gap: 15px 25px;

    margin-top: 22px;
}

.about-details div {
    color: #abb8cb;

    font-size: 11px;

    display: flex;
    align-items: center;

    gap: 8px;
}

.about-details i {
    color: #568cff;

    font-size: 14px;
}


/* =====================================================
   SKILLS
===================================================== */

.skills-grid {
    display: grid;

    grid-template-columns: repeat(6, 1fr);

    gap: 12px;
}

.skill-card {
    background:
        linear-gradient(
            145deg,
            rgba(12, 38, 70, 0.72),
            rgba(5, 23, 44, 0.6)
        );

    border: 1px solid var(--border);

    border-radius: 8px;

    padding: 12px;

    box-shadow: var(--shadow);

    grid-column: span 3;
}

.skill-card:nth-child(1) {
    grid-column: span 4;
}

.skill-card:nth-child(2) {
    grid-column: span 2;
}

.skill-card h3 {
    color: #c8d4e8;

    font-size: 10px;

    font-weight: 500;

    margin-bottom: 12px;
}

.skill-items {
    display: flex;

    flex-wrap: wrap;

    gap: 15px;
}

.skill-items div {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 5px;

    color: #aebbd0;

    font-size: 9px;

    min-width: 35px;
}

.skill-items i {
    color: #5d8fff;

    font-size: 19px;
}


/* =====================================================
   PROJECTS
===================================================== */

.projects-section {
    border-top: 1px solid rgba(70, 111, 170, 0.2);
}

.section-title-row {
    display: flex;

    justify-content: space-between;

    align-items: center;
}

.view-all {
    color: #6493ff;

    font-size: 11px;

    display: flex;
    align-items: center;
    gap: 8px;
}

.projects-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 14px;
}

.project-card {
    background:
        linear-gradient(
            160deg,
            rgba(8, 29, 54, 0.8),
            rgba(4, 19, 37, 0.7)
        );

    border: 1px solid rgba(73, 126, 213, 0.38);

    border-radius: 8px;

    padding: 10px;

    min-height: 300px;

    display: flex;
    flex-direction: column;

    transition: 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);

    border-color: #477ee4;

    box-shadow:
        0 15px 35px rgba(0, 59, 180, 0.18);
}

.project-visual {
    height: 95px;

    border: 1px solid rgba(61, 112, 205, 0.32);

    border-radius: 8px;

    background:
        radial-gradient(
            circle,
            rgba(37, 94, 187, 0.17),
            transparent 70%
        );

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    color: #5791ff;

    margin-bottom: 13px;
}

.project-visual .big-icon {
    font-size: 32px;
}

.project-visual i {
    font-size: 25px;
}

.architecture {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 4px;

    max-width: 170px;
}

.architecture span {
    border: 1px solid rgba(79, 133, 232, 0.35);

    padding: 5px 2px;

    text-align: center;

    font-size: 7px;

    border-radius: 3px;

    color: #a9c2ee;
}

.project-card h3 {
    font-size: 12px;

    margin-bottom: 7px;
}

.project-card p {
    color: #8999b0;

    font-size: 9px;

    line-height: 1.6;

    margin-bottom: 11px;
}

.project-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 5px;

    margin-top: auto;

    margin-bottom: 12px;
}

.project-tags span {
    background: rgba(30, 75, 150, 0.3);

    border: 1px solid rgba(73, 125, 217, 0.25);

    color: #91b3ef;

    font-size: 8px;

    padding: 4px 7px;

    border-radius: 10px;
}

.project-link {
    color: #6394ff;

    font-size: 9px;

    display: flex;
    align-items: center;
    gap: 6px;
}


/* =====================================================
   EXPERIENCE
===================================================== */

.experience-section {
    border-top: 1px solid rgba(70, 111, 170, 0.2);
}

.experience-content {
    grid-column: span 1;
}

.experience-card {
    background:
        linear-gradient(
            150deg,
            rgba(9, 33, 62, 0.75),
            rgba(4, 19, 37, 0.7)
        );

    border: 1px solid var(--border);

    border-radius: 8px;

    padding: 15px;
}

.experience-header {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    padding-bottom: 12px;

    border-bottom: 1px solid rgba(80, 119, 174, 0.15);
}

.company-icon {
    width: 32px;
    height: 32px;

    border-radius: 8px;

    background: rgba(61, 110, 225, 0.15);

    color: #6193ff;

    display: flex;
    align-items: center;
    justify-content: center;
}

.experience-header h3 {
    font-size: 12px;
}

.experience-header p {
    color: #7fa1db;

    font-size: 10px;
}

.experience-date {
    margin-left: auto;

    color: #9caac0;

    font-size: 9px;

    text-align: right;
}

.experience-date small {
    line-height: 2.4;
}

.experience-project {
    padding-top: 13px;

    color: #a7b5ca;

    font-size: 9px;
}

.experience-project strong {
    color: #cad6e8;

    display: block;

    margin-bottom: 8px;
}

.experience-project ul {
    padding-left: 18px;
}

.experience-project li {
    margin-bottom: 5px;
}


/* =====================================================
   CERTIFICATIONS
===================================================== */

.certifications-section {
    grid-column: span 1;
}

.certification-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;
}

.certification-card {
    background:
        linear-gradient(
            145deg,
            rgba(11, 35, 63, 0.72),
            rgba(5, 21, 40, 0.65)
        );

    border: 1px solid var(--border);

    border-radius: 8px;

    padding: 13px;

    display: flex;

    gap: 10px;
}

.certificate-icon {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    border-radius: 50%;

    background: rgba(60, 108, 226, 0.15);

    color: #6090ff;

    display: flex;
    align-items: center;
    justify-content: center;
}

.certification-card h3 {
    font-size: 10px;

    line-height: 1.4;
}

.certification-card p,
.certification-card small {
    color: #8798b2;

    font-size: 8px;
}


/* =====================================================
   EDUCATION
===================================================== */

.education-section {
    border-top: 1px solid rgba(70, 111, 170, 0.2);
}

.education-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;
}

.education-card {
    background:
        linear-gradient(
            145deg,
            rgba(9, 34, 64, 0.7),
            rgba(4, 19, 36, 0.6)
        );

    border: 1px solid var(--border);

    border-radius: 8px;

    padding: 15px;

    display: flex;

    align-items: flex-start;

    gap: 13px;
}

.education-icon {
    width: 33px;
    height: 33px;

    flex-shrink: 0;

    border-radius: 8px;

    color: #6092ff;

    background: rgba(63, 111, 223, 0.13);

    display: flex;
    align-items: center;
    justify-content: center;
}

.education-content h3 {
    font-size: 11px;
}

.education-content p {
    color: #9eacc0;

    font-size: 9px;
}

.education-description {
    margin-top: 6px;

    line-height: 1.5;
}

.education-meta {
    margin-left: auto;

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 6px;

    color: #899ab2;

    font-size: 8px;

    white-space: nowrap;
}


/* =====================================================
   GITHUB
===================================================== */

.github-section {
    border-top: 1px solid rgba(70, 111, 170, 0.2);
}

.github-card {
    border: 1px solid var(--border);

    background:
        linear-gradient(
            145deg,
            rgba(7, 29, 54, 0.72),
            rgba(3, 17, 34, 0.65)
        );

    border-radius: 8px;

    padding: 15px;
}

.github-profile {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 15px;
}

.github-avatar {
    width: 30px;
    height: 30px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #315dce,
            #73a0ff
        );

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 9px;

    font-weight: 700;
}

.github-profile strong {
    display: block;

    font-size: 10px;
}

.github-profile span {
    color: #7e90aa;

    font-size: 8px;
}

.contribution-placeholder {
    overflow: hidden;

    padding: 7px 0;
}

.months {
    display: grid;

    grid-template-columns: repeat(12, 1fr);

    color: #72839e;

    font-size: 7px;

    margin-bottom: 7px;

    padding-left: 20px;
}

.activity-grid {
    display: grid;

    grid-template-columns: repeat(24, 1fr);

    gap: 3px;

    max-width: 700px;
}

.activity-grid span {
    width: 100%;

    aspect-ratio: 1;

    border-radius: 2px;

    background: rgba(38, 104, 78, 0.55);
}

.activity-grid span:nth-child(3n) {
    background: rgba(48, 145, 105, 0.65);
}

.activity-grid span:nth-child(5n) {
    background: rgba(68, 185, 132, 0.8);
}

.github-button {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-top: 15px;

    color: #6795ff;

    font-size: 10px;
}


/* =====================================================
   CONTACT
===================================================== */

.contact-section {
    border-top: 1px solid rgba(70, 111, 170, 0.2);
}

.contact-content {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.contact-content p {
    color: #9baac0;

    font-size: 10px;

    margin-bottom: 13px;
}

.contact-info {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.contact-info a,
.contact-info span {
    color: #99a9bf;

    font-size: 10px;

    display: flex;
    align-items: center;
    gap: 9px;
}

.contact-info i {
    color: #5c90ff;
}

.contact-socials {
    display: flex;

    gap: 18px;

    margin-top: 12px;
}

.contact-socials a {
    color: #8091ab;

    font-size: 10px;

    display: flex;
    gap: 6px;
}

.contact-resume {
    min-width: 150px;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    min-height: 75px;

    border-top: 1px solid rgba(68, 105, 158, 0.2);

    max-width: 1180px;

    margin: auto;

    padding: 0 24px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: #7788a2;

    font-size: 9px;
}

.footer-left {
    display: flex;

    align-items: center;

    gap: 10px;
}

.footer-logo {
    color: #568cff;

    font-size: 19px;

    font-weight: 800;
}

.footer-right {
    color: #5575b8;

    font-style: italic;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1000px) {

    .nav-links {
        display: none;
    }

    .nav-container {
        justify-content: space-between;
    }

    .hero-container {
        grid-template-columns: 1fr 0.8fr;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-grid {
        grid-template-columns: 1fr;
    }

    .about-section {
        border-right: none;

        border-bottom: 1px solid rgba(70, 111, 170, 0.25);

        padding-right: 0;

        padding-bottom: 25px;
    }

    .skill-card,
    .skill-card:nth-child(1),
    .skill-card:nth-child(2) {
        grid-column: span 3;
    }

}


@media (max-width: 700px) {

    .nav-resume {
        display: none;
    }

    .nav-container {
        min-height: 62px;
    }

    .hero-container {
        grid-template-columns: 1fr;

        padding-top: 40px;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        text-align: center;

        padding-bottom: 10px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .tech-pills,
    .hero-buttons,
    .social-links {
        justify-content: center;
    }

    .hero-image-area {
        height: 370px;
    }

    .profile-image {
        width: 350px;
    }

    .build-text {
        left: 30px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skill-card,
    .skill-card:nth-child(1),
    .skill-card:nth-child(2) {
        grid-column: span 6;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }

    .certification-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        flex-direction: column;

        align-items: flex-start;
    }

    .contact-resume {
        align-self: flex-start;
    }

    footer {
        flex-direction: column;

        justify-content: center;

        gap: 8px;

        padding: 20px;
    }
}


@media (max-width: 450px) {

    .about-skills-section,
    .projects-section,
    .experience-section,
    .education-section,
    .github-section,
    .contact-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero h2 {
        font-size: 18px;
    }

    .profile-image {
        width: 310px;
    }

    .tech-decoration {
        display: none;
    }

    .experience-header {
        flex-wrap: wrap;
    }

    .experience-date {
        width: 100%;

        text-align: left;

        margin-left: 44px;
    }

    .education-card {
        flex-wrap: wrap;
    }

    .education-meta {
        width: 100%;

        align-items: flex-start;

        margin-left: 46px;
    }

}
