/* 
 * COMPONENT STYLES
 * Individual component styling for navbar, hero, solutions, etc.
 */

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(31, 27, 27, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(31, 27, 27, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    height: 40px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 100%;
    width: auto;
    filter: brightness(1.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--martian-orange);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(31, 27, 27, 0.85) 0%, rgba(42, 38, 38, 0.85) 100%), 
                url('../images/hero-background.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="200" cy="200" r="2" fill="%23FF5F07" opacity="0.6"><animate attributeName="opacity" values="0.6;1;0.6" dur="3s" repeatCount="indefinite"/></circle><circle cx="800" cy="300" r="1.5" fill="%233BE8E1" opacity="0.8"><animate attributeName="opacity" values="0.8;1;0.8" dur="2s" repeatCount="indefinite"/></circle><circle cx="400" cy="700" r="1" fill="%23FFFFFF" opacity="0.7"><animate attributeName="opacity" values="0.7;1;0.7" dur="4s" repeatCount="indefinite"/></circle><circle cx="700" cy="800" r="2.5" fill="%23FF5F07" opacity="0.5"><animate attributeName="opacity" values="0.5;1;0.5" dur="2.5s" repeatCount="indefinite"/></circle><circle cx="150" cy="500" r="1.5" fill="%233BE8E1" opacity="0.6"><animate attributeName="opacity" values="0.6;1;0.6" dur="3.5s" repeatCount="indefinite"/></circle></svg>') no-repeat center;
    background-size: cover;
    opacity: 0.4;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: slideInLeft 1s ease-out 0.5s forwards;
}

.hero-text .highlight {
    color: var(--martian-orange);
    position: relative;
}

.hero-text .subtitle {
    font-size: 1.3rem;
    color: var(--light-atmosphere);
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideInLeft 1s ease-out 0.7s forwards;
}

.hero-text .description {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 3rem;
    opacity: 0;
    animation: slideInLeft 1s ease-out 0.9s forwards;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--martian-orange), var(--martian-dark-orange));
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-bounce);
    box-shadow: 0 4px 15px rgba(255, 95, 7, 0.3);
    opacity: 0;
    animation: slideInLeft 1s ease-out 1.1s forwards;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 95, 7, 0.4);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: slideInRight 1s ease-out 0.5s forwards;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 95, 7, 0.2);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--martian-orange);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--martian-orange);
    display: block;
    transition: var(--transition-smooth);
}

/* Counter Animation Safety States */
.stat-number.animation-fallback {
    color: var(--dark-atmosphere);
    position: relative;
}

.stat-number.animation-fallback::after {
    content: '🔧';
    position: absolute;
    top: -0.2rem;
    right: -1.2rem;
    font-size: 0.8rem;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

.stat-number.animation-retry {
    color: var(--martian-dark-orange);
    position: relative;
}

.stat-number.animation-retry::after {
    content: '🔄';
    position: absolute;
    top: -0.2rem;
    right: -1.2rem;
    font-size: 0.8rem;
    opacity: 0.7;
    animation: spin 1s linear infinite;
}

.stat-number.animation-forced {
    color: var(--light-atmosphere);
    position: relative;
}

.stat-number.animation-forced::after {
    content: '🛡️';
    position: absolute;
    top: -0.2rem;
    right: -1.2rem;
    font-size: 0.8rem;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

/* Animation keyframes for safety indicators */
@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stat-label {
    color: var(--white);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Solutions Section */
.solutions {
    padding: 6rem 0;
    background: var(--white);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.solution-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--martian-orange), var(--light-atmosphere));
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--martian-orange);
}

.solution-card::after {
    content: 'See Details';
    position: absolute;
    bottom: 15px;
    right: 20px;
    background: var(--martian-orange);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.solution-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.solution-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--martian-orange), var(--martian-dark-orange));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.solution-title {
    font-size: 1.4rem;
    color: var(--deep-space);
    margin-bottom: 1rem;
}

.solution-description {
    color: var(--deep-space);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.solution-features {
    list-style: none;
}

.solution-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--deep-space);
}

.solution-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--martian-orange);
    font-weight: bold;
}

.roi-tag {
    display: inline-block;
    background: linear-gradient(45deg, var(--light-atmosphere), var(--dark-atmosphere));
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Polish Language Highlight */
.polish-highlight {
    background: linear-gradient(135deg, var(--deep-space) 0%, #2a2626 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.polish-highlight::before {
    content: '🇵🇱';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.2;
}

.polish-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.polish-subtitle {
    font-size: 1.2rem;
    color: var(--light-atmosphere);
    margin-bottom: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.feature-description {
    color: var(--light-atmosphere);
}

/* Timeline Section */
.timeline {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--background-grey) 0%, #f0f0f0 100%);
}

.timeline-container {
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--martian-orange), var(--light-atmosphere));
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-content {
    width: 45%;
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--martian-orange);
    border-radius: 50%;
    transform: translateX(-50%);
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px var(--martian-orange);
}

.phase-title {
    font-size: 1.3rem;
    color: var(--deep-space);
    margin-bottom: 0.5rem;
}

.phase-duration {
    color: var(--martian-orange);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--deep-space);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--martian-orange);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        text-align: left !important;
    }

    .timeline-marker {
        left: 20px;
        transform: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}
