* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Poppins', sans-serif; color: #fff;
    background: linear-gradient(135deg, #0d1117, #1a237e, #0d1117);
    background-size: 400% 400%; animation: gradientA 15s ease infinite;
    overflow-x: hidden;
}
@keyframes gradientA { 0% {background-position:0% 50%} 50% {background-position:100% 50%} 100% {background-position:0% 50%} }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, #1f2533 25%, #2a3145 50%, #1f2533 75%); background-size: 200% 100%; animation: shine 1.5s infinite; border-radius: 4px; }
@keyframes shine { to {background-position-x: -200%;} }
.skeleton-icon { width: 50px; height: 50px; border-radius: 50%; margin: 0 auto 20px; }
.skeleton-title { height: 25px; width: 60%; margin: 0 auto 15px; }
.skeleton-text { height: 15px; width: 90%; margin: 0 auto 8px; }

/* Preloader */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: #0d1117; z-index: 999; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.5s; }
.progress-container { width: 200px; height: 5px; background: #333; margin-top: 15px; border-radius: 5px; overflow: hidden; }
.progress-bar { height: 100%; background: #3498db; width: 0%; transition: width 0.1s; }

/* Hero */
#hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; text-align: center; padding-top: 80px;}
.hero-banner { 
    width: 100%; max-width: 700px; aspect-ratio: 16/9; object-fit: cover; 
    border-radius: 15px; margin: 25px auto; border: 2px solid #3498db; box-shadow: 0 10px 40px rgba(0,0,0,0.5); 
}
.name { font-size: 3.5rem; font-weight: 700; }
.title { color: #3498db; font-size: 1.5rem; margin-bottom: 20px; }

/* Layout */
.container { width: 90%; max-width: 1100px; margin: 0 auto; padding: 60px 0; }
header { position: fixed; top: 0; width: 100%; padding: 20px 0; background: rgba(13,17,23,0.9); backdrop-filter: blur(10px); z-index: 100; }
nav { width: 90%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
nav ul { display: flex; list-style: none; gap: 20px; }
nav a { text-decoration: none; color: #fff; }
.hamburger { display: none; background: none; border: none; color: white; font-size: 1.5rem; }

/* Sections */
#about, #skills, #projects { background: rgba(255,255,255,0.05); padding: 40px; border-radius: 15px; margin-bottom: 40px; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.skill-card { background: rgba(0,0,0,0.3); padding: 30px; text-align: center; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); transition: 0.3s; }
.skill-card:hover { transform: translateY(-5px); border-color: #3498db; }
.skill-card i { font-size: 2.5rem; color: #3498db; margin-bottom: 15px; }

/* Utils */
.hidden { opacity: 0; transform: translateY(30px); transition: 0.6s; }
.visible { opacity: 1; transform: translateY(0); }
.initial-hidden { opacity: 0; transform: translateY(20px); transition: 0.8s; }
.initial-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .hamburger { display: block; }
    nav ul { position: fixed; top: 70px; right: -100%; width: 200px; height: 100vh; background: #0d1117; flex-direction: column; padding: 20px; transition: 0.3s; }
    nav ul.active { right: 0; }
    .name { font-size: 2.5rem; }
}