/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #090b18;
    color: white;
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* Starfield Canvas */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.3));
}

/* Parallax Background Layers */
.parallax-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -20;
    pointer-events: none;
}

.layer-1 {
    background: radial-gradient(60% 60% at 70% 10%, rgba(59,130,246,0.35), transparent);
}

.layer-2 {
    background: radial-gradient(45% 45% at 10% 20%, rgba(168,85,247,0.35), transparent);
}

.layer-3 {
    background: radial-gradient(40% 40% at 50% 90%, rgba(236,72,153,0.35), transparent);
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(12px);
    background: rgba(9, 11, 24, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.nav-icon {
    padding: 0.5rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links {
    display: none;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.nav-links a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: white;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero {
        padding: 9rem 0 6rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa, #c084fc, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    color: rgba(255, 255, 255, 0.8);
    max-width: 36rem;
    margin-bottom: 1.75rem;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.rocket-icon {
    padding: 0.75rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    cursor: pointer;
}

.rocket-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.3);
}



/* Hero Visual */
.hero-visual {
    position: relative;
    height: 26rem;
}

@media (min-width: 768px) {
    .hero-visual {
        height: 32rem;
    }
}

.rocket-container {
    position: absolute;
    right: 1rem;
    bottom: 2.5rem;
}

.rocket-main {
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 10px 18px rgba(59, 130, 246, 0.45));
}

.asteroids {
    position: absolute;
    inset: 0;
}

.asteroid {
    z-index: -1;
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #FFB76B, #D2691E);
    border: 2px solid #6B2D10;
    filter: drop-shadow(0 0 12px rgba(255, 140, 0, 0.35));
}

.asteroid::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #8B4513;
    border-radius: 50%;
    top: 15px;
    left: 20px;
}

.asteroid::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #8B4513;
    border-radius: 50%;
    bottom: 18px;
    right: 15px;
}

.asteroid-1 {
    left: 2rem;
    top: 3rem;
    width: 60px;
    height: 60px;
}

.asteroid-2 {
    right: 4rem;
    top: 6rem;
    width: 46px;
    height: 46px;
}

.asteroid-3 {
    left: 33%;
    bottom: 2.5rem;
    width: 36px;
    height: 36px;
}

/* Floating Animation */
.floating {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.asteroid {
    animation: rotate 20s linear infinite, float 6s ease-in-out infinite;
}

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

/* Sections */
section {
    padding: 5rem 0;
}

@media (min-width: 768px) {
    section {
        padding: 7rem 0;
    }
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.section-header h2,
.section-header h3 {
    font-size: 1.875rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .section-header h2,
    .section-header h3 {
        font-size: 2.25rem;
    }
}

/* Projects Section */
.projects {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s;
    margin-bottom: 3rem;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.075);
    transform: translateY(-2px);
}

.featured {
    position: relative;
}

.featured::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(168,85,247,0.2), rgba(236,72,153,0.2));
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.featured:hover::before {
    opacity: 1;
}

.project-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .project-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.project-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.project-title h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .project-title h3 {
        font-size: 1.875rem;
    }
}

.badge {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.025em;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.project-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.project-content {
    display: grid;
    gap: 2rem;
    align-items: center;
    padding: 0 1.5rem 1.5rem;
}

@media (min-width: 768px) {
    .project-content {
        grid-template-columns: 1fr 1fr;
    }
}

.project-description p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.feature-list {
    list-style: disc;
    list-style-position: inside;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.feature-list li {
    margin-bottom: 0.5rem;
}



.project-image {
    position: relative;
}

.project-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.projects-grid .project-card {
    margin-bottom: 0;
    padding: 1.5rem;
}

.projects-grid .project-header {
    padding: 0;
    margin-bottom: 1rem;
}

.projects-grid .project-title h3 {
    font-size: 1.25rem;
}

.projects-grid p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Astroid Details Section */
.astroid-details {
    position: relative;
}

.details-content {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .details-content {
        grid-template-columns: 1fr 1fr;
    }
}

.details-text {
    position: relative;
}

.floating-asteroids {
    position: absolute;
}

.asteroid-detail-1 {
    position: absolute;
    top: -2rem;
    left: -2rem;
    width: 72px;
    height: 72px;
}

.asteroid-detail-2 {
    position: absolute;
    bottom: -1.5rem;
    right: -2rem;
    width: 54px;
    height: 54px;
}

.details-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .details-text h3 {
        font-size: 1.875rem;
    }
}

.details-text p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.tech-item {
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    text-align: center;
}

.details-demo {
    position: relative;
}

.details-demo::before {
    content: '';
    position: absolute;
    inset: -2.5rem;
    background: radial-gradient(60% 60% at 50% 50%, rgba(59, 130, 246, 0.25), transparent);
    z-index: -1;
}

.demo-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-content {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

.about-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .about-text h3 {
        font-size: 1.875rem;
    }
}

.about-text p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.skills {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.skill-tag {
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.about-image {
    position: relative;
}

.floating-rocket {
    position: absolute;
    top: -2rem;
    right: 2.5rem;
    padding: 0.5rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: float 4s ease-in-out infinite;
}

.about-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}



/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-tech {
    display: none;
}

@media (min-width: 768px) {
    .footer-tech {
        display: inline;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: rgba(99, 102, 241, 0.4);
}