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

body {
    font-family: 'Inter', sans-serif;
    background-color: #020617;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #334155;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    z-index: 1001;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link.active {
    color: #a855f7;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1002;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #cbd5e1;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #a855f7, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    align-items: center;
}

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

.social-link {
    color: #94a3b8;
    font-size: 1.5rem;
    transition: color 0.2s ease;
    text-decoration: none;
}

.social-link:hover {
    color: #ffffff;
}

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

.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6d28d9, #1d4ed8);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid #475569;
}

.btn-outline:hover {
    background: #1e293b;
    color: #ffffff;
}

.btn-primary-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: white;
}

.btn-outline-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background: transparent;
    color: #cbd5e1;
    border: 1px solid #475569;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Sections */
section {
    padding: 5rem 1rem;
    position: relative;
    z-index: 2;
    background-color: #020617;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

/* About Section */
.about {
    background-color: #020617;
    position: relative;
    z-index: 3;
}

.about-content {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #334155;
    max-width: 1000px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: #cbd5e1;
}

.highlight {
    color: #ffffff;
    font-weight: 600;
}

.highlight-blue {
    color: #60a5fa;
    font-weight: 600;
}

.highlight-purple {
    color: #a78bfa;
    font-weight: 600;
}

.highlight-cyan {
    color: #67e8f9;
    font-weight: 600;
}

/* Experience Section */
.experience {
    background: rgba(15, 23, 42, 0.3);
    position: relative;
    z-index: 3;
}

.experience-card {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #334155;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 1.5rem;
}

.experience-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.experience-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.company {
    color: #a78bfa;
    font-weight: 600;
    margin-bottom: 1rem;
}

.experience-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #94a3b8;
    flex-wrap: wrap;
}

.experience-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experience-list {
    list-style: none;
}

.experience-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #cbd5e1;
}

.bullet {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.bullet.purple { background-color: #a78bfa; }
.bullet.blue { background-color: #60a5fa; }
.bullet.cyan { background-color: #67e8f9; }

/* Projects Section */
.projects {
    background-color: #020617;
    position: relative;
    z-index: 3;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #334155;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: #475569;
    transform: translateY(-2px);
}

.project-image {
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.project-content p {
    color: #cbd5e1;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: #1e293b;
    color: #cbd5e1;
    border-radius: 9999px;
    font-size: 0.875rem;
}

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

/* Skills Section */
.skills {
    background: rgba(15, 23, 42, 0.3);
    position: relative;
    z-index: 3;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-category {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #334155;
}

.skill-category h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cbd5e1;
}

.skill-bullet {
    width: 0.5rem;
    height: 0.5rem;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    border-radius: 50%;
}

/* Achievements Section */
.achievements {
    background-color: #020617;
    position: relative;
    z-index: 3;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.achievement-card {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #334155;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.achievement-card:hover {
    border-color: #475569;
    transform: translateY(-2px);
}

.achievement-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.achievement-icon.yellow {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.achievement-icon.purple {
    background: linear-gradient(135deg, #a855f7, #ec4899);
}

.achievement-icon.blue {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.achievement-icon.green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.achievement-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.achievement-content p {
    color: #94a3b8;
}

/* Contact Section */
.contact {
    background: rgba(15, 23, 42, 0.3);
    text-align: center;
    position: relative;
    z-index: 3;
}

.contact-description {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.contact-card {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #334155;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.contact-card:hover {
    border-color: #475569;
    background: rgba(30, 41, 59, 0.5);
    transform: translateY(-2px);
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.contact-label {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.contact-value {
    color: white;
    font-weight: 500;
}

.footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(2, 6, 23, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-top: 1px solid #334155;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 300px;
        margin: 0 auto 3rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .experience-card {
        flex-direction: column;
        text-align: center;
    }

    .experience-meta {
        justify-content: center;
    }

    .project-buttons {
        flex-direction: column;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Remove parallax effect that was causing issues */
.hero {
    transform: none !important;
}

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

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Fix z-index issues */
.navbar {
    z-index: 1000;
}

.nav-menu.active {
    z-index: 999;
}

section {
    position: relative;
    z-index: 1;
}

/* Ensure proper stacking context */
.hero,
.about,
.experience,
.projects,
.skills,
.achievements,
.contact {
    isolation: isolate;
}