/* Nexcore Utility Classes */

/* Container */
.nex-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
}

.nex-container--wide {
    max-width: 1400px;
}

.nex-container--narrow {
    max-width: 900px;
}

/* Section */
.nex-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.nex-section--small {
    padding-top: 40px;
    padding-bottom: 40px;
}

.nex-section--large {
    padding-top: 120px;
    padding-bottom: 120px;
}

/* Buttons */
.nex-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1.5;
}

.nex-btn--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: transparent;
}

.nex-btn--primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    color: #ffffff;
}

.nex-btn--secondary {
    background: #2c3e50;
    color: #ffffff;
    border-color: #2c3e50;
}

.nex-btn--secondary:hover {
    background: #1a252f;
    border-color: #1a252f;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.3);
    color: #ffffff;
}

.nex-btn--outline {
    background: transparent;
    color: #667eea;
    border-color: #667eea;
}

.nex-btn--outline:hover {
    background: #667eea;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.nex-btn--small {
    padding: 10px 24px;
    font-size: 14px;
}

.nex-btn--large {
    padding: 18px 40px;
    font-size: 18px;
}

/* Grid System */
.nex-grid {
    display: grid;
    gap: 30px;
}

.nex-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.nex-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.nex-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.nex-grid--6 {
    grid-template-columns: repeat(6, 1fr);
}

/* Spacing Utilities */
.nex-mt-0 {
    margin-top: 0;
}

.nex-mt-1 {
    margin-top: 10px;
}

.nex-mt-2 {
    margin-top: 20px;
}

.nex-mt-3 {
    margin-top: 30px;
}

.nex-mt-4 {
    margin-top: 40px;
}

.nex-mt-5 {
    margin-top: 50px;
}

.nex-mb-0 {
    margin-bottom: 0;
}

.nex-mb-1 {
    margin-bottom: 10px;
}

.nex-mb-2 {
    margin-bottom: 20px;
}

.nex-mb-3 {
    margin-bottom: 30px;
}

.nex-mb-4 {
    margin-bottom: 40px;
}

.nex-mb-5 {
    margin-bottom: 50px;
}

.nex-pt-0 {
    padding-top: 0;
}

.nex-pt-1 {
    padding-top: 10px;
}

.nex-pt-2 {
    padding-top: 20px;
}

.nex-pt-3 {
    padding-top: 30px;
}

.nex-pt-4 {
    padding-top: 40px;
}

.nex-pt-5 {
    padding-top: 50px;
}

.nex-pb-0 {
    padding-bottom: 0;
}

.nex-pb-1 {
    padding-bottom: 10px;
}

.nex-pb-2 {
    padding-bottom: 20px;
}

.nex-pb-3 {
    padding-bottom: 30px;
}

.nex-pb-4 {
    padding-bottom: 40px;
}

.nex-pb-5 {
    padding-bottom: 50px;
}

/* Text Alignment */
.nex-text-left {
    text-align: left;
}

.nex-text-center {
    text-align: center;
}

.nex-text-right {
    text-align: right;
}

/* Display */
.nex-d-none {
    display: none;
}

.nex-d-block {
    display: block;
}

.nex-d-flex {
    display: flex;
}

.nex-d-grid {
    display: grid;
}

/* Flex Utilities */
.nex-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nex-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nex-flex-column {
    flex-direction: column;
}

.nex-gap-1 {
    gap: 10px;
}

.nex-gap-2 {
    gap: 20px;
}

.nex-gap-3 {
    gap: 30px;
}

.nex-gap-4 {
    gap: 40px;
}

/* Colors */
.nex-text-primary {
    color: #667eea;
}

.nex-text-secondary {
    color: #2c3e50;
}

.nex-text-dark {
    color: #1a1a1a;
}

.nex-text-light {
    color: #666666;
}

.nex-text-white {
    color: #ffffff;
}

.nex-bg-primary {
    background-color: #667eea;
}

.nex-bg-secondary {
    background-color: #2c3e50;
}

.nex-bg-light {
    background-color: #f8f9fa;
}

.nex-bg-dark {
    background-color: #1a1a1a;
}

.nex-bg-white {
    background-color: #ffffff;
}

/* Shadows */
.nex-shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nex-shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nex-shadow-lg {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Border Radius */
.nex-rounded-sm {
    border-radius: 4px;
}

.nex-rounded {
    border-radius: 8px;
}

.nex-rounded-lg {
    border-radius: 12px;
}

.nex-rounded-full {
    border-radius: 9999px;
}

/* Responsive Grid */
@media (max-width: 992px) {

    .nex-grid--2,
    .nex-grid--3,
    .nex-grid--4,
    .nex-grid--6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .nex-grid--2,
    .nex-grid--3,
    .nex-grid--4,
    .nex-grid--6 {
        grid-template-columns: 1fr;
    }

    .nex-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .nex-section--small {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .nex-section--large {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}