* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}

:root {
    --background: #08111f;
    --secondary-background: #0d1929;
    --card-background: #111f31;
    --primary: #38bdf8;
    --text: #f8fafc;
    --light-text: #94a3b8;
    --border: rgba(148, 163, 184, 0.15);
}

body {
    font-family: "Inter", sans-serif;
    background: var(--background);
    color: var(--text);
}

section {
    min-height: 100vh;
    padding: 110px 8%;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(8, 17, 31, 0.92);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
}

.logo span,
.section-heading span,
footer span {
    color: var(--primary);
}

.navbar {
    display: flex;
    gap: 20px;
}

.navbar a {
    color: var(--light-text);
    font-size: 13px;
    font-weight: 500;
    transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--primary);
}

#menu-icon {
    display: none;
    font-size: 25px;
    cursor: pointer;
}

.home {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 70px;
}

.small-heading,
.section-heading p {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
}

.home-content h1 {
    font-size: 65px;
    margin: 15px 0;
}

.home-content h2 {
    color: var(--light-text);
    font-weight: 500;
    margin-bottom: 20px;
}

.home-content h3 {
    font-size: 22px;
    margin-bottom: 25px;
}

.home-content h3 span {
    color: var(--primary);
}

.home-content > p,
.about-content > p,
.contact-content > p {
    color: var(--light-text);
    line-height: 1.9;
    margin-bottom: 15px;
}

.home-buttons {
    display: flex;
    gap: 18px;
    margin-top: 35px;
}

.primary-btn,
.secondary-btn {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.primary-btn {
    background: var(--primary);
    color: var(--background);
}

.secondary-btn {
    border: 1px solid var(--border);
    color: var(--text);
}

.primary-btn:hover,
.secondary-btn:hover {
    transform: translateY(-4px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--light-text);
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.code-card,
.info-card,
.highlight-card,
.education-card,
.skill-card,
.project-card,
.timeline-card,
.certificate-card,
.contact-card {
    background: var(--card-background);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.code-card {
    overflow: hidden;
}

.code-header {
    padding: 15px 20px;
    background: #0a1524;
    display: flex;
    align-items: center;
    gap: 25px;
}

.dots {
    display: flex;
    gap: 7px;
}

.dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--light-text);
}

.code-content {
    padding: 35px;
    font-family: monospace;
    line-height: 2;
    color: #cbd5e1;
}

.indent {
    padding-left: 25px;
}

.double-indent {
    padding-left: 50px;
}

.purple {
    color: #c084fc;
}

.green {
    color: #86efac;
}

.about,
.skills,
.experience,
.contact {
    background: var(--secondary-background);
}

.section-heading {
    text-align: center;
    margin-bottom: 70px;
}

.section-heading h2 {
    font-size: 45px;
    margin-top: 12px;
}

.about-container,
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.about-content h3,
.contact-content h3 {
    font-size: 30px;
    margin-bottom: 25px;
}

.about-info,
.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.info-card,
.highlight-card {
    padding: 25px;
}

.info-card h4,
.highlight-card i {
    color: var(--primary);
    margin-bottom: 12px;
}

.info-card p,
.highlight-card p {
    color: var(--light-text);
    line-height: 1.7;
}

.highlight-card,
.education-card,
.skill-card,
.project-card,
.certificate-card {
    transition: 0.3s;
}

.highlight-card:hover,
.education-card:hover,
.skill-card:hover,
.project-card:hover,
.certificate-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}


/* EDUCATION */

.education-container {
    max-width: 1100px;
    margin: auto;
}

.education-card {
    padding: 35px;
    display: flex;
    gap: 30px;
}

.main-education {
    margin-bottom: 25px;
}

.education-icon {
    min-width: 65px;
    width: 65px;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    font-size: 27px;
}

.education-content {
    width: 100%;
}

.education-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.education-top span {
    color: var(--primary);
    font-weight: 600;
}

.education-top strong {
    padding: 7px 13px;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
}

.education-content h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.education-content h4 {
    color: var(--primary);
    margin-bottom: 8px;
}

.education-content h5 {
    color: var(--light-text);
    font-size: 15px;
    margin-bottom: 20px;
}

.education-content p {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 12px;
}

.school-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}


/* TAGS */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tags span {
    padding: 8px 13px;
    background: rgba(56, 189, 248, 0.08);
    color: var(--primary);
    border-radius: 6px;
    font-size: 13px;
}


/* SKILLS */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.skill-card {
    padding: 35px;
}

.skill-card > i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 20px;
}

.skill-card h3 {
    margin-bottom: 20px;
}


/* PROJECTS */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.project-card {
    padding: 35px;
}

.project-icon {
    font-size: 30px;
    color: var(--primary);
    margin-bottom: 20px;
}

.project-card h3 {
    font-size: 23px;
    margin-bottom: 8px;
}

.project-card h4 {
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 18px;
}

.project-card p {
    color: var(--light-text);
    line-height: 1.8;
}

.project-link {
    display: inline-block;
    margin-top: 25px;
    color: var(--primary);
    font-weight: 600;
}

.project-link i {
    margin-left: 8px;
}


/* EXPERIENCE */

.timeline {
    max-width: 900px;
    margin: auto;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-left: 55px;
    margin-bottom: 35px;
}

.timeline-dot {
    position: absolute;
    left: 3px;
    top: 25px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
}

.timeline-card {
    padding: 30px;
}

.timeline-label {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.timeline-card h3 {
    margin: 15px 0 8px;
}

.timeline-card h4 {
    color: var(--light-text);
    margin-bottom: 18px;
}

.timeline-card p {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 10px;
}


/* CERTIFICATIONS */

.certification-intro {
    max-width: 750px;
    margin: -35px auto 50px;
    text-align: center;
}

.certification-intro p {
    color: var(--light-text);
    line-height: 1.8;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.certificate-card {
    position: relative;
    padding: 35px;
    overflow: hidden;
}

.certificate-number {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 55px;
    font-weight: 800;
    color: rgba(56, 189, 248, 0.06);
}

.certificate-icon {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 25px;
}

.certificate-card h3 {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.certificate-card h4 {
    color: var(--primary);
    margin-bottom: 18px;
}

.certificate-card p {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 25px;
}

.certificate-tag {
    display: inline-block;
    padding: 8px 13px;
    background: rgba(56, 189, 248, 0.08);
    color: var(--primary);
    border-radius: 6px;
    font-size: 12px;
}


/* CONTACT */

.contact-details {
    margin-top: 30px;
}

.contact-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.contact-box i {
    color: var(--primary);
    font-size: 22px;
}

.contact-box p {
    color: var(--light-text);
    margin-top: 5px;
}

.contact-card {
    padding: 50px;
    text-align: center;
    align-self: center;
}

.contact-card > i {
    font-size: 45px;
    color: var(--primary);
    margin-bottom: 25px;
}

.contact-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.contact-card p {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 30px;
}


/* FOOTER */

footer {
    text-align: center;
    padding: 50px 8%;
    background: var(--background);
}

footer h3 {
    font-size: 25px;
    margin-bottom: 15px;
}

footer p {
    color: var(--light-text);
    margin-bottom: 10px;
}

.copyright {
    font-size: 13px;
}


/* RESPONSIVE */

@media (max-width: 1100px) {

    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        padding: 25px 8%;
        background: var(--background);
    }

    .navbar.show {
        display: flex;
    }
}

@media (max-width: 1000px) {

    .home,
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .skills-grid,
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .school-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    section {
        padding: 100px 6%;
    }

    .home-content h1 {
        font-size: 45px;
    }

    .section-heading h2 {
        font-size: 36px;
    }

    .skills-grid,
    .projects-grid,
    .certifications-grid,
    .about-info,
    .about-highlights {
        grid-template-columns: 1fr;
    }

    .education-card {
        flex-direction: column;
    }

    .education-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .home-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}