/* --- CSS VARIABLES --- */
:root {
    --bg-color: #e0e5ec;
    --primary-red: #D32F2F;
    --accent-red: #ff6b6b; 
    --text-main: #2d3436;
    --text-muted: #636e72;
    
    /* Neumorphism Shadows */
    --shadow-light: #ffffff;
    --shadow-dark: #a3b1c6;
    
    --radius-btn: 50px;
    --radius-card: 30px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.text-red { color: var(--primary-red); }

/* Neumorphic Classes */
.neu-flat {
    background: var(--bg-color);
    box-shadow: 8px 8px 16px var(--shadow-dark), 
               -8px -8px 16px var(--shadow-light);
    border-radius: var(--radius-card);
    border: 1px solid rgba(255,255,255,0.4);
}

/* --- BUTTONS (Convex) --- */
.neu-convex {
    background: var(--bg-color);
    box-shadow: 6px 6px 12px var(--shadow-dark), 
               -6px -6px 12px var(--shadow-light);
    border-radius: var(--radius-btn);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    color: var(--primary-red);
    font-weight: 600;
    
    /* FIXES FOR SHRINKING BUTTONS */
    padding: 15px 40px;      
    font-size: 1rem;          
    min-height: 50px;         /* Prevents buttons from looking short */
    gap: 10px;               /* Adds space between icon and text */
}

.neu-convex:hover { transform: translateY(-2px); color: var(--accent-red); }

.neu-convex:active {
    box-shadow: inset 6px 6px 12px var(--shadow-dark), 
               inset -6px -6px 12px var(--shadow-light);
    transform: translateY(0);
}

/* --- INPUTS (Concave) --- */
input.neu-concave, textarea.neu-concave {
    background: var(--bg-color);
    box-shadow: inset 6px 6px 12px var(--shadow-dark), 
               inset -6px -6px 12px var(--shadow-light);
    border-radius: 20px;
    border: none;
    outline: none;
    transition: 0.3s;
    width: 100%;
    
    /* FIXES FOR INPUT SIZE (Height) */
    padding: 20px 25px; /* Tall inputs */
    font-family: inherit;
    font-size: 1rem; /* Readable font size */
    color: var(--text-main);
}

input.neu-concave:focus, textarea.neu-concave:focus {
    box-shadow: inset 6px 6px 12px var(--shadow-dark), 
               inset -6px -6px 12px var(--shadow-light), 
               0 0 0 2px rgba(211, 47, 47, 0.1);
}

textarea.neu-concave {
    height: 180px; /* Taller text area */
    line-height: 1.6;
    resize: none;
}

/* --- SPECIAL BUTTON: 'GET QUOTE' (a.neu-concave) --- */
/* We separate 'a.neu-concave' so it looks like a button, not an input */
a.neu-concave {
    background: var(--bg-color);
    box-shadow: inset 3px 3px 6px var(--shadow-dark), 
               inset -3px -3px 6px var(--shadow-light); /* Softer inner shadow */
    border-radius: var(--radius-btn);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    color: var(--text-main); /* Dark text */
    font-weight: 600;
    
    /* FIXES FOR GET QUOTE BUTTON */
    padding: 15px 40px; /* Matches other button size */
    min-height: 50px;
    text-decoration: none;
}

a.neu-concave:hover { transform: translateY(-2px); }

/* --- HEADER --- */
header {
    position: sticky;
    top: 20px;
    z-index: 1000;
    padding: 10px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

.logo { font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.logo i { font-size: 1.8rem; color: var(--primary-red); text-shadow: 2px 2px 4px rgba(0,0,0,0.1); }

/* --- FIX: LOGO IMAGE SIZING --- */
.logo img {
    height: 50px;       /* Adjust this value to make logo taller or shorter */
    width: auto;        /* Keeps image from stretching/distorting */
    object-fit: contain; /* Ensures whole logo is visible */
    display: block;
}

.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-links a { font-weight: 500; position: relative; padding: 10px; border-radius: 12px; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-red); box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light); }

.nav-btn { padding: 12px 30px; }
.mobile-toggle { display: none; font-size: 1.5rem; padding: 10px; border-radius: 12px; cursor: pointer; }

/* --- HERO --- */
.hero { min-height: 90vh; display: flex; align-items: center; padding-top: 40px; }
.hero-content { flex: 1; padding-right: 60px; }

.hero-badge {
    display: inline-block; padding: 8px 24px; border-radius: 30px; font-size: 0.85rem; font-weight: 600;
    color: var(--primary-red); margin-bottom: 24px;
    box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
    letter-spacing: 1px; text-transform: uppercase;
}

.hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 24px; }
.hero p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 40px; max-width: 520px; line-height: 1.8; }

.hero-image { flex: 1; position: relative; display: flex; justify-content: center; }

.blob-card {
    width: 500px; height: 500px; border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    overflow: hidden; position: relative; z-index: 2;
    box-shadow: 20px 20px 60px var(--shadow-dark), -20px -20px 60px var(--shadow-light);
    animation: morph 8s ease-in-out infinite; border: 2px solid rgba(255,255,255,0.5);
}

@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    50% { border-radius: 60% 40% 30% 70% / 60% 40% 50% 60%; }
    100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

/* --- CLIENTS SLIDER --- */
.clients-section { 
    padding: 50px 0; 
    overflow: hidden; 
    background: linear-gradient(to right, var(--bg-color), #ebf0f5, var(--bg-color)); 
}

.marquee-wrapper { display: flex; overflow: hidden; width: 100%; }

.marquee-content { 
    display: flex; 
    align-items: center; 
    gap: 60px; /* Adjust gap if logos are too close or too far */
    animation: scroll 25s linear infinite; 
    padding: 0 40px; 
    width: max-content; /* Ensures content doesn't shrink */
}

/* --- FIX: CLIENT LOGO SIZING (Same height, Original Colors) --- */
.client-logo {
    height: 50px;
    width: auto;      /* Keeps aspect ratio */
    
    /* --- DEBUGGING LINES --- */
    min-width: 120px;       /* Forces width even if image breaks */
    
    /* ---------------------- */

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.client-logo img {
    height: 100%;     /* Fills container height */
    width: auto;      /* Keeps original width/height ratio */
    object-fit: contain; /* Ensures logo is fully visible inside box */
    display: block;
}

/* Hover: Zooms slightly, NO color change */
.client-logo:hover {
    transform: scale(1.1); 
}

@keyframes scroll { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}

/* --- COUNTERS --- */
.counters-wrapper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px; }
.counter-card { padding: 40px 20px; text-align: center; transition: 0.3s; }
.counter-card:hover { transform: translateY(-5px); }
.counter-number { font-size: 2.8rem; font-weight: 700; color: var(--primary-red); display: block; margin-bottom: 10px; }
.counter-label { font-size: 1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }

/* --- CTA BANNER --- */
.cta-section { padding: 80px 0; }
.cta-banner {
    background: var(--bg-color); padding: 60px; border-radius: 40px; display: flex; align-items: center; justify-content: space-between;
    position: relative; overflow: hidden;
    background-image: linear-gradient(120deg, var(--bg-color) 0%, #fceceb 100%);
    box-shadow: 10px 10px 30px var(--shadow-dark), -10px -10px 30px var(--shadow-light);
}
.cta-content { z-index: 2; max-width: 600px; }
.cta-content h2 { font-size: 2.2rem; margin-bottom: 15px; }
.cta-content p { color: var(--text-muted); margin-bottom: 30px; }

/* --- SERVICES (6 ITEMS) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Responsive Grid */
    gap: 40px;
}

.service-card { padding: 40px; transition: var(--transition); position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.service-card:hover { transform: translateY(-8px); }

.service-icon-wrapper {
    width: 70px; height: 70px; margin-bottom: 25px; border-radius: 20px; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--primary-red);
}

.service-card h3 { font-size: 1.35rem; margin-bottom: 15px; }
.service-card p { color: var(--text-muted); margin-bottom: 25px; line-height: 1.7; flex-grow: 1; }

.service-link { color: var(--primary-red); font-weight: 600; display: flex; align-items: center; gap: 8px; transition: 0.3s; }
.service-link:hover { gap: 15px; }

/* --- TESTIMONIALS SLIDER --- */
.testimonials-wrapper { position: relative; padding: 20px 0; }
.testimonial-slider {
    display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; padding: 20px 5px;
    -ms-overflow-style: none; scrollbar-width: none; 
}
.testimonial-slider::-webkit-scrollbar { display: none; }
.testimonial-slide { flex: 0 0 350px; scroll-snap-align: center; padding: 10px; }
.testimonial-card { padding: 40px; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.quote-icon { position: absolute; top: 30px; right: 30px; font-size: 3rem; color: rgba(211, 47, 47, 0.1); }
.user-info { display: flex; align-items: center; gap: 15px; margin-top: 25px; }
.user-avatar { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; border: 3px solid var(--bg-color); box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light); }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-details h4 { font-size: 1.1rem; margin-bottom: 2px; }
.user-details span { font-size: 0.85rem; color: var(--text-muted); }
.testimonial-text { font-style: italic; color: var(--text-main); line-height: 1.7; }

/* --- PAGE SPECIFIC: ABOUT (Timeline) --- */
.page-header { padding: 120px 0 60px; text-align: center; }
.page-header h1 { font-size: 3.5rem; margin-bottom: 20px; }
.story-section { display: flex; gap: 50px; align-items: center; margin-bottom: 80px; }
.story-img { flex: 1; border-radius: 30px; overflow: hidden; box-shadow: 15px 15px 30px var(--shadow-dark), -15px -15px 30px var(--shadow-light); }
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.story-text { flex: 1; }
.story-text h2 { font-size: 2.2rem; margin-bottom: 20px; }
.story-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; }

.timeline-container { position: relative; max-width: 1000px; margin: 0 auto 100px; padding: 40px 0; }
.timeline-container::after { content: ''; position: absolute; width: 4px; background-color: #d1d9e6; top: 0; bottom: 0; left: 50%; margin-left: -2px; border-radius: 2px; }
.timeline-item { padding: 10px 40px; position: relative; background-color: inherit; width: 50%; }
.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; }
.timeline-item::after {
    content: ''; position: absolute; width: 25px; height: 25px; right: -12.5px; background-color: var(--bg-color);
    border: 4px solid var(--primary-red); top: 20px; border-radius: 50%; z-index: 1;
    box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
}
.timeline-item.right::after { left: -12.5px; }
.timeline-content { padding: 30px; background-color: var(--bg-color); border-radius: var(--radius-card); box-shadow: 5px 5px 15px var(--shadow-dark), -5px -5px 15px var(--shadow-light); border: 1px solid rgba(255,255,255,0.4); position: relative; }
.timeline-year { font-size: 1.8rem; font-weight: 700; color: var(--primary-red); display: block; margin-bottom: 10px; }
.timeline-content h3 { margin-bottom: 10px; }
.timeline-content p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.value-card { padding: 40px; text-align: center; transition: 0.3s; }
.value-card:hover { transform: translateY(-5px); }
.value-icon { width: 60px; height: 60px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary-red); border-radius: 50%; box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light); }

/* --- PAGE SPECIFIC: SERVICES (Zig-Zag) --- */
.service-item { display: flex; align-items: center; gap: 60px; margin-bottom: 100px; }
.service-item:nth-child(even) { flex-direction: row-reverse; }
.service-img { flex: 1; border-radius: 40px; overflow: hidden; box-shadow: 15px 15px 30px var(--shadow-dark), -15px -15px 30px var(--shadow-light); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.service-img:hover img { transform: scale(1.05); }
.service-info { flex: 1; }
.service-icon { width: 70px; height: 70px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--primary-red); margin-bottom: 25px; box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light); }
.service-info h2 { font-size: 2.2rem; margin-bottom: 20px; }
.service-info p { color: var(--text-muted); line-height: 1.8; margin-bottom: 30px; font-size: 1.05rem; }
.service-list li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; color: var(--text-main); }
.service-list li i { color: var(--primary-red); }

/* --- PAGE SPECIFIC: TEAM --- */
.section-title { font-size: 2rem; margin-bottom: 40px; position: relative; display: inline-block; }
.section-title::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 40px; height: 4px; background: var(--primary-red); border-radius: 2px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.team-card { padding: 40px 20px 30px; text-align: center; position: relative; overflow: hidden; transition: 0.3s; }
.team-card:hover { transform: translateY(-10px); }
.avatar-wrapper { width: 140px; height: 140px; margin: 0 auto 25px; position: relative; z-index: 2; border-radius: 50%; box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light); padding: 5px; background: var(--bg-color); }
.avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.5); }
.team-info h3 { font-size: 1.3rem; margin-bottom: 5px; }
.team-role { color: var(--primary-red); font-weight: 500; margin-bottom: 15px; display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.team-bio { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 20px; }
.team-social { display: flex; justify-content: center; gap: 15px; }
.social-icon { width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: 0.3s; font-size: 0.9rem; box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light); }
.social-icon:hover { color: var(--primary-red); transform: scale(1.1); }
.director-highlight { display: flex; align-items: center; gap: 50px; margin: 80px 0; padding: 60px; border: 1px solid rgba(211, 47, 47, 0.1); }
.director-img { flex: 1; border-radius: 30px; overflow: hidden; box-shadow: 15px 15px 30px var(--shadow-dark), -15px -15px 30px var(--shadow-light); }
.director-img img { width: 100%; height: 100%; object-fit: cover; }
.director-text { flex: 1.2; }
.director-text h2 { font-size: 2.5rem; margin-bottom: 10px; }
.director-text span { color: var(--primary-red); font-size: 1.1rem; font-weight: 600; display: block; margin-bottom: 20px; }
.join-us-banner { background: linear-gradient(120deg, var(--bg-color) 0%, #fceceb 100%); padding: 60px; border-radius: 40px; text-align: center; box-shadow: 10px 10px 30px var(--shadow-dark), -10px -10px 30px var(--shadow-light); }

/* --- PAGE SPECIFIC: CONTACT --- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 80px; }
.why-card { padding: 30px; text-align: center; transition: 0.3s; }
.why-card:hover { transform: translateY(-5px); }
.why-icon { width: 60px; height: 60px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary-red); border-radius: 50%; box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light); }
.contact-wrapper { display: flex; gap: 50px; margin-bottom: 80px; }
.contact-info { flex: 1; padding: 50px; }
.info-item { margin-bottom: 30px; }
.info-item h3 { margin-bottom: 10px; font-size: 1.2rem; }
.info-item p { color: var(--text-muted); display: flex; align-items: center; gap: 15px; }
.info-item i { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--primary-red); border-radius: 50%; box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light); }
.contact-form-container { flex: 1.5; padding: 50px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 10px; font-weight: 500; color: var(--text-main); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 20px; }
.faq-item summary { padding: 20px; cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--primary-red); }
.faq-item[open] summary::after { content: '-'; }
.faq-item p { padding: 0 20px 20px; color: var(--text-muted); line-height: 1.6; }

/* --- FOOTER --- */
footer { padding: 80px 0 30px; background: var(--bg-color); margin-top: 60px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 60px; }
.footer-about p { color: var(--text-muted); margin-top: 20px; font-size: 0.95rem; line-height: 1.8; }
.footer-col h4 { margin-bottom: 25px; font-size: 1.2rem; }
.footer-links li { margin-bottom: 15px; }
.footer-links a { color: var(--text-muted); transition: 0.3s; }
.footer-links a:hover { color: var(--primary-red); padding-left: 5px; }
.newsletter input { width: 100%; padding: 15px 20px; margin-bottom: 15px; color: var(--text-main); }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-btn { width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: 0.3s; }
.social-btn:hover { color: var(--primary-red); transform: translateY(-3px); }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(0,0,0,0.05); color: var(--text-muted); font-size: 0.9rem; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-slide { flex: 0 0 300px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 20px; right: 20px; background: var(--bg-color); flex-direction: column; padding: 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); z-index: 999; }
    .nav-links.active { display: flex; }
    .mobile-toggle { display: block; }
    
    .hero { flex-direction: column; text-align: center; padding-top: 20px; }
    .hero-content { padding-right: 0; margin-bottom: 50px; }
    .hero p { margin: 0 auto 30px; }
    .hero-badge { margin: 0 auto 20px; }
    
    .blob-card { width: 100%; height: 350px; }
    .counters-wrapper { grid-template-columns: repeat(2, 1fr); }
    
    .cta-banner { flex-direction: column; text-align: center; gap: 30px; }
    .footer-top { grid-template-columns: 1fr; }
    
    .services-grid { grid-template-columns: 1fr; }
    .testimonial-slide { flex: 0 0 85vw; }
    
    /* About Responsive */
    .story-section { flex-direction: column; }
    .values-grid { grid-template-columns: 1fr; }
    .timeline-container::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item.left { text-align: left; }
    .timeline-item::after { left: 18px; }
    .timeline-item.right { left: 0; }
    
    /* Team Responsive */
    .director-highlight { flex-direction: column; }
    
    /* Contact Responsive */
    .contact-wrapper { flex-direction: column; }
    .why-grid { grid-template-columns: 1fr; }
    
    /* Form Adjustments for Mobile */
    .contact-form-container { padding: 30px 20px; }
    .neu-concave { padding: 18px 20px; }
}