/* Premium Website Enhancements */

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loading-logo {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    animation: pulse 1.5s infinite;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    height: 100%;
    background: white;
    border-radius: 2px;
    animation: loadingProgress 2s ease-in-out;
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 9999;
    transition: width 0.3s;
}

/* Live Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
}

.chat-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.chat-button:hover {
    transform: scale(1.1);
}

.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.chat-popup {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 350px;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
}

.chat-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1.5rem;
    border-radius: 1rem 1rem 0 0;
}

.chat-body {
    padding: 1.5rem;
}

.chat-message {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::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 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
    background-size: 200px 200px;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.newsletter-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

.newsletter-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}

.newsletter-button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--secondary-color), #fb923c);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}

/* Partner Logos */
.partners-section {
    padding: 3rem 0;
    background: #fafafa;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.partners-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.partner-logo {
    opacity: 0.6;
    transition: opacity 0.3s;
    filter: grayscale(100%);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Course Comparison Table */
.comparison-section {
    padding: 5rem 0;
    background: white;
}

.comparison-table {
    width: 100%;
    max-width: 1000px;
    margin: 3rem auto;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    padding: 1.5rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table tr:hover {
    background: #f8fafc;
}

.comparison-check {
    color: var(--success-color);
    font-size: 1.25rem;
}

.comparison-times {
    color: #ef4444;
    font-size: 1.25rem;
}

/* Video Section */
.video-section {
    padding: 5rem 0;
    background: var(--light-color);
}

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

.video-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

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

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Weather Widget */
.weather-widget {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.weather-icon {
    font-size: 3rem;
}

.weather-info h4 {
    margin-bottom: 0.5rem;
}

.weather-temp {
    font-size: 2rem;
    font-weight: 700;
}

/* Countdown Timer */
.countdown-section {
    background: linear-gradient(135deg, var(--secondary-color), #fb923c);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.countdown-item {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 1rem;
    min-width: 100px;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.countdown-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Breadcrumbs */
.breadcrumbs {
    background: #f8fafc;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumbs-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs-list a:hover {
    color: var(--primary-color);
}

.breadcrumbs-separator {
    color: #94a3b8;
}

/* Why Ljubljana Section */
.ljubljana-section {
    padding: 5rem 0;
    background: white;
}

.ljubljana-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.ljubljana-content h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.ljubljana-features {
    list-style: none;
    margin-top: 2rem;
}

.ljubljana-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
}

.ljubljana-features i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

.ljubljana-image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.ljubljana-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pricing Calculator */
.calculator-section {
    padding: 5rem 0;
    background: var(--light-color);
}

.calculator-container {
    max-width: 800px;
    margin: 3rem auto;
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.calculator-form {
    display: grid;
    gap: 2rem;
}

.calculator-group {
    display: grid;
    gap: 1rem;
}

.calculator-label {
    font-weight: 600;
    color: var(--dark-color);
}

.calculator-select {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.calculator-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.calculator-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.calculator-option {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.calculator-option:hover {
    border-color: var(--primary-color);
    background: #f0f9ff;
}

.calculator-option.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.calculator-result {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    margin-top: 2rem;
}

.calculator-total {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.calculator-breakdown {
    font-size: 0.875rem;
    color: var(--text-color);
}

/* Micro-interactions */
.hover-lift {
    transition: transform 0.3s, box-shadow 0.3s;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hover-scale {
    transition: transform 0.3s;
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ljubljana-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        overflow-x: auto;
    }
    
    .countdown-timer {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .chat-popup {
        width: 300px;
    }
}
