/* ===================================================================
 * Skitsanos Design - Simplified Stylesheet
 * ------------------------------------------------------------------- */

/* -------------------------------------------------------------------
 * # FONTS
 * ------------------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
    --font-1: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: "JetBrains Mono", Consolas, monospace;
}

/* -------------------------------------------------------------------
 * # COLORS
 * ------------------------------------------------------------------- */
:root {
    --color-bg: #0A0A0B;
    --color-accent: #F59E0B;
    --color-accent-hover: #FBBF24;
    --color-text: #F5F5F4;
    --color-text-muted: rgba(245, 245, 244, 0.6);
    --color-text-faint: rgba(245, 245, 244, 0.4);
    --color-border: rgba(255, 255, 255, 0.08);
}

/* -------------------------------------------------------------------
 * # RESET & BASE
 * ------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-1);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1.5rem 0;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
}

p {
    margin: 0 0 1.5rem 0;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent-hover);
}

img {
    max-width: 100%;
    height: auto;
}

address {
    font-style: normal;
}

strong {
    font-weight: 600;
    color: var(--color-accent);
}

/* -------------------------------------------------------------------
 * # PRELOADER
 * ------------------------------------------------------------------- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    z-index: 500;
}

#loader.dots-fade {
    display: flex;
    gap: 8px;
}

#loader.dots-fade div {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-accent);
    animation: dotFade 1s ease-in-out infinite;
}

#loader.dots-fade div:nth-child(2) { animation-delay: 0.2s; }
#loader.dots-fade div:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotFade {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
}

/* Preloader transitions */
.ss-loaded #preloader {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    transition-delay: 0.3s;
}

/* Fallback: force hide after 2s */
#preloader {
    animation: forceHide 0.5s ease 2s forwards;
}

@keyframes forceHide {
    to { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* -------------------------------------------------------------------
 * # INTRO / HERO SECTION
 * ------------------------------------------------------------------- */
.s-intro {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Particles background */
.s-intro__particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
}

/* Logo */
.s-intro__header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 3rem 4rem;
    z-index: 10;
}

.s-intro__logo img {
    height: 32px;
    width: auto;
}

/* Content */
.s-intro__content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 12rem 4rem 8rem;
}

.s-intro__content .column {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-pretitle {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 2rem;
}

.text-huge-title {
    font-size: clamp(3.2rem, 6vw, 6.4rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-text);
    margin: 0;
}

/* Bottom info */
.s-intro__content-bottom {
    display: flex;
    gap: 4rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-border);
}

.s-intro__content-bottom-block h5 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-faint);
    margin-bottom: 0.8rem;
}

.s-intro__content-bottom-block ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.s-intro__content-bottom-block a {
    font-size: 1.5rem;
    color: var(--color-text);
}

.s-intro__content-bottom-block a:hover {
    color: var(--color-accent);
}

/* Scroll indicator */
.s-intro__scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.s-intro__scroll a {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-faint);
    transition: color 0.2s ease;
}

.s-intro__scroll a:hover {
    color: var(--color-accent);
}

/* Intro transitions */
.s-intro__logo,
.s-intro__content,
.s-intro__scroll {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.ss-show .s-intro__logo,
.ss-show .s-intro__content,
.ss-show .s-intro__scroll {
    opacity: 1;
}

/* Fallback: force show content */
.s-intro__logo,
.s-intro__content,
.s-intro__scroll {
    animation: forceShow 0.5s ease 2.5s forwards;
}

@keyframes forceShow {
    to { opacity: 1; }
}

/* -------------------------------------------------------------------
 * # DETAILS SECTION - NORDIC DESIGN
 * ------------------------------------------------------------------- */
.s-details {
    background: var(--color-bg);
    position: sticky;
    min-height: 100vh;
    width: 100%;
}

/* Hidden element for scroll trigger */
#hidden {
    position: absolute;
    pointer-events: none;
}

/* Nordic sections */
.nordic-section {
    padding: clamp(8rem, 12vw, 16rem) 0;
    border-bottom: 1px solid var(--color-border);
}

.nordic-section__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(2.4rem, 5vw, 8rem);
}

/* Section headers */
.nordic-section__header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(2.4rem, 4vw, 6rem);
    align-items: start;
    margin-bottom: clamp(4.8rem, 8vw, 10rem);
}

.nordic-section__number {
    font-family: var(--font-mono);
    font-size: clamp(1.2rem, 1.4vw, 1.4rem);
    font-weight: 500;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    padding-top: 0.5em;
}

.nordic-section__title-block {
    display: flex;
    flex-direction: column;
    gap: clamp(0.8rem, 1.5vw, 1.6rem);
}

.nordic-section__label {
    font-family: var(--font-mono);
    font-size: clamp(1.1rem, 1.2vw, 1.3rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-faint);
}

.nordic-section__title {
    font-size: clamp(3.2rem, 5vw, 6.4rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0;
}

/* About section */
.nordic-about__lead {
    max-width: 72rem;
    margin-bottom: clamp(3.2rem, 5vw, 5.6rem);
}

.nordic-about__lead p {
    font-size: clamp(1.8rem, 2.2vw, 2.4rem);
    line-height: 1.5;
    margin: 0;
}

.nordic-about__body {
    max-width: 64rem;
    margin-bottom: clamp(4.8rem, 7vw, 8rem);
}

.nordic-about__body p {
    font-size: clamp(1.5rem, 1.6vw, 1.7rem);
    line-height: 1.7;
    color: var(--color-text-muted);
    margin: 0;
}

/* Stats */
.nordic-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: clamp(2.4rem, 4vw, 4.8rem);
    padding: clamp(3.2rem, 5vw, 5.6rem) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: clamp(3.2rem, 5vw, 5.6rem);
}

.nordic-stats__item {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.nordic-stats__value {
    font-family: var(--font-mono);
    font-size: clamp(2.4rem, 3vw, 3.6rem);
    font-weight: 500;
    letter-spacing: -0.02em;
}

.nordic-stats__label {
    font-family: var(--font-mono);
    font-size: clamp(1.1rem, 1.1vw, 1.2rem);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-faint);
}

/* Tech stack */
.nordic-tech {
    display: flex;
    flex-direction: column;
    gap: clamp(0.6rem, 0.8vw, 0.8rem);
    margin-bottom: clamp(2.4rem, 3vw, 3.2rem);
}

.nordic-tech:last-child {
    margin-bottom: 0;
}

.nordic-tech__label {
    font-family: var(--font-mono);
    font-size: clamp(1.1rem, 1.1vw, 1.2rem);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-faint);
}

.nordic-tech__list {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.8rem, 1.2vw, 1.2rem);
}

.nordic-tech__list span {
    font-family: var(--font-mono);
    font-size: clamp(1.2rem, 1.3vw, 1.4rem);
    padding: 0.6rem 1.4rem;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--color-accent);
    border-radius: 2px;
    transition: all 0.2s ease;
}

.nordic-tech__list span:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
}

/* Services */
.nordic-services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 34rem), 1fr));
    gap: clamp(1.6rem, 2.5vw, 2.4rem);
}

.nordic-service {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: clamp(2.8rem, 4vw, 4rem);
    display: flex;
    flex-direction: column;
    gap: clamp(1.6rem, 2vw, 2.4rem);
    transition: all 0.3s ease;
    position: relative;
}

.nordic-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.4s ease;
}

.nordic-service:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nordic-service:hover::before {
    width: 100%;
}

.nordic-service__index {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--color-accent);
    letter-spacing: 0.1em;
}

.nordic-service__title {
    font-size: clamp(1.8rem, 2vw, 2.2rem);
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
}

.nordic-service__desc {
    font-size: clamp(1.4rem, 1.4vw, 1.5rem);
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0;
    flex-grow: 1;
}

.nordic-service__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
}

.nordic-service__tags span {
    font-family: var(--font-mono);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.4rem 0.8rem;
    background: rgba(245, 245, 244, 0.05);
    color: var(--color-text-faint);
    border-radius: 2px;
}

/* Contact */
.nordic-contact__content {
    display: grid;
    gap: clamp(4.8rem, 7vw, 8rem);
}

.nordic-contact__cta {
    display: flex;
    flex-direction: column;
    gap: clamp(1.6rem, 2.5vw, 2.4rem);
}

.nordic-contact__email {
    font-size: clamp(2.8rem, 4.5vw, 5.6rem);
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.03em;
    display: inline-block;
}

.nordic-contact__email:hover {
    color: var(--color-accent);
}

.nordic-contact__phone {
    font-family: var(--font-mono);
    font-size: clamp(1.8rem, 2.5vw, 2.8rem);
    color: var(--color-text-faint);
    letter-spacing: 0.02em;
    display: inline-block;
}

.nordic-contact__phone:hover {
    color: var(--color-accent);
}

.nordic-contact__locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
    gap: clamp(3.2rem, 5vw, 4.8rem);
    padding: clamp(3.2rem, 5vw, 4.8rem) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.nordic-contact__location {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.nordic-contact__location-label {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 1.1vw, 1.1rem);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
}

.nordic-contact__location address {
    font-size: clamp(1.4rem, 1.5vw, 1.6rem);
    line-height: 1.6;
    color: var(--color-text-muted);
}

.nordic-contact__links {
    display: flex;
    gap: clamp(2.4rem, 4vw, 4rem);
}

.nordic-contact__link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-mono);
    font-size: clamp(1.3rem, 1.4vw, 1.5rem);
    color: var(--color-text);
    letter-spacing: 0.02em;
    padding: 0.8rem 0;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.nordic-contact__link:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.nordic-contact__link svg {
    opacity: 0.5;
    transition: all 0.2s ease;
}

.nordic-contact__link:hover svg {
    opacity: 1;
    transform: translate(2px, -2px);
}

/* Footer */
.nordic-footer {
    padding: clamp(4rem, 6vw, 6.4rem) 0;
    background: rgba(0, 0, 0, 0.3);
    border-top: none;
}

.nordic-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(2.4rem, 5vw, 8rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.4rem;
}

.nordic-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.nordic-footer__logo {
    font-size: clamp(1.4rem, 1.5vw, 1.6rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.nordic-footer__reg {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 1vw, 1.1rem);
    color: var(--color-text-faint);
    letter-spacing: 0.05em;
}

.nordic-footer__copy {
    font-family: var(--font-mono);
    font-size: clamp(1.1rem, 1.1vw, 1.2rem);
    color: var(--color-text-faint);
}

/* -------------------------------------------------------------------
 * # RESPONSIVE
 * ------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    .s-intro__header {
        padding: 2rem;
    }

    .s-intro__content {
        padding: 10rem 2rem 6rem;
    }

    .s-intro__content-bottom {
        flex-direction: column;
        gap: 2rem;
    }

    .nordic-section__header {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    .nordic-section__number {
        padding-top: 0;
    }

    .nordic-stats {
        grid-template-columns: 1fr 1fr;
    }

    .nordic-services__grid {
        grid-template-columns: 1fr;
    }

    .nordic-contact__locations {
        grid-template-columns: 1fr;
    }

    .nordic-footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .nordic-footer__brand {
        align-items: center;
    }
}

@media screen and (max-width: 480px) {
    .nordic-stats {
        grid-template-columns: 1fr;
    }

    .nordic-contact__links {
        flex-direction: column;
        gap: 1.6rem;
    }
}
