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

/* General */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #2c2c2c;
    color: #fff;
}

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

/* Background Carousel */
.background-carousel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    overflow: hidden;
    z-index: -1;
    opacity: 0.2;
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scrollBackground 40s linear infinite;
}

.carousel-track img {
    width: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

@keyframes scrollBackground {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .background-carousel {
        display: none;
    }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.navbar .logo img {
    width: 300px;
}

.navbar .nav-links {
    display: flex;
    gap: 20px;
}

.nav-links .nav-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.nav-links .nav-link:hover {
    color: #FFCA6B;
    text-shadow: 0 0 10px #FFCA6B, 0 0 20px #FFCA6B, 0 0 30px #FFCA6B;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    width: 100%;
    padding: 40px 0;
    padding-left: 100px;
}

.hero-content {
    max-width: 600px;
    margin-bottom: 100px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    margin-top: 100px;
}

.highlight-text {
    background: linear-gradient(to top, #FFCA6B, #ffd586);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cursor {
    color: #cccccc;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-content p {
    color: #aaaaaa;
    margin-bottom: 30px;
}

.buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-gallery {
    background: linear-gradient(to top, #FFCA6B, #ffd586);
    color: #2C2C2C;
}

.btn-gallery:hover {
    background: linear-gradient(to top, #e6b760, #dfb25e);
}

.btn-contact {
    background-color: #ffffff;
    color: #2C2C2C;
}

.btn-contact:hover {
    background-color: #eeeeee;
}

.hero-image img {
    max-width: 330px;
    animation: bounce 2s infinite;
    margin-top: 20px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsive Hero */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar .logo img {
        width: 200px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: left;
        padding-left: 0;
    }

    .nav-links .nav-link {
        display: block;
        padding: 10px 0;
        text-align: center;
    }

    .navbar.show-menu .nav-links {
        display: flex;
    }

    .hero-image {
        display: none;
    }

    .sliding-background {
        display: none;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-top: 50px;
    }

    .buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        padding: 10px 20px;
    }
}

/* About Section */
.about-section {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    align-items: center;
}

.about-content {
    display: flex;
    align-items: center;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.profile-image {
    width: 400px;
    height: auto;
}

.about-text {
    flex: 1;
    padding: 50px 80px;
}

.about-text h1 {
    font-size: 3rem;
    color: #FFCA6B;
    padding-bottom: 20px;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #dddddd;
}

@media (max-width: 768px) {
    .about-image {
        display: none;
    }
    .about-text {
        padding: 20px;
    }
}

/* Resume Section */
.resume-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    text-align: center;
}

.resume-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.resume-icon {
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.resume-icon:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

.resume-caption {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 500;
}

/* Portfolio Section */
.portfolio-section {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    align-items: center;
}

.portfolio-section:nth-child(even) .portfolio-text {
    order: 1;
    padding-top: 20px;
}

.portfolio-section:nth-child(even) .portfolio-image {
    order: 0;
}

.portfolio-text {
    flex: 1;
    padding: 0 30px;
    padding-top: 20px;
}

.portfolio-text h2 {
    font-size: 2.5rem;
    color: #FFCA6B;
    margin-bottom: 20px;
    padding-top: 20px;
}

.portfolio-text p {
    color: #dddddd;
    font-size: 1.2rem;
    line-height: 1.6;
}

.portfolio-image {
    flex: 1;
    display: flex;
    justify-content: center;
    padding-top: 20px;
}

.portfolio-image img {
    width: 100%;
    max-width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .about-image,
    .portfolio-image {
        display: none;
    }
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    .resume-container {
        order: 3;
        margin-top: 1.5rem;
        align-self: center;
    }
}

/* Fade Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

.fade-up > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.show > * {
    opacity: 1;
    transform: translateY(0);
}

.fade-up.show > *:nth-child(1) { transition-delay: 0.2s; }
.fade-up.show > *:nth-child(2) { transition-delay: 0.4s; }
.fade-up.show > *:nth-child(3) { transition-delay: 0.6s; }
.fade-up.show > *:nth-child(4) { transition-delay: 0.8s; }
.fade-up.show > *:nth-child(5) { transition-delay: 1s; }

/* categories */
.filter-section {
    text-align: center;
    margin: 30px 0;
}

.filter-btn {
    background-color: #777777;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 20px;
    cursor: pointer;
}

.filter-btn.active, .filter-btn:hover {
    background-color: #FFCA6B;
}

/* Gallery */
.gallery {
    column-count: 3; /* number of columns */
    column-gap: 20px;
}

.gallery img {
    border-radius: 15px;
    object-fit: cover;
}

.gallery video {
    border-radius: 10px;
    object-fit: cover;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.gallery video:hover {
    transform: scale(1.05);
}

.gallery-item {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    object-fit: cover;
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.5s ease, opacity 0.5s ease;
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item.hidden {
    opacity: 0;
    transform: translateY(30px);
}

.gallery-item.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(2);
    z-index: 1000;
    max-width: 15%;
    max-height: 50%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.gallery-item.expanded::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item p {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    opacity: 0;
    transform: translateX(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.modal-content.active {
    opacity: 1;
    transform: translateX(0);
}

.modal-content.slide-left {
    transform: translateX(-30px);
}

.modal-content.slide-right {
    transform: translateX(30px);
}

.close {
    position: absolute;
    top: 30px;
    right: 45px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s;
    user-select: none;
    z-index: 1001;
}

.prev:hover, .next:hover {
    color: #FFCA6B;
    text-shadow: 0 0 10px #FFCA6B, 0 0 20px #FFCA6B;
}

.prev { left: 20px; }
.next { right: 20px; }

#modalVideo {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

/* mobile gallery */
@media (max-width: 768px) {
    .gallery {
        column-count: unset;      
        column-gap: 0;           
        display: flex;            
        flex-direction: column;   
        gap: 20px;               
    }

    .gallery-item {
        display: block;        
        margin: 0 auto;          
        width: 100%;
    }

    .prev, .next {
        display: none !important;
    }
}

/* Zoom Button */
.zoom-btn {
    position: absolute;
    bottom: 20px;
    left: 50%; 
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: background 0.3s, color 0.3s;
}

.zoom-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}


/* Contact Section */
.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px 0;
    position: relative;
}

.contact-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #FFCA6B;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

.contact-section p {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 600px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-item img {
    width: 20px;
    margin-top: 50px;
    margin-bottom: 10px;
}

.contact-item a {
    font-size: 0.9rem;
    color: #ccc;
    text-decoration: none;
}

.contact-item a:hover {
    color: #fff;
}

.contact-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: url('../public/background-icons.png') center bottom no-repeat;
    background-size: cover;
    opacity: 0.1;
    z-index: -1;
}

@media (max-width: 768px) {
    .contact-methods {
        flex-direction: column;
        gap: 30px;
    }
    .contact-section h1 {
        font-size: 3rem;
    }
    .contact-section p {
        font-size: 1rem;
    }
    .contact-item img {
        width: 30px;
    }
    .contact-item a {
        font-size: 1rem;
    }
}

/* Bubbles */
.bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bubble {
    width: 150px;
    height: auto;
    position: absolute;
    animation: float 6s infinite ease-in-out;
}

.bubble-1 { top: 22%; left: 30%; animation-delay: 0s; }
.bubble-2 { top: 20%; left: 70%; animation-delay: 2s; }
.bubble-3 { top: 35%; left: 65%; animation-delay: 4s; }
.bubble-4 { top: 38%; left: 25%; animation-delay: 1s; }
.bubble-5 { top: 35%; left: 60%; animation-delay: 0s; }
.bubble-6 { top: 50%; left: 35%; animation-delay: 0s; }
.bubble-7 { top: 55%; left: 62%; animation-delay: 4s; }

@media (max-width: 768px) {
    .bubbles { display: none; }
}
