* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}

body {
    font-family: 'Outfit', sans-serif;
    font-display: swap;
    background-color: #000;
    color: #fff;
}

.sticky-header {
    position: sticky;
    top: 0;
    background-color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 1000;
    border-bottom: 2px solid #8000ff;
}

.logo {
    font-weight: bold;
    font-size: 1.2rem;
    color: #fff;
}

nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

nav a {
    text-decoration: none;
    color: #fff;
    padding: 0.5rem;
    transition: background-color 0.2s, color 0.2s;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav a:hover {
    background-color: #338eda;
}

nav a.active {
    background-color: #fff;
    color: #000;
}

.social-icon {
    height: 24px;
    filter: brightness(0) invert(1);
    transition: filter 0.2s;
    display: block;
}

nav a:hover .social-icon {
    filter: brightness(0) invert(0.6);
}

nav .portfolio-dropdown {
    position: relative;
}

nav .portfolio-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #111;
    border: 1px solid #8000ff;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 180px;
    border-radius: 4px;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s;
}

.dropdown-menu a:hover {
    background-color: #338eda;
}

.cv-button {
    background-color: #38c172;
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    background-color:white;
    height: 3px;
    width: 25px;
    border-radius: 2px;
}


@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #000;
        padding: 1rem 0;
        border-top: 2px solid #8000ff;
        border-bottom: 2px solid #8000ff;
        border-left: 2px solid #8000ff;
        border-right: 2px solid #8000ff;
    }

    nav.show {
        display: flex;
    }

    nav a, .cv-button {
        width: 100%;
        text-align: laft;
        padding: 1rem 2rem;
        border-radius: 0;
        position: relative;
        opacity: 0;
        animation: fadeSlideIn 0.3s ease forwards;
    }

    nav a:nth-child(1) {animation-delay: 0.04s;}
    nav a:nth-child(2) {animation-delay: 0.08s; }
    nav a:nth-child(3) {animation-delay: 0.12s;}
    nav a:nth-child(4) {animation-delay: 0.16s; }
    nav a:nth-child(5) {animation-delay: 0.2s;}
    nav a:nth-child(6) {animation-delay: 0.24s; }
    nav a:nth-child(7) {animation-delay: 0.28s;}

    @keyframes fadeSlideIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    nav a::after, .cv-button::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 25%;
        width: 50%;
        height: 1px;
        background-color: #8000ff;
    }

    .portfolio-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        display: none;
        position: static;
        border: none;
        border-top: 1px solid #8000ff;
    }

    .portfolio-dropdown.active .dropdown-menu {
        display: block;
    }

    .hamburger {
        display: flex;
    }
}

.hero {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2e004f 100%);
    padding: 6rem 2rem 8rem;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    color: #fff;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons a {
    background-color: #338eda;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    transition: background-color 0.3s;

}

.hero-buttons a:hover {
    background-color: #1f6cb0;
}

.projects {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.projects h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.projects p {
    margin-bottom: 2rem;
    color: #bbb;
}

.project-grid {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.project {
    background-color: #111;
    border: 1px solid #8000ff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project:hover {
    transform: translateY(-5px);
}

.project img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 /9;
}

.project .text-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    padding: 1rem;
    width: 100%;
    background-color: #222;
    color: #fff;
    text-align: left;
}

.project .text-section h3 {
    margin: 0;
    font-size: 1.1rem;
}

.project .text-section p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: #bbb;
    flex-grow: 1;
}

.project button {
    background-color: #338eda;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}

.project button:hover {
    background-color: #1f6cb0;
}

.about-summary {
    max-width: 800px;
    margin: 4rem auto 6rem auto;
    padding: 3rem;
    padding-left: 4rem;
    padding-right: 4rem;
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
    position:relative;
}

.about-summary::before, .about-summary::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid white;
}

.about-summary::before {
    top:-10px;
    left:-10px;
    border-right: none;
    border-bottom: none;
}

.about-summary::after {
    bottom:-10px;
    right:-10px;
    border-top: none;
    border-left: none;
}



.about-main {
    padding: 4rem 2rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    color: #fff;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #8000ff;
}

.about-header-text {
    max-width: 500px;
    text-align: center;
    flex: 1 1 100%;
}

.about-header-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 50px;
    width: 100%;
    letter-spacing: 10px;
}

.about-header-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem; 
}


.about-header-text h2::before,
.about-header-text h2::after {
    content: '';
    flex: 1;
    height: 2px;
    background-color: #ccc;
}

.about-header-text .tagline {
    font-size: 0.95rem;
    color: #aaa;
}

.about-bio {
    margin-top: 3rem;
    text-align: left;
}

.about-bio h3 {
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.about-nio ul{
    margin-bottom:1.5rem;
}

.about-bio p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
    color: #ddd;
    text-align: justify;
}

.work-experience {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.work-experience h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.timeline {
    position: relative;
    margin: 2rem 0;
    padding-left: 40px;
    border-left: 2px solid #888;
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0.2em;
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
}

.timeline-date {
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.timeline-role {
    font-weight: 600;
}

.timeline-desc {
    font-size: 0.95rem;
    color: #ccc;
}



.portfolio-container {
    display: flex;
    flex-wrap: wrap;
    padding: 2rem;
    gap: 2rem;
    color: #fff;
    max-width: 1200px;
    margin: auto;
}

.filter-sidebar {
    flex: 1 1 200px;
    position: sticky;
    top: 80px;
}

.filter-sidebar button {
    display: block;
    margin: 0.5rem 0;
    padding: 0.5rem 1rem;
    background-color: #111;
    border: 1px solid #555;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

.filter-sidebar button.active {
    background-color: #00ffaa;
    color: #000;
    font-weight: bold;
}

.project-list {
    flex: 3 1 700px ;
    display: grid;
    gap: 2rem;
}

.project-card {
    background: #1a1a1a;
    display: flex;
    flex-direction: row;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    max-width: 100%;
    min-height: 220px;
    align-items: center;
}

.project-card img {
    width: 180px;
    height: auto;
    object-fit: cover;
}

.project-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 0.5rem;
}

.project-content h4 {
    margin: 0;
    font-size: 1.5rem;
}

.tag {
    background: #00ffaa;
    color: #000;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    margin-left: 0.5rem;
}

.project-details {
    list-style: none;
    padding:  0;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    position: static;
    z-index: 1;
    transform: none;
    transition: none;
    animation: none;
}

.project-link {
    display: inline-block;
    width: fit-content;
    margin-top: 0.5rem;
    padding: 0.4rem 1rem;
    color: #00ffaa;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.project-link:hover {
    background-color: #00ffaa;
    color: #000;
    border-color: #00ffaa;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.carousel-slide {
    display: none;
    justify-content: center;
    align-items: center;
    background-color: #222;
    border-radius: 8px;
    padding: 1rem;
    height: 400px;
}

.carousel-slide.active {
    display: flex;
}

.carousel-slide img, .carousel-slide model-viewer, .carousel-slide audio {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.carousel-nav {
    text-align: center;
    margin-top: 1rem;
}

.carousel-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    border-radius: 50%;
    background-color: #aaa;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background-color: #00ffaa;
}

.carousel-arrow {
    position: absolute;
    top: calc(50% - 25px);;
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 6px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.carousel-arrow.left {
    left: 10px;
}

.carousel-arrow.right {
    right: 10px;
}

model-viewer {
    flex: 1 1 100%;
    margin-bottom: 1rem;
}

.model-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    z-index: 5;
    max-width: 200px;
}

.model-controls ul {
    list-style: none;
    padding-left: 0;
    margin: 0.2rem 0 0 0;
}

.model-controls li {
    margin-bottom: 0.2rem;
}

.choice-container {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.choice-container button {
    padding: 10px 20px;
    background-color: #8000ff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
