/* ============================================
   MODERN GALAXY PROFILE - COMPLETE STYLESHEET
   ============================================ */

* {
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

:root {
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --bg-dark: #0f0f23;
    --bg-darker: #0a0a15;
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --text-light: #e0e0e0;
    --text-lighter: #c0c0d0;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a3e 50%, var(--bg-darker) 100%);
    color: white;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ========== NAVIGATION ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 5%;
    background: rgba(10, 10, 21, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.15);
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.4));
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #c0c0d0;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #a78bfa;
}

.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.35rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #a78bfa;
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 21, 0.95);
        backdrop-filter: blur(20px);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(124, 58, 237, 0.15);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 400px;
    }

    .hamburger {
        display: flex;
    }
}

/* ========== SECTIONS ========== */
.section {
    min-height: 100vh;
    padding: 8rem 5% 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse 800px 300px at 50% 50%, rgba(124, 58, 237, 0.03), transparent);
    pointer-events: none;
}

.section-container {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #7c3aed, #3b82f6);
    border-radius: 2px;
}

/* ========== HERO SECTION ========== */
.hero-section {
    min-height: 120vh;
    padding-top: 6rem;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.stars::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 60px 70px, #ddd, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50px 50px, #aaa, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 500px 500px;
    animation: twinkle 5s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-img-wrapper {
    perspective: 1000px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

.hero-img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 
        0 0 60px rgba(124, 58, 237, 0.6),
        0 0 120px rgba(59, 130, 246, 0.3),
        inset 0 0 60px rgba(124, 58, 237, 0.1);
    border: 2px solid rgba(167, 139, 250, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-img:hover {
    transform: scale(1.05) rotateZ(-2deg);
    box-shadow: 
        0 0 80px rgba(124, 58, 237, 0.8),
        0 0 160px rgba(59, 130, 246, 0.5),
        inset 0 0 80px rgba(124, 58, 237, 0.2);
}

.hero-text h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.gradient-text {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-text {
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.3s both;
    min-height: 4rem;
    display: flex;
    align-items: center;
}

.typing-text span {
    position: relative;
    display: inline-block;
    min-width: clamp(150px, 40vw, 400px);
}



.hero-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #c0c0d0;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.4s both;
    max-width: 500px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.1);
    border: 2px solid rgba(167, 139, 250, 0.3);
    color: #a78bfa;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-icons a:hover {
    background: #7c3aed;
    color: white;
    transform: translateY(-10px) scale(1.2);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.5);
}

.scroll-indicator {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease 0.6s both;
    color: #a78bfa;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-indicator i {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ========== ABOUT SECTION ========== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.content-card {
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-card:hover {
    transform: translateY(-10px);
    border-color: rgba(167, 139, 250, 0.5);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #a78bfa;
}

.content-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.content-card p {
    color: #c0c0d0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ========== TIMELINE (EDUCATION) ========== */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #7c3aed, #3b82f6, transparent);
}

.timeline-item {
    margin-bottom: 3rem;
    width: 48%;
    position: relative;
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
    text-align: right;
    padding-right: 4rem;
}

.timeline-item:nth-child(even) {
    margin-left: 52%;
    padding-left: 4rem;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #7c3aed;
    border: 3px solid #0f0f23;
    border-radius: 50%;
    top: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -40px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -40px;
}

.timeline-marker:hover {
    width: 28px;
    height: 28px;
    top: 1px;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.8);
}

.timeline-content {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
    padding: 2rem;
    border-radius: 10px;
    border-left: 3px solid #7c3aed;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
    transform: translateY(-5px);
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #a78bfa;
}

.timeline-date {
    font-size: 0.85rem;
    color: #60a5fa;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-desc {
    color: #c0c0d0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 0;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding: 0 0 2rem 4rem;
        text-align: left;
    }

    .timeline-marker,
    .timeline-item:nth-child(odd) .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        left: -40px;
    }
}

/* ========== PROJECTS ========== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: rgba(124, 58, 237, 0.03);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-15px);
    border-color: rgba(167, 139, 250, 0.6);
    box-shadow: 0 30px 60px rgba(124, 58, 237, 0.3);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.project-card:hover .project-image::after {
    background: rgba(0, 0, 0, 0.1);
}

.project-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.project-info p {
    color: #c0c0d0;
    line-height: 1.6;
    flex-grow: 1;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 1.5rem 0;
}

.tag {
    padding: 0.4rem 1rem;
    background: rgba(124, 58, 237, 0.2);
    color: #a78bfa;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(124, 58, 237, 0.4);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #a78bfa;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.project-link:hover {
    gap: 1rem;
    color: #60a5fa;
}

/* ========== SKILLS ========== */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #a78bfa;
    font-weight: 700;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    align-items: center;
}

.skill-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(124, 58, 237, 0.1);
    padding: 4px;
    border: 1px solid rgba(167, 139, 250, 0.2);
    transition: all 0.3s ease;
}

.skill-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.skill-item span {
    color: #e0e0e0;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fillBar 1s ease forwards;
}

@keyframes fillBar {
    from { width: 0; }
}

/* ========== FOOTER ========== */
.footer {
    background: rgba(10, 10, 21, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(124, 58, 237, 0.15);
    padding: 3rem 5%;
    text-align: center;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    color: #c0c0d0;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #a78bfa;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .section {
        padding: 6rem 5% 3rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 4%;
    }

    .logo {
        font-size: 1.5rem;
    }

    .section {
        padding: 5rem 4% 2rem;
        min-height: auto;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .hero-section {
        min-height: 100vh;
        padding-top: 6rem;
    }

    .hero-img {
        max-width: 300px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .typing-text {
        font-size: 1.5rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem 3%;
    }

    .logo {
        font-size: 1.3rem;
    }

    .section {
        padding: 4rem 3% 1.5rem;
    }

    .hero-text h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .typing-text {
        font-size: 1.2rem;
        min-height: 3rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-marker,
    .timeline-item:nth-child(odd) .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        left: -40px;
    }

    .project-image {
        height: 150px;
    }

    .footer-links {
        gap: 1rem;
    }
}