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

:root {
    --bg-color: #0b1120;
    --second-bg-color: #161e31;
    --text-color: #ededed;
    --main-color: #00eeff;
    /* Cyan cyan */
    --accent-color: #9d00ff;
    /* Purple */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: var(--font-body);
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    cursor: none;
    /* Hide default cursor */
}

/* Custom Cursor */
.cursor-dot {
    width: 5px;
    height: 5px;
    background-color: var(--main-color);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--main-color);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Scroll Animation Base */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.animate-show {
    opacity: 1;
    transform: translateY(0);
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--second-bg-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--main-color), var(--accent-color));
    border-radius: 5px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(11, 17, 32, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-heading);
}

.logo .highlight {
    color: var(--main-color);
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: .3s;
    font-weight: 500;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    text-shadow: 0 0 10px var(--main-color);
}

.menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
    cursor: pointer;
}

/* Home Section */
section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-content {
    flex: 1;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

span {
    color: var(--main-color);
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
    font-family: var(--font-heading);
    background: linear-gradient(45deg, var(--main-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-content p {
    font-size: 1.6rem;
    color: #cbd5e1;
    margin-bottom: 3rem;
    max-width: 500px;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 20px var(--main-color);
    transform: translateY(-5px);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 10px var(--main-color);
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
}

.btn:hover {
    box-shadow: 0 0 20px var(--main-color);
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
}

/* Headings */
.heading {
    text-align: center;
    font-size: 4.5rem;
    margin-bottom: 5rem;
    font-family: var(--font-heading);
}

.heading span {
    color: var(--main-color);
}

/* Skills */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.skill-category {
    background: var(--second-bg-color);
    padding: 3rem;
    border-radius: 2rem;
    text-align: center;
    border: 1px solid rgba(0, 238, 255, 0.1);
    transition: .5s;
}

.skill-category:hover {
    border-color: var(--main-color);
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(0, 238, 255, 0.1);
}

.skill-category h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-badges span {
    background: #1e293b;
    color: var(--main-color);
    padding: 0.8rem 1.5rem;
    font-size: 1.4rem;
    border-radius: 0.8rem;
    border: 1px solid var(--main-color);
    transition: 0.3s;
    cursor: default;
}

.skill-badges span:hover {
    background: var(--main-color);
    color: var(--bg-color);
}

/* Experience & Education */
.education-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.education-column {
    flex: 1 1 40rem;
}

.title {
    font-size: 2.5rem;
    margin: 0 0 1.5rem 2rem;
}

.education-box {
    border-left: .2rem solid var(--main-color);
}

.education-content {
    position: relative;
    padding-left: 2rem;
}

.education-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1.1rem;
    width: 2rem;
    height: 2rem;
    background: var(--main-color);
    border-radius: 50%;
}

.content {
    padding: 1.5rem;
    background: var(--second-bg-color);
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: 0.5s;
}

.content:hover {
    box-shadow: 0 0 20px var(--main-color);
    background: #0f2744;
}

.year {
    font-size: 1.5rem;
    color: var(--main-color);
    padding-bottom: .5rem;
}

.content h3 {
    font-size: 2rem;
}

.content p {
    font-size: 1.6rem;
    padding-top: .5rem;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--second-bg-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: var(--bg-color);
    border: 4px solid var(--main-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(left) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -16px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--second-bg-color);
    position: relative;
    border-radius: 6px;
    border: 1px solid var(--main-color);
    transition: 0.5s;
}

.timeline-content:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0, 238, 255, 0.2);
}

.timeline-date {
    color: var(--main-color);
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

/* Projects */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-box {
    background: var(--second-bg-color);
    padding: 3rem 2rem;
    border-radius: 2rem;
    text-align: center;
    border: 1px solid #1e293b;
    transition: 0.5s ease;
    position: relative;
    overflow: hidden;
}

.project-box:hover {
    border-color: var(--main-color);
    transform: translateY(-10px);
}

.project-box i {
    font-size: 5rem;
    color: var(--main-color);
    margin-bottom: 2rem;
}

.project-box h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.project-box p {
    font-size: 1.4rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.project-tech {
    color: var(--accent-color) !important;
    font-weight: 600;
    margin-bottom: 2rem;
}

.project-box a {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--main-color);
    color: var(--bg-color);
    border-radius: 2rem;
    font-weight: 600;
    transition: 0.3s;
}

.project-box a:hover {
    box-shadow: 0 0 10px var(--main-color);
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.cert-card {
    background: var(--second-bg-color);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border-left: 5px solid var(--accent-color);
    transition: 0.3s;
}

.cert-card:hover {
    background: #1e293b;
    transform: translateX(10px);
}

.cert-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.cert-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cert-card p {
    font-size: 1.4rem;
    color: #cbd5e1;
    line-height: 1.5;
}

/* Contact */
.contact {
    text-align: center;
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-item {
    background: var(--second-bg-color);
    padding: 2rem 4rem;
    border-radius: 1rem;
    border: 1px solid var(--main-color);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: 0.3s;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--main-color);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--main-color);
}

.contact-item span {
    font-size: 1.8rem;
    color: var(--text-color);
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}

.footer-text p {
    font-size: 1.6rem;
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem 1rem;
    background: var(--main-color);
    border-radius: .8rem;
    color: var(--bg-color);
    transition: .5s ease;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 10px var(--main-color);
}

/* Responsive */
@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .footer {
        padding: 2rem 3%;
    }
}

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

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home {
        flex-direction: column;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 17px;
        /* adjusted */
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }
}