/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 0 4rem;
    position: relative;
    background: linear-gradient(135deg,
        #F5F3FF 0%,
        #EDE9FE 40%,
        #F5F3FF 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle,
        rgba(108, 49, 214, 0.08) 0%,
        transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle,
        rgba(129, 140, 248, 0.08) 0%,
        transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ===== HERO CONTENT ===== */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.2rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #059669;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

/* ===== TRUST BADGES ===== */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.trust-item i {
    color: var(--primary);
    font-size: 0.9rem;
}

.trust-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
}

/* ===== HERO VISUAL ===== */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card-main {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
}

.hero-card-header {
    background: #1E1B4B;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-dots {
    display: flex;
    gap: 0.4rem;
}

.card-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}

.card-dots span:first-child { background: #ff5f57; }
.card-dots span:nth-child(2) { background: #ffbd2e; }
.card-dots span:last-child { background: #28ca41; }

.card-title {
    color: rgba(255,255,255,0.5);
    font-size: 0.82rem;
    font-family: monospace;
}

.hero-card-body {
    padding: 1.5rem;
    background: #0f0f1a;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 2;
}

.code-line { display: block; }
.indent { padding-left: 1.5rem; }
.code-purple { color: #a78bfa; }
.code-blue { color: #60a5fa; }
.code-green { color: #34d399; }
.code-white { color: #e2e8f0; }

/* ===== FLOATING CARDS ===== */
.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    animation: floatAnim ease-in-out infinite;
}

.float-card i { color: var(--primary); }

.float-1 {
    top: 5%;
    right: -5%;
    animation-duration: 3s;
    animation-delay: 0s;
}

.float-2 {
    bottom: 15%;
    right: -8%;
    animation-duration: 3.5s;
    animation-delay: 1s;
}

.float-3 {
    top: 40%;
    left: -8%;
    animation-duration: 4s;
    animation-delay: 0.5s;
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.78rem;
    letter-spacing: 1px;
}

.scroll-mouse {
    width: 22px;
    height: 36px;
    border: 2px solid var(--border);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-wheel {
    width: 3px;
    height: 6px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* ===== STATS ===== */
.stats-section {
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 0 2rem;
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: var(--border);
}

/* ===== SECTION CONTAINER ===== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-header { margin-bottom: 3rem; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== SERVICES PREVIEW ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary-soft);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.7rem;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}

.service-link:hover { gap: 0.8rem; }

/* ===== WHY NEXORIA ===== */
.why-section {
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.why-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.why-card {
    padding: 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.why-card:hover {
    border-color: var(--primary-soft);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.why-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
}

.why-body h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.why-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== PROCESS ===== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

.process-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.process-card:hover {
    border-color: var(--primary-soft);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.process-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-main);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(108, 49, 214, 0.3);
}

.process-icon {
    font-size: 2rem;
    color: var(--primary);
    margin: 0.5rem 0 1rem;
}

.process-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.process-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.process-arrow {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-soft);
    font-size: 1.2rem;
    z-index: 1;
}

/* ===== PROJECTS PREVIEW ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--primary-soft);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.project-thumb {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--border);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 27, 75, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay { opacity: 1; }

.overlay-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.overlay-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

.project-body { padding: 1.3rem; }

.project-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    display: block;
    margin-bottom: 0.4rem;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.project-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tech-tag {
    padding: 0.2rem 0.7rem;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
}

/* ===== TECH STACK ===== */
.tech-section {
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    min-width: 90px;
}

.tech-item:hover {
    border-color: var(--primary-soft);
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.tech-item img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.tech-item i {
    font-size: 2rem;
    color: var(--primary);
}

.tech-item span {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    background: var(--bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--primary-soft);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.testimonial-stars {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.testimonial-stars i {
    color: #f59e0b;
    font-size: 0.9rem;
}

.star-empty { color: var(--border) !important; }

.testimonial-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

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

.author-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-main);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.author-info h5 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.author-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--bg);
    padding-bottom: 0;
}

.cta-card {
    background: var(--text-primary);
    border-radius: 24px;
    padding: 5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle,
        rgba(108, 49, 214, 0.3) 0%,
        transparent 70%);
    pointer-events: none;
}

.cta-card .section-tag {
    background: rgba(108, 49, 214, 0.2);
    color: var(--primary-soft);
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    margin: 1rem 0;
    line-height: 1.3;
}

.cta-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    transition: var(--transition);
    text-decoration: none;
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    color: white;
    transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-container { gap: 2rem; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .process-arrow { display: none; }
    .why-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { margin: 0 auto 2rem; }
    .hero-btns { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-visual { order: -1; }
    .float-card { display: none; }

    .projects-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .why-right { grid-template-columns: 1fr; }

    .cta-title { font-size: 2rem; }
    .cta-card { padding: 3rem 1.5rem; }

    .stats-container { flex-direction: column; gap: 1.5rem; }
    .stat-divider { width: 60px; height: 1px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .process-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
}