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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    will-change: scroll-position;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #fff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    opacity: 0.4;
    z-index: -1;
    animation: starTwinkle 4s ease-in-out infinite alternate;
}

@keyframes starTwinkle {
    0% { opacity: 0.3; }
    100% { opacity: 0.6; }
}



/* Navigation */
.navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.9);
    border-radius: 60px;
    border: 1px solid #333;
    z-index: 1000;
    padding: 12px 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #cccccc;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 30px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: -0.01em;
}

.nav-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    transform: translateY(-1px);
}

.nav-link.active {
    background: #6366f1;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}



/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    z-index: 10;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.25rem;
    margin: 0 auto 2.5rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 500px;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 50%;
    color: #cccccc;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    font-size: 18px;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
    border-color: #6366f1;
}

/* 3D Cube */
.hero-3d {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate3d 10s infinite linear;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cube:hover {
    animation-duration: 2s;
    transform: scale(1.1);
}

.cube.exploding {
    animation: cubeExplode 1s ease-out forwards;
}

@keyframes cubeExplode {
    0% { transform: scale(1) rotate3d(1,1,1,0deg); }
    50% { transform: scale(2) rotate3d(1,1,1,180deg); opacity: 0.5; }
    100% { transform: scale(0) rotate3d(1,1,1,360deg); opacity: 0; }
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border: 2px solid #6366f1;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.cube.exploding .face {
    animation: faceExplode 1s ease-out forwards;
}

@keyframes faceExplode {
    0% { transform: translateZ(0); }
    100% { transform: translateZ(500px); opacity: 0; }
}

.cube:hover .face {
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.8), inset 0 0 30px rgba(255, 255, 255, 0.2);
    border-color: #8b5cf6;
}

.face::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.8), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.face.front { transform: rotateY(0deg) translateZ(100px); }
.face.back { transform: rotateY(180deg) translateZ(100px); }
.face.right { transform: rotateY(90deg) translateZ(100px); }
.face.left { transform: rotateY(-90deg) translateZ(100px); }
.face.top { transform: rotateX(90deg) translateZ(100px); }
.face.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes rotate3d {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Sections */
.section {
    min-height: 100vh;
    padding: 8rem 0;
    display: flex;
    align-items: center;
    position: relative;
}

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

.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 800;
}



/* Carousel */
.carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    padding: 2rem;
}

.project-card {
    background: #1a1a1a;
    padding: 4rem 3rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

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

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

.project-card:hover {
    transform: translateY(-12px);
    background: #222;
    border-color: #555;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.project-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.project-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 700;
}

.project-card p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #cccccc;
}

.project-tech {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tech-tag {
    background: rgba(99, 102, 241, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-weight: 500;
}

.project-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.project-link {
    width: 45px;
    height: 45px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.project-link:hover {
    background: #6366f1;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: #fff;
}

.skill-item {
    background: rgba(30, 30, 30, 0.8);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.skill-item:hover {
    transform: translateX(8px);
    background: rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.skill-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    color: #6366f1;
}

.skill-item span {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
}

.skill-stars {
    display: flex;
    gap: 0.2rem;
}

.skill-stars i {
    color: #fbbf24;
    font-size: 0.9rem;
    width: auto;
}

.skill-stars .far {
    color: rgba(0, 0, 0, 0.2);
}

/* Contact */
.contact-content {
    text-align: center;
}

.contact-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.contact-link {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* Animations */
.fade-in-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

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

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .hero-content h1 { font-size: 2.5rem; }
    .nav-menu { gap: 1rem; }
    .cube, .face { width: 150px; height: 150px; }
}
/* Startup Animation */
.startup-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #0a0a0a 0%, #000 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
}

.startup-loader.hidden {
    opacity: 0;
    transform: translateZ(10000px);
    transition: all 0.6s ease-in;
}

.hyperspace-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hyperspace-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    width: 0;
    height: 1px;
    left: 50%;
    top: 50%;
    transform-origin: left center;
    animation: hyperspaceStreak 0.8s ease-out infinite;
}

@keyframes hyperspaceStreak {
    0% {
        width: 0;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        width: 150vw;
        opacity: 0;
    }
}

.hyperspace-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hyperspace-star {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    border-radius: 50%;
    animation: hyperspaceJump 1.5s ease-in-out infinite;
}

@keyframes hyperspaceJump {
    0% {
        width: 1px;
        height: 1px;
        opacity: 0.3;
        transform: translateX(0) scale(1);
    }
    50% {
        width: 20px;
        height: 2px;
        opacity: 0.8;
        transform: translateX(500px) scale(5);
    }
    100% {
        width: 80px;
        height: 3px;
        opacity: 0;
        transform: translateX(1200px) scale(15);
    }
}

.hologram {
    position: relative;
    text-align: center;
    z-index: 10;
    transform: perspective(1000px) rotateX(0deg);
    animation: holoFloat 3s ease-in-out infinite;
}

@keyframes holoFloat {
    0%, 100% { transform: perspective(1000px) rotateX(0deg) translateY(0); }
    50% { transform: perspective(1000px) rotateX(5deg) translateY(-10px); }
}

.quantum-logo {
    font-size: 6rem;
    background: linear-gradient(45deg, #6366f1, #8b5cf6, #06b6d4, #10b981);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: quantumShift 2s ease-in-out infinite, logoSpin 8s linear infinite;
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.8));
    margin-bottom: 2rem;
}

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

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

.neural-text {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 3rem;
    opacity: 0;
    animation: neuralGlow 1s ease 1.5s forwards;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

@keyframes neuralGlow {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.quantum-bar {
    width: 400px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
    box-shadow: inset 0 0 10px rgba(99, 102, 241, 0.3);
}

.quantum-progress {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4, #10b981, #f59e0b);
    background-size: 200% 100%;
    width: 0%;
    animation: quantumLoad 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards, quantumFlow 1s linear infinite;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
}

@keyframes quantumLoad {
    to { width: 100%; }
}

@keyframes quantumFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.dimension-portal {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: portalSpin 6s linear infinite;
}

.dimension-portal::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: portalSpin 4s linear infinite reverse;
}

.dimension-portal::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border: 1px solid rgba(6, 182, 212, 0.5);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: portalSpin 2s linear infinite;
}

@keyframes portalSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.energy-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.energy-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #6366f1, transparent);
    border-radius: 50%;
    animation: energyBurst 3s ease-out infinite;
}

@keyframes energyBurst {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}