
:root {
    --primary: #c1272d;
    --secondary: #434343;
    --accent: #7f8793;
    --dark: #222222;
    --light: #f5f5f5;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--light);
    color: #333;
    line-height: 1.6;
}

/* Navigation */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.container {
    width: 90%;
    max-width:70%;
    margin: 0 auto;
    padding: 0 20px;
}

.container1 {
    max-width:85%;
    margin: 0 auto;
    padding: 0 20px;
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

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

.logo img {
    height: 65px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    font-size: 20px;
    color: var(--secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

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

.nav-links a:hover:after {
    width: 100%;
}

.mobile-menu {
    display: none;
    cursor: pointer;
}

.hero {
    margin-top: 0px;
    padding-bottom: 40px;
    height: calc(100vh);
    background: linear-gradient(135deg, rgba(193, 39, 45, 0.05) 0%, rgba(34, 34, 34, 0.05) 100%);
    display: flex;
    align-items: center;
}

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

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    color: var(--dark);
    line-height: 1.2;
    font-weight: 800;
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #555;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(193, 39, 45, 0.3);
}

.btn a {
    font-size: 1.2rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(193, 39, 45, 0.4);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
    margin-left: 15px;
    box-shadow: 0 4px 15px rgba(51, 51, 51, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(51, 51, 51, 0.4);
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-image { flex: 1; position: relative; height: 600px; }

/* Impact Stats */
.impact-stats {
    margin-top: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(193, 39, 45, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
}

.stat-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #777;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.stat-description {
    color: #777;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* About Section */
.section {
    padding: 80px 0 100px 0;
}

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

.section-header h2 {
    text-align: center;
    font-size: 3rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    font-weight: 700;
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    font-size: 1.1rem;
    color: #555;
    margin-top: 25px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 100px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-block: 15px;
    color: var(--dark);
    font-weight: 600;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.2rem;
}


.about-image {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 500px;
    perspective: 1000px;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* Improved image styling */
.about-image .arm-container,
.about-image .leg-container {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--bg-color);
    padding: 10px;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.6s ease;
}

.dark .about-image .arm-container,
.dark .about-image .leg-container {
    background-color: #252525;
}

.about-image .arm-container {
    width: 80%;
    top: 0;
    right: 0;
    z-index: 2;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
    animation: float 6s ease-in-out infinite;
    transform: rotate(5deg);
}

.about-image .leg-container {
    width: 70%;
    bottom: 0%;
    left: 0;
    z-index: 1;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
    animation: float 6s ease-in-out 2s infinite;
    transform: rotate(-5deg);
}

.about-image .leg-container:hover {
    z-index: 3; /* instant, but higher layering */
    transform: translateY(-10px) rotate(0deg) scale(1.03);
    box-shadow: 0 20px 40px rgba(93, 92, 222, 0.2);
    opacity: 1;
}

.dark .about-image .arm-container,
.dark .about-image .leg-container {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-image .arm-container:hover,
.about-image .leg-container:hover {
    transform: translateY(-5px) rotate(0deg);
    box-shadow: 0 15px 30px rgba(93, 92, 222, 0.1);
}

/* Animation */
@keyframes float {
    0% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
    100% { transform: translateY(0) rotate(5deg); }
}

@keyframes float-reverse {
    0% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-10px) rotate(-5deg); }
    100% { transform: translateY(0) rotate(-5deg); }
}

/* Responsive styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        gap: 80px;
    }

    .about-image {
        margin-top: 50px;
        order: -1;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .about-text h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0 80px 0;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .about-text h3 {
        font-size: 1.6rem;
    }

    .about-text p {
        font-size: 1.1rem;
    }

    .about-image {
        min-height: 400px;
    }
}

@media (max-width: 576px) {
    .about-image .arm-container,
    .about-image .leg-container {
        position: relative;
        width: 85%;
        margin: 20px auto;
        display: block;
    }

    .about-image .arm-container {
        margin-bottom: -40px;
    }

    .about-image {
        min-height: auto;
        padding: 40px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* Features */
.features {
    background-color: #f9f9f9;
}

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

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(193, 39, 45, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--primary);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-block: 15px;
    padding-top: 10px;
    color: var(--dark);
    font-weight: 600;
}

/* Process */
.process-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    position: relative;
}

.process-steps:before {
    content: '';
    position: absolute;
    width: 95%;
    height: 3.5px;
    background-color: #e0e0e0;
    top: 90px;
    left: 2.5%;
    z-index: -1;
}

.step {
    text-align: center;
    width: 30%;
    position: relative;
}

.step-number {
    width: 70px;
    height: 70px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 20px;
    z-index: 1;
    position: relative;
}

.step:nth-child(2) .step-number {
    background-color: var(--secondary);
    color: white;
}

.step:nth-child(3) .step-number {
    background-color: var(--accent);
}

.step h3 {
    margin-top: 50px;
    margin-bottom: 30px;
    color: var(--dark);
    font-weight: 700;
    font-size: 1.8rem;
}

.process-images {
  display: flex;
  justify-content: space-between; /* keeps even space between items */
  align-items: center;            /* vertically centers them in the row */
  gap: 1rem;                      /* explicit space between each flex item */
  margin-top: 40px;
}

.process-image {
    flex: 3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: flex;
  justify-content: center;  /* horizontal centering */
  align-items: center;    
}

.process-image img {
    width: 95%;
    height: 350px;
    border-radius: 3%;
    object-fit: cover;
    transition: var(--transition);
}

.process-image:hover img {
    transform: scale(1.05);
}

/* Team */
.team {
    background-color: #f9f9f9;
}

.team-member {
    text-align: center;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-info {
    padding: 20px;
}

.team-info h3 {
    margin-bottom: 5px;
    color: var(--dark);
    font-weight: 600;
}

.team-role {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

.team-bio {
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: #555;
    transition: var(--transition);
}

.social-links a:hover svg {
    fill: white;
}

/* Partners */
.partners-slider {
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    height: 100px;
}

.slider-track {
    display: flex;
    animation: scroll 40s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.partner {
    min-width: 200px;
    height: 130px;
    margin: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner img {
    max-height: 100px;
    opacity: 0.9;
    transition: var(--transition);
}

.partner:hover img {
    filter: grayscale(1);
    opacity: 1;
}

/* Impact Stats in Services Section */
.detailed-stats {
    background-color: rgba(193, 39, 45, 0.1);
    border-radius: 10px;
    padding: 40px;
    margin-top: 100px;
}

.detailed-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.detailed-stats-title {
    flex: 2;
}

.detailed-stats-title h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.detailed-stats-title p {
    color: #555;
}

.detailed-stats-cta {
    flex: 1;
    text-align: right;
}

.detailed-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .detailed-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .detailed-stats-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .detailed-stats-cta {
        text-align: center;
    }
}

.detailed-stat-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.detailed-stat-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #777;
    margin-bottom: 10px;
}

.detailed-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.detailed-stat-description {
    font-size: 0.9rem;
    color: #777;
}

/* Contact Section (New) */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

.contact-form-container {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px; /* Minimum for mobile */
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(193, 39, 45, 0.1);
}

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

.form-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.form-submit:hover {
    background-color: #a51d23;
}

.form-success {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #2e7d32;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
}

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

.contact-info-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.contact-info-header p {
    color: #555;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-info-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(193, 39, 45, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--primary);
}

.contact-info-content h4 {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.contact-info-content p {
    color: #555;
    font-size: 1.1rem;
}

.contact-social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.contact-social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.contact-social-links a:hover {
    background-color: var(--primary);
}

.contact-social-links svg {
    width: 20px;
    height: 20px;
    fill: #555;
    transition: var(--transition);
}

.contact-social-links a:hover svg {
    fill: white;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-logo {
    margin-bottom: 20px;
}

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

.footer-about p {
    margin-bottom: 20px;
    color: #ccc;
    line-height: 1.8;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
}

.footer-heading:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
    bottom: 0;
    left: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #ccc;
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
    margin-right: 10px;
    margin-top: 3px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text, .hero-image {
        flex: none;
        width: 100%;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text, .about-image {
        flex: none;
        width: 100%;
    }
    
    .process-steps:before {
        display: none;
    }
    
    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .step {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .process-images {
        flex-direction: column;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --light: #222;
        --dark: #f5f5f5;
    }
    
    body {
        background-color: #222;
        color: #f5f5f5;
    }
    
    header {
        background-color: #333;
    }
    
    .feature-card, .contact-form-container, .team-member, .detailed-stat-card, .stat-card {
        background-color: #333;
    }
    
    .features, .team {
        background-color: #2a2a2a;
    }
    
    .form-control {
        background-color: #444;
        border-color: #555;
        color: #fff;
    }
    
    .nav-links a {
        color: #f5f5f5;
    }
    
    footer {
        background-color: #111;
    }
    
    .form-success {
        background-color: rgba(76, 175, 80, 0.1);
        border-color: rgba(76, 175, 80, 0.3);
        color: #81c784;
    }
    
    .contact-info-content h4, .contact-info-header h3, 
    .detailed-stat-value, .stat-value, .detailed-stat-title, .stat-title {
        color: #f5f5f5;
    }
    
    .contact-info-content p, .contact-info-header p,
    .detailed-stat-description, .stat-description {
        color: #ccc;
    }
}


