/* --- Global Styles & Variables --- */
:root {
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --primary-green: #2ecc71; /* A vibrant mid-green */
    --light-green: #90ee90;  /* A lighter, techy green from the logo */
    --dark-green: #1a5d2b;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
}

h1 { font-size: 3rem; background: linear-gradient(90deg, var(--light-green), var(--primary-green)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
h2 { font-size: 2.5rem; text-align: center; color: var(--primary-green); margin-bottom: 2rem; }
h3 { font-size: 1.5rem; color: var(--light-green); }
p { margin-bottom: 1rem; }

/* --- Header & Navigation --- */
header {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(46, 204, 113, 0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
}

header ul {
    display: flex;
    list-style: none;
}

header ul li a {
    text-decoration: none;
    color: var(--text-color);
    padding: 0 1rem;
    transition: color 0.3s ease;
}

header ul li a:hover {
    color: var(--primary-green);
}


/* --- HERO SECTION BANNER LAYOUT --- */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center;     
    padding: 100px 2rem 2rem; 
    background: var(--bg-color) url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><g fill="%231a5d2b" fill-opacity="0.1"><circle fill-rule="evenodd" cx="1" cy="1" r="1"/><circle fill-rule="evenodd" cx="1" cy="1" r="1"/></g></svg>');
}

.hero-content {
    width: 100%;
    max-width: 1000px; 
    text-align: center;
}

.logo-hero {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin-bottom: 3rem; 
}

.hero-text-content p {
    font-size: 1.1rem;
    max-width: 650px; 
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--light-green), var(--primary-green));
    color: #000;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-family: var(--font-heading);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none; /* Ensure buttons don't have borders */
    cursor: pointer; /* Make it look clickable */
    font-size: 1rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.2);
}

/* --- Content Sections --- */
.content-section {
    padding: 6rem 0;
    text-align: center;
}

#about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === INDEX PAGE STYLES === */
.principles-heading {
    margin-top: 5rem;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: var(--primary-green);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: left;
}

.principle-card {
    background: #1a1a1a;
    padding: 2rem;
    border-left: 4px solid var(--dark-green);
    border-radius: 4px;
}

.principle-card h4 {
    color: var(--light-green);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.principle-card p {
    margin-bottom: 0;
    color: #c0c0c0;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
    margin-top: 3rem;
}

.solution-card {
    background: #111;
    padding: 2rem;
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
}

/* === SERVICES PAGE STYLES === */

.light-bg {
    background-color: #111; 
}

.section-subheading {
    font-size: 2.2rem;
    color: #fff;
    text-align: center;
    margin-top: 5rem;
    padding-top: 5rem;
    border-top: 1px solid rgba(46, 204, 113, 0.2);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.two-col-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.single-col-grid {
    grid-template-columns: 1fr;
    max-width: 800px; 
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: #1a1a1a;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(46, 204, 113, 0.1);
    border-left: 4px solid var(--dark-green);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.service-card:not(.service-card--clickable):hover {
    border-left-color: var(--primary-green);
}

.service-card h3 {
    color: var(--light-green);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card .service-benefit {
    color: #c0c0c0;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.service-details-list {
    list-style: none;
    padding-left: 0;
    margin-top: auto; 
}

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

.service-details-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

.service-card--clickable {
    cursor: pointer;
}

.service-card--clickable:hover {
    transform: translateY(-8px); 
    border-left-color: var(--light-green); 
    background-color: #222;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4); 
}

/* === INTEGRATIONS SHOWCASE STYLES === */
#integrations-showcase {
    padding-top: 0; 
}
.tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}
.tool-tag {
    background-color: #1a1a1a;
    border: 1px solid rgba(46, 204, 113, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}
.tool-tag:hover {
    background-color: #222;
}
.tool-tag img {
    height: 20px;
    width: 20px;
    margin-right: 0.75rem;
}


/* --- Footer --- */
footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(46, 204, 113, 0.2);
    font-size: 0.9rem;
    color: #888;
}

/* === MODAL STYLES === */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.modal-container.modal-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #1c1c1c;
    padding: 2rem 3rem;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    border-top: 4px solid var(--primary-green);
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}

.modal-container.modal-open .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2.5rem;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-content h2 {
    text-align: left;
    margin-bottom: 2rem;
}
.modal-content h4 {
    font-family: var(--font-heading);
    color: var(--light-green);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.modal-content p, .modal-content li {
    font-size: 1rem;
    color: var(--text-color);
    text-align: left;
    line-height: 1.7;
}

.modal-benefit-group {
    margin-bottom: 2rem;
}

.modal-benefit-group ul {
    list-style: none;
    padding-left: 0;
}
.modal-benefit-group li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 0.8rem;
}

.modal-benefit-group li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-green);
    font-weight: bold;
}

/* --- NEW: Iframe Modal Styles --- */
.modal-content--iframe {
    padding: 1rem; /* Less padding for iframe modals */
    max-width: 650px; /* A good width for a form */
    background-color: #1a1a1a; /* Match form background */
}

.modal-iframe {
    width: 100%;
    height: 75vh; /* Responsive height */
    max-height: 580px; /* Max height for the form */
    border-radius: 6px;
    background-color: #0a0a0a; /* Match form body for seamless look */
}


/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    
    header .container {
        flex-direction: column;
        height: auto;
        padding-top: 10px;
    }

    header ul {
        padding: 10px 0;
    }

    .services-grid, .two-col-grid, .single-col-grid, .solutions-grid, .principles-grid {
        grid-template-columns: 1fr;
    }

    .section-subheading {
        margin-top: 4rem;
        padding-top: 4rem;
        font-size: 1.8rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-content--iframe {
        padding: 0.5rem;
    }

    .modal-iframe {
        height: 85vh;
    }
}
