/* Brands Section Styles */

/* Fix for About page layout - addressing excessive white space */
.page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 60px 40px 120px;
    width: 100%;
    box-sizing: border-box;
}

.about-content {
    grid-template-columns: 3fr 2fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: center;
}

.about-text {
    padding-right: 20px;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Stats Section */
.stats-section {
    width: 100%;
    padding: 80px 0;
    background-color: #000;
    color: #fff;
    margin: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), #000);
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/stars-bg.png');
    background-repeat: repeat;
    opacity: 0.4;
    z-index: 0;
}

.stats-header {
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.stats-header h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 3px;
    margin: 0;
    color: #ff4d4d;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.3);
}

/* .stats-header h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #ff4d4d;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
} */

.stats-container {
    display: flex;
    justify-content: center;
    gap: 80px;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* .stat-item {
    text-align: center;
    flex: 0 0 auto;
    padding: 20px;
    position: relative;
    transition: transform 0.3s ease;
} */

/* .stat-item:hover {
    transform: translateY(-10px);
} */

.stat-number {
    font-size: 90px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    position: relative;
    display: inline-block;
}

.plus {
    font-size: 40px;
    position: relative;
    top: -30px;
    color: #ff4d4d;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
}

.stat-label {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.stat-tag {
    display: inline-block;
    background-color: #ff4d4d;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    margin-top: 12px;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(255, 77, 77, 0.3);
    position: relative;
    z-index: 2;
}

.stat-item.highlight .stat-number {
    color: #ff4d4d;
    text-shadow: 0 0 25px rgba(255, 77, 77, 0.6);
}

.stat-item.highlight .plus {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.stat-item.highlight::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #ff4d4d;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .stats-section {
        padding: 50px 0;
        margin: 40px 0;
    }
    
    .stats-header {
        margin-bottom: 40px;
    }
    
    .stats-header h2 {
        font-size: 22px;
    }
    
    .stats-header h3 {
        font-size: 28px;
        margin-top: 10px;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 50px;
        padding: 0 15px;
    }
    
    .stat-number {
        font-size: 70px;
        margin-bottom: 10px;
    }
    
    .plus {
        font-size: 32px;
        top: -25px;
    }
    
    .stat-label {
        font-size: 14px;
        letter-spacing: 1.5px;
    }
    
    .stat-tag {
        margin-top: 8px;
        padding: 4px 10px;
    }
}

@media (max-width: 480px) {
    .stats-section {
        padding: 40px 0;
    }
    
    .stats-header h2 {
        font-size: 18px;
    }
    
    .stats-header h3 {
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 60px;
    }
    
    .plus {
        font-size: 28px;
        top: -20px;
    }
}

/* Brands Section */
.brands-section {
    padding: 60px 0;
    width: 100%;
    margin-bottom: 60px;
}

.brands-section h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.brands-section > p {
    max-width: 800px;
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.6;
}

.brands-categories {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
}

.category-dot {
    width: 12px;
    height: 12px;
    background-color: #ff4d4d;
    border-radius: 50%;
}

.category-dot.development {
    background-color: #2ecc71;
}

.category-dot.design {
    background-color: #3498db;
}

.category-dot.management {
    background-color: #e74c3c;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.brand-card {
    background-color: #111;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/stars-bg.png') repeat;
    opacity: 0.1;
    z-index: 0;
}

.brand-card.buildoria {
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
    border-bottom: 3px solid #2ecc71;
}

.brand-card.astrovio {
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
    border-bottom: 3px solid #3498db;
}

.brand-card.mineshopify {
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
    border-bottom: 3px solid #e74c3c;
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.brand-icon {
    width: 100px;
    height: 100px;
    background: #1e1e1e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.brand-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.brand-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 30px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    min-height: 72px;
}

.brand-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
}

.buildoria .brand-btn:hover {
    background-color: #2ecc71;
    border-color: #2ecc71;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.4);
}

.astrovio .brand-btn:hover {
    background-color: #3498db;
    border-color: #3498db;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.4);
}

.mineshopify .brand-btn:hover {
    background-color: #e74c3c;
    border-color: #e74c3c;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.4);
}

/* Hover effect already defined above */

/* Responsive Styles */
@media (max-width: 1200px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .stats-container {
        gap: 40px;
    }
    
    .stat-item h2 {
        font-size: 50px;
    }
    
    .stat-item.highlight h2 {
        font-size: 70px;
    }
}

@media (max-width: 992px) {
    .page-wrapper {
        padding: 30px 40px 30px 100px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-text {
        padding-right: 0;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        padding: 30px 20px 30px 80px;
    }
    
    .stats-section {
        padding: 60px 20px;
        margin: 40px 0;
    }
    
    .stats-header h3 {
        font-size: 28px;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .stat-item h2,
    .stat-item.highlight h2 {
        font-size: 50px;
    }
    
    .brands-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .brands-categories {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .stats-section {
        padding: 40px 15px;
    }
    
    .stats-header h2 {
        font-size: 16px;
    }
    
    .stats-header h3 {
        font-size: 24px;
    }
    
    .brand-card {
        padding: 30px 20px;
    }
}
