/*
Theme Name: STC Corporate
Description: Professional corporate theme for STC Company with Auto Dark Mode
Version: 1.0.0
Author: STC Development Team
*/

/* CSS Custom Properties for Light/Dark Mode */
:root {
    /* Light mode colors (default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #eeeeee;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --gradient-header: linear-gradient(135deg, #1e3c72, #2a5298);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-color: #ff6b6b;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a2e;
        --bg-secondary: #16213e;
        --bg-card: #0f1419;
        --text-primary: #ffffff;
        --text-secondary: #e0e0e0;
        --text-muted: #a0a0a0;
        --border-color: #333333;
        --shadow: rgba(255, 255, 255, 0.1);
        --shadow-hover: rgba(255, 255, 255, 0.2);
        --gradient-header: linear-gradient(135deg, #2d4a72, #3a5fb8);
        --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        --accent-color: #ff8a8a;
    }
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Top Header with Logo and Language Switcher */
.top-header {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 1rem 0;
    position: relative;
    z-index: 1000;
}

.top-header-container {
    max-width: min(1800px, 90vw);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.header-logo {
    display: flex;
    align-items: center;
}

.custom-logo,
.site-logo {
    display: flex;
    align-items: center;
}

.logo-image,
.custom-logo img {
    height: auto;
    width: auto;
    max-height: 45px;
    max-width: 250px;
    transition: all 0.3s ease;
    object-fit: contain;
}

.logo-image:hover,
.custom-logo img:hover {
    transform: scale(1.05);
}

/* Navigation Menu Below Header */
.main-navigation-wrapper {
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: none;
}

.main-navigation-wrapper.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: min(1800px, 90vw);
    margin: 0 auto;
    padding: 0 2rem;
}

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

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 1rem 1.5rem;
    display: block;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
}

.main-navigation a:hover {
    color: var(--accent-color);
    background: rgba(102, 126, 234, 0.05);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-navigation a:hover::after {
    transform: scaleX(1);
}

/* Main Content */
.main-content {
    max-width: min(1800px, 90vw);
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gradient-hero);
    color: white;
    margin-bottom: 3rem;
    transition: background 0.3s ease;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-hover);
    color: white;
    text-decoration: none;
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: white;
    color: var(--text-primary);
}

/* Cards/Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-hover);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
}

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.footer-container {
    max-width: min(1800px, 90vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-section p {
    color: var(--text-secondary);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    opacity: 0.8;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-header-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-logo {
        order: 2;
    }
    
    .language-switcher {
        order: 1;
        justify-content: center;
    }
    
    .logo-image,
    .custom-logo img {
        height: auto;
        width: auto;
        max-height: 35px;
        max-width: 180px;
        object-fit: contain;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-navigation a:last-child {
        border-bottom: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

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

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Presentation Slider */
.presentation-slider {
    width: min(1920px, 95vw);
    height: calc(min(1920px, 95vw) * 0.35);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: transparent;
    border-radius: 15px;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide.fading {
    opacity: 1;
    z-index: 1;
}

.slide.sweeping-in {
    opacity: 0;
    z-index: 2;
    transform: translateX(50px);
    animation: smoothFadeSlide 2s ease-out forwards;
}

@keyframes smoothFadeSlide {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30%;
    height: 40%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem;
}

.red-dot {
    width: 20px;
    height: 20px;
    background: #ff6b6b;
    border-radius: 50%;
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    animation: slideInDot 1s ease-out 0.3s forwards;
}

.blue-gradient {
    background: linear-gradient(45deg, 
        rgba(30, 60, 114, 0.9) 0%, 
        rgba(42, 82, 152, 0.7) 100%);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    color: white;
    transform: translateX(-50px);
    opacity: 0;
    animation: slideInContent 1s ease-out 0.6s forwards;
    backdrop-filter: blur(5px);
}

.blue-gradient h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.blue-gradient p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

/* Navigation dots */
.slider-nav {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: #ff6b6b;
    transform: scale(1.2);
}

/* Animations */
@keyframes slideInDot {
    from {
        left: -30px;
        opacity: 0;
    }
    to {
        left: 20px;
        opacity: 1;
    }
}

@keyframes slideInContent {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .presentation-slider {
        max-width: 95vw;
        padding-bottom: 40%; /* Vyšší poměr pro mobil */
    }
    
    .slide-content {
        width: 80%;
        height: 50%;
        padding: 1rem;
    }
    
    .blue-gradient h3 {
        font-size: 1.2rem;
    }
    
    .blue-gradient p {
        font-size: 0.9rem;
    }
}

/* Page Templates */
.page-header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    opacity: 0.9;
}

.page-content-body {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.page-content-body h1,
.page-content-body h2,
.page-content-body h3,
.page-content-body h4,
.page-content-body h5,
.page-content-body h6 {
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.page-content-body p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.page-content-body ul,
.page-content-body ol {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.page-content-body blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 1.5rem 2rem;
    border-radius: 8px;
}

.page-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

/* Dark Mode Specific Enhancements */
@media (prefers-color-scheme: dark) {
    /* Better contrast for dark mode */
    .hero {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #ffffff;
    }
    
    .top-header {
        background: var(--bg-card);
        backdrop-filter: blur(10px);
    }
    
    .main-navigation-wrapper {
        background: var(--bg-card);
        backdrop-filter: blur(10px);
    }
    
    .main-navigation-wrapper.scrolled {
        box-shadow: 0 2px 20px rgba(255, 255, 255, 0.1);
    }
    
    .service-card {
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .service-icon {
        filter: brightness(1.2);
    }
    
    /* Better input styling for dark mode */
    input, textarea {
        background: var(--bg-card);
        border: 2px solid var(--border-color);
        color: var(--text-primary);
    }
    
    input:focus, textarea:focus {
        border-color: var(--accent-color);
    }
    
    /* Dark scrollbar */
    ::-webkit-scrollbar {
        width: 12px;
    }
    
    ::-webkit-scrollbar-track {
        background: var(--bg-secondary);
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 6px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: var(--text-secondary);
    }
}

/* Light Mode Specific Enhancements */
@media (prefers-color-scheme: light) {
    /* Light scrollbar */
    ::-webkit-scrollbar {
        width: 12px;
    }
    
    ::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 6px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: var(--text-secondary);
    }
}

/* Language Switcher Styles */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-active {
    color: white;
    background: var(--accent-color);
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.lang-inactive {
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: 1px solid var(--border-color);
}

.lang-inactive:hover {
    color: white;
    background: var(--accent-color);
    transform: translateY(-1px);
    border-color: var(--accent-color);
}