/* home page. Every selector starts with .nk-home, the page's wrapper, so nothing here reaches the theme. */

/* --- Hero --- */
.nk-home .hero-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    background: radial-gradient(circle at top right, var(--card-bg) 0%, var(--bg-color) 100%);
}

.nk-home .hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.nk-home .typewriter-container {
    display: inline-block;
    min-height: 1.6em; /* keeps the layout still while the text types */
    margin-bottom: 2rem;
}

.nk-home .typewriter {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    color: var(--primary);
    border-right: 3px solid var(--primary); /* caret */
    white-space: pre-wrap;
}

.nk-home .typewriter.typing-done {
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary); }
}

.nk-home .hero-desc {
    max-width: 700px;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.nk-home .cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 2px solid var(--primary);
    border-radius: 5px;
    color: var(--primary);
    font-weight: bold;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, opacity 0.8s ease-out, transform 0.8s ease-out;
}

.nk-home .cta-button:hover {
    background: var(--primary);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

/* --- Services --- */
.nk-home .services-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.nk-home .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 3rem;
}

.nk-home .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    margin: 15px auto 0;
    background: var(--accent);
}

.nk-home .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.nk-home .service-card {
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.8s ease-out;
    /* transform is 0.3s here so the hover feels quick; the scroll-in slide uses it too */
}

.nk-home .service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nk-home .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.nk-home .card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.nk-home .card-list {
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.nk-home .card-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.nk-home .card-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
}

/* --- Commitments --- */
.nk-home .commitment-section {
    margin-top: 5rem;
    padding: 5rem 2rem;
    background: var(--panel-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nk-home .usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nk-home .usp-item {
    text-align: center;
}

.nk-home .usp-number {
    display: inline-block;
    font-size: 3.5rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px var(--primary);
    margin-bottom: 0.5rem;
}

.nk-home .usp-title {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .nk-home .hero-section { padding: 3rem 1.5rem; }
    .nk-home .typewriter { font-size: 1.1rem; }
}
