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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0a0e27;
    position: relative;
    overflow-x: hidden;
}

/* Navigation Bar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

nav.scrolled {
    background: rgba(10, 14, 39, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

nav .logo {
    font-size: 1.5em;
    font-weight: 700;
    color: #8b5cf6;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #8b5cf6;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #a78bfa;
}

nav a:hover::after {
    width: 100%;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    z-index: 1001;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* Enhanced Animated Starfield Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20% 30%, #fff, transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 50% 50%, #fff, transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 90% 40%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 33% 60%, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 55% 80%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 10% 90%, rgba(255,255,255,0.4), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: starfield 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes starfield {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header/Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(138, 43, 226, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(75, 0, 130, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 100, 200, 0.2) 0%, transparent 50%);
    animation: nebula 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes nebula {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.hero-content {
    position: relative;
    
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-content-space {
    position: relative;
    padding: 60px 40px;
    animation: fadeInUp 1s ease-out;     
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(10px);
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.hero-content-space::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(167, 139, 250, 0.3));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-content-space:hover::before {
    opacity: 1;
}

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

.hero h1 {
    font-size: 4em;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.5), 0 0 40px rgba(75, 0, 130, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(138, 43, 226, 0.5), 0 0 40px rgba(75, 0, 130, 0.3); }
    to { text-shadow: 0 0 30px rgba(138, 43, 226, 0.8), 0 0 60px rgba(75, 0, 130, 0.5); }
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero .tagline {
    font-size: 1.2em;
    opacity: 0.9;
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    border: 2px solid rgba(139, 92, 246, 0.5);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}

/* Services Section */
.services {
    padding: 100px 20px;
    background: #0f1419;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3em;
    margin-bottom: 60px;
    color: #8b5cf6;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 40px rgba(139, 92, 246, 0.4);
    border-color: rgba(139, 92, 246, 0.8);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card h3 {
    color: #a78bfa;
    margin-bottom: 20px;
    font-size: 1.6em;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.3);
    position: relative;
    z-index: 1;
}

.service-card p {
    color: #cbd5e1;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    font-size: 1.05em;
}

/* About Section */
.about {
    padding: 100px 20px;
    background: #0a0e27;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(75, 0, 130, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.15em;
    color: #cbd5e1;
    line-height: 1.9;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.about-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Skills Section */
.skills {
    padding: 100px 20px;
    background: #0f1419;
    position: relative;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.skills-list.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-tag {
    background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1em;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.5);
    cursor: default;
    opacity: 0;
    transform: scale(0.8);
    animation: skillPopIn 0.5s ease forwards;
}

@keyframes skillPopIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.skill-tag:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}

/* Contact Section */
.contact {
    padding: 100px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(138, 43, 226, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(75, 0, 130, 0.4) 0%, transparent 50%);
    animation: nebula 12s ease-in-out infinite reverse;
    pointer-events: none;
}

.contact-info {
    font-size: 1.3em;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.contact-info.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-info a {
    color: #a78bfa;
    text-decoration: none;
    border-bottom: 2px solid #8b5cf6;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
    padding: 5px 10px;
    border-radius: 5px;
}

.contact-info a:hover {
    color: #c4b5fd;
    border-bottom-color: #a78bfa;
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
    background: rgba(139, 92, 246, 0.1);
}

/* Footer */
footer {
    background: #0a0e27;
    padding: 30px 20px;
    text-align: center;
    color: #6b7280;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        gap: 15px;
        font-size: 0.9em;
    }
    
    .hero h1 {
        font-size: 2.5em;
    }
    
    .hero p {
        font-size: 1.2em;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 30px;
    }
}

.jwtspace {
    background: url('../img/background.png') no-repeat center center;
    background-size: cover;
}
