/**
 * SecondFloor Solutions - Main Stylesheet
 * Premium dark theme with modern aesthetic
 */

/* ============================================
   CSS RESET & BASE
   ============================================ */

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

:root {
    /* Color Palette */
    --color-bg-primary: #0a0a0a;
    --color-bg-secondary: #141414;
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0a0a0;
    --color-accent: #e8e8e8;
    --color-border: #2a2a2a;

    /* Typography */
    --font-primary: 'Space Grotesk', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

a:hover {
    opacity: 0.7;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform var(--transition-fast);
}

.site-branding:hover {
    transform: translateY(-2px);
}

.site-logo-icon {
    display: inline-flex;
    color: var(--color-text-primary);
}

.site-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-tagline {
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--color-text-secondary);
}

/* ============================================
   NAVIGATION
   ============================================ */

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-menu li {
    display: inline-block;
}

.nav-menu a {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--color-text-primary);
    transition: all var(--transition-fast);
    position: relative;
    padding-bottom: 4px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-text-primary);
    transition: width var(--transition-base);
}

.nav-menu a:hover {
    color: var(--color-accent);
    opacity: 1;
}

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

@media (max-width: 1024px) {
    .nav-menu {
        gap: 2rem;
    }
}

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

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 2.2rem;
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--color-text-primary);
    color: var(--color-bg-primary);
    border: 2px solid var(--color-text-primary);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-text-primary);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--color-text-primary);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
}

.btn-play svg {
    transition: transform var(--transition-base);
}

.btn-play:hover {
    opacity: 0.8;
}

.btn-play:hover svg {
    transform: scale(1.1);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr auto;
    gap: 80px;
    align-items: center;
    position: relative;
}

.hero-text {
    max-width: 600px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-secondary);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

.hero-label span {
    transition: color var(--transition-fast);
}

.hero-label span:hover {
    color: var(--color-text-primary);
}

.hero-title {
    margin-bottom: 2rem;
    line-height: 1.05;
}

.hero-title .title-line-1 {
    display: block;
    color: var(--color-text-primary);
    margin-bottom: 0.1em;
}

.hero-title .title-line-2 {
    display: block;
    color: var(--color-text-secondary);
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* ============================================
   3D GEOMETRIC VISUAL
   ============================================ */

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 550px;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
    animation-delay: 0.4s;
}

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

.geometric-3d {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1200px;
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out;
}

.step {
    position: absolute;
    background: linear-gradient(145deg, #1a1a1a 0%, #252525 50%, #1a1a1a 100%);
    border-left: 1px solid #404040;
    border-right: 1px solid #1a1a1a;
    border-top: 1px solid #404040;
    border-bottom: 1px solid #0a0a0a;
    transform-style: preserve-3d;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: transform 0.3s ease-out;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.step::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    pointer-events: none;
}

.step-1 {
    width: 180px;
    height: 70px;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) translateZ(-40px) rotateX(2deg);
    z-index: 1;
    animation: stepFloat1 4s ease-in-out infinite;
}

.step-2 {
    width: 260px;
    height: 90px;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%) translateZ(-20px) rotateX(2deg);
    z-index: 2;
    animation: stepFloat2 4s ease-in-out infinite;
    animation-delay: 0.3s;
}

.step-3 {
    width: 340px;
    height: 110px;
    bottom: 210px;
    left: 50%;
    transform: translateX(-50%) translateZ(0px) rotateX(2deg);
    z-index: 3;
    animation: stepFloat3 4s ease-in-out infinite;
    animation-delay: 0.6s;
}

.step-4 {
    width: 420px;
    height: 330px;
    bottom: 320px;
    left: 50%;
    transform: translateX(-50%) translateZ(20px) rotateX(2deg);
    z-index: 4;
    background: linear-gradient(145deg, #1f1f1f 0%, #2a2a2a 50%, #1f1f1f 100%);
    animation: stepFloat4 4s ease-in-out infinite;
    animation-delay: 0.9s;
}

@keyframes stepFloat1 {
    0%, 100% {
        transform: translateX(-50%) translateZ(-40px) rotateX(2deg) translateY(0);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }
    50% {
        transform: translateX(-50%) translateZ(-40px) rotateX(2deg) translateY(-20px);
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    }
}

@keyframes stepFloat2 {
    0%, 100% {
        transform: translateX(-50%) translateZ(-20px) rotateX(2deg) translateY(0);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }
    50% {
        transform: translateX(-50%) translateZ(-20px) rotateX(2deg) translateY(-25px);
        box-shadow: 0 35px 90px rgba(0, 0, 0, 0.7);
    }
}

@keyframes stepFloat3 {
    0%, 100% {
        transform: translateX(-50%) translateZ(0px) rotateX(2deg) translateY(0);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }
    50% {
        transform: translateX(-50%) translateZ(0px) rotateX(2deg) translateY(-30px);
        box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
    }
}

@keyframes stepFloat4 {
    0%, 100% {
        transform: translateX(-50%) translateZ(20px) rotateX(2deg) translateY(0);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }
    50% {
        transform: translateX(-50%) translateZ(20px) rotateX(2deg) translateY(-35px);
        box-shadow: 0 45px 110px rgba(0, 0, 0, 0.7);
    }
}

.glow-effect {
    position: absolute;
    right: -40px;
    top: 50%;
    width: 5px;
    height: 500px;
    background: linear-gradient(180deg,
        transparent 0%,
        transparent 15%,
        rgba(255, 255, 255, 0.3) 35%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 255, 255, 0.3) 65%,
        transparent 85%,
        transparent 100%
    );
    box-shadow:
        0 0 30px rgba(255, 255, 255, 0.8),
        0 0 60px rgba(255, 255, 255, 0.6),
        0 0 90px rgba(255, 255, 255, 0.3);
    transform: translateY(-50%);
    animation: glowPulse 3s ease-in-out infinite;
    z-index: 10;
    filter: blur(1px);
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.8;
        height: 500px;
        box-shadow:
            0 0 30px rgba(255, 255, 255, 0.8),
            0 0 60px rgba(255, 255, 255, 0.6),
            0 0 90px rgba(255, 255, 255, 0.3);
    }
    50% {
        opacity: 1;
        height: 550px;
        box-shadow:
            0 0 40px rgba(255, 255, 255, 1),
            0 0 80px rgba(255, 255, 255, 0.8),
            0 0 120px rgba(255, 255, 255, 0.5),
            0 0 160px rgba(255, 255, 255, 0.3);
    }
}

/* ============================================
   HERO SIDEBAR
   ============================================ */

.hero-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.8s;
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    font-family: var(--font-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--color-text-secondary);
    text-transform: uppercase;
}

.vertical-text span {
    transition: color var(--transition-fast);
    cursor: default;
}

.vertical-text span:hover {
    color: var(--color-text-primary);
}

.separator {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom,
        transparent,
        var(--color-border) 20%,
        var(--color-border) 80%,
        transparent
    );
}

.next-level-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-text-primary);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-transform: uppercase;
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-md);
    left: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.scroll-icon {
    color: var(--color-text-secondary);
}

.scroll-dot {
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

.scroll-text {
    font-family: var(--font-secondary);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-text-secondary);
    text-align: center;
    line-height: 1.4;
}

/* ============================================
   PAGE COUNTER
   ============================================ */

.page-counter {
    position: absolute;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-family: var(--font-primary);
}

.page-counter .current {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.page-counter .separator {
    width: auto;
    height: auto;
    background: none;
    font-size: 1rem;
    color: var(--color-text-secondary);
}

.page-counter .total {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-content p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }

    .hero-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .hero-section {
        padding-top: 100px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .hero-visual {
        height: 400px;
        max-width: 100%;
    }

    .step-1 { width: 120px; height: 60px; }
    .step-2 { width: 180px; height: 80px; }
    .step-3 { width: 240px; height: 100px; }
    .step-4 { width: 300px; height: 200px; }

    .header-cta {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-counter {
        position: static;
        margin-top: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }
}
