/* UMasonry Landing Page Styles - Pinterest Inspired */
/* Color Palette: Black & Pinterest Red/Orange */

:root {
    --masonry-red: #E60023;
    --masonry-orange: #FF6B35;
    --masonry-dark: #111111;
    --masonry-darker: #000000;
    --masonry-gray: #767676;
    --masonry-light-gray: #E9E9E9;
    --masonry-white: #FFFFFF;
    --masonry-gradient: linear-gradient(135deg, #E60023 0%, #FF6B35 100%);
}

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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--masonry-dark);
    background-color: var(--masonry-white);
}

/* Navigation */
.navbar {
    background-color: var(--masonry-darker);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.container-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--masonry-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--masonry-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--masonry-red);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--masonry-gradient);
    color: var(--masonry-white);
    box-shadow: 0 4px 15px rgba(230, 0, 35, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 0, 35, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--masonry-white);
    border-color: var(--masonry-white);
}

.btn-secondary:hover {
    background-color: var(--masonry-white);
    color: var(--masonry-dark);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--masonry-darker);
    overflow: hidden;
}

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a0404 0%, #2d0808 50%, #1a0404 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    opacity: 0.5;
    z-index: 1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(230, 0, 35, 0.2) 0%, transparent 50%),
        radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
}

.hero-video-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 200px 200px;
    animation: sparkle 20s linear infinite;
    z-index: 3;
}

@keyframes sparkle {
    0% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 0.6; }
    100% { opacity: 0.3; transform: translateY(-20px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.hero-content {
    text-align: center;
    color: var(--masonry-white);
    animation: fadeInUp 1s ease-out;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    padding: 3rem 2rem;
    border-radius: 30px;
}

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

.hero-logo {
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite, logoGlow 2s ease-in-out infinite alternate;
    position: relative;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 10px 40px rgba(230, 0, 35, 0.6)) drop-shadow(0 0 60px rgba(255, 107, 53, 0.4)); }
    100% { filter: drop-shadow(0 15px 60px rgba(230, 0, 35, 0.8)) drop-shadow(0 0 80px rgba(255, 107, 53, 0.6)); }
}

.hero-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(230, 0, 35, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.hero-logo-image {
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 15px 50px rgba(0, 0, 0, 0.7));
    transition: transform 0.3s ease;
}

.hero-logo:hover .hero-logo-image {
    transform: scale(1.1) rotate(5deg);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.highlight {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFE5E5 50%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
    display: inline-block;
    font-weight: 900;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-subtitle {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-cta .btn-primary {
    background: linear-gradient(135deg, #E60023 0%, #FF6B35 100%);
    box-shadow: 0 8px 30px rgba(230, 0, 35, 0.5);
    position: relative;
    overflow: hidden;
}

.hero-cta .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.hero-cta .btn-primary:hover::before {
    left: 100%;
}

.hero-cta .btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(230, 0, 35, 0.6);
}

.hero-cta .btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.hero-cta .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--masonry-dark);
    border-color: var(--masonry-white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.4);
}

/* Layout Algorithms Section - MAIN FEATURE */
.layouts-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--masonry-white) 0%, var(--masonry-light-gray) 100%);
    position: relative;
    overflow: hidden;
}

.layouts-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(230, 0, 35, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.layouts-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.section-title-large {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--masonry-dark);
    background: linear-gradient(135deg, var(--masonry-dark) 0%, var(--masonry-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--masonry-gray);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

/* Layout Selector Tabs */
.layout-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.layout-tab {
    padding: 1rem 2rem;
    background: var(--masonry-white);
    border: 2px solid var(--masonry-light-gray);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--masonry-dark);
}

.layout-tab:hover {
    border-color: var(--masonry-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 0, 35, 0.15);
}

.layout-tab.active {
    background: var(--masonry-gradient);
    border-color: var(--masonry-red);
    color: var(--masonry-white);
    box-shadow: 0 10px 30px rgba(230, 0, 35, 0.3);
    transform: translateY(-2px);
}

/* Layout Hero Display */
.layout-hero {
    position: relative;
    z-index: 1;
    background: var(--masonry-white);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 500px;
}

.layout-content {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem;
    align-items: center;
    animation: fadeInContent 0.5s ease-out;
}

.layout-content.active {
    display: grid;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.layout-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(230, 0, 35, 0.05) 0%, rgba(255, 107, 53, 0.05) 100%);
    border-radius: 16px;
    padding: 2rem;
    min-height: 400px;
}

.layout-screenshot {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.layout-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.layout-info-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--masonry-dark);
    margin: 0;
}

.layout-info-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--masonry-gray);
    margin: 0;
}

.layout-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.layout-features li {
    font-size: 1rem;
    color: var(--masonry-dark);
    padding-left: 0;
    font-weight: 500;
}

/* About Section */
.about {
    padding: 3rem 0;
    background-color: var(--masonry-white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--masonry-dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--masonry-gradient);
    border-radius: 2px;
}

.about-text {
    font-size: 1.2rem;
    color: var(--masonry-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text strong {
    color: var(--masonry-dark);
    font-weight: 600;
}

/* Screenshots & Features Section */
.screenshots-features {
    padding: 3rem 0;
    background: linear-gradient(180deg, var(--masonry-white) 0%, var(--masonry-light-gray) 100%);
}

.feature-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2.5rem;
    background-color: var(--masonry-white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-showcase:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(230, 0, 35, 0.15);
}

.feature-showcase.reverse {
    grid-template-columns: 1fr 1fr;
}

.feature-showcase.reverse .feature-screenshot {
    order: 2;
}

.feature-showcase.reverse .feature-description {
    order: 1;
}

.feature-screenshot {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.feature-screenshot img,
.feature-screenshot video {
    width: 100%;
    height: auto;
    display: block;
}

.placeholder-image {
    background: var(--masonry-gradient);
    color: var(--masonry-white);
    padding: 4rem 2rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
    border-radius: 12px;
}

.feature-description h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--masonry-dark);
}

.feature-description p {
    font-size: 1.1rem;
    color: var(--masonry-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--masonry-dark);
    font-size: 1rem;
}

.feature-list li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--masonry-red);
    font-size: 1.5rem;
    line-height: 1;
}

.feature-list code {
    background-color: var(--masonry-light-gray);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    color: var(--masonry-red);
}

/* Footer */
.footer {
    background-color: var(--masonry-darker);
    color: var(--masonry-white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--masonry-gray);
    font-size: 1rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-column h4 {
    color: var(--masonry-white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-column a {
    display: block;
    color: var(--masonry-gray);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--masonry-red);
}

.footer-column p {
    color: var(--masonry-gray);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--masonry-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
    }

    .hero-logo-image {
        width: 150px;
        height: 150px;
    }

    .hero-logo::before {
        width: 180px;
        height: 180px;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        padding: 0 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .section-title-large {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .layout-selector {
        gap: 0.75rem;
    }

    .layout-tab {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .layout-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem;
    }

    .layout-visual {
        padding: 2rem;
        min-height: 300px;
    }

    .layout-info-title {
        font-size: 2rem;
    }

    .layout-info-description {
        font-size: 1rem;
    }

    .feature-showcase,
    .feature-showcase.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .feature-showcase.reverse .feature-screenshot,
    .feature-showcase.reverse .feature-description {
        order: unset;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-logo-image {
        width: 120px;
        height: 120px;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .section-title-large {
        font-size: 2rem;
    }

    .layouts-section {
        padding: 3rem 0;
    }

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

    .layout-selector {
        gap: 0.5rem;
    }

    .layout-tab {
        padding: 0.75rem 1.2rem;
        font-size: 0.9rem;
    }

    .layout-content {
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .layout-visual {
        padding: 1.5rem;
        min-height: 250px;
    }

    .layout-info-title {
        font-size: 1.75rem;
    }

    .layout-info-description {
        font-size: 0.95rem;
    }

    .layout-features li {
        font-size: 0.9rem;
    }

    .layout-hero {
        min-height: 400px;
    }
}

