* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-black: #0a0a0a;
    --secondary-black: #151515;
    --accent-pink: #ff2a6d;
    --accent-blue: #05d9e8;
    --light-pink: #ff7da5;
    --text-white: #f5f5f5;
    --text-gray: #b0b0b0;
    --card-bg: rgba(35, 35, 35, 0.6);
    --gradient: linear-gradient(135deg, var(--accent-pink), var(--accent-blue));
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 42, 109, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(5, 217, 232, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

a {
    text-decoration: none;
    color: var(--text-white);
    transition: all 0.3s ease;
}

nav a:hover,
.footer-nav a:hover {
    color: var(--accent-pink);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 70px;
    height: 5px;
    background: var(--gradient);
    border-radius: 10px;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background: transparent;
    border: 2px solid var(--accent-pink);
    color: var(--text-white);
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 42, 109, 0.3);
    border-color: transparent;
}

.btn:hover::before {
    left: 0;
}

/* Particle Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

header.sticky {
    padding: 10px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.logo span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    border-radius: 10px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    font-size: 1.05rem;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.close-menu {
    display: none;
}

/* Hero Section */
.hero {
    /* padding: auto 0px; */
    height: calc(100vh + 76.06px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.hero h1 span::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--accent-pink);
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }

    51%, 100% {
        opacity: 0;
    }
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--text-gray);
    max-width: 900px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-btn-secondary {
    border-color: var(--accent-blue);
}

.hero-btn-secondary::before {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    transition: all 0.4s ease;
    z-index: -1;
}

.social-icons a:hover {
    transform: translateY(-5px);
    border-color: transparent;
    color: white;
}

.social-icons a:hover::before {
    left: 0;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.scroll-down i {
    margin-top: 10px;
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* About Section */
.about {
    background: var(--secondary-black);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-img::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 3px solid var(--accent-pink);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.5;
}

.about-img::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
    border: 3px solid var(--accent-blue);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.5;
}

.about-img img {
    width: 100%;
    display: block;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-text h3 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.about-text p {
    margin-bottom: 25px;
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-box {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 5px;
}

.stat-text {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Education Section */
.experience {
    background: var(--primary-black);
    position: relative;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: var(--gradient);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 10px;
}

.timeline-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-img {
    transform: scale(1.03);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 25px;
    background: var(--card-bg);
    border-radius: 15px;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background: var(--accent-pink);
    border: 4px solid var(--primary-black);
    border-radius: 50%;
    top: 20px;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -13px;
}

.timeline-item:nth-child(even)::after {
    left: -13px;
}

.timeline-date {
    font-weight: 600;
    color: var(--accent-pink);
    margin-bottom: 10px;
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 42, 109, 0.1);
    border-radius: 20px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.skill-category {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 15px;
}

.skill-category h3 i {
    font-size: 1.8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    flex: 1;
    font-weight: 500;
}

.skill-bar {
    width: 60%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-level {
    height: 100%;
    background: var(--gradient);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.skill-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(-45deg,
            rgba(255, 255, 255, 0.2) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.2) 75%,
            transparent 75%,
            transparent);
    z-index: 1;
    background-size: 10px 10px;
    animation: move 2s linear infinite;
    overflow: hidden;
}

@keyframes move {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 50px;
    }
}

/* Certifications Section */
.certifications {
    background: var(--secondary-black);
    position: relative;
}

.certs-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.cert-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.cert-icon {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.cert-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.1;
}

.cert-icon img {
    /* max-width: 80%;
    max-height: 80%; */
    object-fit: contain;
    z-index: 1;
}

.cert-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cert-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.cert-provider {
    color: var(--accent-pink);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    font-size: 0.9rem;
}

.cert-date {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.cert-download {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--light-pink);
    transition: all 0.3s ease;
    font-weight: 500;
}

.cert-download:hover {
    color: var(--accent-pink);
    transform: translateX(5px);
}

/* Projects Section */
.projects {
    background: var(--primary-black);
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(45deg, transparent 49%, var(--accent-pink) 49%, var(--accent-pink) 51%, transparent 51%) repeat,
        linear-gradient(-45deg, transparent 49%, var(--accent-blue) 49%, var(--accent-blue) 51%, transparent 51%) repeat;
    background-size: 20px 20px;
    opacity: 0.03;
    pointer-events: none;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
    position: relative;
}

.project-line {
    display: flex;
    align-items: center;
    position: relative;
    min-height: 350px;
}

.project-line:nth-child(odd) {
    flex-direction: row;
}

.project-line:nth-child(even) {
    flex-direction: row-reverse;
}

.project-content-wrapper {
    flex: 1;
    padding: 30px;
    position: relative;
    z-index: 2;
}

.project-line:nth-child(odd) .project-content-wrapper {
    padding-right: 60px;
}

.project-line:nth-child(even) .project-content-wrapper {
    padding-left: 60px;
}

.project-visual {
    flex: 1;
    height: 350px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-line:hover .project-img {
    transform: scale(1.05);
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
}

.project-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-white);
    font-weight: 700;
}

.project-desc {
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.project-meta {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.project-date {
    color: var(--accent-pink);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-lang {
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.html-color {
    background-color: #e34c26;
}

.css-color {
    background-color: #563d7c;
}

.js-color {
    background-color: #f1e05a;
}

.php-color {
    background-color: #4F5D95;
}

.python-color {
    background-color: #3572A5;
}

.cpp-color {
    background-color: #f34b7d;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.project-tags span {
    background: rgba(255, 42, 109, 0.15);
    color: var(--light-pink);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.project-tags span:hover {
    background: rgba(255, 42, 109, 0.3);
    transform: translateY(-2px);
}

.project-actions {
    display: flex;
    gap: 15px;
}

.project-link {
    padding: 12px 25px;
    background: transparent;
    border: 1px solid var(--accent-pink);
    color: var(--text-white);
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    transition: all 0.4s ease;
    z-index: -1;
}

.project-link:hover {
    border-color: transparent;
}

.project-link:hover::before {
    left: 0;
}

.project-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 2px;
    background: var(--gradient);
    opacity: 0.3;
    z-index: 0;
}

.project-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-pink);
    z-index: 2;
    box-shadow: 0 0 0 8px rgba(255, 42, 109, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 42, 109, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 42, 109, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 42, 109, 0);
    }
}

/* GitHub Stats */
.github-stats {
    margin-top: 80px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: auto;
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.contact-item i {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-item-content p {
    color: var(--text-gray);
}

/* Footer */
footer {
    background: var(--secondary-black);
    padding: 60px 0 30px;
    text-align: center;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    font-size: 2.5rem;
    font-weight: 700;
}

.footer-logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav ul li a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.footer-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.footer-nav ul li a:hover::after {
    width: 100%;
}

.copyright {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-top: 20px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3.8rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after {
        left: 18px;
    }

    .timeline-item:nth-child(odd)::after {
        right: auto;
    }

    .project-line {
        flex-direction: column !important;
        gap: 40px;
    }

    .project-line:nth-child(odd) .project-content-wrapper,
    .project-line:nth-child(even) .project-content-wrapper {
        padding: 0;
    }

    .project-visual {
        width: 100%;
    }

    .project-line::before {
        display: none;
    }

    .project-line::after {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: var(--secondary-black);
        padding: 80px 20px 20px;
        transition: all 0.4s ease;
        z-index: 999;
        overflow-y: auto;
    }

    nav.active {
        right: 0;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
    }

    nav ul li {
        margin: 0;
    }

    nav ul li a {
        display: block;
        padding: 10px 0;
        font-size: 1.2rem;
    }

    .close-menu {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 28px;
        cursor: pointer;
        color: var(--accent-pink);
        z-index: 1000;
    }
}

@media (max-width: 768px) {
    nav {
        right: -300px;
        width: 300px;
        height: 100vh;
        padding: 80px 20px 20px;
        overflow-y: auto;
    }

    nav.active {
        right: 0;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
    }

    .close-menu {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 28px;
        cursor: pointer;
        color: var(--accent-pink);
        z-index: 1000;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .certs-container {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .project-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    nav {
        right: -300px;
        width: 300px;
        height: 100vh;
        padding: 80px 20px 20px;
        overflow-y: auto;
    }

    nav.active {
        right: 0;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
    }

    .close-menu {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 28px;
        cursor: pointer;
        color: var(--accent-pink);
        z-index: 1000;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .project-actions {
        flex-direction: column;
    }

    .project-link {
        justify-content: center;
    }

    .footer-nav ul {
        gap: 15px;
        flex-direction: column;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}


@media (max-width: 510px) {
    nav {
        right: -300px;
        width: 300px;
        height: 100vh;
        padding: 80px 20px 20px;
        overflow-y: auto;
    }

    nav.active {
        right: 0;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
    }

    .close-menu {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 28px;
        cursor: pointer;
        color: var(--accent-pink);
        z-index: 1000;
    }

    body {
        width: min-content;
        /* overflow-x: hidden;
        zoom: 0.76; */
    }
}