/* -------------------- RESET -------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { 
  font-family: Arial, sans-serif; 
  line-height: 1.6; 
  color: #2d2d2d;  /* Warm charcoal instead of cool #333 */
  overflow-x: hidden; 
  background-color: #ffffff;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* -------------------- HEADER -------------------- */
.header {
  background: linear-gradient(135deg, #dd0000 0%, #990000 100%);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-inner { padding: 25px 40px; transition: all 0.3s ease; }

.top-bar { display: flex; justify-content: space-between; align-items: center; color: white; }

.company-title h1 { font-size: 2rem; font-weight: bold; text-shadow: 3px 3px 1px rgba(0,0,0,0.7); transition: all 0.3s ease; }
.company-title h2 { font-size: 1.2rem; font-weight: bold; text-shadow: 3px 3px 1px rgba(0,0,0,0.7); transition: all 0.3s ease; }

.logo-svg { 
    width: 140px; 
    height: auto; 
    border-radius: 10px; 
    padding: 5px; 
    transition: all 0.3s ease; 
    background: transparent !important;  /* FORCE TRANSPARENT BACKGROUND */
    border: none !important;
    }

.main-nav { margin-top: 20px; }
.main-nav ul { display: flex; justify-content: center; gap: 30px; }
.main-nav a { color: white; font-weight: bold; padding: 10px 15px; transition: all 0.3s ease; }

/* Hide hamburger on desktop */
.nav-toggle { display: none; }

/* -------------------- MEGA MENU -------------------- */
.mega-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  width: 100vw;
  background: linear-gradient(135deg, #dd0000 0%, #990000 100%);
  padding: 40px 60px;
  z-index: 999;
}
.mega-menu.open { display: block; }

.mega-menu .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.mega-item a { display: flex; flex-direction: column; align-items: center; color: white !important; filter: brightness(0) invert(1); text-align: center; gap: 10px; }
.mega-item svg { width: 40px; height: 40px; fill: white !important; filter: brightness(0) invert(1); }
.mega-item span { color: white !important; font-size: 16px; }

/* -------------------- HEADER SHRINK -------------------- */
body { padding-top: 240px; }
.header.shrink .header-inner { padding: 10px 20px; }
.header.shrink .company-title h1 { font-size: 1.4rem; }
.header.shrink .company-title h2 { display: none; }
.header.shrink .logo-svg { width: 70px; }

/* -------------------- MOBILE -------------------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; font-size: 2rem; position: absolute; right: 20px; top: 60px; background: none; border: none; color: white; z-index: 1001; cursor: pointer; }

  #nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #dd0000 0%, #990000 100%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    display: none;
    z-index: 1000;
  }
  
  #nav-menu.active { display: flex; }
  #nav-menu li a { font-size: 1.5rem; text-align: center; width: 100%; padding: 20px 0; }
  .mega-menu { display: none !important; }
}

@media (max-width: 900px) {
    body { padding-top: 280px; }
}

/* -------------------- HERO VIDEO -------------------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 80vh;
    min-height: 400px;
    text-align: center;
    color: #fff;
    overflow: hidden;
    margin-bottom: 6rem;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    max-width: 800px;
    width: 90%;
    text-align: center;
    color: #fff;
}

.hero-text h2 { font-size: clamp(1.8rem, 1.9vw, 2.1rem); margin-bottom: 1rem; }
.hero-text p { font-size: clamp(1rem, 2.5vw, 1.5rem); margin-bottom: 2rem; line-height: 1.5; }

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #dd0000;
    color: #fff;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.cta-button:hover { background: #fff; color: #dd0000; }

@media (max-width: 768px) {
    .hero-text h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
    .hero-text p { font-size: clamp(0.9rem, 3vw, 1.2rem); }
    .cta-button { padding: 0.6rem 1.5rem; }
}

/* -------------------- FEATURED PRODUCTS -------------------- */
.featured-work {
    width: 100%;
    padding: 3rem 0;
    margin-bottom: 1.5rem;
}

.featured-title {
    font-size: clamp(3rem, 6vw, 4rem);
    font-family: Arial, sans-serif;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #1a1a1a;  /* Warm near-black */
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.work-item {
    position: relative;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 15px;
}

.product-logo svg {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    color: white !important;
    fill: white !important;
}

.work-info h4 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.work-info p { font-size: 0.95rem; margin-bottom: 5px; }

/* -------------------- FEATURED PROJECTS SLIDER -------------------- */
.featured-project-slider {
    width: 100%;
    height: 80vh;
    position: relative;
    overflow: hidden;
    margin-bottom: 6rem;
}

.swiper-slide { position: relative; width: 100%; height: 100%; }

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    object-fit: cover;
    z-index: 1;
    transform: scale(1);
    transition: transform 6s ease-in-out;
}

.swiper-slide-active .hero-media { transform: scale(1.15); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 2;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    max-width: 600px;
    width: 90%;
    text-align: center;
    color: #dd0000;
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-content h2 {
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.hero-content p {
    color: #fff;
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    margin-bottom: 2rem;
}

.swiper-slide-active .hero-content {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.cta-button {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 24px;
    background: #dd0000;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
}

.cta-button:hover { background: #fff; color: #dd0000; }
.cta-button:active { background: #b30000; color: #fff; }
.cta-button:focus { outline: 2px solid #dd0000; outline-offset: 2px; }

.related-products { display: flex; gap: 10px; margin: 10px 0; }

.swiper-button-next,
.swiper-button-prev { color: #dd0000 !important; z-index: 50; }

.swiper-pagination-bullet { background: rgba(221,0,0,0.4); }
.swiper-pagination-bullet-active { background: #dd0000 !important; transform: scale(1.2);}
.swiper-pagination-color {background: #dd0000;}

@media (max-width: 768px) {
    .featured-project-slider { height: 60vh; }
    .hero-content { max-width: 90%; padding: 0 1rem; }
    .hero-content h2 { font-size: clamp(1.3rem, 5vw, 2rem); }
    .hero-content p { font-size: clamp(0.9rem, 3vw, 1.2rem); }
    .cta-button { padding: 0.6rem 1.5rem; }
}

.swiper-slide .hero-content h2,
.swiper-slide .hero-content p,
.swiper-slide .cta-button,
.swiper-slide .product-link {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.swiper-slide-active .hero-content h2,
.swiper-slide-active .hero-content p,
.swiper-slide-active .cta-button,
.swiper-slide-active .product-link {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------- FOOTER -------------------- */
.footer {
  background: linear-gradient(135deg, #dd0000 0%, #990000 100%);
  width: 100%;
  font-family: inherit;
  color: #fff;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.7);
  padding: 5rem 2rem;
}

.footer-section h4 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.7);
  margin-bottom: 1.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  z-index: 1;
}

.footer-section {
  flex: 1 1 200px;
  margin-bottom: 2.5rem;
}

.footer-section p,
.footer-section li,
.footer-section a {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.footer-connect { display: flex; flex-direction: column; gap: 1rem; }
.footer-social { display: flex; flex-direction: column; gap: 1.2rem; }

.footer-social .social-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social .social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-links-vertical { list-style: none; padding: 0; margin: 0; }
.footer-links-vertical li { margin-bottom: 0.5rem; }
.footer-links-vertical a { color: #fff; text-decoration: none; }
.footer-links-vertical a:hover { text-decoration: underline; }

.footer-logo { display: flex; justify-content: flex-end; align-items: center; }
.footer-logo svg { width: 150px; height: auto; }

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  font-size: 0.85rem;
}

@media (max-width: 1024px) {
  .footer-inner { flex-direction: column; align-items: center; gap: 3rem; }
  .footer-section { width: 100%; max-width: 320px; text-align: center; }
  .footer-social { flex-direction: row; justify-content: center; gap: 2rem; }
  .footer-links-vertical { text-align: center; }
  .footer-logo { justify-content: center; margin-top: 1rem; }
  .footer-social .social-icon { width: 35px; height: 35px; }
}

@media (max-width: 768px) {
  .footer-social .social-icon { width: 30px; height: 30px; }
}

/* -------------------- ABOUT -------------------- */
.page-header {
    text-align: center;
    padding: 0;
    margin: 5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-weight: 800;
}

.about {
    padding: 2rem 1rem;
    text-align: center;
    background: #faf8f5;  /* Warm cream instead of cool gray */
}

.about h2 {
    font-size: clamp(3rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    margin-top: 8rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.about p { font-size: 1.1rem; margin-bottom: 2rem; }

.header-spacer { height: 0; transition: height 0.3s ease; }

.about-section {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
    margin-bottom: 3rem;
}

.about-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.page-header h2.about-title {
    font-size: clamp(3rem, 6vw, 4rem);
    font-family: Arial, sans-serif;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    color: #1a1a1a;  /* Warm black */
}

.about-section h3 {
    font-size: clamp(3rem, 6vw, 4rem);
    font-family: Arial, sans-serif;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #1a1a1a;  /* Warm black */
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.about-section p {
    text-align: center;
    font-family: Arial, sans-serif;
    color: #525252;  /* Warm gray instead of pure black */
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 3rem;
}

/* -------------------- ABOUT TIMELINE -------------------- */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 0;
    font-family: Arial, sans-serif;
    margin-bottom: 3rem;
    text-align: center;
}

.timeline:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #dd0000;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }

.timeline-item:after {
    content: "";
    position: absolute;
    top: 25px;
    width: 40px;
    height: 3px;
    background: #dd0000;
}

.timeline-item.left:after { right: -40px; }
.timeline-item.right:after { left: -40px; }

.timeline-item h3 { color: #dd0000; font-size: 1.1rem; margin: 0 0 5px 0; }
.timeline-item p { color: #dd0000; font-size: 0.95rem; margin: 0; }
.timeline-item.show { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .timeline:before { left: 20px; }
    .timeline-item {
        width: 100% !important;
        text-align: left !important;
        padding-left: 60px;
        left: 0 !important;
    }
    .timeline-item:after { left: 0 !important; right: auto !important; }
}

/* -------------------- About Icons -------------------- */
.about-icons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
}

.icon-item img {
    width: 80px;
    height: 80px;
    filter: invert(15%) sepia(93%) saturate(7480%) hue-rotate(0deg) brightness(89%) contrast(118%);
}

.icon-item p {
    margin-top: 10px;
    font-size: 1rem;
    color: #dd0000;
    font-family: Arial, sans-serif;
    text-align: center;
    font-weight: bold;
}

/* -------------------- Features List -------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 8rem;
    font-family: Arial, sans-serif;
    justify-content: center;
}

.feature-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(221, 0, 0, 0.08);  /* Red-tinted shadow */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0d5d5;  /* Subtle red border */
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(221, 0, 0, 0.15);  /* Stronger red shadow */
}

.feature-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    filter: invert(15%) sepia(93%) saturate(7480%) hue-rotate(0deg) brightness(89%) contrast(118%);
}

.feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #dd0000;
    font-family: Arial, sans-serif;
}

.feature-card p {
    font-size: 1rem;
    color: #525252;  /* Warm gray text */
    font-family: Arial, sans-serif;
}

/* Country name display below map */
.country-name-display {
    text-align: center;
    margin-top: 20px;
    padding: 12px 20px;
    background: #fff8f8;  /* Warm pink-white */
    border-radius: 8px;
    border: 1px solid #f0d5d5;  /* Red-tinted border */
    font-size: 1.1rem;
    color: #525252;  /* Warm gray */
    transition: all 0.3s ease;
}

.country-name-display .label {
    font-weight: 600;
    color: #dd0000;
    margin-right: 5px;
}

.country-name-display .name {
    color: #dd0000;
    font-weight: 500;
}

/* Ensure countries are clickable */
.europe-map path {
    fill: #e8e8e8;
    stroke: #ffffff;
    stroke-width: 0.5;
    cursor: pointer;
    transition: fill 0.3s ease, opacity 0.3s ease;
}

.europe-map .operational-country { fill: #dd0000; }

/* Fixed: Changed blue hover to red-theme appropriate colors */
.europe-map path:hover { fill: #ff6666; }  /* Light red instead of blue */
.europe-map .operational-country:hover { fill: #ff3333; }  /* Brighter red */

.map-tooltip {
    position: absolute;
    background: rgba(179, 0, 0, 0.95);  /* Darker red background */
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

/* -------------------- DATASHEETS PAGE -------------------- */
.datasheets-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 6rem;
}

.datasheet-product {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 20px rgba(221, 0, 0, 0.06);  /* Subtle red shadow */
    border: 1px solid #f0d5d5;  /* Red-tinted border */
}

.datasheet-product-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.datasheet-product-header h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #dd0000;
    text-transform: uppercase;
}

/* Product icon */
.product-icon svg,
.product-icon img {
    width: 60px;
    height: 60px;
}

/* Datasheet list */
.datasheet-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Datasheet row */
.datasheet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    background: #fff8f8;        /* Warm pink-white instead of cool gray */
    border: 1px solid #f0d5d5;  /* Red-tinted border */
    transition: background 0.3s ease, transform 0.2s ease;
}

.datasheet-item:hover {
    background: #fef2f2;        /* Slightly deeper red-tint on hover */
    transform: translateX(5px);
}

.datasheet-title {
    font-size: 1rem;
    font-weight: 500;
    color: #2d2d2d;             /* Warm charcoal */
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Download button style (if you add one) */
.datasheet-item a {
    color: #dd0000;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid #dd0000;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.datasheet-item a:hover {
    background: #dd0000;
    color: #ffffff;
}

/* Mobile */
@media (max-width: 768px) {
    .datasheet-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .datasheet-product {
        padding: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .icon-item {
        width: 120px;
    }
    
    .about-icons {
        gap: 2rem;
    }
    
    .country-name-display {
        font-size: 1rem;
        padding: 10px 15px;
    }
}

/* Additional utility classes for the red theme */
.bg-warm {
    background-color: #faf8f5;    /* Warm cream */
}

.border-red-subtle {
    border-color: #f0d5d5;        /* Light red-gray */
}

.text-warm-gray {
    color: #525252;               /* Warm gray text */
}

.text-warm-dark {
    color: #2d2d2d;               /* Warm charcoal */
}