/* Modern Professional Styles for Conjunction Sverige AB */
/* Maintaining brand colors: #83aac4 (primary), #1ea90e (green), #47507b (dark blue) */

/* FONT OPTIONS - Switch between these:
   
   CURRENT FONT: Inter (sharp, modern)
   @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
   font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
   
   PREVIOUS FONT: Open Sans (rounded, softer) - TO RESTORE IF NEEDED:
   font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
*/

/* Import sharp, modern font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset and base styles */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #83aac4 0%, #6b9abd 100%);
    min-height: 100vh;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#wrapper {
    background: linear-gradient(135deg, #83aac4 0%, #6b9abd 100%);
    min-height: 100vh;
}

/* Container for consistent width */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    padding: 80px 0 60px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.logo-container {
    margin-bottom: 20px;
}

.company-logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.hero-text h1 {
    font-size: 2.8em;
    font-weight: 700;
    color: white;
    margin: 0 0 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero-text h2 {
    font-size: 1.5em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 25px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.01em;
}

.hero-description {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Navigation Menu */
.main-navigation {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(131, 170, 196, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    margin: 0 20px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 20px 25px;
    color: #47507b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    letter-spacing: -0.01em;
}

.nav-link:hover {
    color: #1ea90e;
    background: rgba(30, 169, 14, 0.05);
    border-bottom-color: #1ea90e;
}

.nav-link:active {
    color: #16940c;
    background: rgba(30, 169, 14, 0.1);
}

/* Main Content */
.main-content {
    background: linear-gradient(135deg, #83aac4 0%, #7ba4bd 100%);
    margin: 40px 20px 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Section Styling */
section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #1ea90e;
    margin: 15px auto;
    border-radius: 2px;
}

.intro-text {
    text-align: center;
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.7;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Grid Layouts */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: #1ea90e;
    background: rgba(255, 255, 255, 0.25);
}

.service-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.service-card:hover .service-image {
    border-color: #1ea90e;
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.4em;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.01em;
}

.service-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Support Grid */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.support-item {
    background: linear-gradient(135deg, #47507b 0%, #3a4168 100%);
    color: white;
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.support-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(71, 80, 123, 0.3);
}

.support-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.support-item:hover .support-image {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.support-item h3 {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: -0.01em;
}

.support-item p {
    margin: 0;
    opacity: 0.95;
    line-height: 1.6;
}

/* Development Grid */
.development-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.dev-item {
    background: linear-gradient(135deg, #1ea90e 0%, #16940c 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.dev-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 169, 14, 0.3);
}

.dev-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.dev-item:hover .dev-image {
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.dev-item h3 {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: -0.01em;
}

.dev-item p {
    margin: 0;
    opacity: 0.95;
    line-height: 1.6;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 35px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    border-color: #1ea90e;
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
}

.benefit-image {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-image {
    border-color: #1ea90e;
    transform: scale(1.1);
}

.benefit-item h3 {
    font-size: 1.3em;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.01em;
}

.benefit-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #47507b 0%, #3a4168 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin: 0 20px;
    border-radius: 0 0 20px 20px;
}

.contact-section .section-title {
    color: white;
}

.contact-section .section-title::after {
    background: #1ea90e;
}

.contact-intro {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-item {
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.contact-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    filter: brightness(1.1);
}

.contact-item:hover .contact-image {
    border-color: #1ea90e;
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Placeholder styling for missing images */
.service-image,
.support-image,
.dev-image,
.benefit-image,
.contact-image {
    background: linear-gradient(135deg, #47507b, #1ea90e);
    position: relative;
}

/* Image loading error fallback */
.service-image::after,
.support-image::after,
.dev-image::after,
.benefit-image::after,
.contact-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #47507b, #1ea90e);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-image[src*=".jpg"]:not([src=""]):after,
.support-image[src*=".jpg"]:not([src=""]):after,
.dev-image[src*=".jpg"]:not([src=""]):after,
.benefit-image[src*=".jpg"]:not([src=""]):after,
.contact-image[src*=".jpg"]:not([src=""]):after {
    opacity: 0;
}

.contact-item h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.contact-item p {
    margin: 0;
}

.contact-item a {
    color: #1ea90e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #16940c;
    text-decoration: underline;
}

/* Copyright */
.copyright {
    background: transparent;
    padding: 20px 0;
    text-align: center;
    margin: 0;
}

.copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8em;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.2em;
    }
    
    .hero-text h2 {
        font-size: 1.3em;
    }
    
    .company-logo {
        max-width: 250px;
    }
    
    .main-navigation {
        margin: 0 10px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
    }
    
    .nav-link {
        padding: 15px 20px;
        font-size: 0.9em;
    }
    
    .main-content {
        margin: 20px 10px 0;
        border-radius: 15px 15px 0 0;
    }
    
    .contact-section {
        margin: 0 10px;
        border-radius: 0 0 15px 15px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8em;
    }
    
    .services-grid,
    .support-grid,
    .development-grid,
    .benefits-grid,
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card,
    .support-item,
    .dev-item,
    .benefit-item {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(131, 170, 196, 0.2);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 15px 20px;
        text-align: center;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .nav-link:hover {
        border-left-color: #1ea90e;
        border-bottom-color: transparent;
    }
    
    .hero-text h1 {
        font-size: 1.9em;
    }
    
    .hero-text h2 {
        font-size: 1.1em;
    }
    
    .hero-description {
        font-size: 1em;
    }
    
    .company-logo {
        max-width: 200px;
    }
}

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

.service-card,
.support-item,
.dev-item,
.benefit-item,
.contact-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* Print styles */
@media print {
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    .hero-text h1,
    .hero-text h2,
    .hero-description {
        color: black !important;
        text-shadow: none !important;
    }
    
    .main-content,
    .contact-section {
        background: white !important;
        color: black !important;
        margin: 0 !important;
        box-shadow: none !important;
    }
}