/* CSS Reset and Variables */
:root {
    --primary: #168B5E;
    --primary-dark: #0B4A33;
    --primary-light: #E8F5EE;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #F8FAF9;
    --white: #FFFFFF;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    line-height: 1.2;
}

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 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-dark);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

/* Typography elements */
.section-title {
    margin-bottom: 40px;
}

.section-title .subtitle {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
    padding: 2px 0;
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.logo-img {
    height: 40px !important;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    color: var(--primary);
    font-size: 1.8rem;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-weight: 500;
    color: var(--text-main);
    font-size: 1rem;
}

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

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-dark);
}

.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(11, 74, 51, 0.9), rgba(22, 139, 94, 0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
}

.hero-tagline {
    display: block;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 40px;
    max-width: 100%;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.mv-card {
    background: var(--primary-light);
    padding: 20px;
    border-radius: 12px;
}

.mv-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.mv-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.mv-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.core-values-box {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--primary);
}

.core-values-box h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.core-values-box ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-muted);
}

.core-values-box ul li i {
    color: var(--primary);
}

/* Areas of Expertise Section */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.expertise-item {
    background: var(--white);
    border-radius: 14px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid var(--primary);
    transition: var(--transition);
    position: relative;
}

.expertise-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.expertise-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 12px;
}

.expertise-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.6rem;
    margin: 0 auto 15px;
    transition: var(--transition);
}

.expertise-item:hover .expertise-icon {
    background: var(--primary);
    color: var(--white);
}

.expertise-item h3 {
    font-size: 0.95rem;
    color: var(--primary-dark);
    line-height: 1.4;
    margin-bottom: 10px;
}

.view-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: auto;
}

.view-link:hover {
    text-decoration: underline;
}

/* Services Section */
.services-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-list {
    border-top: 1px solid #EEE;
    padding-top: 15px;
}

.service-list li {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.service-list li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* New Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: var(--transition);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 74, 51, 0.9), rgba(22, 139, 94, 0.4));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    color: var(--white);
    opacity: 0.9;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(11, 74, 51, 0.95), rgba(22, 139, 94, 0.6));
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.project-overlay .sector-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    background: var(--primary);
    padding: 4px 10px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 10px;
}

.project-overlay .view-details {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.sector-section {
    margin-bottom: 60px;
}

.sector-section h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-left: 5px solid var(--primary);
    padding-left: 15px;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-img {
    height: 80px !important;
    width: auto !important;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 1 !important;
}

.brand-col p {
    max-width: 300px;
    margin-bottom: 30px; /* Increased gap */
}

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

.social-icon {
    width: 42px; /* Slightly bigger */
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-5px);
    color: var(--white);
}

/* Individual Brand Colors on Hover */
.social-icon.facebook:hover { background-color: #1877F2; }
.social-icon.instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.social-icon.twitter:hover { background-color: #000000; }
.social-icon.linkedin:hover { background-color: #0A66C2; }
.social-icon.tiktok:hover { background-color: #000000; }

.footer h4 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

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

.links-col ul li {
    margin-bottom: 12px;
}

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

.contact-info li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Footer Newsletter Styling */
.footer-newsletter h4 {
    margin-bottom: 20px;
}

.footer-newsletter p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-newsletter .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-newsletter input {
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    outline: none;
}

.footer-newsletter .btn-subscribe {
    background: var(--primary);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.footer-newsletter .btn-subscribe:hover {
    background: var(--primary-dark);
}

/* Standalone Newsletter Section (If used elsewhere) */
.newsletter-section {
    background-color: var(--primary);
    padding: 60px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1));
    transform: skewX(-20deg);
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.newsletter-text h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--white);
}

.newsletter-text p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.newsletter-form .btn-subscribe {
    background: var(--primary-dark);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form .btn-subscribe:hover {
    background: #000;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .newsletter-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .newsletter-form {
        flex-direction: column;
    }
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Animations */
.animate-up,
.animate-left,
.animate-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-up.show,
.animate-left.show,
.animate-right.show {
    opacity: 1;
}

.animate-up.show {
    animation: slideUp 0.8s ease forwards;
}

.animate-left.show {
    animation: slideLeft 0.8s ease forwards;
}

.animate-right.show {
    animation: slideRight 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

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

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

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

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

/* Read More / Read Less Styles */
.project-brief {
    transition: var(--transition);
}

.project-brief.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    padding: 0;
    margin-top: 8px;
    font-size: 0.9rem;
    text-decoration: underline;
    transition: var(--transition);
}

.read-more-btn:hover {
    color: var(--primary-dark);
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .core-values-box {
        position: relative;
        bottom: 0;
        left: 0;
        margin-top: -30px;
        margin-left: 30px;
        margin-right: 30px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .expertise-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        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;
        align-items: center;
        gap: 20px;
    }

    .nav-cta {
        display: none;
    }

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

    .hero-tagline {
        font-size: 0.9rem;
        margin-top: 25px;
        opacity: 0.8;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .social-links {
        justify-content: center;
        margin-top: 20px;
    }

    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .projects-timeline::before {
        left: 20px;
    }

    .project-year {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }

    .project-item {
        gap: 15px;
    }

    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Sticky Countdown Banner */
.sticky-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    color: white;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.banner-text {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background-color: #ff3b3b;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(255, 59, 59, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 59, 59, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); }
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 8px;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 35px;
}

.time-box small {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.8;
}

.banner-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.banner-btn {
    background-color: white !important;
    color: var(--primary-dark) !important;
    border: none !important;
    padding: 8px 20px;
    font-size: 0.95rem;
}

.banner-btn:hover {
    background-color: var(--bg-light) !important;
    transform: translateY(-2px);
}

.close-banner {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.close-banner:hover {
    opacity: 1;
}

@media (max-width: 900px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
    
    .banner-actions {
        width: 100%;
        justify-content: space-between;
    }
}