/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Hero Section */
.hero-section {
    background: #071d32 !important;
    padding: 30px 0 50px;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 50px 0 70px;
    }
}

@media (min-width: 992px) {
    .hero-section {
        padding: 60px 0 80px;
    }
}

.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" preserveAspectRatio="none"><polygon points="0,100 100,0 100,100" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
    opacity: 0.1;
    pointer-events: none;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}

@media (min-width: 576px) {
    .hero-title {
        font-size: 40px;
    }
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 48px;
    }
}

@media (min-width: 1200px) {
    .hero-title {
        font-size: 52px;
    }
}

.hero-title span {
    color: #ffd700;
    display: block;
    font-size: 26px;
    font-weight: 400;
}

@media (min-width: 576px) {
    .hero-title span {
        font-size: 32px;
    }
}

@media (min-width: 992px) {
    .hero-title span {
        font-size: 38px;
    }
}

.hero-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 25px;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 18px;
    }
}

.hero-buttons .btn {
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 50px;
    margin-right: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 10px;
}

@media (min-width: 576px) {
    .hero-buttons .btn {
        padding: 15px 30px;
        font-size: 16px;
        margin-right: 15px;
    }
}

.btn-talent {
    background: #ffd700;
    color: #000 !important;
    border: none;
}

.btn-talent:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,215,0,0.3);
}

.btn-opportunity {
    background: transparent;
    border: 2px solid #fff;
    color: #fff !important;
}

.btn-opportunity:hover {
    background: #fff;
    color: #000 !important;
    transform: translateY(-3px);
}

.hero-image {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: all 0.5s ease;
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    margin-top: 30px;
}

@media (min-width: 992px) {
    .hero-image {
        margin-top: 0;
        transform: perspective(1000px) rotateY(-10deg);
        max-height: 450px;
    }
    
    .hero-image:hover {
        transform: perspective(1000px) rotateY(0deg);
    }
}

/* Hero Stats */
.hero-stats {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-stats span {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
}

@media (min-width: 576px) {
    .hero-stats span {
        font-size: 14px;
    }
}

.hero-stats i {
    color: #ffd700;
    margin-right: 5px;
}

/* Search Bar */
.search-wrapper {
    margin-top: -25px;
    position: relative;
    z-index: 100;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .search-wrapper {
        margin-top: -35px;
    }
}

@media (min-width: 992px) {
    .search-wrapper {
        margin-top: -45px;
    }
}

.search-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border: none;
}

@media (min-width: 768px) {
    .search-card {
        padding: 30px;
        border-radius: 20px;
    }
}

.search-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

@media (min-width: 576px) {
    .search-title {
        font-size: 18px;
    }
}

.search-title i {
    color: #071d32 !important;
    margin-right: 8px;
}

.search-form .form-control,
.search-form .form-select {
    height: 45px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 0 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .search-form .form-control,
    .search-form .form-select {
        height: 55px;
        font-size: 16px;
    }
}

.search-form .form-control:focus,
.search-form .form-select:focus {
    border-color: #071d32;
    box-shadow: 0 0 0 0.2rem rgba(7,29,50,0.25);
}

.btn-search {
    background: #071d32 !important;
    color: #fff;
    height: 45px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    transition: all 0.3s ease;
    width: 100%;
}

@media (min-width: 768px) {
    .btn-search {
        height: 55px;
        font-size: 16px;
    }
}

.btn-search:hover {
    background: #0a2a45 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(7,29,50,0.3);
}

/* Categories Section */
section {
    padding: 40px 0;
}

@media (min-width: 768px) {
    section {
        padding: 60px 0;
    }
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

@media (min-width: 576px) {
    .section-title {
        font-size: 30px;
    }
}

@media (min-width: 768px) {
    .section-title {
        font-size: 34px;
        margin-bottom: 15px;
        padding-bottom: 20px;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #071d32, #ffd700) !important;
    border-radius: 2px;
}

@media (min-width: 768px) {
    .section-title::after {
        width: 80px;
        height: 4px;
    }
}

.section-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    padding: 0 15px;
}

@media (min-width: 576px) {
    .section-subtitle {
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
}

/* Category Card */
.category-card {
    background: #fff;
    border-radius: 12px;
    padding: 0 10px 15px 10px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 576px) {
    .category-card {
        padding: 0 15px 20px 15px;
        border-radius: 15px;
    }
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: #071d32;
}

.category-image-wrapper {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

@media (min-width: 576px) {
    .category-image-wrapper {
        height: 140px;
    }
}

@media (min-width: 768px) {
    .category-image-wrapper {
        height: 150px;
    }
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.category-card:hover .category-image {
    transform: scale(1.08);
}

.category-icon {
    width: 50px;
    height: 50px;
    text-align: center;
    background: #071d32 !important;
    color: #fff;
    font-size: 20px;
    border-radius: 50%;
    margin: -25px auto 10px;
    position: relative;
    z-index: 10;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 576px) {
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin: -30px auto 15px;
    }
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, #ffd700, #ffb347) !important;
    color: #000;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    position: relative;
    z-index: 5;
    padding: 0 5px;
}

@media (min-width: 576px) {
    .category-name {
        font-size: 16px;
    }
}

.category-count {
    color: #666;
    font-size: 12px;
    position: relative;
    z-index: 5;
}

/* Featured Vendors */
.featured-section {
    background: #f8f9fa;
}

.vendor-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    border: none;
}

@media (min-width: 768px) {
    .vendor-card {
        border-radius: 20px;
        margin-bottom: 30px;
    }
}

.vendor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(7,29,50,0.15);
}

.vendor-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

@media (min-width: 576px) {
    .vendor-image {
        height: 220px;
    }
}

.vendor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.vendor-card:hover .vendor-image img {
    transform: scale(1.08);
}

.vendor-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffd700;
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (min-width: 768px) {
    .vendor-badge {
        top: 15px;
        right: 15px;
        padding: 8px 15px;
        font-size: 12px;
    }
}

.vendor-content {
    padding: 15px;
}

@media (min-width: 768px) {
    .vendor-content {
        padding: 20px;
    }
}

.vendor-name {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 3px;
}

@media (min-width: 576px) {
    .vendor-name {
        font-size: 18px;
    }
}

.vendor-category {
    color: #071d32 !important;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 12px;
}

@media (min-width: 576px) {
    .vendor-category {
        font-size: 13px;
    }
}

.vendor-location {
    color: #666;
    font-size: 12px;
    margin-bottom: 10px;
}

.vendor-location i {
    color: #ffd700;
    margin-right: 3px;
}

.vendor-rating {
    margin-bottom: 10px;
    font-size: 11px;
}

.vendor-rating .text-muted {
    font-size: 11px;
}

.vendor-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #eee;
    margin-bottom: 12px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

@media (min-width: 576px) {
    .stat-value {
        font-size: 16px;
    }
}

.stat-label {
    font-size: 10px;
    color: #666;
}

@media (min-width: 576px) {
    .stat-label {
        font-size: 11px;
    }
}

.btn-view {
    background: #071d32 !important;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.btn-view:hover {
    background: #ffd700 !important;
    color: #071d32 !important;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: #071d32 !important;
    color: #071d32 !important;
    font-size: 14px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #071d32 !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* Video Section */
.video-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(7,29,50,0.15);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-title {
    padding: 12px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
    background: #fff;
    border-top: 1px solid #eee;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    cursor: default;
    border-radius: 12px;
    overflow: hidden;
    padding: 20px 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(7, 29, 50, 0.15) !important;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 24px;
}

@media (min-width: 768px) {
    .service-icon i {
        font-size: 28px;
    }
}

.service-card h5 {
    font-size: 15px;
    margin-bottom: 10px;
    text-align: center;
}

@media (min-width: 576px) {
    .service-card h5 {
        font-size: 16px;
    }
}

.service-card p {
    font-size: 12px;
    text-align: center;
}

/* CTA Section */
.cta-section {
    background: #071d32 !important;
    padding: 40px 0;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .cta-section {
        padding: 60px 0;
    }
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.03)"/></svg>');
    animation: rotate 30s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

@media (min-width: 576px) {
    .cta-title {
        font-size: 32px;
    }
}

.cta-text {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

@media (min-width: 576px) {
    .cta-text {
        font-size: 16px;
    }
}

.cta-btn {
    background: #ffd700;
    color: #000;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    border: none;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255,215,0,0.3);
    color: #000;
}

.cta-features {
    margin-top: 20px;
    font-size: 11px;
}

.cta-features i {
    margin: 0 5px;
}

/* About Section */
#about {
    padding: 40px 0;
}

@media (min-width: 768px) {
    #about {
        padding: 60px 0;
    }
}

#about .display-5 {
    font-size: 24px;
}

@media (min-width: 576px) {
    #about .display-5 {
        font-size: 28px;
    }
}

#about .lead {
    color: #071d32 !important;
    font-size: 14px;
}

/* Empty State */
.empty-state {
    padding: 30px 15px;
    text-align: center;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
    .empty-state {
        padding: 50px 20px;
    }
}

.empty-state i {
    font-size: 40px;
    color: #ffd700;
    margin-bottom: 15px;
}

.empty-state h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.empty-state p {
    color: #666;
    margin-bottom: 15px;
    font-size: 13px;
}

/* Interest Modal */
.modal-content {
    border-radius: 15px;
}

.modal-header {
    border-bottom: 2px solid #ffd700;
    padding: 15px;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
}

.modal-body {
    padding: 20px 15px;
}

.modal-footer {
    padding: 15px;
}

/* Container and Grid Adjustments */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

.row {
    margin-left: -10px;
    margin-right: -10px;
}

.row > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
}

@media (min-width: 768px) {
    .row {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    .row > [class*="col-"] {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Color Utilities */
.bg-purple {
    background-color: #6f42c1 !important;
}

.text-purple {
    color: #6f42c1 !important;
}

/* Responsive Text Sizes */
@media (max-width: 576px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-title span {
        font-size: 22px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .category-name {
        font-size: 13px;
    }
    
    .vendor-name {
        font-size: 15px;
    }
}

/* Fix for very small devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 24px;
    }
    
    .hero-title span {
        font-size: 18px;
    }
    
    .btn-talent, .btn-opportunity {
        padding: 10px 20px;
        font-size: 13px;
    }
}

.hero-section {
    position: relative;
}

.hero-section .row {
    position: relative;
    z-index: 2;
}

.hero-image {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-image {
        margin-top: 20px;
        z-index: 0;
    }
}

/* ============================================ */
/* MOBILE FIXES - Added for clickability issues */
/* ============================================ */

/* Fix for mobile click issues */
@media (max-width: 768px) {
    /* Ensure hero section buttons are clickable */
    .hero-section {
        position: relative;
        z-index: 1;
    }
    
    .hero-section::before {
        pointer-events: none;
        z-index: -1;
    }
    
    .hero-section .container,
    .hero-section .row,
    .hero-section .col-lg-6 {
        position: relative;
        z-index: 2;
    }
    
    /* Make sure buttons are on top and clickable */
    .hero-buttons {
        position: relative;
        z-index: 10;
    }
    
    .hero-buttons .btn {
        position: relative;
        z-index: 10;
        pointer-events: auto;
        cursor: pointer;
    }
    
    /* Fix for hero image on mobile - ensure it doesn't block clicks */
    .hero-image {
        position: relative;
        z-index: 1;
        pointer-events: none;
    }
    
    /* Ensure the parent container doesn't have overflow issues */
    .hero-section .col-lg-6:last-child {
        position: relative;
        z-index: 1;
    }
    
    /* Remove all hover effects on mobile for better touch experience */
    .btn-talent:hover,
    .btn-opportunity:hover,
    .category-card:hover,
    .vendor-card:hover,
    .video-card:hover,
    .service-card:hover {
        transform: none !important;
    }
    
    /* Remove hover box shadows on mobile */
    .btn-talent:hover,
    .btn-opportunity:hover {
        box-shadow: none !important;
    }
    
    /* Add active states for better touch feedback */
    .btn-talent:active {
        background: #e6c300;
        transform: scale(0.98);
    }
    
    .btn-opportunity:active {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(0.98);
    }
    
    /* Remove image scale on hover for mobile */
    .category-card:hover .category-image,
    .vendor-card:hover .vendor-image img {
        transform: none !important;
    }
    
    /* Simplify hover states for better touch response */
    .category-card:active {
        border-color: #071d32;
        transform: scale(0.98);
    }
    
    .vendor-card:active {
        transform: scale(0.98);
    }
    
    /* Fix any potential click blocking issues */
    .category-card .stretched-link {
        pointer-events: auto;
    }
    
    .vendor-card .btn-view {
        pointer-events: auto;
        cursor: pointer;
    }
    
    /* Remove hover transforms from all interactive elements */
    .btn-search:hover {
        transform: none !important;
    }
    
    .btn-outline-primary:hover {
        transform: none !important;
    }
    
    .cta-btn:hover {
        transform: none !important;
    }
    
    /* Add active states for search button */
    .btn-search:active {
        background: #0a2a45 !important;
        transform: scale(0.98);
    }
    
    /* Add active states for outline button */
    .btn-outline-primary:active {
        background: #071d32 !important;
        color: #fff !important;
        transform: scale(0.98);
    }
    
    /* Add active states for CTA button */
    .cta-btn:active {
        transform: scale(0.98);
    }
}