
        
/* Portfolio Fullwidth Gallery ---------------------------------- */
.portfolio-fullwidth {
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 100%;
}

.portfolio-wrap.style3 {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

.portfolio-wrap.style3:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(10, 12, 0, 0) 0%, rgba(10, 12, 0, 0.9) 100%);
    transition: 0.4s;
    opacity: 1;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.portfolio-wrap.style3 .portfolio-thumb {
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: relative;
}
.portfolio-wrap.style3 .portfolio-thumb .portfolio-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Style the iframe that will be added via JS */
    iframe {
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        pointer-events: none; /* Allow clicks to pass through the hover video */
    }
}

/* Support both video and iframe - NO TRANSFORM */
.portfolio-wrap.style3 .portfolio-thumb .portfolio-video,
.portfolio-wrap.style3 .portfolio-thumb iframe.portfolio-video {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    object-fit: cover;
}

.portfolio-wrap.style3 .portfolio-details {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 30px;
    z-index: 2;
    max-width: 100%;
    transition: 0.4s;
    opacity: 1;
    pointer-events: none;
}

.portfolio-wrap.style3 .portfolio-details .portfolio-brand {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-wrap.style3 .portfolio-details .portfolio-title {
    margin-bottom: 0;
    color: var(--white-color);
    font-size: 24px;
    line-height: 1.3;
}

.portfolio-wrap.style3 .portfolio-details .portfolio-title a {
    color: var(--white-color);
    text-decoration: none;
    transition: 0.3s;
    pointer-events: auto;
}

.portfolio-wrap.style3 .portfolio-details .portfolio-title a:hover {
    opacity: 0.8;
}

.portfolio-wrap.style3:hover:after {
    opacity: 0.95;
}

/* Hover to scale the thumbnail container */
.portfolio-wrap.style3:hover .portfolio-thumb {
    transform: scale(1.05);
    transition: transform 0.4s ease;
}

/* Homepage Video Strip: 6-column responsive grid */
#home .video-strip .portfolio-grid {
    grid-template-columns: repeat(6, 1fr); /* Show all 6 videos in one row */
    gap: 2px;
}

/* Homepage Video Strip: Portrait aspect ratio */
#home .video-strip .portfolio-wrap.style3 {
    aspect-ratio: 9 / 16;
}

/* Homepage Video Strip: Ensure video is contained within the portrait frame */
#home .video-strip .portfolio-wrap.style3 iframe {
    object-fit: contain;
}

/* Homepage Video Strip: Use 'contain' for thumbnails if they are landscape */
#home .video-strip .portfolio-video-thumbnail {
    object-fit: contain;
}


/* For regular video tags */
.portfolio-wrap.style3:hover video.portfolio-video {
    transform: scale(1.05);
    transition: transform 0.4s ease;
}

/* Tablet */
@media (max-width: 1199px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .portfolio-wrap.style3 .portfolio-details {
        padding: 25px;
    }
    
    .portfolio-wrap.style3 .portfolio-details .portfolio-title {
        font-size: 20px;
    }
}

/* Mobile Large */
@media (max-width: 991px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-wrap.style3 .portfolio-details {
        padding: 20px;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-wrap.style3 .portfolio-details .portfolio-title {
        font-size: 18px;
    }
    
    .portfolio-wrap.style3 .portfolio-details {
        padding: 20px;
    }

    /* Homepage Hero 16:9 on mobile */
    #home .hero-container {
        height: auto;
        aspect-ratio: 16 / 9;
        align-items: center; /* Vertically center content */
    }
    #home .hero-container .container {
        padding-bottom: 1.5rem; /* pb-6 */
        text-align: center; /* Center align text and buttons container */
    }

    /* Homepage Video Strip: Horizontal scroll on mobile */
    #home .video-strip {
        overflow-x: auto;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    #home .video-strip::-webkit-scrollbar {
        display: none; /* Chrome, Safari, and Opera */
    }
    #home .video-strip .portfolio-grid {
        display: flex;
        flex-wrap: nowrap;
        width: max-content;
    }
    #home .video-strip .portfolio-wrap {
        flex: 0 0 33.33vw; /* Show 3 items at a time using viewport width */
    }

    /* Scale down hero content on mobile */
    #home .hero-container h1 {
        font-size: clamp(2rem, 9vw, 2.25rem); /* Fluid font size */
        line-height: 1.2; /* Use unitless line-height for better scaling */
        padding-top: 1.5rem; /* Add top padding */
        margin-left: auto; /* Center horizontally */
        margin-right: auto; /* Center horizontally */ 
        text-align: center; /* Override text-left class */
    }
    #home .hero-container p {
        font-size: 1.125rem; /* ~text-lg */
        line-height: 1.75rem;
    }
    #home .hero-container .btn-purple,
    #home .hero-container .btn-outline-white {
        font-size: 0.875rem; /* ~text-sm */
        padding-left: 1rem; /* px-4 */
        padding-right: 1rem; /* px-4 */
        padding-top: 0.625rem; /* ~py-2.5 */
        padding-bottom: 0.625rem; /* ~py-2.5 */
    }

    /* About Page Hero 16:9 on mobile */
    #about .hero-container {
        height: auto;
        aspect-ratio: 16 / 9;
        align-items: center;
    }
    #about .hero-container h1 {
        font-size: 1.25rem; /* ~text-xl */
        line-height: 1.75rem;
        text-align: center;
    }

    /* Homepage Logo Scroller: Make smaller on mobile */
    #home .logo-scroller-container {
        padding-top: 1.5rem; /* ~py-6 */
        padding-bottom: 1.5rem; /* ~py-6 */
    }
    #home .logo-scroller-inner {
        gap: 2.5rem; /* Reduce gap between logos */
    }
    #home .logo-scroller-inner img {
        height: 24px; /* Reduce logo height */
    }
}

        /* Custom Styles & Font Definitions */
        
        body {
            font-family: 'Inter', sans-serif;
            color: #666666;
            background-color: #ffffff;
        }
        h1, h2, h3, h4, h5, h6 {
            font-family: 'Poppins', sans-serif;
            color: #9863f0;
        }
        .btn-purple {
            background-color: #6B5CE7;
            color: white;
            transition: background-color 0.3s ease, transform 0.3s ease;
        }
        .btn-purple:hover {
            background-color: #5a4acc;
            transform: translateY(-2px);
        }
        .btn-outline-purple {
            background-color: transparent;
            color: #6B5CE7;
            border: 2px solid #6B5CE7;
            transition: background-color 0.3s ease, color 0.3s ease;
        }
        .btn-outline-purple:hover {
            background-color: #6B5CE7;
            color: white;
        }
         .btn-outline-white {
            background-color: transparent;
            color: white;
            border: 2px solid white;
            transition: background-color 0.3s ease, color 0.3s ease;
        }
        .btn-outline-white:hover {
            background-color: white;
            color: #2c1d45;
        }
        .nav-link {
            position: relative;
            transition: color 0.3s ease;
            color: #2c1d45;
        }
        .nav-link::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -4px;
            left: 50%;
            transform: translateX(-50%);
            background-color: #6B5CE7;
            transition: width 0.3s ease;
        }
        .nav-link:hover::after, .nav-link.active::after {
            width: 100%;
        }
.hero-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  z-index: 0;
}

        .page {
            display: none;
        }
        .page.active {
            display: block;
        }
        /* Accordion styles */
        .accordion-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease-in-out;
        }
        /* Fade-in animation */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .fade-in {
            animation: fadeIn 0.8s ease-out forwards;
        }
        /* Custom form styles */
        .form-section {
            border-bottom: 1px solid #e5e7eb;
            padding-bottom: 2rem;
            margin-bottom: 2rem;
        }
        .form-section:last-of-type {
            border-bottom: none;
            padding-bottom: 0;
            margin-bottom: 0;
        }
        .form-label {
            font-weight: 600;
            color: #374151;
            margin-bottom: 0.75rem;
            display: block;
        }
        .form-input, .form-textarea, .form-select {
             width: 100%;
             border-radius: 0.375rem;
             border: 1px solid #d1d5db;
             box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
        }
        .form-input:focus, .form-textarea:focus, .form-select:focus {
            border-color: #6B5CE7;
            box-shadow: 0 0 0 2px #a5b4fc;
            outline: none;
        }
        .form-radio-label, .form-checkbox-label {
            display: flex;
            align-items: center;
            margin-bottom: 0.5rem;
            cursor: pointer;
        }
         .form-radio, .form-checkbox {
            height: 1rem;
            width: 1rem;
            margin-right: 0.5rem;
            color: #6B5CE7;
            border-color: #d1d5db;
        }
        .form-radio:focus, .form-checkbox:focus {
            ring: #6B5CE7;
        }
        /* Roadmap Styles */
        .roadmap-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 3px;
            height: 100%;
            background-color: #e5e7eb;
            z-index: 1;
        }
        @media (max-width: 768px) {
            .roadmap-container::before {
                left: 24px; /* Corresponds to w-12/2 */
                transform: translateX(-50%);
            }
        }
        /* Custom radio button for packages */
        input[type="radio"].package-radio {
            display: none;
        }
        input[type="radio"].package-radio + label {
            border: 2px solid #e5e7eb;
            transition: all 0.2s ease-in-out;
        }
        input[type="radio"].package-radio:checked + label {
            border-color: #6B5CE7;
            background-color: #f0f2ff;
            box-shadow: 0 0 0 2px #a5b4fc;
        }
        
        /* Logo Scroller */
        @keyframes scroll {
            from { transform: translateX(0); }
            to { transform: translateX(-100%); }
        }
        .logo-scroller {
            overflow: hidden;
            -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
            mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
        }
        .logo-scroller-inner {
            display: flex;
            gap: 4rem;
            width: fit-content;
            animation: scroll 80s linear infinite;
        }
        .logo-scroller-inner img {
            height: 32px;
            width: auto;
            object-fit: contain;
        }
        .logo-scroller-inner:hover {
            animation-play-state: paused;
        }

/* Video Modal Styles */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.video-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1280px;
    aspect-ratio: 16 / 9;
    background: #000;
}
.video-modal-content iframe {
    width: 100%;
    height: 100%;
}
.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
}

/* Video hover states */
.portfolio-wrap.style3 .portfolio-video-thumbnail {
    transition: opacity 0.3s ease-in-out;
}
.portfolio-wrap.style3.video-loading .portfolio-video-thumbnail {
    opacity: 0.5; /* Slightly dim the thumbnail while video loads */
}
.portfolio-wrap.style3 .portfolio-video-container iframe.loaded {
    opacity: 1;
}
