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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 10px 0;
}

#navbar ul {
    display: flex;
    justify-content: right;
    padding: 15px 0;
}

#navbar li {
    list-style: none;
    margin: 0 12px;
}

#navbar a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

#navbar a:hover {
    color: white;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Navbar when scrolled */
#navbar.scrolled a {
    color: #0f172a;
    text-shadow: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled a:hover {
    color: #0ea5e9;
    text-shadow: none;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}


/* Landing Section */
#landing {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #0ea5e9 100%);
    position: relative;
    overflow: hidden;
}

.name-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    z-index: 10;
}

.greeting {
    font-size: 0.8rem;
    font-weight: 400;    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;    color: rgb(255, 255, 255);
    text-align: left;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.name-container:hover .greeting {
    transform: translateY(-8px);
}

/* Twinkling stars */
.stars-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    transition: transform 0.1s ease-out;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    opacity: 0;
    animation: twinkle 3s ease-in-out infinite;
}

.star:nth-child(1) { animation-delay: 0s; animation-duration: 4s; }
.star:nth-child(2) { animation-delay: 0.5s; animation-duration: 5.1s; }
.star:nth-child(3) { animation-delay: 1s; animation-duration: 4.5s; }
.star:nth-child(4) { animation-delay: 1.5s; animation-duration: 5.5s; }
.star:nth-child(5) { animation-delay: 0.3s; animation-duration: 4.2s; }
.star:nth-child(6) { animation-delay: 2s; animation-duration: 4.8s; }
.star:nth-child(7) { animation-delay: 0.8s; animation-duration: 4.6s; }
.star:nth-child(8) { animation-delay: 1.2s; animation-duration: 5.3s; }
.star:nth-child(9) { animation-delay: 1.8s; animation-duration: 4.3s; }
.star:nth-child(10) { animation-delay: 0.2s; animation-duration: 5s; }
.star:nth-child(11) { animation-delay: 2.2s; animation-duration: 4s; }
.star:nth-child(12) { animation-delay: 0.6s; animation-duration: 5.4s; }
.star:nth-child(13) { animation-delay: 1.4s; animation-duration: 4s; }
.star:nth-child(14) { animation-delay: 2.5s; animation-duration: 5.1s; }
.star:nth-child(15) { animation-delay: 1.6s; animation-duration: 4.5s; }

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

/* Shooting stars */
.shooting-stars-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
    transition: transform 0.1s ease-out;
}

.shooting-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 6px 3px rgba(255, 255, 255, 0.9);
    opacity: 0;
}

.shooting-star.active {
    animation: shoot 3s ease-out forwards;
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 0;
    left: 3px;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, white 0%, rgba(255, 255, 255, 0.7) 40%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    transform-origin: left center;
}

@keyframes shoot {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(0) rotate(-25deg);
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateX(-400px) translateY(120px) rotate(-25deg);
    }
}

#name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    text-align: center;
    user-select: none;
    letter-spacing: 2px;
    padding: 10px 20px;
    position: relative;
    z-index: 10;
    display: inline-block;
    border: 2px solid transparent;
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

#name::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    padding: 2px;
    background: conic-gradient(
        from var(--angle, 0deg),
        transparent 0%,
        transparent 85%,
        rgba(255, 255, 255, 0.8) 92%,
        white 95%,
        rgba(255, 255, 255, 0.8) 98%,
        transparent 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
}

#name:hover::before {
    opacity: 1;
    animation: rotate-gradient 2s linear infinite;
}

#name:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
}

#name:active {
    transform: scale(0.98);
}

@keyframes rotate-gradient {
    0% {
        --angle: 0deg;
        filter: hue-rotate(0deg);
    }
    100% {
        --angle: 360deg;
        filter: hue-rotate(360deg);
    }
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Content Section */
#content {
    min-height: 100vh;
    background: #f1f5f9;
    padding: 80px 20px;
}

.section-container {
    max-width: 900px;
    margin: 0 auto 60px;
    background: white;
    padding: 45px 35px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 5px;
    background: linear-gradient(135deg, #0ea5e9 0%, #000000 100%);
    border-radius: 3px;
}

/* About Me Section */
.about-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.about-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.about-text-container {
    flex: 1;
}

.about-text {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 16px;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* Experience Section */
.timeline-container {
    position: relative;
    padding-top: 20px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #000000, rgb(0, 0, 0));
}

.experience-item {
    position: relative;
    margin-bottom: 45px;
    padding-left: 60px;
    padding-bottom: 0;
    border-bottom: none;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid #000000;
    border-radius: 50%;
    box-shadow: 0 0 0 4px white, 0 0 0 6px rgba(14, 165, 233, 0.2);
    z-index: 1;
}

.experience-item:last-child {
    margin-bottom: 0;
}

.experience-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.experience-company {
    font-size: 0.95rem;
    color: #000000;
    font-weight: 500;
    margin-bottom: 4px;
}

.experience-date {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 12px;
    font-style: italic;
}

.experience-description {
    list-style-position: outside;
    color: #475569;
    padding-left: 20px;
}

.experience-description li {
    margin-bottom: 6px;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Projects Section */
.project-item {
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f08a;
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateX(10px) translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

.project-item:last-child {
    margin-bottom: 0;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.project-description {
    color: #475569;
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 0.9rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #00aeff 0%, #ffffff 100%);
    color: rgb(0, 0, 0);
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
    transition: all 0.2s ease;
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

.project-links {
    margin-top: 12px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    position: relative;
}

.project-link::after {
    content: ' →';
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.project-link:hover {
    color: #0ea5e9;
}

.project-link:hover::after {
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile navbar adjustments */
    #navbar ul {
        justify-content: center;
        padding: 10px 0;
    }

    #navbar li {
        margin: 0 4px;
    }

    #navbar a {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    #name {
        font-size: 2.5rem;
        padding: 0 20px;
    }

    .section-container {
        padding: 40px 25px;
    }

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

    .experience-title,
    .project-title {
        font-size: 1.3rem;
    }

    #content {
        padding: 60px 15px;
    }

    /* Adjust timeline for smaller screens */
    .timeline-container::before {
        left: 0;
    }

    .experience-item {
        padding-left: 50px;
    }

    .experience-item::before {
        left: -9px;
    }

    /* Stack About Me section on mobile */
    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-image {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile navbar */
    #navbar li {
        margin: 0 2px;
    }

    #navbar a {
        padding: 5px 8px;
        font-size: 0.85rem;
    }

    #name {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .experience-item {
        padding-left: 40px;
    }

    .timeline-container::before {
        width: 2px;
    }

    .experience-item::before {
        left: -8px;
        width: 12px;
        height: 12px;
        border-width: 2px;
    }
}

/* Footer */
.footer {
    background: #f1f5f9;
    padding: 20px 20px 40px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.social-link {
    color: #64748b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #0ea5e9;
    transform: translateY(-3px);
}

.social-link svg {
    transition: all 0.3s ease;
}
