/* 
 * Thoryr AB Website Styles
 * Color Scheme: Sophisticated Blue & Light Gray
 */

/* === ROOT VARIABLES === */
:root {
    --primary-blue: #23445e;
    --secondary-blue: #3a7ab8;
    --dark-blue: #1e4363;
    --light-gray: #f5f7fa;
    --medium-gray: #e8ecf1;
    --text-gray: #6c757d;
    --white: #ffffff;
    --accent-blue: #4a90d9;
}

/* === GLOBAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* === NAVIGATION === */
.navbar {
    background: linear-gradient(135deg, #02223bd6 0%, #3a7ab8 100%) !important;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.navbar-brand i {
    color: #ffd700;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #fff !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f6bc16;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(118 118 118 / 14%) 0%, rgb(0 0 0 / 85%) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section .lead {
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Hero Animations */
.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: #fff;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* === BUTTONS === */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 95, 141, 0.3);
}

.btn-outline-light {
    color: #f6bc16;
    border-color: #f6bc16;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--primary-blue);
    border-color: #fff;
}

/* === SECTIONS === */
section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-gray) !important;
}

section h2 {
    color: var(--dark-blue);
}

section .lead {
    font-size: 1.1rem;
}

/* === SERVICE CARDS === */
.service-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 4px solid #f6bc16;
}

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

.service-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-details {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.service-details li {
    padding: 0.5rem 0;
    color: var(--text-gray);
    position: relative;
    padding-left: 1.5rem;
}

.service-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

/* Additional Services Box */
.additional-services-box {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.additional-services-box h4,
.additional-services-box h5 {
    color: #fff;
}

/* === SUPPORT SERVICES === */
.info-box {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid var(--primary-blue);
}

.info-box h4 {
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
}

.custom-list {
    list-style: none;
    counter-reset: custom-counter;
    padding-left: 0;
}

.custom-list li {
    counter-increment: custom-counter;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 3rem;
}

.custom-list li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-blue);
    color: #fff;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Support Type Cards */
.support-type-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.support-type-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
}

.support-type-card.highlight-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--primary-blue);
}

.support-type-card h5 {
    margin-bottom: 1rem;
}

.support-type-card .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* === ADVANTAGES SECTION === */
.advantage-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);

    transition: all 0.3s ease;
    height: 100%;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(44, 95, 141, 0.2);
}

.advantage-icon {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.advantage-card h4 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Comparison Box */
.comparison-box {
    background: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.comparison-box h4 {
    color: var(--dark-blue);
}

.comparison-box .table {
    margin-bottom: 0;
}

.comparison-box .table th {
    background-color: var(--primary-blue);
    color: #fff;
    border: none;
    font-weight: 600;
}

.comparison-box .table td {
    vertical-align: middle;
    padding: 1rem;
}

.comparison-box .table tbody tr:hover {
    background-color: var(--light-gray);
}

/* === CONTACT SECTION === */
.contact-form-container {
    background: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-form-container h4 {
    color: var(--dark-blue);
}

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

.form-control {
    border: 2px solid var(--medium-gray);
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(44, 95, 141, 0.25);
}

/* Contact Info Box */
.contact-info-box {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
}

.contact-info-box h4 {
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-detail i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-detail strong {
    display: block;
    color: var(--dark-blue);
    margin-bottom: 0.25rem;
}

.contact-detail p {
    margin: 0;
    color: var(--text-gray);
}

/* Map Container */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* === FOOTER === */
.footer {
    background-color: #2e2e2e !important;
    padding: 3rem 0 1rem;
}

.footer h5,
.footer h6 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer a {
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #ffd700 !important;
}

.footer .social-links a {
    font-size: 1.5rem;
}

.footer hr {
    opacity: 0.3;
}

/* === SCROLL TO TOP BUTTON === */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--dark-blue);
    transform: translateY(-5px);
}

/* === BADGES === */
.badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

/* === ALERTS === */
.alert {
    border-radius: 8px;
    border: none;
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .nav-link {
        margin: 0.5rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
	.hero-content, .hero-video-container, .hero-section {
		height: 50vh;
		min-height:0;
	}
	
	.scroll-indicator, .contact-btn, .service-btn{
		display:none !important;
	}
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
    }
    
    section {
        padding: 60px 0;
    }
    
    .service-card,
    .advantage-card {
        margin-bottom: 1.5rem;
    }
}

/* === UTILITY CLASSES === */
.text-primary {
    color: var(--primary-blue) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

.border-primary {
    border-color: var(--primary-blue) !important;
}





/* ============================================ */
/* PARALLAX SECTION STYLES - Add to style.css */
/* ============================================ */

/* 
    PLACEMENT: 
    Add this CSS code at the end of your style.css file 
    (after the existing styles, around line 600+)
*/

/* === PARALLAX SECTION === */
.parallax-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}



.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 95, 141, 0.85) 0%, rgba(30, 67, 99, 0.90) 100%);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
}

.parallax-section h2 {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.parallax-section .lead {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    font-size: 1.2rem;
}

/* Statistics Boxes */
.stat-box {
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .parallax-section {
        min-height: 500px;
        background-attachment: scroll; /* Disable fixed on mobile for better performance */
    }
    
    .stat-number {
        font-size: 3rem;
    }
}

@media (max-width: 767px) {
    .parallax-section {
        min-height: 400px;
    }
    
    .parallax-content {
        padding: 60px 0;
    }
    
    .parallax-section h2 {
        font-size: 2rem;
    }
    
    .parallax-section .lead {
        font-size: 1rem;
    }
    
    .stat-box {
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}





/* Language switcher nav item */
.lang-switcher {
    margin-left: 0.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 0.75rem;
}

.lang-link {
    display: flex !important;
    align-items: center;
    gap: 0.4rem;
    border-radius: 6px;
	padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    transition: all 0.25s ease !important;
    font-weight: 600;
	margin-top: 5px;
}

.lang-link:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: #fff !important;
}

/* Flag emoji */
.flag-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* Language label (EN / SV) */
.lang-label {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .lang-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        text-align: center;
    }

    .lang-link {
        display: inline-flex !important;
    }
}