* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

.page {
    min-height: 100vh;
    padding: 80px 20px 40px;
    position: relative;
}

/* Page-specific backgrounds */
.page-home {
    background: linear-gradient(135deg, #1a0033 0%, #330066 25%, #4d0099 50%, #330066 75%, #1a0033 100%);
    animation: galaxyShift 20s ease-in-out infinite;
}

@keyframes galaxyShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.page-skills {
    background: radial-gradient(ellipse at top, #001a33 0%, #000d1a 50%, #000000 100%),
                radial-gradient(ellipse at bottom, #003366 0%, transparent 50%);
}

.page-projects {
    background: radial-gradient(ellipse at center, #4d0000 0%, #1a0000 40%, #000000 100%),
                linear-gradient(45deg, #330000 0%, #000000 50%, #1a0d00 100%);
}

.page-hobbies {
    background: linear-gradient(180deg, #001a1a 0%, #003333 30%, #001a1a 60%, #000d0d 100%);
}

/* Animated Stars */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px;
    z-index: 100;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
}

nav li {
    position: relative;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s;
    position: relative;
    display: block;
    z-index: 2;
}

nav a:hover {
    transform: translateY(-2px);
}

/* Sliding Indicator */
.nav-indicator {
    position: absolute;
    height: 44px;
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
}

/* Content Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

h1 {
    font-size: 4em;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
}

/* Landing Page Styles */
.hero {
    text-align: center;
    padding: 100px 20px;
}

.hero p {
    font-size: 1.5em;
    margin: 20px 0;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    margin-top: 40px;
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.skill-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.skill-card h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #667eea;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 15px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 1s ease;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(255, 100, 100, 0.3);
}

.project-card h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #ff6b6b;
}

.project-card p {
    line-height: 1.6;
    opacity: 0.9;
}

.project-tags {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tag {
    padding: 5px 15px;
    background: rgba(255, 107, 107, 0.2);
    border-radius: 20px;
    font-size: 0.9em;
}

/* Hobbies Grid */
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.hobby-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.hobby-card:hover {
    transform: translateY(-10px) rotate(2deg);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 255, 170, 0.3);
}

.hobby-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.hobby-card h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #00ffaa;
}

@media (max-width: 768px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    nav ul { gap: 5px; }
    nav a { font-size: 16px; padding: 8px 16px; }
    .hero { padding: 50px 20px; }
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.skill-card h3 {
    margin: 0 0 15px 0;
}

.skill-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}