/* Toolkit Section Specific Styles - Only applies to videos inside the toolkit section */
#about .grid.grid-cols-2 .group .video-container .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}
	
/* Override for top videos in about_right */
#about .grid.grid-cols-1 .video-container .overlay {
    opacity: 1 !important;
    pointer-events: auto !important;
}

#about .grid.grid-cols-2 .group:hover .video-container .overlay {
    opacity: 1;
    pointer-events: auto;
}

#about .grid.grid-cols-2 .overlay:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Keep video preview behavior for toolkit section */
#about .grid.grid-cols-2 .video-preview {
    opacity: 0;
    transition: opacity 0.5s ease;
}

#about .grid.grid-cols-2 .group:hover .video-preview {
    opacity: 1;
}

/* Category strip fade on hover - toolkit only */
#about .grid.grid-cols-2 .group:hover .category-strip {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

/* Reset any conflicting styles for other sections */
.video-container .overlay {
    /* This preserves the original overlay behavior for other sections */
    opacity: 1;
    pointer-events: auto;
}

/* Ensure other sections' overlays work normally */
#portfolio .video-container .overlay,
#showreel .video-container .overlay {
    opacity: 1;
    pointer-events: auto;
}
	
/* Ensure images cover properly */
#about .grid.grid-cols-2 .video-container img,
#about .grid.grid-cols-2 .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
	
/* Info Overlay Styles - Mobile First */

.info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 8, 20, 0.98);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    padding: 1rem;
}

.info-content {
    position: relative;
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    background: linear-gradient(145deg, #1A1F2E 0%, #0A0F1F 100%);
    border: 1px solid #D4AF37;
    border-radius: 24px;
    padding: 20px 20px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.info-overlay.active .info-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #D4AF37;
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #D4AF37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.info-content h4 {
    color: #D4AF37;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: 0; /* Remove top margin */
    padding-right: 50px; /* Space for close button */
    line-height: 1.3;
}

/* Mobile touch devices */
@media (hover: none) and (pointer: coarse) {
    .info-content h4 {
        font-size: 0.5rem;
        font-weight: 700;
        margin-bottom: 12px;
        padding-right: 45px;
        line-height: 1.3;
    }
}

.info-content p {
    color: #F5F5F5;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 8px;
}

/* Small phones */
@media (max-width: 100px) {
    .info-content {
        width: 95%;
        padding: 20px 16px 24px;
        max-height: 80vh;
    }
    
    .close-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        top: 12px;
        right: 12px;
    }
    
    .info-content h4 {
        font-size: 0.75rem;
        padding-right: 40px;
        margin-top: 0;
    }
    
    .info-content p {
        font-size: 0.9rem;
    }
}

/*we today*/

.wetoday{
	background: linear-gradient(135deg, rgba(10, 15, 31, 0.8) 0%, rgba(26, 31, 46, 0.9) 100%);
	box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.wetoday::after {
    content: '';
    position: absolute;
    bottom: 0;  /* Positioned at the bottom */
    left: 0;
    width: 100%;
    height: 2px;   /* Height of the border */
    background: linear-gradient(90deg, transparent, #D4AF37, transparent); /* Gold in the middle */
    animation: scan 3s ease-in-out infinite; /* Animated scanning effect */
}

/* Tech Highlight Section Styles */
.tech-highlight-section {
    background: linear-gradient(135deg, rgba(10, 15, 31, 0.8) 0%, rgba(26, 31, 46, 0.9) 100%);
   /* border-left: 4px solid #D4AF37; */
    border-radius: 0 16px 16px 0;
    padding: 24px 28px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.tech-highlight-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
    animation: rotate-slow 30s linear infinite;
    pointer-events: none;
}

.tech-highlight-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    animation: scan 3s ease-in-out infinite;
}

.box-heading {
    display: flex;
    align-items: center;
    font-family: 'Arial', 'Helvetica', 'sans-serif'; /* Matching your body/display font */
    font-size: 1.5rem;
    font-weight: 700;
    color: #F5F5F5;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.box-icon {
    color: #D4AF37;
    font-size: 1.8rem;
    margin-right: 12px;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3)); }
    50% { filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.7)); }
}

.box-text {
    color: #A0A0A0; /* This matches your film-stone color */
    font-family: 'Arial', 'Helvetica', 'sans-serif'; /* Matching your body font */
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.box-text strong {
    color: white; 
	opacity: 0.7;
}

/* Add a subtle film grain overlay */
.tech-highlight-section .film-grain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)" opacity="0.05"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tech-highlight-section {
        padding: 20px;
    }
    
    .box-heading {
        font-size: 1.3rem;
    }
    
    .box-icon {
        font-size: 1.5rem;
    }
    
    .box-text {
        font-size: 0.95rem;
    }
}
	

	
/* Love for the category text only */
.category-strip strong {
    color: #D4AF37;  /* Make it gold */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}


/* Reduce height of top videos in about section 
#about_right .video-container,
#about_right .group.relative.overflow-hidden {
    max-height: 280px; 
}

#about_right .video-container img,
#about_right .video-container video {
    object-fit: cover;
}*/
	
/* Base styles for all devices */
#about_right .video-container,
#about_right .group.relative.overflow-hidden {
    object-fit: cover;
}

/* Desktop - fixed height as you had it */
@media (min-width: 1025px) {
    #about_right .video-container,
    #about_right .group.relative.overflow-hidden {
        max-height: 280px;
    }
}

/* iPad Pro and tablets - let them be dynamic */
@media (min-width: 768px) and (max-width: 1024px) {
    #about_right {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    #top-videos-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        min-height: 0;
    }
    
    #about_right .video-container,
    #about_right .group.relative.overflow-hidden {
        flex: 1;
        min-height: 0;
        max-height: none; /* Remove the max-height constraint on iPad */
        width: 100%;
        position: relative;
    }
    
    /* Ensure content fills the space */
    #about_right .absolute.inset-0 {
        position: absolute !important;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
}

/* Mobile phones */
@media (max-width: 767px) {
    #about_right .video-container,
    #about_right .group.relative.overflow-hidden {
        max-height: 200px; /* Smaller for mobile */
    }
}
	



/* Video area - proper 16:9 aspect ratio */
.video-area {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* YouTube iframe - full size */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0A0F1F;
    color: #F5F5F5;
    text-align: center;
    padding: 30px;
}

.video-placeholder-icon {
    font-size: 40px;
    color: #D4AF37;
    margin-bottom: 15px;
}

.video-placeholder h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #F5F5F5;
}

.video-placeholder p {
    color: #A0A0A0;
    max-width: 400px;
    margin-bottom: 20px;
    font-size: 14px;
}

.watch-on-youtube-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #D4AF37;
    color: #050814;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.watch-on-youtube-btn:hover {
    background: #F5E8C7;
    transform: translateY(-2px);
}

.video-modal-footer {
    padding: 12px 20px;
    background: rgba(26, 31, 46, 0.8);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
    color: #A0A0A0;
    font-size: 12px;
}

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-top: 3px solid #D4AF37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .video-modal-container {
        width: 98%;
        max-height: none;
    }
    
    .video-modal-header {
        padding: 12px 15px;
    }
    
    .video-modal-title {
        font-size: 16px;
    }
    
    .video-modal-close {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .video-placeholder h3 {
        font-size: 18px;
    }
    
    .video-placeholder p {
        font-size: 13px;
    }
}


/* Video Portfolio Styles */
.video-preview {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.group:hover .video-preview {
    opacity: 1;
}

.group:hover .overlay {
    opacity: 0;
    pointer-events: none;
}

.overlay {
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.video-trigger, .video-trigger-btn {
    cursor: pointer;
}

.video-trigger:hover i {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

/*************************************/


/* navbar solid BG */
/*
nav#navbar.scrolled {
    background: rgba(10, 15, 31, 0.95) !important;
    border-bottom: 2px solid #D4AF37 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
}
*/
	
/* comment me out for solid color */
nav#navbar.scrolled {
	
    background: rgba(255, 255, 255, 0.12) !important; 
    border-bottom: 1px solid rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
	border-bottom: 2px solid #D4AF37 !important;
}	
nav#navbar {
    transform: translateY(-100%);
    transition: transform 0.5s ease;
}

/* Show navbar when scrolled */
nav#navbar.scrolled {
    transform: translateY(0);
}

	
/* Make about video container match top videos height */
#about-video-container .video-container {
    height: 280px; /* Adjust this to match your top videos height */
}

#top-videos-container .video-container {
    height: 280px; /* Same height */
}

/* Ensure images fill the space properly */
#about-video-container .video-container img,
#top-videos-container .video-container img,
#about-video-container .video-container video,
#top-videos-container .video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
	/* Fix for top videos container - ensure videos fill full height */
#top-videos-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr; /* Make all rows equal height */
    gap: 1rem; /* Maintain your existing gap */
    height: 100%; /* Take full height of parent */
	
}

#top-videos-container .video-container {
    height: 100%;
    min-height: 280px; /* Match your existing height */
    display: flex;
    flex-direction: column;
	background-color: transparent !important;
}
	
#aboutBottomVideosContainer .video-container {
	background-color: transparent !important;
	}

/* Ensure the inner absolute positioned div fills completely */
#top-videos-container .video-container > div {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
}

/* Make images and videos fill their containers */
#top-videos-container img,
#top-videos-container video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* Fix the about_right section to properly contain the videos */
#about_right {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#about_right .glass-card:first-child {
    flex-shrink: 0;
    margin-bottom: 15px;
}

#top-videos-container {
    flex: 1;
    min-height: 0; /* Critical: allows flex children to shrink properly */
}
	
/*************************************************/

	    /* Glass Card Premium (masterCard style) */

    .glass-card-premium {
        background: rgba(255, 255, 255, 0.03);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 1rem;
        transition: all 0.5s ease;
        position: relative;
        overflow: hidden;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    }

    .glass-card-premium:hover {
        border-color: rgba(212, 175, 55, 0.5);
        transform: translateY(-8px);
    }

    .card-glow {
        position: absolute;
        top: -6rem;
        right: -6rem;
        width: 12rem;
        height: 12rem;
        background: rgba(212, 175, 55, 0.05);
        filter: blur(80px);
        transition: all 0.7s ease;
        pointer-events: none;
    }

    .glass-card-premium:hover .card-glow {
        background: rgba(212, 175, 55, 0.15);
    }

    .card-icon {
        width: 3.5rem;
        height: 3.5rem;
        border-radius: 0.75rem;
        background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), transparent);
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.5s ease;
        margin-bottom: 1.5rem;
    }

    .card-icon i {
        font-size: 1.5rem;
        color: #D4AF37;
    }

    .glass-card-premium:hover .card-icon {
        transform: scale(1.1) rotate(2deg);
    }

    .card-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: #F5F5F5;
        margin-bottom: 0.75rem;
        transition: color 0.3s ease;
    }

    .glass-card-premium:hover .card-title {
        color: #D4AF37;
    }

    .card-text {
        color: #A0A0A0;
        line-height: 1.625;
    }
	

	
	
     
/* ---------- PURE CSS INFINITE SCROLL ANIMATION ---------- */
@keyframes seamlessScroll {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

.infinite-track {
	display: flex;
	flex-wrap: nowrap;
	gap: 1.25rem;     /* 20px gap between cards (matches Tailwind gap-5) */
	width: fit-content;
	animation: seamlessScroll 32s linear infinite;
	will-change: transform;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

/* Simple card styling — no hover transforms, no glows, no scale, no pointer cursor */
.reel-card {
	width: 18rem;   /* w-72 (288px) on mobile */
	flex-shrink: 0;
	/* No cursor pointer — no click functionality at all */
	cursor: default;
	transition: none;
	transform: translateZ(0);
}

/* Responsive card width */
@media (min-width: 768px) {
	.reel-card {
		width: 20rem;   /* md:w-80 = 320px */
	}
}

/* Image container: no scaling on hover, no transitions */
.card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: none;
	transform: none;

}

/* Absolutely no hover effects on anything */
.reel-card:hover,
.reel-card:hover .card-image,
.reel-card:hover .card-title,
.reel-card:hover .card-subtitle,
.reel-card:hover .year-badge {
	transform: none;
	filter: none;
	box-shadow: none;
	transition: none;
	background: inherit;
}

/* Film grain texture for cinematic feel (purely visual) */
.film-grain {
	position: relative;
}

.film-grain::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
	pointer-events: none;
	z-index: 2;
	border-radius: inherit;
	mix-blend-mode: overlay;
	opacity: 0.5;
}

/* Glass panel styling */
.glass-panel {
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
	border: 1px solid rgba(245, 158, 11, 0.25);
}

/* No edge masks — completely remove any left/right blur gradients */
.no-edge-fade {
	mask-image: none !important;
	-webkit-mask-image: none !important;
}

/* Year badge styling (always visible, no hover effects) */
.year-badge {
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(2px);
	font-size: 0.7rem;
	font-family: monospace;
	transition: none;
}

/* Infinite scroll container */
.infinite-scroll-container {
	overflow-x: hidden;
	position: relative;
}

/* Hide scrollbar for cleaner look */
.hide-scrollbar {
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.hide-scrollbar::-webkit-scrollbar {
	display: none;
}

/* Smooth animation timing */
.infinite-track {
	animation-timing-function: linear;
}

/* No interactive elements at all */
.no-interaction {
	user-select: none;
	-webkit-user-select: none;
}
#reelx .infinite-scroll-container:hover .infinite-track {
animation-play-state: paused;
}

@keyframes drift {
0% { transform: translate(0, 0) scale(1); }
33% { transform: translate(3%, 2%) scale(1.05); }
66% { transform: translate(-2%, 4%) scale(0.95); }
100% { transform: translate(0, 0) scale(1); }
}
.animate-drift {
animation: drift 12s ease-in-out infinite;
}
.animate-drift-slow {
animation: drift 18s ease-in-out infinite;
}
.animate-drift-fast {
animation: drift 8s ease-in-out infinite;
}
    