* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #f5f5dc;
    background-color: #0a0a0a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: #0a0a0a !important;
    box-shadow: 0 2px 20px rgba(0,0,0,1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f5f5dc;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #f5f5dc;
    font-weight: 500;
    transition: color 0.3s;
    align-items: right
}

.nav-menu a:hover {
    color: #00ff88;
    transform: translate y(-2px);
}

.work-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #00ff88;
}

.pulse-circle {
    width: 12px;
    height: 12px;
    background-color: #00ff88;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
}

.pulse-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: #00ff88;
    border-radius: 50%;
    animation: pulseRing 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.CompactMenu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(245,245,220,0.08);
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245,245,220,0.1);
    z-index: 1001;
    transition: all 0.3s ease;
}

.CompactMenu:hover {
    background: rgba(245,245,220,0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.CompactMenu span {
    width: 18px;
    height: 2px;
    background: #f5f5dc;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 1px;
}

.CompactMenu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.CompactMenu.active span:nth-child(2) {
    opacity: 0;
}

.CompactMenu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.hero {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, #0a0a0a 50%, #0a0a0a 100%);
    color: #f5f5dc;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(245,245,220,0.08);
    border-radius: 50%;
    color: #f5f5dc;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-link:hover {
    background: rgba(245,245,220,0.3);
    transform: translateY(-3px);
}

.hero-description p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.profile-img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250px;
    height: 250px;
    margin: 0 auto;
    cursor: pointer;
    position: relative;
    border-radius: 50%;

}

.profile-picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0;
    transition: none;
    box-shadow: 0 0 0 4px transparent;
    object-fit: cover;
    object-position: center;
}

.profile-img:hover .profile-picture {
    animation: fadeIn 0.5s ease 1s forwards, glowEffect 0.3s ease 1.2s forwards;
}

.hand-emoji {
    font-size: 8rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    z-index: 2;
    position: relative;
    opacity: 1;
    transform: scale(1);
}

.profile-img:hover .hand-emoji {
    animation: wave 1s ease-in-out, fadeOut 0.5s ease 1s forwards;
}

.speech-bubble {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: #00ff88;
    color: rgb(0, 0, 0);
    padding: 2px 18px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    z-index: 0;
    opacity: 1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20%;
    transform: translateX(-10%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #00ff88;
}

.profile-img:hover .speech-bubble {
    animation: bubbleFadeUp 0.6s ease 0.8s forwards;
}

@keyframes bubbleFadeUp {
    to {
        opacity: 0;
        transform: translateX(-10%) translateY(-20px);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes glowEffect {
    to {
        box-shadow: 0 0 30px 4px #00ff88, 0 0 60px 8px rgba(0, 255, 136, 0.3);
    }
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

section {
    padding: 80px 0;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: #f5f5dc;
}


.technologies {
    background: #0a0a0a;
    z-index: 5;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.tech-carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-carousel {
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    position: relative;
    mask: linear-gradient(
        to right,
        transparent 0%,
        rgba(0,0,0,1) 8%,
        rgba(0,0,0,1) 92%,
        transparent 100%
    );
    -webkit-mask: linear-gradient(
        to right,
        transparent 0%,
        rgba(0,0,0,1) 8%,
        rgba(0,0,0,1) 92%,
        transparent 100%
    );
}

.tech-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    align-items: center;
    padding: 2rem 0;
    width: max-content;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #1f1f1f, #2a2a2a);
    border: 2px solid #f5f5dc;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #f5f5dc;
    font-size: 0.9rem;
}

.carousel-nav:hover {
    background: linear-gradient(135deg, #4a4a4a, #5a5a5a);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(245, 245, 220, 0.2);
}

.carousel-prev {
    left: -18px;
}

.carousel-next {
    right: -18px;
}

.fade-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
    z-index: 5;
}

.fade-left {
    left: 0;
    background: linear-gradient(
        to right,
        #0a0a0a 0%,
        rgba(10, 10, 10, 0.4) 50%,
        transparent 100%
    );
}

.fade-right {
    right: 0;
    background: linear-gradient(
        to left,
        #0a0a0a 0%,
        rgba(10, 10, 10, 0.4) 50%,
        transparent 100%
    );
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: #1f1f1f;
    border-radius: 12px;
    transition: all 0.3s;
    border: 2px solid transparent;
    min-width: 120px;
    flex-shrink: 0;
}

.tech-item:hover {
    background: #4a4a4a;
    border-color: #f5f5dc;
    transform: translateY(-5px) scale(1.05);
}

.tech-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #f5f5dc;
}

.tech-item span {
    font-weight: 500;
    color: #e8e8e8;
    font-size: 0.9rem;
    text-align: center;
}

.tech-status {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    margin-top: 0.3rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-status.learnt {
    color: #00ff88 !important;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.tech-status.learning {
    color: #ffa500 !important;
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
    .tech-carousel-wrapper {
        padding: 0 60px;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    .carousel-nav {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .tech-item {
        min-width: 100px;
        padding: 1rem;
    }
    
    .tech-track {
        gap: 1.5rem;
    }
    
    .fade-overlay {
        width: 40px;
    }
}

@media (max-width: 480px) {
    .tech-carousel-wrapper {
        padding: 0 50px;
    }
    
    .tech-carousel {
        max-width: 300px;
    }
    
    .tech-item {
        min-width: 80px;
        padding: 0.8rem;
    }
    
    .tech-item i {
        font-size: 1.5rem;
    }
    
    .tech-item span {
        font-size: 0.8rem;
    }
}
.experience {
    z-index: 5;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    color: #f5f5dc;
    margin-bottom: 2rem;
    padding: 0 20px;
}

.experience-item {
    color: #f5f5dc;
    margin-bottom: 2rem;
   border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}


.experience-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

.experience-item:hover::before {
    opacity: 0.6;
    filter: blur(2px);
    transform: scale(1.02);
}


.experience-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    opacity: 0.4;
    z-index: -1;
    transition: all 0.4s ease;
}

.experience-item:nth-child(1)::before {
    background-image: url('imgs/ntusoftwareengineering.jpg');
}

.experience-item:nth-child(2)::before {
    background-image: url('imgs/ntulawschool.jpg');
}

.experience-header {
    margin-bottom: 1rem;
    color: #f5f5dc;
}

.experience-header a:visited {
     color: #f5f5dc;
}

.duration {
    opacity: 50%
        }

.learn-more {
    color: #f5f5dc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.projects {
    background: #0a0a0a;
    z-index: 5;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    color: none;
}

.project-item {
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}
.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    opacity: 0.4;
    z-index: -1;
    transition: all 0.4s ease;
}

.project-item:nth-child(1)::before {
    background-image: url('imgs/GuitarTabCreator.png');
}

.project-item:nth-child(2)::before {
    background-image: url('imgs/PS2EMULATOR.jpg');
}


.project-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

.project-item:hover::before {
    opacity: 0.6;
    filter: blur(2px);
    transform: scale(1.02);
}

.project-icon {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.project-icon i {
    font-size: 3rem;
    color: #f5f5dc;
}

.project-content {
    position: relative;
    z-index: 1;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #f5f5dc;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    background: #1f1f1f;
    color: #f5f5dc;
    padding: 0.3rem;
    border-radius: 12px;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    opacity: 0.5;
}
.tag:hover {
    background: #3a3a3a;
    opacity: 1;
    transform: translateY(-2px);
}

.contact {
    background: #0a0a0a;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #e8e8e8;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: #1f1f1f;
    border-radius: 8px;
    color: #f5f5dc;
    text-decoration: none;
    transition: all 0.3s;
}

.contact-link:hover {
    background: #3a3a3a;
    color: #f5f5dc;
    transform: translateY(-2px);
}

.contact-link i {
    font-size: 1.2rem;
}

footer {
    background: #0a0a0a;
    color: #f5f5dc;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #0a0a0a;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

.footer-content a {
    color: #f5f5dc;
    text-decoration: none;
}

.footer-content a:hover {
    color: #e8e8e8;
}

.footer-content i {
    color: #ef4444;
    margin: 0 0.5rem;
}

@media (max-width: 768px) {
    .CompactMenu {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #0a0a0a;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.5);
        padding: 2rem 0;

    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .work-status {
        font-size: 0.8rem;
        gap: 0.4rem;
    }
    
    .pulse-circle {
        width: 10px;
        height: 10px;
    }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .profile-img {
        width: 200px;
        height: 200px;
    }
    
    .hand-emoji {
        font-size: 6rem;
    }
    
    .speech-bubble {
        top: -38px;
        font-size: 1rem;
        padding: 7px 12px;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .work-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
    .reference-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .tech-items {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
        max-width: 100%;
    }

    .tech-items-extra {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(50%);
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
        max-width: 100%;
        width: 100%;
    }

    .tech-expand-btn {
        grid-column: 1 / -1;
        min-width: auto;
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    .tech-close-button {
        grid-column: 1 / -1;
        min-width: auto;
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    .tech-close-button i {
        font-size: 0.8rem;
    }

    .tech-item {
        padding: 1rem;
        min-width: auto;
    }

    .tech-item i {
        font-size: 1.5rem;
    }

    .tech-item span {
        font-size: 0.8rem;
    }    .experience-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

    
    .tech-status {
        font-size: 0.65rem !important;
        padding: 0.15rem 0.4rem;
        margin-top: 0.25rem;
    }

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .profile-img {
        width: 150px;
        height: 150px;
    }
    
    .hand-emoji {
        font-size: 4rem;
    }
    
    .speech-bubble {
        top: -32px;
        font-size: 0.9rem;
        padding: 6px 10px;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .CompactMenu {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .CompactMenu span {
        width: 16px;
        height: 2px;
    }
}

html {
    scroll-behavior: smooth;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.8s ease-out;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

.blog-post a {
    color: #66b3ff;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.25rem;
    font-weight:500;  
}

.blog-post a:hover {
    color: #99ccff;
    text-decoration: underline;
}

.blog-post h6 {
    opacity: 0.5;
}
.blog-posts {
    font-family:inherit;
}
.blog-post a {
    color: #b19cd9; 
}


    

