body {
    background-color: #0A0A0A;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.bg-card-custom {
  background-color: #1E1F26;
}

.hero-video {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    background: #000; /* Fallback background */
}

/* Ensure hero section has relative positioning for absolute children */
#home {
    position: relative;
}

/* Video error message styling */
.video-error {
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-error:hover {
    background: rgba(0,0,0,0.9) !important;
    transform: translate(-50%, -50%) scale(1.05);
}

.neon-text {
    color: #CCFF00;
    text-shadow: 0 0 10px rgba(204, 255, 0, 0.5);
}

/* Hero section text shadows */
#home h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6);
}

#home p {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
}

#home a {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Remove text shadow from buttons */
#home a.bg-neon-green {
    text-shadow: none;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.starburst {
    position: relative;
}

.starburst::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, transparent 30%, rgba(204, 255, 0, 0.1) 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(204, 255, 0, 0.3); }
    50% { box-shadow: 0 0 30px rgba(204, 255, 0, 0.6); }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

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

/* Carousel navigation button improvements */
.carousel-nav-btn {
    transition: all 0.3s ease;
}

.carousel-nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Video styling improvements */
video {
    background-color: #000;
    cursor: pointer;
}

video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Video loading states */
.video-loading {
    position: relative;
}

.video-loading::before {
    content: 'Loading video...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #CCFF00;
    font-size: 16px;
    font-weight: 600;
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #CCFF00;
}

.video-failed {
    position: relative;
}

.video-failed::before {
    content: 'Video failed to load';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff4444;
    font-size: 16px;
    font-weight: 600;
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #ff4444;
}

.video-playing {
    border: 2px solid #CCFF00;
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.3);
}

/* Responsive video container */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: #000;
    display: block;
    overflow: hidden;
}

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

/* Marquee Animation */
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: rgba(26, 26, 26, 0.5);
    border-radius: 1rem;
    padding: 2rem 0;
    border: 1px solid rgba(42, 42, 42, 0.5);
}

.marquee-container.no-bg {
    background: none;
    border: none;
    padding: 1rem 0;
}

.marquee-content {
    display: flex;
    animation: marquee 20s linear infinite;
    width: fit-content;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-content > div {
    flex-shrink: 0;
    padding: 0 4rem;
    transition: transform 0.3s ease;
}

.marquee-content > div:hover {
    transform: scale(1.1);
}

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

/* Portfolio Carousel Styles */
.portfolio-carousel {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
}

.portfolio-slide .grid {
    gap: 1rem;
}

.portfolio-slide .grid.lg\:grid-cols-2 {
    gap: 1rem;
}

.portfolio-slides {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.portfolio-slide {
    width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    min-height: 600px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.portfolio-slide.active {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-slide > div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    min-height: 600px;
}

.portfolio-slide .lg\:w-1\ {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.portfolio-slide .video-container {
    width: 100%;
    height: auto;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    position: relative;
}

.portfolio-slide video {
    width: auto;
    height: auto;
    max-height: 70vh;
    max-width: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

@media (max-width: 1024px) {
    .portfolio-carousel {
        padding: 0 1rem;
    }
    
    .portfolio-slide {
        min-height: auto;
    }
    
    .portfolio-slide > div {
        min-height: auto;
        flex-direction: column;
    }
    
    .portfolio-card {
        padding: 1.5rem;
    }
    
    .portfolio-slide video {
        height: 16rem;
    }
    
    .portfolio-slide .video-container {
        height: auto;
        min-height: 280px;
        margin-top: 2rem;
        padding: 0;
    }
    
    .portfolio-slide video {
        width: auto;
        height: auto;
        max-height: 60vh;
        max-width: 100%;
        aspect-ratio: auto;
        object-fit: contain;
    }
}

@media (max-width: 640px) {
    .portfolio-card {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }
    
    .portfolio-slide h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .portfolio-slide p {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }
    
    .portfolio-slide .flex {
        gap: 0.4rem;
        margin-bottom: 0.75rem;
    }
    
    .portfolio-slide span {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .portfolio-slide .video-container {
        height: auto;
        min-height: 180px;
    }
    
    .portfolio-slide video {
        width: auto;
        height: auto;
        max-height: 70vh;
        max-width: 100%;
        aspect-ratio: auto;
        object-fit: contain;
    }
    
    .portfolio-slide h3 {
        font-size: 1.5rem;
    }
    
    .portfolio-slide p {
        font-size: 0.9rem;
    }
    
    .portfolio-slide .flex.flex-wrap {
        gap: 0.5rem;
    }
    
    .portfolio-slide .flex.flex-wrap span {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Enhanced portfolio card styling */
.portfolio-card {
    background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 100%);
    border: 2px solid rgba(204, 255, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(204, 255, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.portfolio-card:hover::before {
    left: 100%;
}

.portfolio-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(204, 255, 0, 0.2);
    border-color: rgba(204, 255, 0, 0.4);
}

/* Enhanced video styling */
.portfolio-slide .bg-black {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #000 0%, #1A1A1A 100%);
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid rgba(204, 255, 0, 0.3);
    box-shadow: 0 0 30px rgba(204, 255, 0, 0.15);
}

.portfolio-slide .bg-black:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(204, 255, 0, 0.3);
    border-color: rgba(204, 255, 0, 0.6);
}

.portfolio-slide .bg-black.vertical {
    aspect-ratio: 9/16;
    max-width: 320px;
    margin: 0 auto;
}

.portfolio-slide .bg-black.horizontal {
    aspect-ratio: 16/9;
    max-width: 100%;
}

.portfolio-slide .bg-black.horizontal {
    aspect-ratio: 16/9;
    max-width: 480px;
    margin: 0 auto;
}

.portfolio-slide .bg-black video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 1rem;
}

/* Fallback for videos without explicit orientation classes */
.portfolio-slide .bg-black:not(.vertical):not(.horizontal) {
    min-height: 240px;
    width: 100%;
}

.portfolio-slide .bg-black:not(.vertical):not(.horizontal) video {
    max-height: 80vh;
    max-width: 100%;
    width: auto;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}

.portfolio-slide video {
    height: 20rem;
}

.portfolio-slide .bg-black {
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid rgba(57, 255, 20, 0.3);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.1);
}

.portfolio-slide .bg-black:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(57, 255, 20, 0.8);
}

/* Active state when video is playing */
.portfolio-slide .bg-black.video-playing {
    border: 2px solid #39ff14;
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.6);
    transform: scale(1.01);
}

.portfolio-card {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(128, 128, 128, 0.1);
}



.portfolio-card {
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.portfolio-card:hover {
    border: 1px solid rgba(107, 114, 128, 0.5);
}

.portfolio-slide .bg-dark-card {
    min-height: 500px;
    display: flex;
    align-items: center;
}

.portfolio-slide .lg\:w-1\:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 2rem;
}

/* Ensure consistent spacing and alignment */
.portfolio-slide h3,
.portfolio-slide h4,
.portfolio-slide p {
    margin-bottom: 1rem;
}

.portfolio-slide .flex.flex-wrap {
    margin-bottom: 1.5rem;
}

/* Enhanced typography for portfolio slides */
.portfolio-slide h3 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #CCFF00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
}

.portfolio-slide h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #CCFF00, transparent);
    border-radius: 2px;
}

.portfolio-slide p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.portfolio-slide .flex span {
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.portfolio-slide .flex span:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 255, 0, 0.3);
}

/* Interactive play button overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 2;
}

.portfolio-slide .bg-black:hover .video-overlay {
    opacity: 1;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(204, 255, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    transform: scale(0.8);
}

.play-button:hover {
    transform: scale(1);
    background: #CCFF00;
    box-shadow: 0 0 30px rgba(204, 255, 0, 0.5);
}

.play-button svg {
    width: 30px;
    height: 30px;
    color: #000;
    margin-left: 4px;
}

/* Enhanced navigation buttons */
.portfolio-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 26, 26, 0.9);
    border: 2px solid rgba(204, 255, 0, 0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.portfolio-nav-btn:hover {
    background: rgba(204, 255, 0, 0.1);
    border-color: #CCFF00;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 0 25px rgba(204, 255, 0, 0.4);
}

.portfolio-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.portfolio-prev {
    left: 20px;
}

.portfolio-next {
    right: 20px;
}

.portfolio-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.portfolio-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-dot.active {
    background: #39ff14;
    transform: scale(1.2);
}

.portfolio-dot:hover {
    background: rgba(57, 255, 20, 0.6);
}

/* Enhanced slide indicators */
.slide-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(204, 255, 0, 0.3);
    border: 2px solid rgba(204, 255, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
}

.slide-indicator:hover {
    background: rgba(204, 255, 0, 0.5);
    transform: scale(1.2);
}

.slide-indicator.bg-neon-green {
    background: #CCFF00;
    border-color: #CCFF00;
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.6);
    transform: scale(1.3);
}

/* Slide-specific background effects */
.portfolio-slide:nth-child(1) .portfolio-card {
    background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 50%, #1A1A1A 100%);
}

.portfolio-slide:nth-child(2) .portfolio-card {
    background: linear-gradient(135deg, #1A1A1A 0%, #252525 50%, #1A1A1A 100%);
}

.portfolio-slide:nth-child(3) .portfolio-card {
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 50%, #1A1A1A 100%);
}

.portfolio-slide:nth-child(4) .portfolio-card {
    background: linear-gradient(135deg, #1A1A1A 0%, #242424 50%, #1A1A1A 100%);
}

.portfolio-slide:nth-child(5) .portfolio-card {
    background: linear-gradient(135deg, #1A1A1A 0%, #262626 50%, #1A1A1A 100%);
}

.portfolio-slide:nth-child(6) .portfolio-card {
    background: linear-gradient(135deg, #1A1A1A 0%, #282828 50%, #1A1A1A 100%);
}

/* Parallax effect for slide content */
.portfolio-slide .grid > div {
    transition: transform 0.6s ease-out;
}

.portfolio-slide:hover .grid > div:first-child {
    transform: translateX(-5px);
}

.portfolio-slide:hover .grid > div:last-child {
    transform: translateX(5px);
}

/* Enhanced tag styling */
.portfolio-slide .flex span {
    background: linear-gradient(135deg, #CCFF00 0%, #B8E600 100%);
    color: #0A0A0A;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.portfolio-slide .flex span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.portfolio-slide .flex span:hover::before {
    left: 100%;
}

.portfolio-slide .flex span:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(204, 255, 0, 0.4);
}

/* Accordion Styles */
.accordion-item {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8), rgba(55, 65, 81, 0.8));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.accordion-item:hover {
    border: 1px solid rgba(107, 114, 128, 0.5);
    transform: translateY(-2px);
}

.accordion-header {
    cursor: pointer;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: rgba(57, 255, 20, 0.05);
}

.accordion-header.active {
    background: rgba(57, 255, 20, 0.1);
    border-bottom: 1px solid rgba(57, 255, 20, 0.3);
}

.accordion-title {
    display: flex;
    align-items: center;
    flex: 1;
}

.accordion-icon {
    width: 3rem;
    height: 3rem;
    background: #39ff14;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.accordion-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #0A0A0A;
}

.accordion-arrow {
    width: 1.5rem;
    height: 1.5rem;
    color: #39ff14;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-arrow.rotated {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.accordion-content.active {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.accordion-description {
    color: #9CA3AF;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.accordion-features {
    margin-bottom: 1.5rem;
}

.accordion-features .feature-item {
    display: flex;
    align-items: center;
    color: #D1D5DB;
    margin-bottom: 0.75rem;
}

.accordion-features .feature-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: #39ff14;
    border-radius: 50%;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.accordion-pricing {
    text-align: center;
    margin-bottom: 1.5rem;
}

.accordion-pricing .price {
    color: #39ff14;
    font-weight: bold;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.accordion-button {
    background: #39ff14;
    color: #0A0A0A;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
}

.accordion-button:hover {
    background: rgba(57, 255, 20, 0.9);
    transform: translateY(-1px);
}

/* Responsive accordion */
@media (max-width: 768px) {
    .accordion-header {
        padding: 1rem;
    }
    
    .accordion-content.active {
        padding: 0 1rem 1rem;
    }
    
    .accordion-icon {
        width: 2.5rem;
        height: 2.5rem;
        margin-right: 0.75rem;
    }
    
    .accordion-icon svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}