/* --- Global Styles & Resets --- */
body {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    background-color: #111;
    color: #fff;
}

a {
    color: #00bfff;
    text-decoration: none;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid #fff;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.btn:hover {
    background-color: #fff;
    color: #111;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px 60px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}
.header-logo .custom-logo {
    max-height: 100px;
    width: auto;
}
.back-to-home-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s ease;
}
.back-to-home-btn:hover {
    background: #fff;
    color: #111;
}

/* --- Dynamic Background (For Portfolio Page) --- */
#dynamicBg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-color: #111;
}
#dynamicBg .bg-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}
.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}
.bg-image.active {
    opacity: 1;
}

/* --- Page Backgrounds --- */
body.home {
    background-image: 
        linear-gradient(rgba(17, 17, 17, 0.3), rgba(17, 17, 17, 0.3)),
        url('https://vfx.it/wp-content/uploads/2025/09/BgBW.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
body.page-template-template-about {
    background-image: 
        linear-gradient(rgba(17, 17, 17, 0.7), rgba(17, 17, 17, 0.7)),
        url('https://vfx.it/wp-content/uploads/2025/09/About_Bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
body.page-template-template-showreel {
    background-image: 
        linear-gradient(rgba(17, 17, 17, 0.3), rgba(17, 17, 17, 0.3)),
        url('https://vfx.it/wp-content/uploads/2025/09/showreel_Bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* --- Home Page --- */
.home-container {
    display: flex;
    min-height: 100vh;
    padding: 0 10%;
    gap: 30px;
}
.home-content-column,
.home-carousel-column {
    margin-top: auto;
    margin-bottom: auto;
    width: 35%;
}
.home-carousel-column {
    width: 65%;
}
.home-content-block {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
.home-content-block.active {
    display: block;
    opacity: 1;
}
.home-content-block .site-title {
    font-size: 3.5rem;
    margin: 0;
    line-height: 1.1;
}
.home-content-block .site-subtitle {
    font-size: 1.2rem;
    opacity: 0.7;
    margin: 10px 0 30px 0;
}
.home-content-block h2 {
    font-size: 3.5rem;
    margin-top: 0;
}
.home-card-container {
    display: flex;
    justify-content: center;
    gap: 30px;
}
.home-card-link {
    flex: 1;
    max-width: 35%;
}
.home-card {
    position: relative;
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.4);
}
.home-card-link:hover .home-card {
    transform: scale(1.05);
    box-shadow: 0px 25px 50px rgba(0, 0, 0, 0.5);
}
.home-card img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 12px;
    aspect-ratio: 250 / 410;
    object-fit: cover;
}
.home-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
.home-card-overlay h3 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    text-align: center;
}

/* --- Portfolio Page --- */
.portfolio-container {
    display: flex;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 0 0 0 10%; 
    box-sizing: border-box;
}
.project-info-column {
    width: 40%;
    padding-right: 5%;
    z-index: 5;
    flex-shrink: 0;
}
#project-info h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 0 0 10px 0;
}
#project-info p {
    font-size: 1.2rem;
    opacity: 0.8;
}
.project-carousel-column {
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
}
.portfolio-filters {
    margin-bottom: 20px;
    padding-left: 10px;
}
.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 24px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 20px;
    font-weight: bold;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s ease;
}
.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.8);
}
.filter-btn.active {
    background: #fff;
    color: #111;
    border-color: #fff;
}
.carousel-container {
    width: 100%;
    padding: 40px 0;
}
#carouselTrack {
    display: flex;
    align-items: center;
    height: 500px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.portfolio-card {
    flex: 0 0 300px;
    height: 444px;
    margin: 0 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.5s ease;
}
.portfolio-card.active {
    opacity: 1;
}
.portfolio-card-inner {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    transform: scale(0.85);
    transition: transform 0.5s ease;
}
.portfolio-card.active .portfolio-card-inner {
    transform: scale(1.05);
}
.portfolio-card-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-nav {
    text-align: left;
    margin-top: 20px;
    width: 300px;
    padding-left: 10px;
    box-sizing: border-box;
}
.carousel-nav .arrow {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 10px 0 0;
}

/* --- About Me Page --- */
.about-container {
    display: flex;
    align-items: flex-start;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 5% 60px;
    gap: 60px;
    position: relative;
}
.about-image-column {
    flex: 0 0 30%;
    position: sticky;
    top: 140px;
    z-index: 2;
    background-color: #111;
    border-radius: 12px;
}
.about-image-column img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}
.about-content-column {
    flex: 1;
    z-index: 1;
}
.about-section {
    margin-bottom: 40px;
}
.about-section h1 {
    font-size: 3.5rem;
    margin: 0 0 20px;
}
.about-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}
.about-section p, .about-section li {
    font-size: 1.1rem;
    line-height: 1.7;
}
.filmography-list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    gap: 20px;
}
.filmography-list li {
    padding-left: 1.2em;
    text-indent: -1.2em;
    margin-bottom: 5px;
    font-size: 1.1rem;
    line-height: 1.4;
}
.filmography-list li::before {
    content: '•';
    color: #00bfff;
    font-size: 1.2rem;
    margin-right: 0.5em;
    vertical-align: middle;
}
.contact-links {
    display: flex;
    gap: 15px;
}
.experience-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}
.experience-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.experience-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.experience-details {
    display: flex;
    flex-direction: column;
}
.company-name {
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.company-role {
    font-size: 1rem;
    opacity: 0.7;
}
.experience-years {
    font-size: 1rem;
    opacity: 0.7;
    white-space: nowrap;
    padding-left: 20px;
}

/* --- Showreel Page --- */
.showreel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 40px;
    text-align: center;
}
.showreel-container h1 {
    font-size: 3.5rem;
    margin-bottom: 40px;
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0px 25px 50px rgba(0, 0, 0, 0.5);
}
.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Single Project Page --- */
.single-project-container {
    max-width: 900px;
    margin: 100px auto;
    display: flex;
    gap: 40px;
}
.project-poster {
    flex: 0 0 40%;
}
.project-poster img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.project-details {
    flex: 1;
}
.project-details ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

/* --- Contact Link Buttons with Icons --- */
.contact-links .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.contact-links .btn i[class*="fa-"] {
    font-family: "Font Awesome 6 Brands", "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: 1.2em;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 768px) {
    /* General Adjustments */
    body {
        -webkit-text-size-adjust: 100%;
    }
    .site-header {
        padding: 20px;
    }
    h1 {
        font-size: 2.5rem !important;
    }
    /* Homepage, Portfolio & About Me Page Containers */
    .home-container,
    .portfolio-container,
    .about-container {
        flex-direction: column;
        padding: 100px 20px 40px;
        text-align: center;
    }
    /* Column Widths */
    .home-content-column,
    .home-carousel-column,
    .project-info-column,
    .project-carousel-column,
    .about-image-column,
    .about-content-column {
        width: 100%;
        padding: 0;
    }
    /* About Me Page Specifics */
    .about-image-column {
        position: static;
        margin-bottom: 30px;
        flex-basis: auto;
    }
    .filmography-list {
        columns: 1;
        text-align: left;
    }
    /* Portfolio Page Specifics */
    .project-info-column {
        margin-bottom: 40px;
    }
    #carouselTrack {
        height: auto;
        padding-bottom: 0;
    }
   .portfolio-card {
        flex: 0 0 220px;
        height: 325px;
        flex-shrink: 0;
    }
    .carousel-nav {
        width: 100%;
        text-align: center;
    }
}