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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0b1120;
    color: #f8fafc;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

section {
    padding: 100px 0;
}


/* =========================
   PARTICLES BG
========================= */

.particles {
    position: fixed;
    inset: 0;
    z-index: -1;

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(37, 99, 235, .18),
            transparent 25%
        ),

        radial-gradient(
            circle at 80% 10%,
            rgba(14, 165, 233, .15),
            transparent 25%
        ),

        radial-gradient(
            circle at 50% 90%,
            rgba(99, 102, 241, .12),
            transparent 25%
        );
}


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

header {
    position: fixed;

    width: 100%;

    top: 0;
    left: 0;

    z-index: 999;

    backdrop-filter: blur(14px);

    background: rgba(15, 23, 42, .85);

    border-bottom:
        1px solid rgba(255, 255, 255, .08);

    transition: .3s;
}

nav {
    height: 80px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.logo {
    font-size: 1.1rem;

    font-weight: 700;

    color: #fff;
}

.nav-links {
    display: flex;

    gap: 25px;
}

.nav-links a {
    color: #cbd5e1;

    text-decoration: none;

    transition: .3s;

    font-size: .9rem;
}

.nav-links a:hover {
    color: #38bdf8;
}

.nav-links a.active {
    color: #38bdf8;
}


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

.hero {
    padding-top: 180px;
}

.hero-content {
    display: grid;

    grid-template-columns:
        1fr 420px;

    gap: 60px;

    align-items: center;
}

.hero-badge {
    display: inline-block;

    background:
        rgba(59, 130, 246, .15);

    color: #60a5fa;

    padding: 10px 18px;

    border-radius: 999px;

    margin-bottom: 24px;

    font-size: .9rem;
}

.hero h1 {
    font-size: 4rem;

    line-height: 1.1;

    margin-bottom: 12px;
}

.hero h2 {
    font-size: 1.5rem;

    color: #38bdf8;

    margin-bottom: 20px;

    min-height: 36px;
}

.hero p {
    color: #cbd5e1;

    line-height: 1.8;

    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;

    gap: 15px;

    margin-bottom: 25px;
}

.btn {
    padding: 14px 28px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #0ea5e9
        );

    color: white;

    text-decoration: none;

    border-radius: 12px;

    font-weight: 600;

    transition: .3s;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-outline {
    padding: 14px 28px;

    border:
        1px solid rgba(255, 255, 255, .15);

    border-radius: 12px;

    text-decoration: none;

    color: white;

    transition: .3s;
}

.btn-outline:hover {
    background:
        rgba(255, 255, 255, .05);
}

.hero-social {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}

.hero-social a {
    padding: 10px 18px;

    background: #111827;

    border:
        1px solid rgba(255, 255, 255, .08);

    border-radius: 999px;

    text-decoration: none;

    color: #cbd5e1;

    transition: .3s;
}

.hero-social a:hover {
    border-color: #38bdf8;

    color: #38bdf8;
}


/* =========================
   PROFILE CARD
========================= */

.profile-card {
    background:
        rgba(15, 23, 42, .75);

    border:
        1px solid rgba(255, 255, 255, .08);

    border-radius: 24px;

    padding: 30px;

    text-align: center;

    backdrop-filter: blur(18px);
}

.profile-card img {
    width: 220px;

    height: 220px;

    object-fit: cover;

    border-radius: 50%;

    margin-bottom: 20px;

    border:
        4px solid #2563eb;
}

.profile-card h3 {
    margin-bottom: 10px;
}

.profile-card p {
    color: #94a3b8;
}

.profile-tags {
    margin-top: 20px;

    display: flex;

    justify-content: center;

    gap: 10px;

    flex-wrap: wrap;
}

.profile-tags span {
    background: #1e293b;

    padding: 8px 12px;

    border-radius: 999px;

    font-size: .8rem;
}


/* =========================
   SECTION TITLE
========================= */

.section-header {
    text-align: center;

    margin-bottom: 70px;
}

.section-header span {
    display: block;

    font-size: 2rem;

    font-weight: 800;

    color: #ffffff;

    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 1.2rem;

    font-weight: 400;

    color: #94a3b8;

    max-width: 700px;

    margin: auto;

    line-height: 1.7;
}


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

.about-grid {
    display: grid;

    grid-template-columns:
        1fr 420px;

    gap: 50px;
}

.about-text p {
    margin-bottom: 20px;

    color: #cbd5e1;

    line-height: 1.9;
}


/* =========================
   STATS
========================= */

.stats-grid {
    display: grid;

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

    gap: 20px;
}

.stat-card {
    background: #111827;

    padding: 25px;

    border-radius: 18px;

    text-align: center;

    border:
        1px solid rgba(255, 255, 255, .06);
}

.stat-card h3 {
    color: #38bdf8;

    font-size: 2rem;
}

.stat-card p {
    margin-top: 8px;

    color: #94a3b8;
}


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

.skills-wrapper {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(320px, 1fr));

    gap: 25px;
}

.skill-card {
    background: #111827;

    border:
        1px solid rgba(255, 255, 255, .06);

    border-radius: 20px;

    padding: 30px;
}

.skill-card h3 {
    margin-bottom: 20px;
}

.badges {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}

.badges span {
    background:
        rgba(59, 130, 246, .15);

    color: #facc15;

    border:
        1px solid rgba(250, 204, 21, .3);

    padding: 8px 14px;

    border-radius: 999px;

    font-size: .85rem;

    font-weight: 600;
}


/* =========================
   TOOL GRID
========================= */

.tool-grid {
    display: grid;

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

    gap: 15px;
}

.tool-item {
    background: #0f172a;

    border:
        1px solid rgba(255, 255, 255, .05);

    border-radius: 14px;

    padding: 14px;

    text-align: center;

    transition: .3s;
}

.tool-item:hover {
    transform: translateY(-5px);

    border-color: #2563eb;
}

.tool-item i {
    font-size: 1.8rem;

    margin-bottom: 8px;

    display: block;

    color: #60a5fa !important;
}

.tool-item span {
    display: block;

    font-size: .85rem;

    color: #cbd5e1;
}


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

.personal-projects-grid {
    display: grid;

    grid-template-columns: 1fr;

    gap: 30px;
}

.personal-project-card {
    background: #111827;

    border:
        1px solid rgba(56, 189, 248, .18);

    border-radius: 24px;

    overflow: hidden;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    transition: .3s;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, .18);
}

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

    border-color: #2563eb;

    box-shadow:
        0 20px 45px rgba(37, 99, 235, .18);
}


/* =========================
   PERSONAL PROJECT MEDIA
========================= */

.personal-project-media {
    width: 100%;

    min-height: 650px;

    background: #020617;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;
}

.personal-project-media video {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: contain;

    background: #020617;
}


/* =========================
   PERSONAL PROJECT CONTENT
========================= */

.personal-project-content {
    padding: 40px;

    display: flex;

    flex-direction: column;

    justify-content: flex-start;
}

.personal-project-label {
    display: inline-block;

    width: max-content;

    padding: 7px 14px;

    margin-bottom: 16px;

    border-radius: 999px;

    background:
        rgba(59, 130, 246, .15);

    color: #60a5fa;

    border:
        1px solid rgba(96, 165, 250, .25);

    font-size: .8rem;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: .5px;
}

.personal-project-content h3 {
    color: #38bdf8;

    font-size: 1.7rem;

    line-height: 1.4;

    margin-bottom: 8px;
}

.personal-project-subtitle {
    color: #facc15 !important;

    font-size: .95rem !important;

    font-weight: 600;

    min-height: auto !important;

    margin-bottom: 20px !important;
}

.personal-project-content > p {
    color: #cbd5e1;

    line-height: 1.8;

    margin-bottom: 25px;
}

.personal-project-content > p strong {
    color: #f8fafc;

    font-weight: 700;
}


/* =========================
   PERSONAL PROJECT DETAILS GRID
========================= */

.personal-project-details-grid {
    display: grid;

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

    gap: 20px;

    margin-bottom: 22px;
}


/* =========================
   PERSONAL PROJECT DETAILS
========================= */

.personal-project-details {
    margin-bottom: 0;

    background:
        rgba(15, 23, 42, .55);

    border:
        1px solid rgba(255, 255, 255, .06);

    border-radius: 16px;

    padding: 20px;
}

.personal-project-details h4 {
    color: #38bdf8;

    font-size: 1rem;

    margin-bottom: 14px;
}

.personal-project-details ul {
    margin-left: 18px;

    padding: 0;
}

.personal-project-details li {
    color: #cbd5e1;

    font-size: .85rem;

    line-height: 1.6;

    margin-bottom: 6px;
}


/* =========================
   PERSONAL PROJECT BADGES
========================= */

.personal-project-badges {
    margin-top: auto;

    margin-bottom: 20px;

    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.personal-project-badges span {
    white-space: nowrap;

    font-size: .75rem;

    padding: 6px 10px;
}


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

.projects-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(360px, 1fr));

    gap: 30px;

    align-items: stretch;
}

.project-card {
    background: #111827;

    border-radius: 24px;

    overflow: hidden;

    border:
        1px solid rgba(255, 255, 255, .06);

    transition: .3s;

    display: flex;

    flex-direction: column;

    height: 100%;
}

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

.project-media {
    width: 100%;

    height: 240px;

    overflow: hidden;

    background: #000;

    display: flex;

    align-items: center;

    justify-content: center;
}


/* =========================
   PROJECT VIDEO
========================= */

.project-media video {
    width: 100%;

    height: 100%;

    object-fit: contain;

    display: block;

    background: #000;
}


/* =========================
   PROJECT IMAGE
========================= */

.project-media img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}

.project-content {
    padding: 20px;

    display: flex;

    flex-direction: column;

    flex: 1;
}

.project-content h3 {
    margin-bottom: 12px;

    font-size: 1.15rem;

    line-height: 1.4;

    font-weight: 700;

    height: 28px;

    color: #38bdf8;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.project-content p {
    color: #cbd5e1;

    line-height: 1.7;

    min-height: 90px;

    margin-bottom: 0;
}

.project-content ul {
    margin-left: 18px;

    margin-top: 0;

    margin-bottom: 20px;

    min-height: 120px;

    flex: 1;
}

.project-content li {
    margin-bottom: 6px;

    line-height: 1.5;

    color: #cbd5e1;

    font-size: .9rem;
}

.project-content .badges {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: auto;

    margin-bottom: 15px;

    overflow-x: auto;
}

.project-content .badges span {
    white-space: nowrap;

    font-size: .75rem;

    padding: 6px 10px;
}


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

.github-block {
    width: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 14px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #3b82f6
        );

    color: white;

    text-decoration: none;

    font-weight: 600;

    border-radius: 12px;

    transition: .3s;
}

.github-block:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 25px
        rgba(37, 99, 235, .35);
}


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

.cert-grid {
    display: grid;

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

    gap: 30px;

    align-items: stretch;
}

.cert-card {
    background: #111827;

    border:
        1px solid rgba(255, 255, 255, .06);

    border-radius: 24px;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    transition: .3s;

    height: 100%;
}

.cert-card:hover {
    transform: translateY(-6px);

    border-color: #2563eb;

    box-shadow:
        0 15px 35px
        rgba(37, 99, 235, .15);
}


/* =========================
   CERTIFICATION IMAGE
========================= */

.cert-image-wrapper {
    width: 100%;

    height: 220px;

    background: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 12px;

    overflow: hidden;
}

.cert-image {
    width: 100%;

    height: 100%;

    object-fit: contain;

    display: block;
}


/* =========================
   CERTIFICATION CONTENT
========================= */

.cert-content {
    padding: 25px;

    display: flex;

    flex-direction: column;

    flex: 1;
}

.cert-label {
    display: inline-block;

    width: max-content;

    padding: 6px 12px;

    margin-bottom: 14px;

    border-radius: 999px;

    background:
        rgba(59, 130, 246, .15);

    border:
        1px solid rgba(96, 165, 250, .25);

    color: #60a5fa;

    font-size: .72rem;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: .4px;
}

.cert-content h3 {
    font-size: 1.25rem;

    font-weight: 700;

    color: #38bdf8;

    line-height: 1.45;

    margin-bottom: 8px;
}

.cert-provider {
    color: #94a3b8;

    margin-bottom: 18px;

    font-size: .9rem;
}

.cert-content ul {
    margin-left: 20px;

    margin-bottom: 25px;

    flex: 1;
}

.cert-content li {
    color: #cbd5e1;

    margin-bottom: 9px;

    line-height: 1.55;

    font-size: .85rem;
}

.cert-btn {
    display: flex;

    justify-content: center;

    align-items: center;

    width: 100%;

    text-align: center;

    padding: 13px;

    border-radius: 12px;

    text-decoration: none;

    color: white;

    font-weight: 600;

    font-size: .9rem;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #0ea5e9
        );

    transition: .3s;
}

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

    box-shadow:
        0 8px 20px
        rgba(37, 99, 235, .25);
}


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

.contact-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(260px, 1fr));

    gap: 25px;
}

.contact-card {
    background: #111827;

    border:
        1px solid rgba(255, 255, 255, .06);

    border-radius: 20px;

    padding: 30px 25px;

    text-decoration: none;

    text-align: center;

    transition: .3s;
}

.contact-card:hover {
    transform: translateY(-6px);

    border-color: #2563eb;

    box-shadow:
        0 15px 35px
        rgba(37, 99, 235, .18);
}

.contact-icon {
    width: 70px;

    height: 70px;

    margin:
        auto auto 18px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #0ea5e9
        );

    color: white;

    font-size: 1.8rem;
}

.contact-card h3 {
    color: white;

    font-size: 1.2rem;

    margin-bottom: 10px;

    font-weight: 700;
}

.contact-card p {
    color: #94a3b8;

    font-size: .95rem;

    line-height: 1.6;

    word-break: break-word;
}


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

footer {
    padding: 40px 0;

    border-top:
        1px solid rgba(255, 255, 255, .06);

    text-align: center;
}

footer p {
    color: #94a3b8;
}


/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;

    border-radius: 999px;
}


/* =========================
   TABLET
========================= */

@media (max-width: 992px) {

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

        text-align: center;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .hero-social {
        justify-content: center;
    }

    .profile-card {
        max-width: 400px;

        margin: auto;
    }

    .personal-project-card {
        grid-template-columns: 1fr;
    }

    .personal-project-media {
        min-height: 400px;

        height: 400px;
    }

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

}


/* =========================
   CERTIFICATION TABLET
========================= */

@media (max-width: 900px) {

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

}


/* =========================
   TABLET / MOBILE
========================= */

@media (max-width: 768px) {

    nav {
        flex-direction: column;

        height: auto;

        padding: 20px 0;

        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;

        justify-content: center;

        gap: 12px 18px;
    }

    .hero {
        padding-top: 160px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

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

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

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

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

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

    .section-header h2 {
        font-size: 2rem;
    }

    .personal-project-media {
        height: 300px;

        min-height: 300px;
    }

    .personal-project-content {
        padding: 30px;
    }

    .personal-project-content h3 {
        font-size: 1.4rem;
    }

    .personal-project-details-grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .cert-image-wrapper {
        height: 240px;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 480px) {

    .container {
        width: 92%;
    }

    section {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn,
    .btn-outline {
        width: 100%;

        text-align: center;
    }

    .project-content {
        padding: 20px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .project-media {
        height: 200px;
    }

    .tool-grid {
        grid-template-columns:
            1fr 1fr;

        gap: 10px;
    }

    .tool-item {
        padding: 12px;
    }

    .tool-item i {
        font-size: 1.4rem;
    }

    .tool-item span {
        font-size: .75rem;
    }

    .personal-project-media {
        height: 220px;

        min-height: 220px;
    }

    .personal-project-content {
        padding: 20px;
    }

    .personal-project-content h3 {
        font-size: 1.25rem;
    }

    .personal-project-details {
        padding: 16px;
    }

    .personal-project-details li {
        font-size: .85rem;
    }

    .cert-image-wrapper {
        height: 210px;
    }

    .cert-content {
        padding: 20px;
    }

    .cert-content h3 {
        font-size: 1.15rem;
    }

}