/* ===================================
   WEBSCOPE-PRO.CH - MAIN STYLESHEET
   Modern, Technical, Swiss Precision
   =================================== */

/* === CSS Variables (CI Colors) === */
:root {
    --color-navy-dark: #13293D;
    --color-navy-medium: #005377;
    --color-red-bright: #E63946;
    --color-red-bordeaux: #802020;
    --color-white: #FFFFFF;
    --color-light-gray-blue: #BCCCDC;
    --color-silver-light: #A8A9AD;
    --color-silver-dark: #666666;
    --color-black: #000000;
    
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(19, 41, 61, 0.08);
    --shadow-md: 0 4px 16px rgba(19, 41, 61, 0.12);
    --shadow-lg: 0 8px 32px rgba(19, 41, 61, 0.16);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-navy-dark);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* === Container === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Section Styling === */
section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-navy-dark);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-navy-medium), var(--color-red-bright));
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-silver-dark);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 20px;
}

.logo-img {
    height: 100px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--color-navy-dark);
    position: relative;
}

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

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

.cta-nav {
    background-color: var(--color-red-bright);
    color: var(--color-white);
    padding: 10px 24px;
    border-radius: 6px;
}

.cta-nav::after {
    display: none;
}

.cta-nav:hover {
    background-color: var(--color-red-bordeaux);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--color-navy-dark);
    transition: var(--transition-smooth);
}

/* ===================================
   HERO & SERVICES COMBINED WRAPPER
   =================================== */
.hero-services-section {
    background-image: url('images/hero-bg.png');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.hero-services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.90);
    z-index: 0;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 150px;
    background: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.scroll-indicator {
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-navy-dark);
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-title .highlight {
    color: var(--color-red-bright);
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-silver-dark);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-navy-medium);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-indicator span {
    width: 6px;
    height: 10px;
    background-color: var(--color-navy-medium);
    border-radius: 3px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-red-bright);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-red-bordeaux);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-navy-dark);
    border: 2px solid var(--color-navy-medium);
}

.btn-secondary:hover {
    background-color: var(--color-navy-dark);
    color: var(--color-white);
    border-color: var(--color-navy-dark);
}

.btn-full {
    width: 100%;
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services {
    background: none;
    position: relative;
    padding: 80px 0;
}

.services > .container {
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(19, 41, 61, 0.08);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-navy-dark);
    margin-bottom: 16px;
}

.service-card p {
    color: var(--color-silver-dark);
    margin-bottom: 24px;
    line-height: 1.8;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 8px 0;
    color: var(--color-navy-medium);
    position: relative;
    padding-left: 24px;
}

.service-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-red-bright);
    font-weight: bold;
}

/* ===================================
   TECHNOLOGIES SECTION
   =================================== */
.technologies {
    background-color: #f8f9fa;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.tech-category {
    background-color: var(--color-white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.tech-category h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-navy-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-red-bright);
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-badge {
    background-color: var(--color-light-gray-blue);
    color: var(--color-navy-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.tech-badge:hover {
    background-color: var(--color-navy-medium);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* ===================================
   PROJECTS SECTION
   =================================== */
.projects {
    background-color: var(--color-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.project-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    cursor: pointer;
}

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

.project-image {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, var(--color-navy-dark), var(--color-navy-medium));
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(19, 41, 61, 0.8), rgba(0, 83, 119, 0.95));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    text-align: center;
    color: var(--color-white);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.project-overlay p {
    margin-bottom: 16px;
    line-height: 1.6;
}

.project-tag {
    display: inline-block;
    background-color: var(--color-red-bright);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    background-color: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    text-align: left;
}

.about-text h2::after {
    left: 0;
    transform: none;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--color-silver-dark);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.value-item {
    text-align: center;
}

.value-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-red-bright);
    margin-bottom: 8px;
}

.value-label {
    font-size: 0.875rem;
    color: var(--color-silver-dark);
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-image img {
    max-width: 400px;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.15));
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact {
    background-color: var(--color-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--color-light-gray-blue);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-navy-dark);
    background-color: var(--color-white);
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-navy-medium);
    box-shadow: 0 0 0 3px rgba(0, 83, 119, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-item h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-navy-dark);
    margin-bottom: 12px;
}

.info-item p {
    color: var(--color-silver-dark);
    line-height: 1.8;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background-color: var(--color-navy-dark);
    color: var(--color-white);
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-section h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin-bottom: 16px;
    color: var(--color-white);
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--color-light-gray-blue);
    transition: var(--transition-smooth);
}

.footer-section ul li a:hover {
    color: var(--color-red-bright);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-light-gray-blue);
    font-size: 0.875rem;
}

/* ===================================
   ANIMATIONS
   =================================== */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .nav-menu {
        position: fixed;
        top: 82px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 82px);
        background-color: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 24px;
        box-shadow: var(--shadow-lg);
        transition: right 0.4s ease;
        gap: 24px;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .services-grid,
    .tech-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .about-values {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .logo-img {
        height: 40px;
    }
}