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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1A1A1A;
    overflow-x: hidden;
}

.container {
    width: 100%;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    background: url('img/hero-section-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 628px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 96px 83px;
    overflow: hidden;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}


.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    max-width: 1200px;
    z-index: 2;
}

.hero-text {
    max-width: 477px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.logo-section {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.logo-image {
    height: 36px;
    width: auto;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 51px;
    color: white;
    margin: 0;
}

.highlight {
    color: #7eb9ff;
}

.hero-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: white;
    margin: 0;
}

.cta-button {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #032f91;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    align-self: flex-start;
    transition: all 0.3s ease;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-image {
    width: 584px;
    height: 385px;
    position: relative;
}

.hero-image-bg {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 584px;
    height: 384px;
    background: url('img/hero-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.15);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(-50%) translateY(0px);
    }
    50% {
        transform: translateY(-50%) translateY(-10px);
    }
}

/* Skills Section */
.skills-section {
    background: white;
    padding: 72px 83px;
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 598px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.2;
    background: linear-gradient(106deg, #021B79 0%, #0575E6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.section-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: #1A1A1A;
    margin: 0;
}

.skills-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.skills-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skill-row {
    display: flex;
    gap: 16px;
}

.skill-block {
    background: #f7f7f7;
    border-radius: 16px;
    padding: 24px;
    width: 254px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.skill-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(106deg, #021B79 0%, #0575E6 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
    z-index: 1;
}

.skill-block:hover::before {
    opacity: 1;
}

.skill-block:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(5deg);
    box-shadow: 
        0 20px 40px rgba(2, 27, 121, 0.3),
        0 10px 20px rgba(5, 117, 230, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.skill-block:hover .skill-icon,
.skill-block:hover .skill-title,
.skill-block:hover .skill-description {
    color: white;
    position: relative;
    z-index: 2;
}

.skill-block:hover .skill-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(2, 27, 121, 0.4);
}

.skill-block:hover .skill-icon-img {
    transform: scale(1.1);
}

.skill-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(106deg, #021B79 0%, #0575E6 100%);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(2, 27, 121, 0.2);
}

.skill-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: brightness(0) invert(1);
}

.skill-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #1A1A1A;
    margin: 0;
}

.skill-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    color: #1A1A1A;
    margin: 0;
}

.skills-image {
    width: 584px;
    height: 384px;
    position: relative;
}

.skills-image-bg {
    width: 100%;
    height: 100%;
    background: url('img/skills-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.15);
}

/* Clients Section */
.clients-section {
    background: #f7f7f7;
    padding: 72px 83px;
}

.clients-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

.client-logo {
    background: white;
    border-radius: 24px;
    padding: 67px 21px;
    width: 282px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-image {
    width: 100%;
    height: 72px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.client-1 {
    background-image: url('img/ti-fluid-systems-logo.png');
}

.client-2 {
    background-image: url('img/ul-logo.png');
}

.client-3 {
    background-image: url('img/Wärtsilä-Logo.svg.png');
}

.client-4 {
    background-image: url('img/interoceanmetal.png');
}

/* Case Studies Section */
.case-studies-section {
    background: white;
    padding: 72px 83px;
}

.case-tabs {
    display: flex;
    background: #f7f7f7;
    border-radius: 8px;
    padding: 4px;
    margin-top: 12px;
}

.case-tab {
    background: #f7f7f7;
    border-radius: 8px;
    padding: 8px 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #5d5d5d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.case-tab:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.case-tab.active {
    background: linear-gradient(106deg, #021B79 0%, #0575E6 100%);
    color: white;
    box-shadow: 0px 2px 8px rgba(2, 27, 121, 0.3);
}

.case-content {
    display: flex;
    gap: 24px;
    margin-top: 24px;
}

.case-details-inside-wrapper {
    display: flex;
    gap: 24px;
}

.case-study {
    display: flex;
    gap: 24px;
    width: 100%;
}

.case-text {
    background: 
        url('img/case-study-block-background.svg'),
        #f7f7f7;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    padding: 24px;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.case-category {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #1A1A1A;
    margin-bottom: 4px;
}

.case-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #1A1A1A;
    margin: 0 0 16px 0;
}

.case-description {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.7;
    color: #1A1A1A;
    margin: 0 0 20px 0;
}

.case-details {
    margin-top: 20px;
}

.case-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #1A1A1A;
    margin: 0 0 8px 0;
}

.case-challenge,
.case-solution,
.case-results {
    margin-bottom: 16px;
    width: 100%;
}

.case-challenge p,
.case-solution p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    color: #1A1A1A;
    margin: 0;
}

.case-results-list {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    color: #1A1A1A;
    margin: 0;
    padding-left: 16px;
}

.case-results-list li {
    margin-bottom: 4px;
}

.case-conclusion {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.6;
    color: #1A1A1A;
    margin: 16px 0 0 0;
    font-style: italic;
}

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

.case-polygon {
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(36, 120, 200, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(126, 185, 255, 0.08) 0%, transparent 60%),
        linear-gradient(135deg, rgba(36, 120, 200, 0.05) 0%, transparent 50%, rgba(126, 185, 255, 0.05) 100%);
}

.case-image {
    width: 270px;
    background: #f7f7f7;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 58px 18px;
}

.case-image-bg {
    width: 85%;
    height: 169px;
    background: url('img/loacker-logo.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
}

.ti-fluid-image-bg {
    background: url('img/ti-fluid-systems-logo.png') no-repeat center center;
    background-size: contain;
}

.wartsila-image-bg {
    background: url('img/Wärtsilä-Logo.svg.png') no-repeat center center;
    background-size: contain;
}


/* Contact Section */
.contact-section {
    background: linear-gradient(106deg, #021B79 0%, #0575E6 100%), #F7F7F7;
    padding: 72px 83px;
}

.section-title.white,
.section-description.white {
    color: white;
}

.contact-section .section-title.white {
    color: white;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: white;
    background-clip: unset;
}

.contact-form {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0px 2px 11px rgba(0, 0, 0, 0.15);
    max-width: 678px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #1A1A1A;
}

.form-input,
.form-textarea {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 8px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #1A1A1A;
    background: white;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #a8a8a8;
}

.form-textarea {
    height: 154px;
    resize: vertical;
}

.form-submit {
    background: linear-gradient(135deg, #2478c8 0%, #1e6bb8 50%, #2478c8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 2px 8px rgba(36, 120, 200, 0.3);
}

.form-submit:hover {
    background: linear-gradient(135deg, #1e6bb8 0%, #2478c8 50%, #1e6bb8 100%);
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px rgba(36, 120, 200, 0.4);
}

/* Footer */
.footer {
    background: #1A1A1A;
    padding: 72px 83px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.footer-logo-image {
    height: 36px;
    width: auto;
}

.footer-copyright {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: white;
    margin: 0;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.footer-contact,
.footer-location {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-icon,
.location-icon {
    width: 20px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-icon {
    width: 24px;
    height: 24px;
}

.contact-text,
.location-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: white;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        
    }
    
    .hero-section,
    .skills-section,
    .clients-section,
    .case-studies-section,
    .contact-section,
    .footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .section-content,
    .footer-content {
        max-width: 800px;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        max-width: 800px;
    }
    
    .hero-image {
        width: 100%;
        max-width: 800px;
    }

    .hero-image-bg {
        width: 100%;
        max-width: 800px;
    }

    .hero-text {
        max-width: 100%;
        align-items: center;
    }
    
    .skills-grid {
        flex-direction: column;
        gap: 40px;
    }
    .skills-left {
        width: 100%;
        max-width: 800px;
    }
    .skills-right {
        width: 100%;
        max-width: 800px;
    }
    .skill-row {
      width: 100%;
      max-width: 800px;
    }
    .skill-block {
        width: 100%;
    }

    .cta-button {
        align-self: center;
    }
    
    .skills-image {
        width: 100%;
    }
    
    .clients-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .client-logo {
        width: calc(50% - 12px);
        min-width: 250px;
    }
    .case-study {
        width: 100%;
       flex-direction: column-reverse;
    }
    
    .case-content {
        flex-direction: column;
    }
    
    
    .case-image {
        width: 100%;
        margin: 0 auto;
        padding: 32px;
    }
    .case-image-bg {
        height: 100px;
    }
    
    .ti-fluid-image-bg {
      background: url('img/ti-fluid-systems-logo.png') no-repeat center center;
      background-size: auto;
  }
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-right {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 36px;
        line-height: 1.2;
    }
    
    .skill-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .skill-block {
        width: 100%;
    }
    
    .clients-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .client-logo {
        width: 100%;
        max-width: 300px;
    }
    
    .case-tabs {
        flex-direction: column;
        gap: 4px;
    }
    
    .case-tab {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .contact-form {
        padding: 16px;
    }
    .case-details-inside-wrapper {
        flex-direction: column;
    }
}
