* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

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

.header {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.header:hover {
    background: rgba(255,255,255,0.15);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo-section:hover {
    transform: scale(1.05);
}

.logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.logo::before {
    content: '🤖';
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.nav-links a:hover::before {
    left: 100%;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.welcome-section {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 60px 40px;
    text-align: center;
    margin: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    animation: slideUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(102,126,234,0.1), transparent);
    animation: rotate 10s linear infinite;
    pointer-events: none;
}

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

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

.welcome-title {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.welcome-text {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.arduino-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
    margin: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    animation: slideUp 0.8s ease-out;
}

.arduino-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.arduino-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

.projects-section {
    margin: 60px 20px;
    animation: slideUp 0.8s ease-out;
}

.difficulty-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 25px;
    font-size: 28px;
    font-weight: bold;
    border-radius: 15px 15px 0 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.projects-container {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.project-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 30px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102,126,234,0.1), transparent);
    transition: left 0.6s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.project-image {
    width: 200px;
    height: 150px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #999;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

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

.project-content {
    flex: 1;
}

.project-name {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.project-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.project-card:hover .project-name {
    color: #667eea;
}

.project-card:hover .project-description {
    color: #555;
}

.beginner .project-image {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

.beginner .project-image::before {
    content: '🔧';
}

.intermediate .project-image {
    background: linear-gradient(45deg, #f093fb, #f5576c);
}

.intermediate .project-image::before {
    content: '⚙️';
}

.advanced .project-image {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
}

.advanced .project-image::before {
    content: '🚀';
}

.footer {
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 30px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.footer-logo-section:hover {
    transform: scale(1.05);
}

.footer-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

.footer-logo::before {
    content: '🤖';
}

.footer-text {
    font-size: 16px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .project-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .project-image {
        width: 150px;
        height: 100px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .welcome-section {
        margin: 20px 10px;
        padding: 40px 20px;
    }
    
    .welcome-title {
        font-size: 28px;
    }
    
    .arduino-section {
        margin: 20px 10px;
        padding: 30px 20px;
    }
    
    .arduino-title {
        font-size: 26px;
    }
    
    .projects-section {
        margin: 40px 10px;
    }
    
    .projects-container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .project-image {
        width: 120px;
        height: 80px;
        font-size: 36px;
    }
    
    .project-name {
        font-size: 20px;
    }
    
    .project-description {
        font-size: 14px;
    }
}

.loading {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}