/* Root Variables */
:root {
    --primary-color: #2c5282;
    --secondary-color: #2d3748;
    --accent-color: #38b2ac;
    --light-bg: #f7fafc;
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #2c9089;
    border-color: #2c9089;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Navigation */
.navbar {
    background-color: transparent;
    transition: all 0.3s ease;
    padding: 1.5rem 0;
}

.navbar-scrolled {
    background-color: rgba(44, 82, 130, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--white) !important;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    margin-right: 10px;
}

/* Hide brand text on small screens */
@media (max-width: 576px) {
    .navbar-brand {
        font-size: 0;
    }
    
    .navbar-brand img {
        margin-right: 0;
        font-size: initial;
    }
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin-left: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

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

/* Navbar collapse menu background */
.navbar-collapse {
    background-color: transparent;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgba(44, 82, 130, 0.95);
        backdrop-filter: blur(10px);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 10px;
    }
    
    /* When navbar is not scrolled and over hero */
    .navbar:not(.navbar-scrolled) .navbar-collapse {
        background-color: rgba(44, 82, 130, 0.95);
    }
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background-image: url('../images/splash-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.8) 0%, rgba(45, 55, 72, 0.8) 100%);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.95;
}

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

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

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

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

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

/* About Section */
.about-image-wrapper {
    position: relative;
    padding: 20px;
    display: flex;
    justify-content: center;
}

/* Make images responsive */
.about-image,
.what-is-image {
    max-width: 100%;
    height: auto;
}

.about-image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.about-image-placeholder i {
    font-size: 8rem;
    color: var(--white);
    opacity: 0.8;
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

/* Feature Cards in Mikor Section with Background Images */
#mikor .feature-card {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    color: var(--white);
}

/* Dark overlay for better text readability */
#mikor .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 82, 130, 0.85);
    z-index: 1;
    transition: all 0.3s ease;
}

/* Ensure content is above the overlay */
#mikor .feature-card > * {
    position: relative;
    z-index: 2;
}

/* Hover effect for mikor feature cards */
#mikor .feature-card:hover::before {
    background: rgba(44, 82, 130, 0.75);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* Special styling for mikor section icons */
#mikor .feature-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.feature-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

/* Ensure text is white in mikor section */
#mikor .feature-card h5,
#mikor .feature-card p {
    color: var(--white);
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--accent-color);
    top: 0;
}

.timeline-item {
    position: relative;
    padding: 2rem 0;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 2;
}

.timeline-content {
    width: 45%;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

/* Service Cards */
.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

/* Focus Items */
.focus-item {
    display: flex;
    align-items: start;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.focus-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.focus-item i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Testimonials Section */
.testimonials-section {
    position: relative;
    background-image: url('../images/gotthard-photo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.testimonials-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 82, 130, 0.85);
    z-index: 1;
}

.testimonials-section .container {
    z-index: 2;
}

/* Testimonials Slider */
.testimonials-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonials-slider {
    position: relative;
    min-height: 200px; /* Fallback min-height */
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-slide.prev {
    transform: translateX(-100%);
}

/* Testimonial Cards */
.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
}

.testimonial-author {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--accent-color);
}

.testimonial-author strong {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.testimonial-author span {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Navigation Arrows */
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.testimonial-nav:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.testimonial-nav i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.testimonial-nav-prev {
    left: -70px;
}

.testimonial-nav-next {
    right: -70px;
}

/* Indicators */
.testimonial-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

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

.indicator.active {
    background: var(--white);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-floating > .form-control {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 1rem 0.75rem;
}

.form-floating > .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(56, 178, 172, 0.25);
}

.form-floating > label {
    padding: 1rem 0.75rem;
}

/* Contact Info */
.contact-info {
    padding: 1.5rem;
}

.contact-info i {
    color: var(--accent-color);
}

/* Footer */
footer {
    background-color: var(--secondary-color) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Animate on scroll */
.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Initial state for elements that will animate on scroll */
.about-image,
.what-is-image,
.feature-card,
.timeline-item,
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: none;
}

/* When animate-in is applied, elements become visible */
.about-image.animate-in,
.what-is-image.animate-in,
.feature-card.animate-in,
.timeline-item.animate-in,
.service-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 991px) {
    .navbar-nav .nav-link {
        margin-left: 0;
        padding: 0.5rem 0;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        padding-left: 80px;
    }
    
    .timeline-number {
        left: 30px;
    }
    
    .timeline-content {
        width: 100%;
        text-align: left !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-content {
        margin-right: 0;
    }

    /* Testimonials responsive */
    .testimonial-nav-prev {
        left: 10px;
    }

    .testimonial-nav-next {
        right: 10px;
    }

    .testimonials-slider {
        min-height: 200px; /* Fallback */
    }

    .testimonial-card {
        padding: 2rem;
        margin: 0 60px;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .about-image-placeholder {
        height: 300px;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .timeline {
        padding-left: 0;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-number {
        left: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Testimonials mobile */
    .testimonial-nav {
        width: 40px;
        height: 40px;
    }

    .testimonial-nav i {
        font-size: 1.2rem;
    }

    .testimonial-card {
        padding: 0.7rem;
        margin: 0 50px;
    }

    .testimonial-card p {
        font-size: 0.8rem;
    }

    .testimonial-author strong {
        font-size: 0.9rem;
    }

    .testimonial-author span {
        font-size: 0.8rem;
    }

    .testimonials-slider {
        min-height: 200px; /* Fallback */
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 100vh;
        min-height: 600px;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.85rem;
    }
    
    .feature-card,
    .service-card {
        padding: 1.5rem;
    }
    
    .focus-item {
        flex-direction: column;
        text-align: center;
    }
    
    .focus-item i {
        margin-bottom: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .scroll-indicator,
    .btn,
    footer {
        display: none;
    }
    
    .hero-section {
        height: auto;
        background: none;
        color: var(--text-dark);
    }
    
    .hero-overlay {
        display: none;
    }
}