:root {
    --primary: #4361ee;
    --secondary: #3bc4a2;
    --background: #ffffff;
    --text: #333333;
    --card-bg: #f9f9f9;
    --shadow: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.18);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 16px;
    --primary-rgb: 67, 97, 238;
    --secondary-rgb: 59, 196, 162;
}

[data-theme="dark"] {
    --primary: #4cc9f0;
    --secondary: #4895ef;
    --background: #121212;
    --text: #f5f5f5;
    --card-bg: #1e1e1e;
    --shadow: rgba(0, 0, 0, 0.3);
    --glass-bg: rgba(30, 30, 30, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --primary-rgb: 76, 201, 240;
    --secondary-rgb: 72, 149, 239;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text);
    transition: var(--transition);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: 
        radial-gradient(at 40% 20%, hsla(217, 100%, 74%, 0.1) 0px, transparent 50%),
        radial-gradient(at 80% 0%, hsla(189, 100%, 56%, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, hsla(355, 100%, 93%, 0.1) 0px, transparent 50%),
        radial-gradient(at 80% 100%, hsla(242, 100%, 70%, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    background-size: cover;
}

header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--glass-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
    letter-spacing: -0.5px;
}

.logo svg {
    margin-right: 0.5rem;
    filter: drop-shadow(0 0 5px var(--primary));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(67, 97, 238, 0.3);
}

.theme-switch {
    background: var(--card-bg);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--shadow);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Navigation Styles */
.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    margin: 0 20px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
    left: 10%;
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 1rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: space-around;
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .nav-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }
}

.theme-switch:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--shadow);
}

.theme-switch svg {
    margin-right: 0.5rem;
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

main {
    flex: 1;
    padding: 2rem;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.intro {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease;
    padding: 2rem;
    border-radius: var(--border-radius);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.5px;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.intro h1::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
}

.intro p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1.5rem auto 0;
    line-height: 1.7;
    opacity: 0.9;
}

.intro-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    position: relative;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 30px var(--shadow);
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
    position: relative;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    height: 100%;
    display: flex;
    flex-direction: column;
    
    /* Modern card enhancements */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.06),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card.hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 25px 50px rgba(0, 0, 0, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    z-index: 10;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(
        circle at var(--x, 50%) var(--y, 50%),
        rgba(var(--primary-rgb), 0.3) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--border-radius);
}

.project-card:hover::after {
    opacity: 0.4;
}

.card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 2;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover .card-inner::before {
    transform: scaleX(1);
}

.card-image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1), filter 0.6s ease;
    transform-origin: center;
}

.project-card:hover .card-image-container img {
    transform: scale(1.1);
    filter: saturate(1.2);
}

.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 1;
    transition: opacity 0.5s ease;
    opacity: 0.7;
}

.project-card:hover .overlay-gradient {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%);
    opacity: 1;
}

.project-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    animation: fadeInBadge 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.project-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0)
    );
    transform: rotate(45deg);
    animation: shimmerBadge 3s infinite;
}

@keyframes shimmerBadge {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

@keyframes fadeInBadge {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.coming-soon-badge,
.planned-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.planned-badge {
    background: linear-gradient(135deg, #8e2de2, #4a00e0);
}

.progress-container {
    margin-top: 20px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.progress-bar {
    height: 8px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

.planned-info {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 4px solid var(--primary);
}

.coming-soon .project-content,
.planned .project-content {
    padding-bottom: 1.5rem;
}

.project-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.project-card:hover .project-content {
    transform: translateY(-5px);
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 700;
    line-height: 1.4;
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.project-card:hover .project-content h3 {
    color: var(--primary);
}

.project-content h3::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.project-card:hover .project-content h3::after {
    width: 100%;
}

.project-content p {
    margin-bottom: 1.8rem;
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.85;
    flex-grow: 1;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-content p {
    opacity: 1;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.tech-badge {
    padding: 5px 12px;
    background-color: rgba(var(--primary-rgb, 67, 97, 238), 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(var(--primary-rgb, 67, 97, 238), 0.2);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateY(0);
}

.tech-badge:hover {
    background-color: rgba(var(--primary-rgb, 67, 97, 238), 0.2);
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-buttons {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn {
    padding: 0.8rem 1.6rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 6px 15px rgba(67, 97, 238, 0.3);
    position: relative;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary));
    z-index: -1;
    border-radius: 30px;
    background-size: 200% 200%;
    animation: gradientAnimation 3s ease infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    box-shadow: 
        0 10px 25px rgba(67, 97, 238, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary);
    z-index: -1;
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-outline:hover {
    color: white;
    border-color: transparent;
}

.btn-outline:hover::before {
    width: 100%;
}

.btn:hover {
    transform: translateY(-4px);
}

.btn:active {
    transform: translateY(-2px);
    transition: transform 0.1s;
}

.btn svg {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: translateX(3px);
}

footer {
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 4rem 2rem;
    margin-top: 6rem;
    position: relative;
    border-top: 1px solid var(--glass-border);
}

footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.03));
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    color: var(--primary);
    font-weight: 700;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 5px;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.social-links a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    border: 1px solid var(--glass-border);
}

.social-links a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary);
    top: 100%;
    left: 0;
    transition: var(--transition);
    z-index: -1;
}

.social-links a:hover {
    color: white;
    transform: translateY(-8px) rotate(360deg);
}

.social-links a:hover::before {
    top: 0;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    line-height: 1.8;
}

.contact-info svg {
    min-width: 24px;
    margin-right: 0.8rem;
    color: var(--primary);
    filter: drop-shadow(0 0 1px var(--primary));
}

.copyright {
    text-align: center;
    padding-top: 2.5rem;
    margin-top: 2.5rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Stats Section */
.stats-section {
    margin: 5rem 0;
    padding: 2rem 0;
    position: relative;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.stat-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 8px 25px var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transform: translateY(0);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 1;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px var(--shadow);
}

.stat-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
}

.stat-content h4 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-content p {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive indicator styling (for development) */
.responsive-indicator {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 9999;
}

/* Add some fix for AOS animation library */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Additional Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Responsive Enhancements */
@media (max-width: 1024px) {
    .intro h1 {
        font-size: 2.5rem;
    }
    
    .projects {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-content h4 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .intro {
        padding: 1.5rem;
    }
    
    .intro h1 {
        font-size: 2.2rem;
    }

    .intro p {
        font-size: 1rem;
    }

    .projects {
        grid-template-columns: 1fr;
        gap: 2rem;
        overflow-x: visible; /* Change to visible for better mobile display */
        padding-bottom: 1rem;
    }
    
    /* Improve card display on mobile */
    .project-card {
        min-height: auto;
        margin-bottom: 1rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    /* Simplify animations for better mobile performance */
    .project-card,
    .project-card:hover {
        transform: none !important;
    }
    
    .project-card:hover .project-content {
        transform: none;
    }

    footer {
        padding: 2rem 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .intro h1 {
        font-size: 1.8rem;
    }
    
    .intro h1::after {
        width: 60px;
        height: 3px;
    }
    
    .project-buttons {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .project-content {
        padding: 1.3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stat-content h4 {
        font-size: 1.8rem;
    }
    
    /* Make theme switch more touch-friendly */
    .theme-switch {
        padding: 0.8rem 1.5rem;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    main {
        padding: 1rem;
    }
    
    .intro {
        padding: 1.2rem;
    }
    
    .intro h1 {
        font-size: 1.6rem;
    }
    
    .project-badge {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
    
    .card-image-container {
        height: 160px;
    }
}