body,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Montserrat", sans-serif;
    scroll-behavior: smooth;
}

* {
    scroll-behavior: smooth;
}

/* Mouse follower */
.mouse-follower {
    position: fixed;
    width: 200px;
    height: 200px;
    border-radius: 70%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.01), transparent);
    pointer-events: none;
    z-index: 9999;
    transition: transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translate(-50%, -50%);
}

.w3-sidebar {
    width: 120px;
    background: linear-gradient(180deg, #000, #1a1a1a);
    transition: all 0.3s;
}

.w3-sidebar .w3-bar-item p {
    text-align: center;
    margin: 0;
}

.w3-sidebar .w3-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#main {
    margin-left: 120px;
}

@media only screen and (max-width: 600px) {
    #main {
        margin-left: 0;
    }

    /* Mobile navigation - fixed width with horizontal scroll */
    #myNavbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        z-index: 1000;
    }

    #myNavbar .w3-bar {
        display: inline-flex;
        width: auto;
        min-width: 100%;
        white-space: nowrap;
    }

    #myNavbar .w3-bar-item {
        flex: 0 0 auto;
        width: auto !important;
        min-width: fit-content;
        padding: 12px 24px !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        text-align: center;
        white-space: nowrap;
    }

    /* Hide scrollbar but keep functionality */
    #myNavbar::-webkit-scrollbar {
        height: 3px;
    }

    #myNavbar::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.3);
    }

    #myNavbar::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.5);
        border-radius: 3px;
    }

    #myNavbar::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.7);
    }

    /* Add padding to main content on mobile to account for fixed navbar */
    body.w3-black {
        padding-top: 44px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
    opacity: 0;
}

/* Skill bars with animation */
.skill-bar {
    background-color: #2a2a2a;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    height: 40px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.skill-level {
    background: linear-gradient(90deg, #fff, #ddd);
    height: 40px;
    line-height: 40px;
    padding-left: 15px;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    transition: width 1.5s ease-out;
    width: 0 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.skill-bar.animated .skill-level {
    width: var(--skill-width) !important;
}

/* Circular progress for languages */
.circular-progress {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(#fff var(--progress), #2a2a2a 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 10px;
    transition: all 0.3s;
}

.circular-progress:hover {
    transform: scale(1.1) rotate(5deg);
}

.circular-progress::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #000;
}

.progress-value {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-align: center;
}

.languages-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 30px 0;
}

.languages-grid>div {
    flex: 0 0 auto;
}

.languages-grid p {
    font-size: 13px;
}

/* Timeline with enhanced design */
.timeline-item {
    border-left: 3px solid #fff;
    padding-left: 25px;
    margin-bottom: 40px;
    position: relative;
    transition: all 0.3s;
}

.timeline-item:hover {
    border-left-color: #ccc;
    transform: translateX(10px);
}

.timeline-item:before {
    content: '';
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    left: -10px;
    top: 5px;
    box-shadow: 0 0 0 4px #000, 0 0 0 8px #fff;
    transition: all 0.3s;
}

.timeline-item:hover:before {
    transform: scale(1.3);
    box-shadow: 0 0 0 4px #000, 0 0 0 12px #fff;
}

/* Creative Experience Cards */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.experience-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(42, 42, 42, 0.8));
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #fff, #888, #fff);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.experience-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
}

.experience-header {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    padding: 25px;
    position: relative;
}

.experience-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fff, #ccc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #000;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.experience-card:hover .experience-icon {
    transform: rotate(360deg) scale(1.1);
}

.experience-body {
    padding: 25px;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.experience-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.experience-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Tech badges with hover effect */
.tech-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fff, #e0e0e0);
    padding: 10px 18px;
    margin: 6px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
    border: 1px solid #ccc;
    cursor: pointer;
    color: #000;
}

.tech-badge:hover {
    background: linear-gradient(135deg, #000, #333);
    color: #fff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

/* Contact info with icons */
.contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 10px;
    transition: all 0.3s;
}

.contact-info:hover {
    background: #3a3a3a;
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-info i {
    margin-right: 15px;
    color: #fff;
    transition: all 0.3s;
}

.contact-info:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #fff;
    font-size: 14px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #fff, #e0e0e0);
    color: #000;
    border: none;
    border-radius: 25px;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-start;
}

.contact-form button:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #000, #333);
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Language switch button */
.lang-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #fff, #e0e0e0);
    color: #000;
    border: 2px solid #000;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    z-index: 1000;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.lang-switch:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, #000, #333);
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
}

/* Header image with hover effect */
.header-image {
    transition: all 0.5s;
    filter: grayscale(20%);
}

.header-image:hover {
    transform: scale(1.05) rotate(-2deg);
    filter: grayscale(0%);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
}

/* Card style for sections */
.content-card {
    background: rgba(42, 42, 42, 0.5);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

/* Two column layout for skills */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media only screen and (max-width: 900px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

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

/* Project carousel */
.project-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-wrapper {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-track {
    display: flex;
    gap: 30px;
    transition: none;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-card {
    max-width: 400px;
    height: 300px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 15px;
    padding: 30px;
    border: 2px solid #333;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.4;
    transform: scale(0.85);
    filter: blur(2px);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.project-card.active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
    border-color: #fff;
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.2);
}

.project-card.transitioning {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.project-card p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
    flex-grow: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s;
    margin-top: 15px;
}

.project-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #fff, #e0e0e0);
    color: #000;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: linear-gradient(135deg, #000, #333);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.left {
    left: 20px;
}

.carousel-arrow.right {
    right: 20px;
}

@media only screen and (max-width: 900px) {
    .project-card {
        min-width: 280px;
        height: 350px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

.content-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* Stats counter animation */
.stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
    border-radius: 15px;
    margin: 10px;
    transition: all 0.3s;
}

.stat-item:hover {
    background: linear-gradient(135deg, #fff, #e0e0e0);
    transform: translateY(-10px) scale(1.05);
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    transition: all 0.3s;
}

.stat-item:hover .stat-number {
    color: #000;
}

.stat-label {
    font-size: 14px;
    color: #aaa;
    margin-top: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

/* Parallax effect for header */
.parallax-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    margin: 20px;
}

.parallax-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Section headers with underline animation */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #fff, #ccc);
    transition: width 0.5s ease;
}

.section-title.visible::after {
    width: 100%;
}

/* Fade in on scroll */
.scroll-fade {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}