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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: lightgrey;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Header & Navigation */
header {
    background: #ffffff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    height: 50px;
    width: auto;
}

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

.nav-links a {
    color: #0D2A6C;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #0D2A6C;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D42027;
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    color: #fff;
    padding: 120px 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.75) 0%, rgba(45, 45, 45, 0.75) 50%, rgba(26, 26, 26, 0.75) 100%);
    pointer-events: none;
    z-index: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
    animation: slideInDown 0.8s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #ccc;
    animation: slideInUp 0.8s ease 0.2s both;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #D42027;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(212, 32, 39, 0.3);
    animation: slideInUp 0.8s ease 0.4s both;
}

.cta-button:hover {
    background: #0D2A6C;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(13, 42, 108, 0.5);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* About Section */
.about {
    padding: 80px 2rem;
    background: #fff;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    background: #ffffff;
}

.about p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Tools banner between About and Services */
.tools-banner {
    background-image: url(/images/toolbox.webp); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    max-width: 1200px;
    margin: 0 auto;
    height: 500px;
}

.tools-banner-red{
    background-image: url(/images/toolsred.webp); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    max-width: 1200px;
    margin: 0 auto;
    height: 500px;
}

/* Services Section */
.services {
    padding: 100px 2rem;
    background: #f8f9fa;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #0D2A6C;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #D42027 0%, #D42027 100%);
    border-radius: 2px;
}

.services-tagline {
    text-align: center;
    font-size: 1.2rem;
    font-style: italic;
    color: #666;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    /* Show 3 cards per row on larger screens */
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Responsive breakpoints: 2 columns until ~600–900px, then 1 column on small phones */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.service-card {
    background: lightgrey;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-top: 4px solid transparent;

    /* Make cards square and keep background images covering */
    aspect-ratio: 1 / 1;
    width: 100%;
    min-height: 220px; /* fallback for older browsers */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-top-color: #D42027;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: #0D2A6C;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #0D2A6C;
}

.service-card p {
    color: #666;
    line-height: 1.8;
}



/* Why Choose Us Section */
.why-choose {
    padding: 100px 2rem;
    background: #fff;
    max-width: 1200px;
    margin: 0 auto;
}

.why-choose-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.why-choose-list li {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 1.1rem;
    color: #333;
    text-align: center;
    border-left: 4px solid #D42027;
    transition: transform 0.3s ease;
}

.why-choose-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Gallery Section */
.gallery {
    padding: 100px 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.7) 0%, rgba(247, 147, 30, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ddd 0%, #eee 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

/* Testimonials */
.testimonials {
    padding: 100px 2rem;
    background: #1a1a1a;
    color: #fff;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials .section-title {
    color: #fff;
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #ff6b35;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.stars {
    color: #fff;
    background: #D42027;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-text {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #ccc;
}

/* Footer & Social icons */
footer {
    padding: 40px 2rem;
    background: #0D2A6C;
    color: #fff;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    padding-bottom: 20px;
    flex-wrap: wrap;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: #0D2A6C;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(13, 42, 108, 0.12);
}

.social-icon i {
    font-size: 18px;
}

/* Footer bottom */
.footer-bottom {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 20px;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

.testimonial-author {
    font-weight: 600;
    color: #fff;
}

.testimonial-role {
    font-size: 0.9rem;
    color: #ff6b35;
}

/* CTA Section */
.cta-section {
    background-image: url(/images/toolsblue2.webp); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 2rem;
    text-align: center;
    color: #fff;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button-secondary:hover {
    background: #0D2A6C;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 107, 53, 0.3);
}

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

.footer-section h4 {
    color: #D42027;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: #ff6b35;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(13, 42, 108, 0.1);
    border: 2px solid #0D2A6C;
    border-radius: 50%;
    color: #0D2A6C;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #0D2A6C;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(13, 42, 108, 0.3);
}

/* Brand-specific social icon styling */
.social-icon[aria-label="WhatsApp"] {
    background: #25D366; /* WhatsApp green */
    border-color: #25D366;
    color: #fff;
}
.social-icon[aria-label="WhatsApp"]:hover {
    background: #20b855; /* slightly darker on hover */
    border-color: #20b855;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.22);
    transform: translateY(-6px) scale(1.03);
}

.social-icon[aria-label="Instagram"] {
    background: linear-gradient(45deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
    border: none;
    color: #fff;
}
.social-icon[aria-label="Instagram"] i {
    filter: drop-shadow(0 1px 0 rgba(0,0,0,0.15));
}
.social-icon[aria-label="Instagram"]:hover {
    box-shadow: 0 10px 30px rgba(136, 17, 153, 0.18);
    transform: translateY(-6px) scale(1.03);
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: 500px;
        padding: 80px 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .hero p {
        font-size: 1rem;
    }
}