/* EcoIP Brand Colors & Quikle Standard Variables */
:root {
    --primary-green: #7CB518;
    --primary-dark: #5a8a0d;
    --secondary-black: #1a1a1a;
    --text-grey: #4a4a4a;
    --white: #FFFFFF;
    --light-green-bg: #E8F5E9;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* Base Styles & Mesh Background */
body {
    font-family: 'Inter', sans-serif;
    color: var(--secondary-black);
    background-color: #f4f7f4;
    background-image: 
        radial-gradient(at 0% 0%, rgba(124, 181, 24, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(124, 181, 24, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--secondary-black);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-green);
}

.text-grey {
    color: var(--text-grey);
}

.bg-light-green {
    background-color: var(--light-green-bg);
}

.section-padding {
    padding: 80px 0;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(124, 181, 24, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 181, 24, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    padding: 15px 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 75px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-green);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-green);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 180px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero-home { background: linear-gradient(rgba(26,26,26,0.7), rgba(26,26,26,0.7)), url('../assets/images/hero-bg-home.jpg') center/cover no-repeat; color: white; }
.hero-solar { background: linear-gradient(rgba(26,26,26,0.7), rgba(26,26,26,0.7)), url('../assets/images/hero-bg-solar.jpg') center/cover no-repeat; color: white; }
.hero-telecoms { background: linear-gradient(rgba(26,26,26,0.7), rgba(26,26,26,0.7)), url('../assets/images/hero-bg-telecoms.jpg') center/cover no-repeat; color: white; }
.hero-printers { background: linear-gradient(rgba(26,26,26,0.7), rgba(26,26,26,0.7)), url('../assets/images/hero-bg-printers.jpg') center/cover no-repeat; color: white; }
.hero-surveillance { background: linear-gradient(rgba(26,26,26,0.7), rgba(26,26,26,0.7)), url('../assets/images/hero-bg-security.jpg') center/cover no-repeat; color: white; }
.hero-cybersecurity { background: linear-gradient(rgba(26,26,26,0.7), rgba(26,26,26,0.7)), url('../assets/images/hero-bg-cyber.jpg') center/cover no-repeat; color: white; }
.hero-education { background: linear-gradient(rgba(26,26,26,0.7), rgba(26,26,26,0.7)), url('../assets/images/hero-bg-education.jpg') center/cover no-repeat; color: white; }
.hero-ai { background: linear-gradient(rgba(26,26,26,0.7), rgba(26,26,26,0.7)), url('../assets/images/hero-bg-ai.jpg') center/cover no-repeat; color: white; }
.hero-finance { background: linear-gradient(rgba(26,26,26,0.7), rgba(26,26,26,0.7)), url('../assets/images/hero-bg-finance.jpg') center/cover no-repeat; color: white; }
.hero-about { background: linear-gradient(rgba(26,26,26,0.7), rgba(26,26,26,0.7)), url('../assets/images/hero-bg-about.jpg') center/cover no-repeat; color: white; }
.hero-contact { background: linear-gradient(rgba(26,26,26,0.7), rgba(26,26,26,0.7)), url('../assets/images/hero-bg-contact.jpg') center/cover no-repeat; color: white; }

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Grids & Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.glass-card, .service-card, .feature-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

.glass-card:hover, .service-card:hover, .feature-item:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-green);
    box-shadow: 0 20px 40px rgba(124, 181, 24, 0.12);
}

.service-icon {
    font-size: 40px;
    color: var(--primary-green);
    margin-bottom: 20px;
    background: rgba(124, 181, 24, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(124, 181, 24, 0.2));
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: var(--primary-green);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(124, 181, 24, 0.3);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-grey);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.service-link {
    color: var(--primary-green);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-link:hover {
    gap: 10px;
}

/* Split Sections (Images left/right of text) */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 40px;
}

.split-section.reverse {
    direction: rtl;
}

.split-section.reverse > * {
    direction: ltr;
}

.split-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.split-image:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 25px 50px rgba(124, 181, 24, 0.25);
}

/* Infinite Testimonial Marquee */
.testimonial-section {
    overflow: hidden;
    padding: 60px 0;
    background: rgba(124, 181, 24, 0.03);
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
}

.marquee-container::before, .marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #f4f7f4, transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #f4f7f4, transparent);
}

.marquee-track {
    display: inline-flex;
    gap: 30px;
    padding-left: 30px;
    animation: scroll-left 35s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    width: 400px;
    flex-shrink: 0;
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(124, 181, 24, 0.1);
    white-space: normal;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
}

.testimonial-card i {
    color: var(--primary-green);
    font-size: 24px;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-grey);
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.testimonial-card h5 {
    margin: 0;
    color: var(--secondary-black);
    font-size: 1rem;
}

.testimonial-card span {
    font-size: 0.8rem;
    color: var(--primary-green);
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.8)), url('../assets/images/cta-bg.jpg') center/cover;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.cta-banner h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Contact Page Specific Styles */
.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-card, .contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-green);
    background: var(--light-green-bg);
    padding: 15px;
    border-radius: 50%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(124, 181, 24, 0.1);
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--secondary-black);
    color: #ccc;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--primary-green);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.quikle-link {
    color: var(--primary-green);
    font-weight: 600;
}

/* Chatbot Widget & Animations */
@keyframes pulse-ring {
    0% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(124, 181, 24, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(124, 181, 24, 0); }
    100% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(124, 181, 24, 0); }
}

@keyframes vibrate {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.chatbot-toggle {
    width: 65px;
    height: 65px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(124, 181, 24, 0.4);
    animation: pulse-ring 2.5s infinite;
    transition: transform 0.2s ease;
}

.chatbot-toggle:hover {
    animation: vibrate 0.3s linear infinite both;
}

.chatbot-window {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 360px;
    height: 520px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
    transform-origin: bottom right;
}

.chatbot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-dark));
    color: var(--white);
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.bot-message {
    background: var(--white);
    color: var(--secondary-black);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.user-message {
    background: var(--primary-green);
    color: var(--white);
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.chat-input-area {
    padding: 15px;
    background: var(--white);
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    padding: 10px 18px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.chat-input:focus {
    border-color: var(--primary-green);
}

.chat-send {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

/* Reveal Animation Setup */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: 0.4s ease-in-out;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .split-section, .split-section.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .chatbot-window {
        width: calc(100vw - 40px);
        right: 20px;
        height: 450px;
    }
}