/* ===== MAIN CSS FILE - UNIFIED STYLES ===== */

/* Import color variables */
@import url('../variables/colors.css');
@import url('../variables/typography.css');
@import url('../variables/layout.css');

/* Import component styles */
@import url('../components/header.css');
@import url('../components/footer.css');
@import url('../components/sidebar.css');
@import url('../components/buttons.css');
@import url('../components/cards.css');
@import url('../components/forms.css');
@import url('./glassmorphism.css');

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::selection {
    background: var(--selection-bg);
    color: var(--selection-text);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: 
        radial-gradient(circle at 20% 20%, rgba(197, 127, 143, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(100, 152, 167, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(61, 73, 193, 0.06) 0%, transparent 50%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section styles */
section {
    padding: 60px 0;
}

.section {
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-heading);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--accent-gradient);
    margin: 1.5rem auto 0;
    border-radius: 2px;
    box-shadow: var(--shadow-glow);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Categories Grid Styles */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    animation: fadeInUp 0.6s ease-out;
}

.category-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    animation: fadeInUp 0.6s ease-out;
    transform: translateY(0);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(197, 127, 143, 0.1) 0%, 
        rgba(100, 152, 167, 0.08) 50%, 
        rgba(61, 73, 193, 0.06) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--primary-blue-light);
    background: rgba(30, 64, 175, 0.25);
}

.category-card:hover::before {
    opacity: 0.05;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    color: var(--primary-blue-light);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.category-count {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

/* Hero section enhancements */
.hero {
    background: var(--bg-gradient);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    section {
        padding: 40px 0;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Products Features Section - Consistent with glassmorphism design */
.products-features {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    margin: 0;
    background: transparent;
}

.products-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    pointer-events: none;
}

.products-features .repair-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.products-features .repair-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--vibrant-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.products-features .repair-hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.products-features .repair-hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.products-features .repair-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--glass-bg);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-backdrop);
}

.products-features .repair-feature i {
    color: var(--accent-electric);
    font-size: 1.2rem;
}

.products-features .repair-feature span {
    color: var(--text-primary);
    font-weight: 500;
}

.products-features .repair-hero-image {
    text-align: center;
    position: relative;
}

.products-features .repair-hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: var(--vibrant-gradient);
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse-glow 3s ease-in-out infinite;
}

.products-features .repair-illustration {
    width: 100%;
    max-width: 400px;
    height: 400px;
    background: var(--glass-bg);
    border-radius: 32px;
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

.products-features .repair-illustration::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--glass-gradient);
    opacity: 0.3;
    pointer-events: none;
}

.products-features .repair-icon {
    width: 120px;
    height: 120px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-glow);
}

.products-features .repair-icon i {
    font-size: 3rem;
    color: white;
}

.products-features .repair-text {
    text-align: center;
    position: relative;
    z-index: 2;
}

.products-features .repair-text h3 {
    font-size: 1.5rem;
    color: var(--text-heading);
    margin-bottom: 10px;
}

.products-features .repair-text p {
    color: var(--text-secondary);
    font-size: 1rem;
}

@keyframes pulse-glow {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.15;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.1;
    }
}