/* Main CSS file - imports all modular components */

/* Base imports */
@import 'base/variables.css';
@import 'base/reset.css';
@import 'base/backgrounds.css';

/* Components imports */
@import 'components/cursor.css';
@import 'components/buttons.css';
@import 'components/cta-button.css';
@import 'components/sections.css';
@import 'components/language-switcher.css';

/* Layout imports */
@import 'layout/header.css';
@import 'layout/hero.css';
@import 'layout/about.css';
@import 'layout/features.css';
@import 'layout/services.css';
@import 'layout/projects.css';
@import 'layout/testimonials.css';
@import 'layout/contact.css';
@import 'layout/footer.css';

/* Responsive imports */
@import 'responsive/mobile.css';
/* @import 'responsive/tablet.css'; */
/* @import 'responsive/desktop.css'; */

/* Susiję straipsniai Section */
.related-articles-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));
    position: relative;
    overflow: hidden;
}

.related-articles-section .section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.featured-article-row {
    display: flex;
    align-items: center;
    margin-bottom: 6rem;
    gap: 4rem;
    position: relative;
}

.featured-article-row::after {
    content: '';
    position: absolute;
    bottom: -3rem;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(99, 102, 241, 0.01) 0%, 
        rgba(99, 102, 241, 0.3) 50%, 
        rgba(99, 102, 241, 0.01) 100%);
}

.featured-article-row:last-child::after {
    display: none;
}

.featured-article-row.reverse {
    flex-direction: row-reverse;
}

.featured-article-text {
    flex: 1;
    padding: 1rem;
}

.article-category {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--light);
    line-height: 1.3;
}

.article-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(248, 250, 252, 0.8);
    max-width: 500px;
}

.article-link {
    display: inline-flex;
    align-items: center;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.article-link i {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.article-link:hover {
    color: var(--primary);
}

.article-link:hover i {
    transform: translateX(5px);
}

.featured-article-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Technologijos visual */
.visual-wrapper img {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.visual-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    z-index: 1;
}

/* Dirbtinis intelektas visual */
.ai-visual-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-node {
    position: absolute;
    padding: 0.5rem 1rem;
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.5);
    border-radius: 5px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ai-node.crm {
    top: 40px;
    left: 50px;
}

.ai-node.erp {
    top: 110px;
    left: 30px;
}

.ai-node.marketing {
    bottom: 40px;
    left: 80px;
}

.ai-node.analytics {
    top: 60px;
    right: 50px;
}

.ai-node.finance {
    top: 170px;
    right: 70px;
}

.ai-node.operations {
    bottom: 60px;
    right: 40px;
}

.ai-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(236, 72, 153, 0.3);
    overflow: hidden;
}

.ai-connections::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, rgba(99, 102, 241, 0.1) 70%, transparent 100%);
    border-radius: 50%;
}

/* E-commerce dashboard visual */
.ecommerce-dashboard {
    width: 100%;
    max-width: 450px;
    padding: 1.5rem;
    background: #121a2e;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
}

.dashboard-title {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.dashboard-metrics {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.metric {
    text-align: center;
    padding: 0.5rem 1rem;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.1);
    border-radius: 8px;
}

.metric-name {
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
    color: rgba(255, 255, 255, 0.6);
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.3rem;
}

.metric-trend {
    font-size: 0.7rem;
    color: #4ade80;
}

.dashboard-chart {
    height: 100px;
    width: 100%;
    background: linear-gradient(to right, rgba(6, 182, 212, 0.05), rgba(6, 182, 212, 0.2));
    margin-top: 1.5rem;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.dashboard-chart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(90deg, 
        transparent 0%, 
        transparent 10%, 
        rgba(6, 182, 212, 0.6) 10.1%, 
        rgba(6, 182, 212, 0.6) 10.5%, 
        transparent 10.6%, 
        transparent 20%, 
        rgba(6, 182, 212, 0.6) 20.1%, 
        rgba(6, 182, 212, 0.6) 20.5%, 
        transparent 20.6%, 
        transparent 30%, 
        rgba(6, 182, 212, 0.6) 30.1%, 
        rgba(6, 182, 212, 0.6) 30.5%, 
        transparent 30.6%, 
        transparent 40%, 
        rgba(6, 182, 212, 0.6) 40.1%, 
        rgba(6, 182, 212, 0.6) 40.5%, 
        transparent 40.6%, 
        transparent 50%, 
        rgba(6, 182, 212, 0.6) 50.1%, 
        rgba(6, 182, 212, 0.6) 50.5%, 
        transparent 50.6%, 
        transparent 60%, 
        rgba(6, 182, 212, 0.6) 60.1%, 
        rgba(6, 182, 212, 0.6) 60.5%, 
        transparent 60.6%, 
        transparent 70%, 
        rgba(6, 182, 212, 0.6) 70.1%, 
        rgba(6, 182, 212, 0.6) 70.5%, 
        transparent 70.6%, 
        transparent 80%, 
        rgba(6, 182, 212, 0.6) 80.1%, 
        rgba(6, 182, 212, 0.6) 80.5%, 
        transparent 80.6%, 
        transparent 90%, 
        rgba(6, 182, 212, 0.6) 90.1%, 
        rgba(6, 182, 212, 0.6) 90.5%, 
        transparent 90.6%, 
        transparent 100%);
    opacity: 0.3;
}

.dashboard-chart::after {
    content: '';
    position: absolute;
    top: 65%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(6, 182, 212, 0.8);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.8);
}

/* Responsive design */
@media (max-width: 991px) {
    .featured-article-row,
    .featured-article-row.reverse {
        flex-direction: column;
        gap: 2rem;
    }
    
    .featured-article-text,
    .featured-article-visual {
        width: 100%;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-description {
        font-size: 1rem;
    }
    
    .visual-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .article-title {
        font-size: 1.5rem;
    }
    
    .dashboard-metrics {
        flex-direction: column;
        gap: 1rem;
    }
    
    .ai-node {
        font-size: 0.8rem;
        padding: 0.3rem 0.7rem;
    }
}

/* Services Section Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem; /* Space between cards */
    margin-top: 3rem; /* Space above the grid */
}

.service-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent background */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
    border-radius: 1rem; /* Rounded corners */
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-card-icon {
    font-size: 2.5rem; /* Icon size */
    color: var(--primary); /* Use primary color */
    margin-bottom: 1.5rem;
    width: 80px; /* Fixed width for icon container */
    height: 80px; /* Fixed height for icon container */
    background: rgba(var(--primary-rgb, 99, 102, 241), 0.1); /* Use primary color with alpha */
    border-radius: 50%; /* Circular background */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

/* Define --primary-rgb if not already defined */
:root {
    --primary-rgb: 99, 102, 241; /* RGB values for #6366f1 */
}


.service-card:hover .service-card-icon {
     background: rgba(var(--primary-rgb, 99, 102, 241), 0.2);
}


.service-card-title {
    font-size: 1.5rem;
    color: var(--light);
    margin-bottom: 1rem;
}

.service-card-description {
    font-size: 1rem;
    color: var(--light);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Allow description to take available space */
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    color: var(--secondary); /* Use secondary color for link */
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    margin-top: auto; /* Push link to the bottom */
}

.service-card-link i {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.service-card-link:hover {
    color: var(--primary);
}

.service-card-link:hover i {
    transform: translateX(3px);
}

/* Tablet: 2 columns with tighter gap */
@media (max-width: 1024px) {
    .services-grid {
        gap: 1.5rem;
    }
}

/* Mobile: single column stack */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}
