/* Nxtbyte Refined Glass & Glow Design System */

/* --- Immersive Hero Section --- */
.section {
    padding: 100px 0;
    position: relative;
    width: 100%;
}

.hero-modern {
    background: var(--dark);
    position: relative;
    overflow: hidden;
    padding: 60px 0 40px;
    /* Reduced significantly to fit 50vh */
    min-height: 50vh;
    /* Reduced from 80vh to half-height for desktop */
    display: flex;
    align-items: center;
}

.hero-mesh-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 65%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, var(--dark) 0%, transparent 100%);
    z-index: 1;
}

.hero-content-modern {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content-modern h1 {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--white);
    letter-spacing: -0.02em;
}

.hero-content-modern p {
    font-size: 1.15rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Stats Grid --- */
.glass-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.glass-stat-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 20px;
    transition: var(--transition);
    text-align: center;
}

.glass-stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
}

.glass-stat-card h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-stat-card p {
    color: var(--gray);
    font-weight: 500;
    margin: 0;
}

/* --- Features / Services --- */
.service-card-premium {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem 2rem;
    border: 1px solid var(--light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.2);
}

.service-icon-gradient {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--white);
    background: var(--primary-gradient);
}

.gradient-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.gradient-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.gradient-green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.gradient-orange {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}


/* --- Portfolio (Modern Grid) --- */
.project-card-modern {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.project-image-wrapper {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    background: var(--light);
}

.project-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card-modern:hover img {
    transform: scale(1.05);
}

.project-content-modern {
    padding: 1.5rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-client-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.project-title-modern {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.project-description-modern {
    font-size: 0.95rem;
    color: var(--dark-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.project-tech-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.project-tech-tag {
    font-size: 0.7rem;
    background: var(--light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 600;
}

/* --- Testimonials --- */
.testimonial-modern {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light);
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--dark-light);
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
}

.rating-stars {
    color: var(--accent);
    font-size: 0.9rem;
}

/* --- Blog Cards --- */
.blog-card-modern {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.blog-image-wrapper {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.blog-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card-modern:hover img {
    transform: scale(1.05);
}

.blog-category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.blog-content-modern {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta-modern {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.blog-title-modern {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--dark);
}

/* --- CTA Section --- */
.cta-premium {
    background: var(--dark);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.15), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.15), transparent 50%);
}

.cta-premium h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.btn-premium {
    background: var(--white);
    color: var(--primary);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* --- Section Title --- */
.container-header {
    text-align: center;
    margin-bottom: 5rem;
}

.container-header h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.container-header p {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 650px;
    margin: 0 auto;
}

/* --- About Us Refinement --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.section-badge {
    display: block;
    /* Ensure it takes its own line */
    width: fit-content;
    /* Only take necessary width */
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50px;
    margin-bottom: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.section-badge span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase;
    font-size: 0.7rem !important;
}

.about-heading {
    font-size: 3rem !important;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--dark);
    position: relative;
    display: block;
    /* Change from inline-block to block to prevent flow issues */
    width: fit-content;
}

.about-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Responsive Font Sizes for About Heading */
@media (max-width: 768px) {
    .about-heading {
        font-size: 2.25rem !important;
    }

    .about-lead {
        font-size: 1.05rem !important;
    }

    .stats-row {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.25rem;
    }
}

.about-lead {
    font-size: 1.15rem !important;
    color: var(--dark-light) !important;
    line-height: 1.7 !important;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.stats-row {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    line-height: 1;
    font-weight: 800;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray);
    margin-top: 0.5rem;
}

.about-cards-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mission-vision-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2.5rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border-radius: 24px;
    transition: var(--transition);
}

.mission-vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.card-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stats-row {
        gap: 2rem;
        margin-top: 2rem;
        padding-top: 2rem;
    }
}

/* --- Responsive Polish --- */
/* Responsive Polish */
@media (max-width: 1024px) {
    .hero-modern {
        padding: 140px 0 80px;
        min-height: 60vh;
    }

    .hero-content-modern h1 {
        font-size: 3.5rem;
    }

    .glass-stats-grid {
        gap: 1.5rem;
    }

    .service-card-premium {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .glass-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-modern {
        padding: 120px 0 60px;
    }

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

    .container-header h2 {
        font-size: 2.25rem;
    }

    .cta-premium {
        padding: 60px 0;
    }

    .cta-premium h2 {
        font-size: 2rem;
    }
}

/* --- Section Header --- */
.container-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.container-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--dark);
    line-height: 1.2;
}

.container-header p {
    font-size: 1.15rem;
    color: var(--gray);
    line-height: 1.8;
}

/* --- Utilities --- */
.bg-light {
    background-color: var(--light);
}

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 3rem;
}

@media (max-width: 1024px) {
    .section {
        padding: 80px 0;
    }

    .container-header {
        margin-bottom: 3.5rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .container-header {
        margin-bottom: 2.5rem;
    }

    .container-header h2 {
        font-size: 2.25rem;
    }
}