/* Global Variables */
:root {
    --primary-red: #e30613;
    --dark-red: #b10510;
    --light-red: #ff4d59;
    --dark: #222222;
    --medium: #444444;
    --light: #f8f8f8;
    --white: #ffffff;
    --gray: #e0e0e0;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; position: relative; padding-bottom: 15px; }
h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-red);
}
h3 { font-size: 1.8rem; }
p { margin-bottom: 1.5rem; }

a {
    text-decoration: none;
    color: var(--primary-red);
    transition: var(--transition);
}
a:hover { color: var(--dark-red); }

img { max-width: 100%; height: auto; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid var(--primary-red);
}
.btn:hover {
    background: transparent;
    color: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.btn-outline { background: transparent; color: var(--primary-red); }
.btn-outline:hover { background: var(--primary-red); color: var(--white); }

.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { display: inline-block; margin-bottom: 20px; }
.section-title h2:after { left: 50%; transform: translateX(-50%); }

.text-center { text-align: center; }
.text-red { color: var(--primary-red); }

/* Header Styles */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    height: 60px;
    display: flex;
    align-items: center;
}
.logo .logo-img {
  height: 50px;
  width: auto;
  margin-right: 10px;
}
.logo img { height: 100%; }
.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-left: 10px;
}
.logo-text span { color: var(--primary-red); }

nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 30px; position: relative; }
nav ul li a {
    color: var(--dark);
    font-weight: 500;
    font-size: 1.05rem;
    padding: 5px 0;
    position: relative;
}
nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: var(--transition);
}
nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}
nav ul li a.active { color: var(--primary-red); }

.header-container .contact-info a {
    background: var(--primary-red);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 500;
    display: flex;
    align-items: center;
}
.header-container .contact-info a i { margin-right: 8px; }
.header-container .contact-info a:hover { background: var(--dark-red); }

.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* Page Header / Banner Styles */
.page-header { padding-top: 90px; }
.page-header-container {
    display: flex;
    align-items: stretch;
    min-height: 450px;
    background: #ffffff;
}
.page-header-text {
    flex-basis: 50%;
    padding: 40px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.page-header-logo {
    max-width: 80px;
    height: auto;
    margin-bottom: 20px;
}
.page-header-text h1 {
    font-size: 3.5rem;
    color: var(--dark);
    margin-bottom: 20px;
}
.page-header-text p {
    font-size: 1.1rem;
    color: var(--medium);
    max-width: 500px;
}
.page-header-image {
    flex-basis: 50%;
    background: url('https://images.unsplash.com/photo-1556761175-b413da4baf72?ixlib=rb-4.0.3') no-repeat center center/cover;
    position: relative;
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?ixlib=rb-4.0.3') no-repeat center center/cover;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    position: relative;
}
.hero-content { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--white);
    animation: fadeInDown 1s ease;
}
.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}
.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeIn 1.5s ease;
}
.hero-btns .btn { padding: 15px 35px; font-size: 1.1rem; }

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* About Section */
.about { background: var(--light); }
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-text h2 { margin-bottom: 25px; }
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}
.stat-box {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.stat-box h3 {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 5px;
}
.stat-box p { font-weight: 500; margin-bottom: 0; }
.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.about-image img { width: 100%; display: block; }

/* Why Choose Us Section */
.why-choose-us { background-color: #ffffff; }
.choose-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.choose-us-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.choose-us-text h2 { margin-bottom: 20px; }
.features-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.features-list li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
}
.features-list li i {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-right: 12px;
}

/* Clients Section */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.client-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.card-logo {
    max-height: 80px;
    max-width: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}
.card-content { flex-grow: 1; }
.card-content h4 { font-size: 1.2rem; margin-bottom: 5px; color: var(--dark); }
.card-content p { font-size: 0.9rem; color: var(--medium); margin-bottom: 20px; }
.card-btn { width: 100%; text-align: center; padding: 12px; }

/* Projects Section */
.projects { background: var(--light); }
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}
.project-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.project-image { height: 250px; overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.project-card:hover .project-image img { transform: scale(1.1); }
.project-content { padding: 25px; }
.project-content h3 { margin-bottom: 10px; }
.project-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray);
}

/* Certificates Section */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.certificate-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}
.certificate-card:hover { transform: translateY(-10px); }
.certificate-image {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--light);
}
.certificate-image img { max-height: 100%; max-width: 100%; object-fit: contain; }
.certificate-content { padding: 20px; text-align: center; }

/* Contact Section */
.contact {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1533750349088-cd871a92f312?ixlib=rb-4.0.3') no-repeat center center/cover;
    color: var(--white);
}
.contact .section-title h2 { color: var(--white); }
.contact .section-title h2:after { background: var(--white); }
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-info { display: flex; flex-direction: column; }
.contact-info h3 { color: var(--white); margin-bottom: 30px; }
.contact-detail { display: flex; margin-bottom: 25px; }
.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}
.contact-icon i { font-size: 1.2rem; color: var(--primary-red); }
.contact-text h4 { color: var(--white); margin-bottom: 5px; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 4px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
}
.contact-form textarea { height: 150px; resize: none; }
.contact-form ::placeholder { color: rgba(255,255,255,0.7); }

/* Footer */
footer { background: var(--dark); color: var(--white); padding-top: 80px; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}
.footer-col h3 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
    color: var(--white);
}
.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-red);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    display: block;
}
.footer-links a:hover { color: var(--primary-red); transform: translateX(5px); }
.footer-contact p { display: flex; margin-bottom: 15px; }
.footer-contact p i { margin-right: 10px; color: var(--primary-red); }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}
.social-links a:hover { background: var(--primary-red); transform: translateY(-5px); }
.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.whatsapp-float:hover { background-color: #128C7E; transform: scale(1.1); }

/* --- Services Section (Final Corrected Style) --- */

.new-services-section {
    padding: 80px 0;
    background-color: #922c2a;
    background-image:
        radial-gradient(circle at 95% 20%, rgba(255,255,255,0.1) 1px, transparent 2px),
        radial-gradient(circle at 98% 25%, rgba(255,255,255,0.1) 1px, transparent 2px);
    background-size: 30px 30px;
    position: relative;
}

.section-title-white {
    text-align: center;
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 70px;
    font-family: 'Montserrat', sans-serif;
}

/* 1. The Grid Container */
.new-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

/* 2. The Link That Wraps The Card */
.service-card-link {
    text-decoration: none;
    display: flex; /* This is important for stretching the card inside */
}

/* 3. The Card Itself - Now with Flexbox for alignment */
.new-service-card {
    background: #ffffff;
    border-radius: 12px;
    text-align: center;
    padding: 25px;
    position: relative;
    margin-top: 45px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
    width: 100%; /* Make card fill the link container */
    
    /* These flexbox rules are the key to the solution */
    display: flex;
    flex-direction: column;
}

.new-service-card:hover {
    transform: translateY(-10px);
}

/* 4. The Hexagon Icon */
.new-service-icon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: #fbc100;
    width: 90px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
}

.new-service-icon i {
    font-size: 2.8rem;
    color: #333;
}

/* 5. The Content Area */
.new-service-content {
    padding-top: 55px;
    display: flex;
    flex-direction: column;
    flex-grow: 0; /* This makes the content area fill all available space */
}

.new-service-content h3 {
    color: #922c2a;
    font-size: 1.4rem;
    font-weight: 600;
    padding-bottom: 30px; /* Add space between title and arrow */
}

/* 6. The Arrow Icon (Now inside the content area) */
.service-card-link .new-service-card::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #ffffff;
    background: var(--primary-red);
    height: 40px;
    width: 40px;
    border-radius: 50%;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    
    /* Position the arrow at the bottom of the card */
    position: static; /* Remove absolute positioning */
    margin: 0 auto; /* Center the arrow horizontally */
}

.service-card-link .new-service-card::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute; /* Changed to absolute */
    bottom: 25px; /* Position from the bottom */
    right: 25px; /* Keep consistent with original request for right positioning */
    color: #ffffff;
    background: var(--primary-red);
    height: 40px;
    width: 40px;
    border-radius: 50%;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

/* Company Overview Section */
.company-overview { text-align: center; }
.overview-text p {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    color: var(--medium);
}
.core-values-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: var(--dark);
}
.core-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
}
.value-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.value-item i { font-size: 2.5rem; color: var(--primary-red); margin-bottom: 15px; }
.value-item h4 { font-size: 1.2rem; margin-bottom: 10px; }
.value-item p { margin-bottom: 0; color: var(--medium); }

/* Mission and Vision Section */
.mission-vision-section { padding: 80px 0; }
.mission-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}
.mission-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}
.mission-header {
    background-color: var(--dark-red);
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: -15px;
    position: relative;
    z-index: 2;
}
.mission-header h3 { font-size: 1.1rem; margin: 0; text-transform: uppercase; color: #ffffff; }
.mission-body {
    background: #ffffff;
    border: 3px solid #fbc100;
    padding: 40px 30px 25px 30px;
    border-radius: 12px;
}
.mission-body p { margin: 0; color: var(--medium); line-height: 1.7; }
.mission-list .mission-item:nth-child(2) { animation-delay: 0.2s; }
.mission-list .mission-item:nth-child(3) { animation-delay: 0.4s; }

/* Certificate Slider Section */
.certificate-slider-container { position: relative; padding: 0 50px; }
.certificate-slider-wrapper { width: 100%; overflow: hidden; }
.certificate-slider { display: flex; gap: 25px; transition: transform 0.5s ease-in-out; }
.certificate-slide {
    flex: 0 0 400px;
    background: #ffffff;
    border-radius: 8px;
    padding: 35px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    text-align: center;
    border: 1px solid #e0e0e0;
}
.certificate-slide img {
    height: 150px;
    width: 100%; /* Changed from 150% to 100% to prevent overflow */
    object-fit: contain;
    margin-bottom: 25px;
}
.certificate-slide h4 { font-size: 1.3rem; color: var(--dark); margin: 0; }
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-red);
    color: #ffffff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: var(--transition);
}
.slider-btn:hover { background-color: var(--dark-red); }
.slider-btn.prev-btn { left: 0; }
.slider-btn.next-btn { right: 0; }
.slider-btn:disabled { background-color: #cccccc; cursor: not-allowed; opacity: 0.5; }

/* Simple Client Logos Grid */
.clients-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    align-items: center;
}
.client-logo-box {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.client-logo-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-red);
}
.client-logo-box img { max-height: 80px; width: auto; margin-bottom: 20px; }
.client-logo-box h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 5px;
    line-height: 1.3;
}

/* --- Responsive Styles --- */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    
    .about-content,
    .contact-wrapper,
    .choose-us-content {
        grid-template-columns: 1fr;
    }
    .about-image { order: -1; }

    .page-header-container { flex-direction: column; }
    .page-header-image { min-height: 300px; clip-path: none; }
    .page-header-text h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
    }
    nav.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    nav ul { flex-direction: column; padding: 20px 0; }
    nav ul li { margin: 0; text-align: center; }
    nav ul li a { display: block; padding: 12px 20px; }
    
    .header-container .contact-info { display: none; }
    
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .hero-btns { flex-direction: column; gap: 15px; }

    .certificate-slider-container { padding: 0; }
    .slider-btn { display: none; }
    .certificate-slider-wrapper { overflow-x: auto; }
}

@media (max-width: 576px) {
    .section { padding: 60px 0; }
    .stat-box h3 { font-size: 2rem; }
    .about-stats { grid-template-columns: 1fr; }
}