/* Global Styles inspired by n8n website */

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #1A1A1A;
    color: #ECECEC;
    overflow-x: hidden;
}

/* Loading Splash */
.loading-splash {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background: #292D35;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease-out;

}

.loading-content {
    text-align: center;
}

.loading-logo {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #FF6D5A;
}

.loading-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress {
    width: 100%;
    height: 100%;
    background: #FF6D5A;
    animation: loading-progress 1.5s infinite;
}

@keyframes loading-progress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Navigation */
.main-nav {
    background: #2A2A2A;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #FF6D5A;
    font-weight: 700;
}

.logo-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-link {
    color: #ECECEC;
    font-size: 1rem;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Toggle Styles */
.language-toggle {
    position: relative;
    display: inline-block;
}

.language-toggle-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #ECECEC;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.language-toggle-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 109, 90, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 109, 90, 0.15);
}

.language-toggle-button:focus {
    outline: none;
    border-color: #FF6D5A;
    box-shadow: 0 0 0 2px rgba(255, 109, 90, 0.2);
}

.language-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.language-code {
    font-weight: 600;
    letter-spacing: 0.025em;
}

.language-chevron {
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.language-chevron.rotated {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 160px;
    background: rgba(42, 42, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.language-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.language-dropdown-content {
    padding: 0.5rem;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    color: #ECECEC;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: left;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FF6D5A;
    transform: translateX(2px);
}

.language-option.active {
    background: rgba(255, 109, 90, 0.1);
    color: #FF6D5A;
}

.language-option.active:hover {
    background: rgba(255, 109, 90, 0.15);
}

.language-name {
    flex: 1;
}

.language-check {
    color: #FF6D5A;
    font-weight: 600;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .language-toggle-button {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .language-dropdown {
        min-width: 140px;
    }
    
    .language-option {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 0.25rem;
    transition: background 0.3s ease;
}

.btn-primary {
    background: #FF6D5A;
    color: #1A1A1A;
}

.btn-primary:hover {
    background: #e65b50;
}

.btn-secondary {
    background: transparent;
    color: #ECECEC;
    border: 1px solid #FF6D5A;
    margin-right: 1rem;
}

.btn-secondary:hover {
    background: #FF6D5A;
    color: #1A1A1A;
}

.btn-ghost {
    background: transparent;
    color: #ECECEC;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.external-icon {
    margin-left: 0.3rem;
}

/* Hero */
.hero {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, 
        #1a1a1a 0%,
        #1d1d1d 50%,
        #1a1a1a 100%);
    background-size: 400% 400%;
    animation: gradientShift 12s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

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

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-weight: 800;
    font-size: 3rem;
    line-height: 1.2;
    color: #FFFFFF;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feature-point {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.feature-emoji {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text {
    font-size: 1.1rem;
    color: #D1D1D1;
    font-weight: 500;
    line-height: 1.4;
}

.hero-description {
    font-size: 1.25rem;
    color: #D1D1D1;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    text-align: center;
}

.hero-image-container {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #333333;
    padding: 10px;
}

.hero-image {
    max-width: 300px;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

.shine-effect {
    position: relative;
    overflow: hidden;
    background: #0a1b2b;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.56) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: shine 10s ease-in-out infinite;
    z-index: 10;
    pointer-events: none;
}

@keyframes shine {
    0%, 15% {
        left: -150%;
    }
    40%, 100% {
        left: 150%;
    }
}

.use-cases {
    padding: 4rem 2rem;
    background: #1E1E1E;
}

.section-title {
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #FF6D5A;
    text-align: center;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.use-case {
    padding: 2rem;
    background: #292D35;
    border-radius: 0.25rem;
    text-align: center;
}

.use-case-icon {
    font-size: 2rem;
    color: #FF6D5A;
    margin-bottom: 1rem;
}

.use-case-title {
    font-size: 1.25rem;
    color: #ECECEC;
    margin-bottom: 1rem;
}

.capability {
    font-weight: 700;
    color: #FF6D5A;
    margin-left: 0.5rem;
}

.use-case-features {
    list-style: none;
    padding: 0;
    color: #D1D1D1;
    font-size: 0.875rem;
}

footer {
    padding: 2rem 0;
    background: #292D35;
    text-align: center;
    color: #ECECEC;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content {
        order: 2;
        align-items: center;
    }
    
    .hero-visual {
        order: 1;
    }
    
    .hero-image {
        max-width: 250px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-features {
        margin-bottom: 2rem;
    }
    
    .feature-text {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }
    
    .workflows-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
    }
    
    .hero-image {
        max-width: 200px;
    }
}


/* Workflows */
.workflows-section {
    padding: 4rem 2rem;
    background: #1E1E1E;
}

.workflows-container {
    max-width: 1200px;
    margin: 0 auto;
}

.workflows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.workflow-card {
    background: #292D35;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid #3A3A3A;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.workflow-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 109, 90, 0.1);
}

.workflow-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.workflow-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #FFFFFF;
}

.workflow-category {
    background: #FF6D5A;
    color: #1A1A1A;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.workflow-description {
    color: #D1D1D1;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.workflow-tags {
    color: #FF6D5A;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.workflow-visual {
    text-align: center;
    margin-bottom: 1rem;
}

.workflow-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #3A3A3A;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.workflow-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 109, 90, 0.2);
}

.workflow-links {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.gitlab-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #ECECEC;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.gitlab-link:hover {
    background: rgba(252, 109, 38, 0.1);
    border-color: rgba(252, 109, 38, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(252, 109, 38, 0.15);
}

.gitlab-icon {
    width: 1rem;
    height: 1rem;
    color: #FC6D26;
    flex-shrink: 0;
}

.workflow-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #FFFFFF;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease, transform 0.2s ease;
    z-index: 1001;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1.25rem;
    }
}