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

:root {
    --primary-red: #EE0000;
    --dark-gray: #1a1a1a;
    --medium-gray: #4a4a4a;
    --light-gray: #f5f5f5;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

header {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--medium-gray) 100%);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(238, 0, 0, 0.3);
}

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

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-placeholder {
    width: 220px;
    height: 75px;
    background: linear-gradient(135deg, var(--white) 0%, #f0f0f0 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: left;
    font-weight: bold;
    color: var(--primary-red);
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(238, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.logo-placeholder img{
    width: 100%;
}

.logo-placeholder:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 0, 0, 0.3);
}

.company-name {
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s;
}

nav a:hover {
    color: var(--primary-red);
    background: rgba(255, 255, 255, 0.1);
}

nav a:hover::after {
    width: 80%;
}

.hero {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--medium-gray) 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.2rem;
    font-weight: 700;
}

.tagline {
    font-size: 1.5rem;
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: var(--primary-red);
    color: var(--white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #cc0000;
}

section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background-color: var(--light-gray);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--medium-gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-red);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.service-card p {
    color: var(--medium-gray);
    line-height: 1.8;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-red);
}

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

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.about-text p {
    color: var(--medium-gray);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-box {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    display: block;
}

.stat-label {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.certifications {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cert-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cert-badge {
    width: 150px;
    height: 150px;
    background: var(--light-gray);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--medium-gray);
    text-align: center;
    padding: 1rem;
    border: 2px solid #e0e0e0;
}

.redhat-highlight {
    background: linear-gradient(135deg, #EE0000 0%, #cc0000 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.redhat-highlight h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.redhat-highlight p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-weight: 600;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-button {
    background: var(--primary-red);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.submit-button:hover {
    background: #cc0000;
}

footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

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

.footer-section h4 {
    margin-bottom: 0.1rem;
    color: var(--primary-red);
}

.footer-section p {
    color: #cccccc;
    margin-bottom: 0.2rem;
}

.footer-section .address-block {
    width: 45%;
    text-align: left;
    display: inline-block;
    box-sizing: border-box;
}

.footer-section .contact-link {
    color: var(--primary-red);
    text-decoration: none;
    display: block;
}

.footer-section .contact-link:hover {
    color: #ff3333;
}

.copyright {
    border-top: 1px solid var(--medium-gray);
    padding-top: 1rem;
    margin-top: 2rem;
    color: #999;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .tagline {
        font-size: 1.2rem;
    }
    .about-content {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .stats {
        grid-template-columns: 1fr;
    }
}

/* Carousel-specific styles */
.case-studies-roller {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.case-studies-roller-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.case-study-card {
    flex: 0 0 100%;
    max-width: 100%;
    margin: 0 1rem;
    padding: 2rem;
    border-radius: 10px;
    box-sizing: border-box;
    background: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-red);
}

.case-study-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.case-study-card p {
    color: var(--medium-gray);
    line-height: 1.8;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--dark-gray);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 5px;
    z-index: 10;
    transition: background-color 0.3s;
    display: none;
}

.carousel-arrow:hover {
    background-color: var(--primary-red);
}

.carousel-arrow.left {
    left: 10px;
}

.carousel-arrow.right {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background-color: var(--medium-gray);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background-color: var(--primary-red);
}

.form-message {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 5px;
    display: none; /* Hidden by default */
}

.form-message.error {
    color: #ff3333;
    border: 1px solid #ff3333;
    display: block;
}

.form-message.success {
    color: #28a745;
    border: 1px solid #28a745;
    display: block;
}


@media (min-width: 768px) {
    .case-study-card {
        flex: 0 0 calc(50% - 2rem);
        max-width: calc(50% - 2rem);
    }
}

@media (min-width: 1024px) {
    .case-study-card {
        flex: 0 0 calc(33.33% - 2rem);
        max-width: calc(33.33% - 2rem);
    }
}
