/* 
    COMASDI BTP & Services - Design System
    Colors: Dark Green, White, Black
*/

:root {
    --primary: #1B4332;
    --primary-dark: #081C15;
    --primary-light: #2D6A4F;
    --white: #ffffff;
    --black: #0c0c0c;
    --gray-light: #f4f4f4;
    --gray-medium: #888888;
    --text-dark: #1a1a1a;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.btn {
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
}

.bg-dark {
    background-color: var(--primary);
    color: var(--white);
}

.bg-black {
    background-color: var(--black);
    color: var(--white);
}

.bg-overlay {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.bg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 28, 21, 0.85);
    /* primary-dark with opacity */
    z-index: -1;
}

/* Typography Helpers */
.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary);
}

.stats.bg-overlay::before {
    background: rgba(8, 28, 21, 0.9);
    /* Darker overlay for logos */
}

.stats p {
    color: var(--white);
    opacity: 0.9;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(27, 67, 50, 0.3);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background-color: var(--gray-light);
    transform: translateY(-2px);
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    margin-top: -80px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--primary);
}

/* Animations and Reveals */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-down {
    transform: translateY(-40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-zoom {
    transform: scale(0.9);
}

.reveal.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Staggered reveals */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* Section Backgrounds & Overlays */
.bg-overlay {
    position: relative;
    background-position: center !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    overflow: hidden;
}

.bg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 28, 21, 0.9), rgba(27, 67, 50, 0.7));
    z-index: 1;
}

.bg-overlay .container {
    position: relative;
    z-index: 2;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Floating WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* President's Word Section */
.president-word {
    padding: 120px 0;
    background-color: var(--primary);
    /* Visibility improvement */
    color: var(--white);
}

.president-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.president-image {
    position: relative;
}

.president-image img {
    border-radius: 12px;
    box-shadow: 20px 20px 0 var(--primary-light);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.president-content h2.section-title::after {
    left: 0;
    transform: none;
}

.president-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.president-text p {
    margin-bottom: 1.5rem;
}

.president-info {
    margin-top: 2rem;
}

.president-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.president-title {
    font-size: 1rem;
    color: var(--gray-medium);
    font-weight: 600;
}

.quote-box {
    position: relative;
    padding-left: 2rem;
    border-left: 4px solid var(--primary);
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--primary-dark);
}

/* =====================
   WHY US SECTION
   ===================== */
.why-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.why-card:hover {
    transform: translateY(-8px);
    border-top: 4px solid var(--primary);
    box-shadow: 0 12px 40px rgba(27, 67, 50, 0.15);
}

.why-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    color: var(--white);
}

.why-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
    color: var(--text-dark);
}

.why-card p {
    color: var(--gray-medium);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =====================
   PROJECT CARDS
   ===================== */
.project-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: var(--transition);
    background: var(--white);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.project-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
    color: var(--text-dark);
}

.project-info p {
    color: var(--gray-medium);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tags span {
    background: var(--gray-light);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

/* =====================
   PROCESS SECTION
   ===================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.process-step {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.process-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-light);
    opacity: 0.5;
    line-height: 1;
    flex-shrink: 0;
}

.process-content h3 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.process-content p {
    color: rgba(255,255,255,0.65);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* =====================
   TESTIMONIALS
   ===================== */
.testimonial-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
    transition: var(--transition);
    border-left: 5px solid var(--primary);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(27,67,50,0.12);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.2rem;
}

.testimonial-text {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--gray-medium);
}

/* =====================
   SERVICES DETAILED
   ===================== */
.services-detailed {
    background-color: var(--white);
}

.service-argument {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}

.service-argument:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(27, 67, 50, 0.1);
    border-color: var(--primary-light);
}

.service-header i {
    background: var(--gray-light);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: var(--transition);
}

.service-argument:hover .service-header i {
    background: var(--primary);
    color: var(--white) !important;
}

.service-body ul li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.service-body ul li i {
    font-size: 1rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .president-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .president-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .process-step {
        flex-direction: column;
        gap: 0.5rem;
    }
}

footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 80px 0 40px;
    transition: background-color 0.3s ease;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-light);
}

footer h3,
footer h4 {
    color: var(--white);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }
}