/* ============================================================================
   KOSAE TECH - PURE VANILLA CSS
   Dark Premium Editorial Minimalist Design
   No Frameworks. No Tailwind. Pure CSS.
   ========================================================================== */

/* ============================================================================
   1. RESET & BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #0a0a0c;
    color: #f5f5f7;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================================
   2. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5.9rem);
    font-weight: 600;
    letter-spacing: -0.06em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    font-size: 1rem;
    line-height: 1.7;
    color: #a1a1a6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================================================
   3. UTILITY CLASSES
   ========================================================================== */

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
        max-width: 1280px;
    }
}

.section-kicker {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #a1a1a6;
    margin-bottom: 1.5rem;
}

.section-title {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.section-body {
    font-size: 1.1rem;
    color: #a1a1a6;
    max-width: 600px;
    line-height: 1.8;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

/* ============================================================================
   4. BUTTONS
   ========================================================================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background-color: #ffffff;
    color: #000000;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 2rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    white-space: nowrap;
}

.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 24px 44px rgba(255, 255, 255, 0.12);
    background-color: #f5f5f7;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background-color: transparent;
    color: #f5f5f7;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(4px);
}

.icon-sm {
    width: 1rem;
    height: 1rem;
    stroke-width: 2.5;
}

.icon-xs {
    width: 0.875rem;
    height: 0.875rem;
    stroke-width: 2.5;
}

/* ============================================================================
   5. NAVIGATION
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background-color: rgba(10, 10, 12, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: 72px;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 1024px) {
    .navbar-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
    }
}

.navbar-logo {
    font-family: 'Manrope', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.navbar-logo:hover {
    opacity: 0.8;
}

.navbar-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }
}

.nav-link {
    font-size: 0.95rem;
    color: #a1a1a6;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #ffffff;
}

.nav-link.active::after {
    width: 100%;
}

/* ============================================================================
   6. HERO SECTION
   ========================================================================== */

.hero {
    position: relative;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 32%), 
                linear-gradient(180deg, rgba(10, 10, 12, 0.18), rgba(10, 10, 12, 0.82) 60%, rgba(10, 10, 12, 1));
}

.hero-gradient {
    position: absolute;
    inset-x: 0;
    bottom: 0;
    height: 160px;
    background: linear-gradient(to bottom, transparent, #1d1d1f);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1280px;
    padding: 4rem 2rem;
}

.hero-title {
    color: #ffffff;
    margin: 1.5rem 0 3rem;
}

.hero-metallic-text {
    background: linear-gradient(90deg, #ffffff 0%, #e8e8eb 50%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
}

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
    }
}

/* ============================================================================
   7. SECTIONS
   ========================================================================== */

.section {
    position: relative;
    padding: 6rem 0;
}

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

/* ============================================================================
   8. WHY US SECTION
   ========================================================================== */

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

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

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 2rem;
    backdrop-filter: blur(12px);
}

.section-body {
    margin-bottom: 2rem;
}

.guarantee-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .guarantee-chips {
        grid-template-columns: 1fr;
    }
}

.chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    font-size: 0.95rem;
    color: #f5f5f7;
    font-weight: 500;
}

.chip svg {
    color: #34c759;
    flex-shrink: 0;
}

.comparison-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.comparison-art {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

.proof-column {
    padding: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.proof-column:last-child {
    border-right: none;
}

@media (max-width: 768px) {
    .proof-column {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .proof-column:last-child {
        border-bottom: none;
    }
}

.proof-kicker {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.proof-text {
    font-size: 0.95rem;
    color: #a1a1a6;
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* ============================================================================
   9. PROCESS SECTION
   ========================================================================== */

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

.process-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 2rem;
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.process-number {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 1rem;
}

.process-title {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.process-text {
    color: #a1a1a6;
    line-height: 1.7;
}

/* ============================================================================
   10. PORTFOLIO SECTION
   ========================================================================== */

.portfolio-section {
    position: relative;
}

.portfolio-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.4), rgba(10, 10, 12, 0.8));
}

.portfolio-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.portfolio-card {
    group: portfolio-card;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.portfolio-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-6px);
}

.portfolio-placeholder {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    position: relative;
}

.portfolio-header {
    display: flex;
    align-items: flex-start;
}

.portfolio-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.portfolio-footer {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.portfolio-name {
    font-family: 'Manrope', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.portfolio-category {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.portfolio-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portfolio-title-group {
    position: relative;
    margin-bottom: 1rem;
}

.portfolio-category-small {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.portfolio-arrow {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-card:hover .portfolio-arrow {
    opacity: 1;
    transform: translateX(0);
}

.portfolio-brief {
    font-size: 0.95rem;
    color: #a1a1a6;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.portfolio-link {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    word-break: break-all;
}

/* ============================================================================
   11. TESTIMONIALS SECTION
   ========================================================================== */

.testimonial-rail {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
}

.testimonial-rail::-webkit-scrollbar {
    height: 6px;
}

.testimonial-rail::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.testimonial-rail::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.testimonial-rail::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.testimonial-card {
    flex: 0 0 calc(100% - 2rem);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 2rem;
    backdrop-filter: blur(12px);
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (min-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(33.333% - 1rem);
    }
}

.testimonial-quote {
    font-size: 1.05rem;
    color: #f5f5f7;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.testimonial-author {
    font-size: 0.95rem;
    color: #a1a1a6;
    font-weight: 500;
}

/* ============================================================================
   12. CTA SECTION
   ========================================================================== */

.cta-section {
    position: relative;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.5), rgba(10, 10, 12, 0.9));
}

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

.cta-contact {
    font-size: 1.1rem;
    color: #a1a1a6;
    margin: 2rem 0;
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

/* ============================================================================
   13. ANIMATIONS
   ========================================================================== */

[data-reveal] {
    opacity: 0;
    transform: translate3d(0, 36px, 0);
    transition:
        opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Stagger animation for multiple reveals */
[data-reveal]:nth-child(1) { transition-delay: 0ms; }
[data-reveal]:nth-child(2) { transition-delay: 100ms; }
[data-reveal]:nth-child(3) { transition-delay: 200ms; }
[data-reveal]:nth-child(4) { transition-delay: 300ms; }
[data-reveal]:nth-child(5) { transition-delay: 400ms; }
[data-reveal]:nth-child(6) { transition-delay: 500ms; }

/* ============================================================================
   14. RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 768px) {
    .navbar-container {
        justify-content: space-between;
    }

    .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .card {
        padding: 1.5rem;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-placeholder {
        height: 200px;
    }

    .testimonial-card {
        padding: 1.5rem;
    }
}

/* ============================================================================
   15. PRINT STYLES
   ========================================================================== */

@media print {
    .navbar,
    .hero-cta,
    .cta-buttons,
    .btn-primary,
    .btn-link {
        display: none;
    }

    body {
        background-color: #ffffff;
        color: #000000;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
