/* Service Pages Common Styles */
/* Used by: ios-applications.html, direction.html, design-led-page.html, experiences.html */

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

body {
    background: #ffffff;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
    color: #2a2a2a;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.1rem;
    font-weight: 400;
    color: #2a2a2a;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.back-link {
    color: #2a2a2a;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 300;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 0.6;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10rem 2rem 6rem;
    opacity: 1;
    transform: translateY(0);
}

.hero-content {
    z-index: 10;
    max-width: 800px;
    padding: 0 2rem;
    position: relative;
}

h1 {
    font-size: 4rem;
    font-weight: 200;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: #2a2a2a;
    position: relative;
    line-height: 1.1;
}

h1 .title-char {
    display: inline-block;
    opacity: 0;
    transform: translate(var(--tx, 0), var(--ty, 0));
    transition: opacity 2s cubic-bezier(0.34, 1.56, 0.64, 1), transform 2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

h1.assembled .title-char {
    opacity: 1;
    transform: translate(0, 0);
}

.hero-description {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.6;
    color: #4a4a4a;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-description.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.6s ease;
    cursor: pointer;
}

.scroll-indicator.visible {
    opacity: 1;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid #2a2a2a;
    border-bottom: 2px solid #2a2a2a;
    transform: rotate(-45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(-45deg) translateY(0);
    }
    40% {
        transform: rotate(-45deg) translateY(10px);
    }
    60% {
        transform: rotate(-45deg) translateY(5px);
    }
}

/* Sections */
section {
    position: relative;
    min-height: auto;
    padding: 5rem 2rem;
    background: #ffffff;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero {
    opacity: 1;
    transform: translateY(0);
}

.section-content {
    max-width: 1000px;
    width: 100%;
}

section h2 {
    font-size: 3rem;
    font-weight: 200;
    margin-bottom: 3rem;
    color: #2a2a2a;
    letter-spacing: -0.02em;
    text-align: center;
}

/* CTA Section */
.cta-section {
    text-align: center;
    min-height: auto;
    padding: 4rem 2rem;
}

.cta-section h2 {
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.3rem;
    color: #4a4a4a;
    margin-bottom: 2.5rem;
}

.contact-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: rgba(250, 250, 250, 0.5);
    border: 1px solid rgba(42, 42, 42, 0.15);
    border-radius: 16px;
    color: #2a2a2a;
    font-size: 1.1rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.05em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.contact-button .full-text {
    display: inline;
}

.contact-button .short-text {
    display: none;
}

.contact-button:hover {
    background: #2a2a2a;
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: #2a2a2a;
}

/* Footer */
footer {
    background: #ffffff;
    text-align: center;
    padding: 3rem 2rem 2rem;
    border-top: none;
}

footer p {
    font-size: 0.75rem;
    color: #999;
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 0.85;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 968px) {
    h1 {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    section h2 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 6rem 1.5rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1.5rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .back-link {
        font-size: 0.85rem;
    }
    
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 8rem 1.5rem 4rem;
        flex-direction: column;
        justify-content: center;
    }
    
    .hero-content {
        padding: 0 1rem;
        margin-bottom: auto;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 1.2rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1.05rem;
        line-height: 1.5;
    }
    
    .scroll-indicator {
        position: static;
        transform: none;
        margin-top: auto;
        padding-bottom: 2rem;
    }
    
    .scroll-arrow {
        width: 20px;
        height: 20px;
    }
    
    section {
        padding: 3.5rem 1.5rem;
    }
    
    section h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .cta-section {
        min-height: auto;
        padding: 3rem 1.5rem;
    }
    
    .cta-section p {
        font-size: 1.15rem;
    }

    footer {
        padding: 2.5rem 1.5rem 2rem;
    }

    footer p {
        font-size: 0.7rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 1.25rem;
    }
    
    .logo {
        font-size: 0.95rem;
    }
    
    .back-link {
        font-size: 0.8rem;
    }
    
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 7rem 1.25rem 3rem;
        flex-direction: column;
        justify-content: center;
    }
    
    .hero-content {
        padding: 0 0.5rem;
        margin-bottom: auto;
    }
    
    h1 {
        font-size: 1.65rem;
        margin-bottom: 1rem;
        line-height: 1.25;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .scroll-indicator {
        position: static;
        transform: none;
        margin-top: auto;
        padding-bottom: 2rem;
    }
    
    .scroll-arrow {
        width: 18px;
        height: 18px;
    }
    
    section {
        padding: 3rem 1.25rem;
    }
    
    section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .cta-section p {
        font-size: 1.05rem;
    }
    
    .contact-button {
        padding: 0.9rem 2.5rem;
        font-size: 1rem;
    }
    
    .contact-button .full-text {
        display: none;
    }
    
    .contact-button .short-text {
        display: inline;
    }

    .cta-section {
        min-height: auto;
        padding: 2.5rem 1.25rem;
    }

    footer {
        padding: 2rem 1.25rem 1.5rem;
    }

    footer p {
        font-size: 0.65rem;
        line-height: 1.5;
    }
}
