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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
}

:root {
    --bg-color: #0b0b10;
    --second-bg-color: #13131a;
    --text-color: #ffffff;
    --main-color: #0ef;
    --accent-color: #9d00ff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --card-hover: rgba(255, 255, 255, 0.08);
}

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

body {
    background: var(--bg-color);
    color: var(--text-color);
    cursor: none; /* Custom cursor */
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 5px;
    height: 5px;
    background-color: var(--main-color);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--main-color);
}

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

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

.logo:hover {
    transform: scale(1.1);
}

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

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

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

.navbar a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--main-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s;
}

.navbar a:hover::after,
.navbar a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

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

/* Home */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.home-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.home-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
}

.home-content {
    max-width: 60rem;
    z-index: 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;
}

.home-content p {
    font-size: 1.6rem;
    margin: 2rem 0 4rem;
}

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

.social-media a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

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

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

/* About */
.about {
    background: var(--second-bg-color);
}

.heading {
    text-align: center;
    font-size: 4.5rem;
    margin-bottom: 4rem;
}

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.about-text {
    width: 100%;
    max-width: 800px;
}

.about-text h3 {
    font-size: 2.6rem;
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.6rem;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.skills-container {
    margin-top: 3rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}

.skill-category:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
    border-color: var(--main-color);
}

.skill-category h4 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--main-color);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tags span {
    background: rgba(0, 238, 255, 0.1);
    color: var(--main-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 1.4rem;
    border: 1px solid rgba(0, 238, 255, 0.2);
}

/* Experience */
.experience {
    background: var(--bg-color);
}

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

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

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

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

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

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--main-color);
    border-radius: 50%;
    position: absolute;
    top: 20px;
    right: -10px;
    z-index: 1;
    box-shadow: 0 0 10px var(--main-color);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-date {
    font-size: 1.4rem;
    color: var(--main-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.timeline-content {
    padding: 2rem;
    background: var(--second-bg-color);
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}

.timeline-content:hover {
    transform: scale(1.02);
    border-color: var(--main-color);
}

.timeline-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.6rem;
    color: #aaa;
    margin-bottom: 1rem;
}

.timeline-content p {
    font-size: 1.4rem;
    line-height: 1.5;
}

/* Projects */
.projects {
    background: var(--second-bg-color);
}

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

.project-box {
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem var(--bg-color);
    overflow: hidden;
    display: flex;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: 0.5s;
}

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

.project-info {
    padding: 3rem;
    width: 100%;
}

.project-info h4 {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.project-info p {
    font-size: 1.6rem;
    color: #ccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tech-stack span {
    font-size: 1.2rem;
    color: var(--main-color);
    background: rgba(0, 238, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 0.4rem;
}

/* Contact */
.contact {
    background: var(--bg-color);
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--second-bg-color);
    border-radius: 0.8rem;
    margin: 0.7rem 0;
    border: 1px solid var(--glass-border);
}

.contact form .input-box input {
    width: 49%;
}

.contact form textarea {
    resize: none;
}

.contact form .btn {
    margin-top: 2rem;
    cursor: pointer;
}

.contact-info {
    text-align: center;
    margin-top: 2rem;
}

.contact-info p {
    font-size: 1.8rem;
    margin: 1rem 0;
    color: var(--text-color);
}

.contact-info i {
    color: var(--main-color);
    margin-right: 1rem;
}

/* 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: 0.8rem;
    background: var(--main-color);
    border-radius: 0.8rem;
    transition: 0.5s ease;
}

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

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--second-bg-color);
}

/* Media Queries */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@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: 1px solid rgba(0, 0, 0, 0.2);
        box-shadow: 0 .5rem 1rem rgba(0, 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;
    }

    .home-bg img {
        opacity: 0.3;
    }

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

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

    .timeline-item::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

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

    .timeline-dot {
        left: 21px;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: 21px;
    }
}

@media (max-width: 617px) {
    .portfolio-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .contact form .input-box input {
        width: 100%;
    }
}
