/* ===================================================================
   LANDING PAGE SPECIFIC STYLES
   Unique styles for index.html
   =================================================================== */

/* Gear Animation */
.gear {
    opacity: 0.1;
    position: absolute;
    z-index: -1;
}

.gear svg {
    animation: spin 20s linear infinite;
}

.gear:nth-child(1) {
    top: 10%;
    left: 10%;
    transform: scale(0.8);
    animation-delay: -5s;
}

.gear:nth-child(2) {
    top: 20%;
    right: 15%;
    transform: scale(1.2);
    animation-delay: -10s;
}

.gear:nth-child(3) {
    bottom: 15%;
    left: 20%;
    transform: scale(0.6);
    animation-delay: -15s;
}

.gear:nth-child(4) {
    bottom: 25%;
    right: 10%;
    transform: scale(1.4);
    animation-delay: -2s;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #a5b4fc 0%, #c7d2fe 50%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 5.5rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
}

/* Service Cards */
.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 1rem;
}

.service-description {
    color: #cbd5e1;
    line-height: 1.6;
}

/* Navigation */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #a5b4fc;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #a5b4fc;
}

/* Footer */
.footer-section {
    background: #0f172a;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-text {
    color: #64748b;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #a5b4fc;
}

/* Container utilities for landing page */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ===================================================================
   SLIDESHOW STYLES
   =================================================================== */

/* Slideshow Container */
#slideshow-container {
    position: relative;
    overflow: hidden;
}

/* Individual Slide */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
}

/* Slide Caption */
.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 0 0 0.75rem 0.75rem;
}

.slide-caption h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.slide-caption p {
    font-size: 0.875rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* Navigation Buttons */
#prev-slide,
#next-slide {
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#prev-slide:hover,
#next-slide:hover {
    transform: translateY(-50%) scale(1.1);
    background-color: rgba(0, 0, 0, 0.8);
}

#prev-slide:active,
#next-slide:active {
    transform: translateY(-50%) scale(0.95);
}

/* Play/Pause Button */
#play-pause-btn {
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#play-pause-btn:hover {
    transform: scale(1.1);
    background-color: rgba(0, 0, 0, 0.8);
}

/* Slide Indicators */
.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.indicator.active {
    background-color: #818cf8;
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.3);
}

/* Upload Area Styles */
#upload-area {
    transition: all 0.3s ease;
}

#upload-area:hover {
    background-color: rgba(55, 65, 81, 0.6);
    border-color: #818cf8;
}

/* Touch/Mobile Optimizations */
@media (max-width: 768px) {
    #slideshow-container {
        height: 20rem; /* h-80 */
    }
    
    .slide-caption {
        padding: 1.5rem 1rem 1rem;
    }
    
    .slide-caption h4 {
        font-size: 1.125rem;
    }
    
    .slide-caption p {
        font-size: 0.75rem;
    }
    
    #prev-slide,
    #next-slide {
        padding: 0.5rem;
    }
    
    #prev-slide svg,
    #next-slide svg {
        width: 1rem;
        height: 1rem;
    }
    
    #play-pause-btn {
        top: 1rem;
        right: 1rem;
        padding: 0.5rem;
    }
    
    #play-pause-btn svg {
        width: 0.875rem;
        height: 0.875rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* Loading Animation */
.slide-loading {
    position: relative;
    background-color: rgba(55, 65, 81, 0.5);
}

.slide-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid rgba(129, 140, 248, 0.3);
    border-top: 3px solid #818cf8;
    border-radius: 50%;
    animation: slideshow-spin 1s linear infinite;
}

@keyframes slideshow-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade transition effect */
.fade-transition {
    animation: fadeInOut 0.5s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Smooth hover effects for the entire slideshow section */
#slideshow-container:hover #prev-slide,
#slideshow-container:hover #next-slide,
#slideshow-container:hover #play-pause-btn {
    opacity: 1;
}

#prev-slide,
#next-slide,
#play-pause-btn {
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

/* Ensure slideshow works well with the existing hero section */
.slideshow-section {
    position: relative;
    z-index: 5;
}