/* Nakshatra Techno Hub – Landing Page */

.nth-landing {
    --nth-red: #df4838;
    --nth-red-dark: #c93d2f;
    --nth-dark: #1a1a2e;
    --nth-gray: #6b7280;
    --nth-light: #f9fafb;
    font-family: "Poppins", sans-serif;
    color: var(--nth-dark);
}

/* Section labels */
.nth-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--nth-red);
    margin-bottom: 0.75rem;
}

/* Buttons */
.nth-landing a.nth-btn-primary,
.nth-landing .nth-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    text-decoration: none;
}

.nth-landing a.nth-btn-outline,
.nth-landing .nth-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #ffffff;
    color: var(--nth-dark);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.8rem 1.6rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 50px;
    transition:
        border-color 0.2s ease,
        color 0.2s ease;
    text-decoration: none;
}

.nth-landing a.nth-btn-outline i {
    color: var(--nth-red);
    font-size: 0.85rem;
}

.nth-landing a.nth-btn-outline:hover,
.nth-landing .nth-btn-outline:hover {
    border-color: var(--nth-red);
    color: var(--nth-red);
}

.nth-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--nth-red);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.nth-link:hover {
    gap: 0.6rem;
}

/* Hero */
.nth-hero {
    padding: 6.5rem 0 3rem;
    background: linear-gradient(180deg, #ffffff 0%, #fdf6f4 55%, #fafafa 100%);
}

/* Snappy hero reveal — overrides animate.css 1s/2s/3s delays */
.nth-hero .wow.animate__animated {
    animation-duration: 0.55s;
    animation-fill-mode: both;
}

.nth-hero .nth-hero-stagger-1 {
    animation-delay: 0.08s;
}

.nth-hero .nth-hero-stagger-2 {
    animation-delay: 0.16s;
}

.nth-hero .nth-hero-stagger-3 {
    animation-delay: 0.28s;
}

.nth-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.nth-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 4rem;
    align-items: center;
}

.nth-hero h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    letter-spacing: -0.02em;
}

.nth-hero h1 span {
    color: var(--nth-red);
}

.nth-hero-desc {
    margin-top: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #6b7280;
    max-width: 520px;
}

.nth-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.nth-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nth-hero-visual img {
    width: 100%;
    max-width: 520px;
    height: auto;
    max-height: 440px;
    object-fit: contain;
}

@keyframes moveUpDown {
    0%,
    100% {
        transform: translateY(20px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.nth-hero-visual img.animate-up-down {
    animation: moveUpDown 3s ease-in-out infinite;
}

/* Trust row + stats */
.nth-hero-highlights {
    margin-top: 2.75rem;
}

.nth-hero-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.nth-hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.nth-hero-trust-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--nth-red);
    border-radius: 50%;
    flex-shrink: 0;
}

.nth-hero-trust-icon i {
    color: #ffffff;
    font-size: 0.95rem;
}

.nth-hero-trust-label {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    color: #111827;
}

/* Stats card */
.nth-hero-stats {
    margin-top: 0;
}

.nth-hero-stats-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}

.nth-stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.75rem 1.5rem;
}

.nth-stat-item:not(:last-child) {
    border-right: 1px solid #f3f4f6;
}

.nth-stat-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdecea;
    border-radius: 50%;
    color: var(--nth-red);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.nth-stat-number {
    font-size: 1.85rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.nth-stat-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.35rem;
    line-height: 1.3;
}

/* Section headers */
.nth-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.nth-section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--nth-dark);
}

/* Cards */
.nth-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition:
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.nth-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
    border-color: #d1d5db;
}

.nth-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nth-red);
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.nth-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--nth-dark);
    margin-bottom: 0.75rem;
}

.nth-card p {
    font-size: 0.875rem;
    color: var(--nth-gray);
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

/* Industries */
.nth-industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.5rem;
}

.nth-industry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1rem 0.5rem;
    transition: transform 0.2s ease;
}

.nth-industry-item:hover {
    transform: translateY(-3px);
}

.nth-industry-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nth-red);
    font-size: 1.5rem;
}

.nth-industry-item span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--nth-dark);
    line-height: 1.3;
}

/* Portfolio */
.nth-case-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease;
}

.nth-case-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.nth-case-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.nth-case-card:hover .nth-case-img img {
    transform: scale(1.04);
}

.nth-case-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--nth-red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nth-case-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.nth-case-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.nth-case-body p {
    font-size: 0.85rem;
    color: var(--nth-gray);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1rem;
}

/* Sections spacing */
.nth-section {
    padding: 5rem 0;
}

.nth-section-alt {
    background: var(--nth-light);
}

/* Navbar override for landing */
body:has(.nth-landing) .navbar {
    background: #fff;
}

body:has(.nth-landing) .navbar ul a::before {
    background-color: var(--nth-red);
}

body:has(.nth-landing) .mobile-icon span {
    background-color: var(--nth-red);
}

@media (max-width: 1140px) {
    .nth-hero {
        padding-top: 6rem;
    }

    .nth-hero-inner {
        padding: 0 1.25rem;
    }

    .nth-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nth-hero-visual img {
        max-height: 320px;
    }

    .nth-hero-trust {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem 1.5rem;
    }

    .nth-hero-stats-card {
        grid-template-columns: repeat(2, 1fr);
    }

    .nth-stat-item:nth-child(2) {
        border-right: none;
    }

    .nth-stat-item:nth-child(1),
    .nth-stat-item:nth-child(2) {
        border-bottom: 1px solid #f3f4f6;
    }
}

@media (max-width: 640px) {
    .nth-hero-trust {
        grid-template-columns: 1fr;
    }

    .nth-hero-stats-card {
        grid-template-columns: 1fr;
    }

    .nth-stat-item {
        border-right: none !important;
        border-bottom: 1px solid #f3f4f6;
    }

    .nth-stat-item:last-child {
        border-bottom: none;
    }

    .nth-hero-actions {
        flex-direction: column;
    }

    .nth-hero-actions .nth-hero-btn {
        width: 100%;
        justify-content: center;
    }
}
