/* Custom Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Tailwind Customizations */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom Colors */
:root {
    --primary-dark: #eab308; /* Darker shade for hover */
    --secondary: #a855f7; /* Secondary color: Purple */
    --gradient-from: #facc15; /* Gradient start */
    --gradient-to: #a855f7; /* Gradient end */
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(to right, var(--gradient-from), var(--gradient-to));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Navigation Link Hover Effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Floating Animation */
.floating {
    animation: float 4s ease-in-out infinite;
}

.floating-delay-1 {
    animation-delay: 0.5s;
}

.floating-delay-2 {
    animation-delay: 1s;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Card Hover Effect */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(241, 241, 241, 0.1);
}

/* Social Icon Hover */
.social-icon {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* Gallery Overlay */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 500;
    text-align: center;
    padding: 10px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Video Category Tabs */
.category-tab {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.category-tab.active {
    background: var(--primary);
    color: black;
    font-weight: 600;
}

.category-tab:hover:not(.active) {
    background: rgba(0, 0, 0, 0.05);
}

/* Video Thumbnail */
.video-thumbnail {
    position: relative;
    cursor: pointer;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 24px;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.video-thumbnail:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Video Popup */
.video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.video-popup.active {
    display: flex;
}

.video-popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    width: 100%;
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: var(--primary);
}

.video-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup-video {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}

.popup-video.iphone-screen {
    max-width: 350px;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    padding: 10px;
    background: #000;
}

.notch-camera {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    background: #000;
    border-radius: 20px;
    z-index: 5;
    display: none;
}

.popup-video.iphone-screen + .notch-camera {
    display: block;
}

.video-container p {
    transition: opacity 0.3s ease;
}

.video-container p.hidden {
    opacity: 0;
    height: 0;
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .video-popup-content {
        max-width: 95%;
    }

    .popup-video.iphone-screen {
        max-width: 300px;
    }

    .video-container p {
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .popup-video.iphone-screen {
        max-width: 250px;
    }
}

/* Ensure images don't stretch */
.image-fullsize {
    object-fit: cover;
    width: 100%;
    height: 100%;
}