/* ===================================
   MODERN PORTFOLIO REDESIGN
   =================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #64ffda;
    --secondary-color: #ff6b6b;
    --accent-color: #4ecdc4;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-dark: #333333;
    --background-dark: #0a0a0a;
    --background-secondary: #1a1a1a;
    --background-card: #252525;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 20px 60px rgba(0, 0, 0, 0.2);
    --shadow-heavy: 0 30px 80px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    background: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.gradient-link {
  background: var(--primary-color);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.gradient-link:hover {
  opacity: 0.7; /* subtle hover effect */
}


body.is-preload * {
    animation: none !important;
    transition: none !important;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--background-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loader {
    text-align: center;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 3px solid var(--background-secondary);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    color: var(--text-secondary);
    font-size: 14px;
    letter-spacing: 2px;
    animation: pulse 2s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--background-dark);
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 2.9rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.accent-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    min-height: 2.5rem;
}

.typing-text {
    border-right: 2px solid var(--primary-color);
    padding-right: 5px;
}

.cursor {
    color: var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--background-dark);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    width: 100%;
    overflow: visible;
    max-width: 100%;
}

.floating-card {
    position: absolute;
    background: rgba(37, 37, 37, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(100, 255, 218, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: float 6s ease-in-out infinite;
    z-index: 10;
    min-width: 120px;
    max-width: 140px;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.floating-card:nth-child(1) {
    top: 8%;
    right: 20%;
    animation-delay: 0s;
    z-index: 15;
}

.floating-card:nth-child(2) {
    top: 25%;
    right: -8%;
    animation-delay: 1s;
    z-index: 14;
}

.floating-card:nth-child(3) {
    top: 45%;
    right: 45%;
    animation-delay: 2s;
    z-index: 13;
}

.floating-card:nth-child(4) {
    top: 65%;
    right: -2%;
    animation-delay: 3s;
    z-index: 12;
}

.floating-card:nth-child(5) {
    top: 85%;
    right: 30%;
    animation-delay: 4s;
    z-index: 11;
}

.floating-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(100, 255, 218, 0.15);
    border-color: var(--primary-color);
}

.floating-card i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.floating-card:hover i {
    color: #ffffff;
    transform: scale(1.1);
}

.floating-card span {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    transition: all 0.3s ease;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: var(--background-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

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

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    will-change: contents;
    transition: color 0.3s ease;
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

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

.tech-item {
    background: var(--background-card);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid transparent;
    transition: var(--transition);
}

.tech-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Skills Section */
.skills-section {
    padding: 6rem 0;
    background: var(--background-dark);
}

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

.skill-category {
    background: var(--background-card);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.skill-category:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-heavy);
}

.skill-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.skill-icon i {
    font-size: 2rem;
    color: var(--text-primary);
}

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

.skill-progress-container {
    margin: 1.5rem 0;
    position: relative;
}

.skill-progress {
    height: 8px;
    background: var(--gradient-primary);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    will-change: width;
}

.skill-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    opacity: 0.3;
}

.skill-percentage {
    position: absolute;
    right: 0;
    top: -30px;
    color: var(--primary-color);
    font-weight: 600;
}

.skill-category p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Projects Section */
.projects-section {
    padding: 6rem 0;
    background: var(--background-secondary);
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid var(--text-secondary);
    color: var(--text-secondary);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--background-dark);
}

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

.project-card {
    background: var(--background-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-heavy);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--background-dark);
    text-decoration: none;
    transition: var(--transition);
}

.project-link:hover {
    transform: scale(1.1);
    background: var(--text-primary);
}

.project-content {
    padding: 2rem;
}

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

.tag {
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tech span {
    background: var(--background-secondary);
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: var(--background-dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.contact-details h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--background-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--background-dark);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: var(--background-card);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

.btn-full {
    width: 100%;
}

/* Footer */
.footer {
    background: var(--background-secondary);
    padding: 2rem 0;
    border-top: 1px solid var(--background-card);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Move cards to lower section for tablet */
    .hero-image {
        margin: 2rem auto 4rem auto;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        min-height: auto;
        max-width: 800px;
        padding: 0 2rem;
        justify-content: center;
    }

    .floating-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0;
        padding: 1rem 1.2rem;
        min-width: 100px;
        animation: float 6s ease-in-out infinite;
    }

    .floating-card:nth-child(1) { animation-delay: 0s; }
    .floating-card:nth-child(2) { animation-delay: 1s; }
    .floating-card:nth-child(3) { animation-delay: 2s; }
    .floating-card:nth-child(4) { animation-delay: 3s; }
    .floating-card:nth-child(5) { animation-delay: 4s; }

    .floating-card span {
        font-size: 0.8rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--background-secondary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-section {
        padding-top: 80px; /* Account for fixed navigation */
        min-height: calc(100vh - 80px);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

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

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .projects-filter {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    /* Reposition floating cards for mobile - show in lower section */
    .hero-image {
        position: relative;
        margin: 4rem auto 5rem auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        min-height: auto;
        max-width: 100%;
        padding: 0 1rem;
    }

    .floating-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0;
        animation: none;
        background: var(--background-card);
        border: 1px solid rgba(100, 255, 218, 0.3);
    }

    .floating-card:nth-child(1) {
        animation: fadeInUp 0.6s ease forwards;
        animation-delay: 0.1s;
        opacity: 0;
    }
    .floating-card:nth-child(2) {
        animation: fadeInUp 0.6s ease forwards;
        animation-delay: 0.2s;
        opacity: 0;
    }
    .floating-card:nth-child(3) {
        animation: fadeInUp 0.6s ease forwards;
        animation-delay: 0.3s;
        opacity: 0;
    }
    .floating-card:nth-child(4) {
        animation: fadeInUp 0.6s ease forwards;
        animation-delay: 0.4s;
        opacity: 0;
    }
    .floating-card:nth-child(5) {
        animation: fadeInUp 0.6s ease forwards;
        animation-delay: 0.5s;
        opacity: 0;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    /* Single column layout for small mobile */
    .hero-image {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin: 3rem auto 6rem auto;
        padding: 0 0.5rem;
        max-width: 300px;
    }

    .floating-card {
        padding: 1rem;
        min-width: auto;
        max-width: 100%;
    }

    .floating-card span {
        font-size: 0.8rem;
    }

    /* Maintain fade-in animation for small mobile */
    .floating-card:nth-child(1) {
        animation: fadeInUp 0.6s ease forwards;
        animation-delay: 0.1s;
        opacity: 0;
    }
    .floating-card:nth-child(2) {
        animation: fadeInUp 0.6s ease forwards;
        animation-delay: 0.2s;
        opacity: 0;
    }
    .floating-card:nth-child(3) {
        animation: fadeInUp 0.6s ease forwards;
        animation-delay: 0.3s;
        opacity: 0;
    }
    .floating-card:nth-child(4) {
        animation: fadeInUp 0.6s ease forwards;
        animation-delay: 0.4s;
        opacity: 0;
    }
    .floating-card:nth-child(5) {
        animation: fadeInUp 0.6s ease forwards;
        animation-delay: 0.5s;
        opacity: 0;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-category {
        padding: 2rem 1.5rem;
    }

    .projects-filter {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

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

    .btn {
        padding: 0.8rem 1.5rem;
    }

    /* Mobile animation optimizations */
    .skill-progress {
        transition: width 1s ease-out;
        transform: translateZ(0); /* Hardware acceleration */
    }

    .stat-number {
        font-size: 2rem; /* Smaller on mobile for better performance */
        transform: translateZ(0); /* Hardware acceleration */
    }

    /* Reduce motion for users who prefer it */
    @media (prefers-reduced-motion: reduce) {
        .skill-progress {
            transition: none;
        }
        .stat-number {
            transition: none;
        }
    }
}

/* Smooth scrolling enhancement */
html {
    scroll-padding-top: 80px;
}

/* Additional micro-interactions */
.project-card,
.skill-category,
.contact-item,
.tech-item {
    position: relative;
    overflow: hidden;
}

.project-card::before,
.skill-category::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.project-card:hover::before,
.skill-category:hover::before {
    opacity: 1;
}

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

::-webkit-scrollbar-track {
    background: var(--background-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}
