/* custom-styles.css - All custom styles combined */

/* ============================================
   Dark Mode & Global Variables
============================================ */
.dark-mode {
    --primary-color: #ecf0f1;
    --secondary-color: #3498db;
    --card-bg: #2c3e50;
    --text-color: #ecf0f1;
    --hover-color: #2980b9;
    --bg-color: #1a1a1a;
    --title-color: #ecf0f1;
}

/* ============================================
   Video Container Styles
============================================ */
#vimeo-video {
    width: 100vw;
    height: 122vh;
}

/* Responsive video heights */
@media (max-width: 1199px) {
    #vimeo-video {
        height: 65vh !Important;
    }
}

@media (max-width: 991px) {
    #vimeo-video {
        height: 55vh !Important;
    }
}

/* Scroll down button */
.scroll-down-btn {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.85;
    animation: floatY 2s ease-in-out infinite;
}

.scroll-indicator-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-text {
    color: white;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.arrow-down {
    animation: bounce 2s infinite;
}

/* Animations */
@keyframes floatY {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

@media (max-width: 768px) {
    .scroll-down-btn {
        bottom: 60px;
    }
    .scroll-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .scroll-down-btn {
        bottom: 50px;
    }
}

/* ============================================
   About Section Video Container
============================================ */
.about-two__video-container {
    position: relative;
    width: 100%;
    height: 585px;
    margin: auto;
}

.about-two__video-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 70px;
    background: linear-gradient(-135deg, #FA5674 0%, #6065D4 52%, rgba(96, 101, 212, 0) 81%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 3px;
    z-index: 1;
    box-sizing: border-box;
}

.about-two__video-box {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    border-radius: 67px;
    overflow: hidden;
    z-index: 2;
}

.about-two__video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1200px) {
    .about-two__video-container {
        width: 450px;
        height: 430px;
    }
}

@media (max-width: 992px) {
    .about-two__video-container {
        width: 100%;
        max-width: 500px;
        height: auto;
        aspect-ratio: 500/480;
    }
    .about-two__video-box {
        border-radius: calc(67px - 3px);
    }
}

/* ============================================
   Gallery Section
============================================ */
.gallery-container {
    position: relative;
    width: 100%;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
    overflow: hidden;
}

.title {
    position: absolute;
    top: 5vh;
    text-align: center;
    z-index: 100;
    font-weight: 700;
}

.title h1 {
    font-size: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: 10px;
    color: var(--title-color);
}

.title p {
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    opacity: 0.8;
    color: var(--title-color);
}

.box {
    position: relative;
    width: 200px;
    height: 300px;
    transform-style: preserve-3d;
    animation: rotate 30s linear infinite;
    transition: all 0.5s ease;
}

.box.paused {
    animation-play-state: paused;
}

@keyframes rotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.box span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: center;
    transform-style: preserve-3d;
    transform: rotateY(calc(var(--i) * 40deg)) translateZ(400px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    border-radius: 10px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.box span:hover {
    transform: rotateY(calc(var(--i) * 40deg)) translateZ(500px) scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.box span img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    z-index: 1;
}

.box span .info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(100%);
    transition: all 0.5s ease;
    z-index: 2;
    color: white;
}

.box span:hover .info-overlay {
    transform: translateY(0);
}

.character-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.character-desc {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #ecf0f1;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.read-more-btn:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
}

.controls {
    position: fixed;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 100;
}

.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--card-bg);
    border: none;
    color: #ecf0f1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.control-btn:hover {
    background: #3498db;
    color: white;
    transform: scale(1.1);
}

.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    border: none;
    color: #ecf0f1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.dark-mode-toggle:hover {
    background: #3498db;
    color: white;
}

/* Gallery Responsive */
@media (max-width: 1200px) {
    .box span {
        transform: rotateY(calc(var(--i) * 40deg)) translateZ(350px);
    }
    .box span:hover {
        transform: rotateY(calc(var(--i) * 40deg)) translateZ(450px) scale(1.05);
    }
}

@media (max-width: 992px) {
    .box {
        width: 180px;
        height: 270px;
    }
    .box span {
        transform: rotateY(calc(var(--i) * 40deg)) translateZ(300px);
    }
    .box span:hover {
        transform: rotateY(calc(var(--i) * 40deg)) translateZ(400px) scale(1.05);
    }
    .info-overlay {
        padding: 15px;
    }
    .character-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .box {
        width: 160px;
        height: 240px;
        animation: rotate 40s linear infinite;
    }
    .box span {
        transform: rotateY(calc(var(--i) * 40deg)) translateZ(250px);
    }
    .box span:hover {
        transform: rotateY(calc(var(--i) * 40deg)) translateZ(350px) scale(1.05);
    }
    .info-overlay {
        padding: 10px;
    }
    .character-name {
        font-size: 1rem;
    }
    .control-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .box {
        width: 140px;
        height: 210px;
    }
    .box span {
        transform: rotateY(calc(var(--i) * 40deg)) translateZ(200px);
    }
    .box span:hover {
        transform: rotateY(calc(var(--i) * 40deg)) translateZ(300px) scale(1.05);
    }
    .controls {
        gap: 10px;
        bottom: 3vh;
    }
}

@media (max-width: 400px) {
    .box {
        width: 120px;
        height: 180px;
    }
    .box span {
        transform: rotateY(calc(var(--i) * 40deg)) translateZ(150px);
    }
    .box span:hover {
        transform: rotateY(calc(var(--i) * 40deg)) translateZ(250px) scale(1.05);
    }
}

/* Touch devices */
@media (hover: none) {
    .box {
        animation-play-state: paused;
    }
    .box span {
        transform: rotateY(calc(var(--i) * 40deg)) translateZ(300px);
    }
    .box span.active {
        transform: rotateY(calc(var(--i) * 40deg)) translateZ(400px) scale(1.05);
        z-index: 10;
    }
    .box span.active .info-overlay {
        transform: translateY(0);
    }
}

/* ============================================
   Project Gallery Section
============================================ */
.gallery-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
    position: relative;
    overflow: hidden;
}

.gallery-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(41,151,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.gallery-controls {
    position: sticky;
    top: 20px;
    z-index: 10;
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(17,34,64,0.9);
    border-radius: 15px;
    border: 1px solid rgba(100,255,218,0.15);
    backdrop-filter: blur(6px);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.filter-btn {
    padding: 12px 24px;
    border-radius: 30px;
    background: rgba(17,34,64,0.8);
    color: #ccd6f6;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    color: #64ffda;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #64ffda, #52d7ee);
    color: #0a192f;
}

.gallery-grid-container {
    max-height: 900px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-grid-container::-webkit-scrollbar {
    display: none;
}

.gallery-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 200px;
    gap: 25px;
    grid-auto-flow: dense;
}

.gallery-photo-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #112240;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-photo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.img-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-photo-item:hover img {
    transform: scale(1.1);
}

.card-big {
    grid-column: span 2;
    grid-row: span 2;
    height: 425px;
}

.card-tall {
    grid-row: span 2;
    height: 425px;
}

.card-sm {
    height: 200px;
}

.card-info {
    position: absolute;
    inset: auto 0 0 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(10,25,47,0.95), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s ease;
    display: none;
}

.gallery-photo-item:hover .card-info {
    opacity: 1;
    transform: translateY(0);
}

.card-info p {
    color: #64ffda;
    font-size: 0.9rem;
    font-weight: 600;
}

.gallery-photo-item.hidden {
    display: none !important;
}

[data-category="cat-24"] { border: 2px solid rgba(99,102,241,0.35); }
[data-category="cat-25"] { border: 2px solid rgba(236,72,153,0.35); }
[data-category="cat-26"] { border: 2px solid rgba(34,197,94,0.35); }
[data-category="cat-27"] { border: 2px solid rgba(100,255,218,0.35); }

@media (max-width: 768px) {
    .gallery-grid-container {
        max-height: 765px;
        overflow-y: auto;
        overflow-x: hidden;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .gallery-grid-container::-webkit-scrollbar {
        display: none;
    }
    
    .gallery-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        gap: 15px;
    }
    
    .card-big,
    .card-tall,
    .card-sm {
        grid-column: span 1;
        grid-row: span 1;
        height: 180px;
    }
    .gallery-controls{
        padding:10px;
    }
    
    .filter-buttons {
        flex-direction: row;          
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .filter-btn {
        width: calc(50% - 6px);       
        justify-content: center;
        font-size: 0.75rem;
        padding: 6px 6px;
    }
}

/* ============================================
   Gallery Filters (Old Style)
============================================ */
.filters {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filters li {
    cursor: pointer;
    padding: 10px 18px;
    background: #007bff;
    color: white;
    border-radius: 6px;
    transition: background 0.25s, transform 0.15s;
    white-space: nowrap;
    font-size: 14px;
}

.filters li:active {
    transform: translateY(1px);
}

.filters li.active {
    background: #0056b3;
}

@media (max-width: 480px) {
    .filters li {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 5px;
    }
}

/* Video popup */
.video-popup {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.video-popup-content {
    position: relative;
    width: 90%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
}

.video-popup iframe {
    width: 100%;
    height: 100%;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 36px;
    color: white;
    cursor: pointer;
}

/* ============================================
   Slider Section
============================================ */
.slider-section {
    margin-top: 90px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

#vimeo-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
}

/* Hide owl navigation */
.owl-nav {
    display: none;
}

/* ============================================
   Video Hover Effects
============================================ */
.video-hover-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    background: #000;
}

.video-hover-container:hover .video-overlay {
    opacity: 1;
}

.youtube-iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
}

.photo-thumb {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: all 0.3s ease;
}

.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-hover-container:hover .photo-thumb {
    transform: scale(1.05);
}

/* Loading indicator for videos */
.video-overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    z-index: 1;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ============================================
   Clients Section
============================================ */
.clients-section {
    padding: 80px 0;
    overflow: hidden;
}

.clients-wrapper {
    width: 100%;
    overflow: hidden;
}

.clients-track {
    display: flex;
    width: max-content;
    will-change: transform;
    cursor: grab;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(10, 280px);
    grid-template-rows: repeat(3, 110px);
    gap: 20px;
}

.client-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    padding: 10px;
    pointer-events: none;
    opacity: 0.85;
    transition: 0.3s ease;
}

.client-item img:hover {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .clients-grid {
        grid-auto-columns: minmax(140px, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .client-item img {
        padding: 6px;
    }
}

@media (max-width: 768px) {
    .clients-section {
        padding: 50px 0;
    }
    .clients-grid {
        grid-template-columns: repeat(10, auto);
        grid-template-rows: repeat(3, auto);
        gap: 15px;
    }
    .client-item img {
        padding: 6px;
        width: 200px;
    }
}

@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: repeat(10, auto);
        grid-template-rows: repeat(1, auto);
    }
    .client-item img {
        padding: 6px;
        width: 180px;
    }
}

/* ============================================
   Swiper Slider Styles
============================================ */
.swiper {
    border-radius: 10px;
    overflow: hidden;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    height: 100%;
}

.slide1 { background: #3498db; }
.slide2 { background: #e74c3c; }
.slide3 { background: #2ecc71; }

.swiper-button-next,
.swiper-button-prev {
    color: white;
}

.swiper-pagination-bullet {
    background: white;
}

@media (max-width: 768px) {
    .swiper {
        height: 250px;
    }
    .swiper-slide {
        font-size: 18px;
        text-align: center;
    }
}

.swiper {
    width: 100%;
    height: auto;
}

/* ============================================
   Contact Form Styles
============================================ */
.contact-two .row {
    display: flex;
    align-items: stretch;
}

.contact-two .col-xl-6 {
    display: flex;
}

.contact-two__office-image {
    height: 100%;
    width: 100%;
}

.contact-two__office-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact-two__right {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-one__btn-box {
    margin-top: 20px;
}

/* Hide form message container initially */
.form-message-container {
    margin-top: 20px;
    padding: 0;
    min-height: 0; /* Changed from 60px to 0 */
    transition: all 0.3s ease;
    display: none; /* Hide by default */
}

/* Show when it has content */
.form-message-container:has(.message-box) {
    display: block;
    min-height: auto;
}

/* Alternative if :has() isn't supported */
.form-message-container.has-message {
    display: block;
    min-height: auto;
}

.message-box {
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 500;
    animation: fadeIn 0.5s ease;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
}

.message-box.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.message-box.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.message-box.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.message-icon {
    margin-right: 12px;
    font-size: 20px;
}

.message-content {
    flex: 1;
}

.close-message {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0;
    margin-left: 15px;
}

.close-message:hover {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .message-box {
        padding: 12px 15px;
        font-size: 14px;
    }
    .message-icon {
        font-size: 18px;
        margin-right: 10px;
    }
}