* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(248, 249, 250, 0.98) 50%,
        rgba(245, 246, 247, 0.95) 100%);
    color: #1d1d1f;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 25% 25%, rgba(0, 122, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(88, 86, 214, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}


header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.13);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    transition: all 0.3s ease;
}

.logo:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #007aff;
    transition: width 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.logo:hover:after {
    width: 100%;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

nav a:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #007aff;
    transition: width 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

nav a:hover {
    color: #000;
}

nav a:hover:after {
    width: 100%;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    width: 100%;
    position: relative;
}

.hero-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

.hero-text {
    max-width: 600px;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #86868b;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0.0, 0.2, 1) 0.8s forwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0.0, 0.2, 1) 1s forwards;
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.72);
    color: #1d1d1f;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.name {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    color: #1d1d1f;
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0.0, 0.2, 1) 0.2s forwards;
}

.title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #86868b;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0.0, 0.2, 1) 0.4s forwards;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: rgba(0, 122, 255, 0.95);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0.0, 0.2, 1) 0.6s forwards;
    border: 0.5px solid rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.15);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 122, 255, 0.35);
    background: rgba(0, 122, 255, 1);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0.0, 0.2, 1) 1.2s forwards;
}

.stat {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #86868b;
    font-weight: 500;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-end;
}

.project-showcase {
    height: 180px;
    width: 240px;
    position: relative;
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0.0, 0.2, 1) 1.4s forwards;
    overflow: hidden;
}

.featured-project {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 12px;
    border: 0.5px solid rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    width: 240px;
    height: 52px;
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform, opacity;
}


.featured-project img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.project-info {
    flex: 1;
    min-width: 0;
}

.project-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-info p {
    font-size: 0.75rem;
    color: #86868b;
    margin: 0;
}


.tech-stack {
    width: 300px;
    height: 40px;
    overflow: hidden;
    position: relative;
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0.0, 0.2, 1) 1.6s forwards;
    mask: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}

.tech-carousel {
    display: flex;
    gap: 0.8rem;
    animation: horizontalCarousel 20s linear infinite;
    width: fit-content;
}

.tech-carousel.fast-forward {
    animation: horizontalCarouselFast 2s ease-out;
}

.tech-item {
    padding: 0.5rem 1rem;
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 0.5px solid rgba(0, 122, 255, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tech-item:hover {
    background: rgba(0, 122, 255, 0.15);
    border-color: rgba(0, 122, 255, 0.3);
    transform: scale(1.05);
}

.tech-item-with-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-item-with-icon img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
}

@keyframes horizontalCarousel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes horizontalCarouselFast {
    0% {
        transform: translateX(var(--current-position, 0));
    }
    100% {
        transform: translateX(calc(var(--current-position, 0) - 25%));
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #86868b;
    font-size: 0.9rem;
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0.0, 0.2, 1) 2s forwards;
}

.scroll-arrow {
    width: 1px;
    height: 20px;
    background: #86868b;
    position: relative;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #86868b;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

@media (max-width: 768px) {
    .hero-main {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        align-items: center;
    }

    .name {
        font-size: 3rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 200px;
        text-align: center;
    }

    .tech-stack {
        justify-content: center;
        max-width: 100%;
    }
}

.projects {
    padding: 8rem 5%;
    max-width: 1800px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: #1d1d1f;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.72);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 0.5px solid rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
}

.project-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-desc {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.3rem 0.8rem;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 0.5px solid rgba(0, 122, 255, 0.2);
    color: #007aff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tag-border {
    border: 0.5px solid rgba(0, 122, 255, 0.3);
    padding: 0.3rem 0.8rem;
    background: rgba(0, 122, 255, 0.08);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #007aff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.project-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(0, 122, 255, 0.95);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    align-self: flex-start;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border: 0.5px solid rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.25);
}

.project-link:hover {
    background: rgba(0, 122, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.35);
}

footer {
    background: rgba(29, 29, 31, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #f5f5f7;
    padding: 4rem 10%;
    text-align: center;
    border-top: 0.5px solid rgba(255, 255, 255, 0.13);
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-link {
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    color: #ccc;
}

.copyright {
    font-size: 0.9rem;
    color: #777;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 1400px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .name {
        font-size: 3rem;
    }

    .title {
        font-size: 1.2rem;
    }

    nav ul {
        gap: 1rem;
    }

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

    .project-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

.user-count {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 8px 12px;
    border-top-left-radius: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 5;
}


.about {
    padding: 8rem 10% 4rem;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 24px;
    margin-top: 4rem;
    margin-bottom: 4rem;
    border: 0.5px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

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

.about-image {
    flex: 0 0 300px;
}

.image-container {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

.skills {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.skill-category h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #222;
}

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

.project-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.user-count {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-top-left-radius: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 5;
}

.user-icon {
    font-size: 1rem;
}

.count {
    font-weight: 700;
}

.period {
    font-size: 0.7rem;
    opacity: 0.8;
}

.project-card:hover .user-count {
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .about-image {
        flex: 0 0 auto;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .image-container {
        width: 250px;
        height: 250px;
    }
}

.experiences {
    padding: 8rem 10% 4rem;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 24px;
    margin-top: 4rem;
    margin-bottom: 4rem;
    border: 0.5px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.experiences-timeline {
    max-width: 800px;
    margin: 4rem auto 0;
    position: relative;
}

.experiences-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, rgba(134, 134, 139, 0.2), rgba(134, 134, 139, 0.4), rgba(134, 134, 139, 0.2));
    transform: translateX(-50%);
}

.experience-item {
    display: flex;
    margin-bottom: 4rem;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 0.6s ease-out forwards;
}

.experience-item:nth-child(odd) {
    flex-direction: row;
}

.experience-item:nth-child(even) {
    flex-direction: row-reverse;
}

.experience-item:nth-child(1) { animation-delay: 0.2s; }
.experience-item:nth-child(2) { animation-delay: 0.4s; }
.experience-item:nth-child(3) { animation-delay: 0.6s; }

.experience-date {
    flex: 0 0 150px;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #86868b;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 16px;
    border: 0.5px solid rgba(255, 255, 255, 0.13);
    margin: 0 2rem;
    align-self: flex-start;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.experience-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.72);
    padding: 2rem;
    border-radius: 20px;
    border: 0.5px solid rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
}

.experience-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 12px solid transparent;
    transform: translateY(-50%);
}

.experience-item:nth-child(odd) .experience-content::before {
    left: -24px;
    border-right-color: rgba(255, 255, 255, 0.72);
}

.experience-item:nth-child(even) .experience-content::before {
    right: -24px;
    border-left-color: rgba(255, 255, 255, 0.72);
}

.experience-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
}

.experience-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1d1d1f;
}

.experience-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

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

@media (max-width: 768px) {
    .experiences-timeline::before {
        left: 30px;
    }

    .experience-item,
    .experience-item:nth-child(even) {
        flex-direction: row;
        margin-left: 60px;
    }

    .experience-date {
        position: absolute;
        left: -140px;
        top: 0;
        flex: none;
        margin: 0;
        width: 120px;
    }

    .experience-content::before,
    .experience-item:nth-child(even) .experience-content::before {
        left: -30px;
        right: auto;
        border-right-color: rgba(255, 255, 255, 0.7);
        border-left-color: transparent;
    }
}

/* Simplified scroll animations */
.project-card,
.about-content,
.skill-category {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out;
}

.project-card.animate-in,
.about-content.animate-in,
.skill-category.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Subtle mouse proximity effects */
.project-card.mouse-proximity,
.experience-content.mouse-proximity,
.featured-project.mouse-proximity {
    border-color: rgba(0, 122, 255, calc(0.1 + var(--border-intensity, 0) * 0.15));
    box-shadow:
        0 8px 32px rgba(0, 0, 0, calc(0.05 + var(--border-intensity, 0) * 0.05)),
        0 0 var(--glow-intensity, 0px) rgba(0, 122, 255, calc(var(--border-intensity, 0) * 0.1));
    transform: translateY(calc(-2px - var(--border-intensity, 0) * 2px));
    background: rgba(255, 255, 255, calc(0.72 + var(--border-intensity, 0) * 0.05));
}



