/* Custom styles for HCKL Website */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hide scrollbar but keep functionality */
#main-content {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#main-content::-webkit-scrollbar {
    display: none;
}

/* Dot navigation active state */
.dot-btn.active {
    background-color: white;
    transform: scale(1.2);
}

/* Mobile menu open state */
#mobile-menu.open {
    display: flex;
}

/* Page transitions */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* Image hover effects for project cards */
.project-card {
    overflow: hidden;
}

.project-card img {
    transition: transform 0.6s ease, filter 0.6s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card .overlay {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .overlay {
    opacity: 1;
}

/* Gallery grid responsive adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Form input styles */
input, textarea {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 0;
    width: 100%;
    outline: none;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    border-color: rgba(255, 255, 255, 0.8);
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Loading animation */
.loader {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Text selection */
::selection {
    background-color: rgba(184, 134, 11, 0.3);
    color: white;
}

/* Lazy load fade in */
.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    /* Adjust hero text sizes for mobile */
    .text-7xl, .text-8xl {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    /* Ensure full-height sections work on mobile */
    section[data-index] {
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
    }

    /* Better touch targets */
    .dot-btn {
        width: 12px;
        height: 12px;
        padding: 8px;
    }

    /* Project cards always show overlay on mobile */
    .project-card .overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    }
}

/* Ensure images cover properly */
.bg-cover {
    background-size: cover;
    background-position: center;
}

/* Better focus states for accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid rgba(184, 134, 11, 0.8);
    outline-offset: 4px;
}

/* Smooth transitions for interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Prevent text selection on navigation elements */
nav, .dot-btn {
    user-select: none;
}

/* Better image rendering */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Fix for iOS momentum scrolling */
#main-content {
    -webkit-overflow-scrolling: touch;
}
