:root {
    --space-black: #020617;
    --navy-deep: #050b1a;
    --navy-light: #0f172a;
    --neon-blue: #3b82f6;
    --neon-purple: #a855f7;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px rgba(59, 130, 246, 0.5); }
    50% { text-shadow: 0 0 20px rgba(59, 130, 246, 0.8), 0 0 30px rgba(168, 85, 247, 0.5); }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    background-color: var(--space-black);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Background Effects */
.space-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    overflow: hidden;
}

#stars, #stars2, #stars3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.sun {
    position: absolute;
    top: 10%;
    right: 15%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #ffd700 0%, #ff8c00 70%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 80px #ff8c00, 0 0 150px rgba(255, 140, 0, 0.4);
    z-index: 1;
}

.sun::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.1) 0%, transparent 70%);
    animation: rays 10s linear infinite;
}

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

.shooting-star {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, white, transparent);
    animation: shoot 3s linear;
    z-index: 0;
    opacity: 0;
}

@keyframes shoot {
    0% { transform: translateX(0) translateY(0) rotate(-45deg); opacity: 1; }
    100% { transform: translateX(500px) translateY(500px) rotate(-45deg); opacity: 0; }
}

.earth-container {
    position: absolute;
    bottom: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
}

.earth {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at 30% 30%, #3498db 0%, #2980b9 50%, #1a5276 100%);
    border-radius: 50%;
    box-shadow: inset -20px -20px 50px rgba(0,0,0,0.8), 0 0 50px rgba(52, 152, 219, 0.4);
    animation: rotateEarth 100s linear infinite;
    position: relative;
}

.moon {
    width: 40px;
    height: 40px;
    background: #bdc3c7;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: inset -5px -5px 10px rgba(0,0,0,0.5);
    animation: orbitMoon 20s linear infinite;
}

@keyframes orbitMoon {
    from { transform: rotate(0deg) translate(180px) rotate(0deg); }
    to { transform: rotate(360deg) translate(180px) rotate(-360deg); }
}

@keyframes rotateEarth {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Header */
header {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo span {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--neon-blue);
}

/* Hero Section */
.hero-section {
    padding: 10rem 0 6rem;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    color: var(--neon-blue);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.hero-text h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.highlight {
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 700px;
}

.stat-item {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-item span {
    font-size: 1.5rem;
    color: var(--neon-blue);
    font-weight: 700;
}

.stat-item p {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    width: 100%;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
}

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: white;
    transform: translateY(-5px);
}

.social-links-minimal {
    display: flex;
    gap: 1.5rem;
    margin-left: 2rem;
    align-items: center;
}

.social-links-minimal a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links-minimal a:hover {
    color: var(--neon-blue);
    transform: scale(1.2);
}

.contact-buttons {
    display: flex;
    align-items: center;
}

/* Sections */
.section {
    padding: 8rem 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title.left {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--neon-blue);
}

/* Education Card */
.edu-card {
    display: flex;
    padding: 3rem;
    border-radius: 24px;
    align-items: center;
    gap: 3rem;
}

.edu-icon {
    width: 80px;
    height: 80px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--neon-blue);
}

.edu-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.edu-date {
    color: var(--neon-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.edu-desc {
    font-size: 1.2rem;
}

.gpa-badge {
    margin-left: auto;
    text-align: center;
    padding: 1.5rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
}

.gpa-badge span {
    display: block;
    font-size: 0.8rem;
    color: var(--neon-purple);
}

.gpa-badge strong {
    font-size: 2.5rem;
    color: white;
}

/* Skills */
.skills-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.progress-container {
    margin-bottom: 2rem;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.progress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    transition: width 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: white;
    filter: blur(5px);
    opacity: 0.5;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.tag {
    padding: 1rem 1.5rem;
    border-radius: 15px;
    cursor: default;
    transition: var(--transition);
}

.tag:hover {
    transform: translateY(-8px);
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(var(--neon-blue), var(--neon-purple));
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-dot {
    position: absolute;
    left: -42px;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--space-black);
    border: 4px solid var(--neon-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-blue);
}

.timeline-date {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--neon-blue);
    margin-bottom: 1rem;
}

.timeline-content {
    padding: 2rem;
    border-radius: 20px;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(45deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: var(--transition);
    z-index: 2;
}

.project-card:hover {
    transform: translateY(-15px);
}

.project-card:hover::before {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

.project-img {
    overflow: hidden;
    position: relative;
}

.project-img img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    margin-bottom: 1rem;
    transition: var(--transition);
}

.project-card:hover h3 {
    color: var(--neon-blue);
}

.tech-tags-mini {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Languages & Skills Modern */
.languages-box, .soft-skills-box {
    flex: 1;
}

.lang-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lang-card {
    padding: 1.5rem;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
}

.lang-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.flag { font-size: 1.5rem; }
.lang-header h4 { font-size: 1.2rem; flex: 1; }
.level { font-size: 0.8rem; color: var(--neon-blue); font-weight: 700; }

.progress-bar-sm {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.skills-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-modern-card {
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    transition: var(--transition);
}

.skill-modern-card:hover {
    transform: translateY(-10px) rotate(3deg);
    border-color: var(--neon-purple);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.skill-modern-card i {
    font-size: 2rem;
    color: var(--neon-blue);
}

.pulse { animation: pulse 2s infinite alternate; }
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 1; }
}

.floating { animation: float 4s ease-in-out infinite; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Staggered Reveal */
.reveal-staggered {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-staggered.visible {
    opacity: 1;
    transform: translateY(0);
}
