:root {
    --primary: #2e0d6a; /* Logo Purple */
    --accent: #f0e600;  /* Logo Yellow */
    --siemens-blue: #009999;
    --dark: #1a1a1a;
    --light: #f4f7f6;
    --white: #ffffff;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    scroll-behavior: smooth;
}

p {
	text-align: justify;
	margin: 1rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    height: 50px;
}

.siemens-logo {
	height: 1in;
} 

.brand-name {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--siemens-blue);
}

/* Hero */
.hero {
    background: linear-gradient(rgba(46, 13, 106, 0.85), rgba(46, 13, 106, 0.26)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1200') no-repeat center center/cover;
    color: var(--white);
    padding: 150px 0;
    text-align: center;
}

.hero-products {
    background: linear-gradient(rgba(46, 13, 106, 0.0), rgba(46, 13, 106, 0.0)), url('/images/siemens_bas_header.jpg') no-repeat center center/cover;
    color: var(--white);
    padding: 150px 0;
    text-align: center;
}

.hero-contact {
    background: linear-gradient(rgba(46, 13, 106, 0.0), rgba(46, 13, 106, 0.0)), url('/images/advergys_contact.jpg') no-repeat center center/cover;
    color: var(--white);
    padding: 150px 0;
    text-align: center;
}

.hero-tidel {
    background: linear-gradient(rgba(46, 13, 106, 0.0), rgba(46, 13, 106, 0.0)), url('/images/tidel_kkdi.jpg') no-repeat center center/cover;
    color: var(--white);
    padding: 150px 0;
    text-align: center;
}

.product-writeup h3 {
	text-align: center;
}

.product-writeup .model {
	font-weight: bold;
}

.product-writeup ol, .product-writeup ul {
	margin: 1rem 0rem 1rem 4rem;
	text-align: justify;
}

.hero h1, .hero-products h1, .hero-contact h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.tagline {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 30px;
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    margin: 10px;
    transition: transform 0.2s;
}

.btn.primary { background: var(--accent); color: var(--primary); }
.btn.secondary { border: 2px solid var(--white); color: var(--white); }
.btn:hover { transform: translateY(-3px); }

/* Sections */
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; font-size: 2.5rem; }
.bg-light { background: var(--light); }

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

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-card { background: var(--primary); color: var(--white); padding: 30px; border-radius: 10px; text-align: center; }

/* Solutions Cards */
.solutions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.solution-card { background: var(--white); padding: 40px; border-radius: 10px; border-top: 5px solid var(--siemens-blue); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.solution-card h3 { margin-bottom: 20px; color: var(--primary); }
.solution-card ul { list-style: square; padding-left: 20px; }

/* Projects Marquee */
/* Image Marquee Container */
.image-marquee {
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    /* Soft fade on edges */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Scrolling Animation */
.marquee-content {
    display: flex;
    gap: 80px; /* Space between logos */
    width: max-content;
    animation: scrollLogos 40s linear infinite;
}

/* Logo Styling */
.marquee-content img {
    height: 60px; /* Uniform height for all logos */
    width: auto;
    filter: grayscale(100%); /* Optional: Grayscale for a professional uniform look */
    opacity: 0.6;
    transition: all 0.3s ease;
}

.marquee-content img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Animation Keyframes */
@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Moves exactly half the width */
    }
}

/* Footer */
.footer { background: var(--dark); color: var(--white); padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; border-bottom: 1px solid #333; padding-bottom: 40px; margin-bottom: 20px; }
.copyright { text-align: center; font-size: 0.9rem; opacity: 0.7; }

/* Responsive */
@media (max-width: 768px) {
    .grid, .navbar .container { flex-direction: column; text-align: center; }
    .nav-links { margin-top: 20px; gap: 15px; }
    .hero h1 { font-size: 2.2rem; }
}

.product-category {
	margin: 2rem 0;
}

/* Product Image Styling */
.product-content-flex {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 20px;
}

.product-content-flex img {
    width: 250px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.product-image {
	display: flex;
	margin: 2rem 0;
}

.product-image img {
	height: 21rem;
	margin: auto;
}

.product-grid {
    flex: 1; /* Takes up remaining space */
}

.form-container {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.captcha-box {
    background: var(--light);
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.captcha-box input {
    width: 80px;
    padding: 8px;
}

.contact-info-box h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-info-box p {
    margin-bottom: 20px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 13, 106, 0.9); /* Advergys Purple with transparency */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    padding: 50px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.icon-check {
    font-size: 50px;
    color: var(--siemens-blue);
    margin-bottom: 20px;
}

.modal-content h2 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* Project Slider */

/* Full-Bleed Slider Section */
.slider-section {
    padding: 0; /* Remove padding to let image reach edges */
    background: #000;
    width: 100%;
}

.slider-container {
    position: relative;
    width: 100%; /* Occupies full width of the screen */
    height: 450px; /* Increased height for a more professional impact */
    overflow: hidden;
}

.slides {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover; /* This forces the image to fill the area */
    background-position: center center; /* Keeps the center of the image visible */
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Semi-transparent overlay to ensure text visibility over images */
.slide-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Darkens the image slightly */
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    text-align: center;
    color: #fff;
    padding: 0 20px;
    max-width: 900px;
}

/* Maintain slider button visibility on full-bleed images */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 20px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10; /* Ensure buttons stay above the overlay */
}

.slider-btn:hover {
    background: var(--siemens-blue);
}

.prev { left: 30px; }
.next { right: 30px; }

/* Portfolio Categorization Grid */
.project-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-top: 20px; }
.category-group { background: white; padding: 25px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 4px solid var(--primary); }
.category-group h3 { color: var(--primary); font-size: 1.25rem; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.project-list { list-style: none; padding: 0; }
.project-list li { margin-bottom: 15px; font-size: 0.9rem; line-height: 1.4; color: #444; }
.project-list li strong { color: var(--siemens-blue); display: block; margin-bottom: 3px; }

/* Mobile Fix */
@media (max-width: 768px) {
    .product-content-flex {
        flex-direction: column;
        text-align: center;
    }
    .product-content-flex img {
        width: 100%;
        max-width: 300px;
    }
}
