/* Home Page Specific Styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-section .btn {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Stats Section */
.stats-section {
    background: white;
    border-radius: 20px;
    margin: -40px 15px 0;
    position: relative;
    z-index: 3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stats-section p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

/* Features Section */
.features-section {
    padding: 80px 0;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Recent Spots Section */
.recent-spots-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.spot-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.spot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.spot-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

.spot-card .card-body {
    padding: 1.5rem;
}

.spot-card .card-title {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.spot-card .badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

/* API Section */
.api-section {
    padding: 60px 0;
    background: white;
}

.api-section .btn {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.api-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 122, 255, 0.3);
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 80px 0;
}

.download-btn {
    background: #000;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    text-align: left;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: #333;
}

.download-btn.google {
    background: #34A853;
}

.download-btn.google:hover {
    background: #2d8f47;
}

.download-btn i {
    font-size: 2rem;
    margin-right: 1rem;
}

.qr-code-container {
    position: relative;
    display: inline-block;
}

.qr-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Admin Section */
.admin-section {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    padding: 60px 0;
}

.admin-section .btn {
    background: linear-gradient(135deg, var(--warning-color), #ffb347);
    border: none;
    border-radius: 25px;
    padding: 1rem 2rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.admin-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .stats-number {
        font-size: 2rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .features-section,
    .recent-spots-section,
    .download-section {
        padding: 60px 0;
    }

    .spot-card .card-img-top {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .stats-number {
        font-size: 1.8rem;
    }

    .download-btn {
        font-size: 0.9rem;
    }

    .download-btn i {
        font-size: 1.5rem;
    }
}

/* Animation delays for staggered effects */
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

.spot-card:nth-child(1) { animation-delay: 0.1s; }
.spot-card:nth-child(2) { animation-delay: 0.2s; }
.spot-card:nth-child(3) { animation-delay: 0.3s; }
.spot-card:nth-child(4) { animation-delay: 0.4s; }
.spot-card:nth-child(5) { animation-delay: 0.5s; }
.spot-card:nth-child(6) { animation-delay: 0.6s; }