/* --- GENERAL & VARIABLES --- */
:root {
    --primary-green: #2ECC71;
    --primary-blue: #3498DB;
    --dark-blue: #2c3e50;
    --light-grey: #ecf0f1;
    --white: #ffffff;
    --text-color: #34495e;
    --text-light: #7f8c8d;
    --gradient: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --border-radius: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: #f8f9fa; 
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    background-color: #f8f9fa;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    color: var(--dark-blue);
    font-weight: 600;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- HEADER --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 10px;
}

header nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    padding: 10px 15px;
    font-weight: 600;
    transition: color 0.3s ease;
    border-radius: 8px;
}

header nav ul li a:hover {
    color: var(--primary-blue);
    background-color: var(--light-grey);
}

.lang-selector select {
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

/* --- HERO SECTION --- */
.hero {
    background: var(--dark-blue);
    color: var(--white);
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/clean-gray-paper.png');
    opacity: 0.05;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 700;
}
.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
    line-height: 1.7;
}
.cta-button {
    display: inline-block;
    background: var(--gradient);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: none;
    font-size: 1rem;
    cursor: pointer;
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* --- STATS SECTION --- */
.stats-section {
    background-color: var(--white);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}
.stat-item { padding: 20px; }
.stat-value {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* --- SOLUTIONS SECTION --- */
.solutions-section {
    background-color: #f8f9fa;
}

.sector-container {
    margin-bottom: 60px;
}

.producer-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin: 60px 0 40px 0;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    align-items: stretch; /* Makes cards in a row the same height */
}

.solution-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.solution-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--light-grey);
}
.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows content to fill space */
}

.card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    line-height: 1.4;
}

.card-content p {
    margin: 0 0 20px 0;
    line-height: 1.6;
    color: var(--text-light);
    flex-grow: 1; /* Pushes content below it down */
}

.card-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.benefits-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 20px 0;
}
.benefits-list li {
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 8px;
}
.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.tech-tag {
    background-color: var(--light-grey);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.pricing-cta-container {
    margin-top: auto; /* Pushes button to the very bottom */
    padding-top: 20px;
    border-top: 1px solid var(--light-grey);
}

.pricing-cta {
    background: var(--gradient);
    padding: 12px 15px;
    border-radius: 50px;
    text-align: center;
    color: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.pricing-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}
.pricing-cta-value { 
    font-size: 1.2rem; 
    font-weight: 700; 
    color: var(--white); 
    line-height: 1.2; 
}
.pricing-cta-desc { 
    font-size: 0.8rem; 
    font-weight: 500; 
    color: var(--white); 
    opacity: 0.9; 
    line-height: 1; 
}

/* --- PORTFOLIO & CLIENTS --- */
.portfolio-section, .clients-section, .commitment-section,.contact-section, #about { background-color: var(--white); }
.portfolio-description { text-align: center; max-width: 800px; margin: -40px auto 60px; font-size: 1.1rem; line-height: 1.7; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; }
.portfolio-item h3 { text-align: center; margin-bottom: 20px; }
.embed-container { position: relative; padding-bottom: 75%; height: 0; overflow: hidden; max-width: 100%; background: #f0f0f0; border-radius: var(--border-radius); box-shadow: var(--card-shadow); }
.embed-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: var(--border-radius); }
.clients-grid { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 40px; filter: grayscale(100%); opacity: 0.7; }
.clients-grid img { max-height: 60px; max-width: 150px; transition: filter 0.3s ease, opacity 0.3s ease; }
.clients-grid img:hover { filter: grayscale(0%); opacity: 1; }
.commitment-grid { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 40px; filter: grayscale(50%); opacity: 0.7; }
.commitment-grid img { max-height: 100px; max-width: 200px; transition: filter 0.3s ease, opacity 0.3s ease; }
.commitment-grid img:hover { filter: grayscale(0%); opacity: 1; }
#about p {
    max-width: 800px;
    margin: -40px auto 0;
    text-align: center;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* --- CONTACT SECTION --- */
.contact-section > .container > p { text-align: center; max-width: 600px; margin: -40px auto 60px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-form form { display: flex; flex-direction: column; gap: 20px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 8px; font-family: 'Poppins', sans-serif; font-size: 1rem; transition: border-color 0.3s ease; box-sizing: border-box; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary-blue); }
.contact-details h3 { margin-top: 0; font-size: 1.5rem; margin-bottom: 20px; }
.office { margin-bottom: 25px; }
.office strong { font-size: 1.1rem; color: var(--dark-blue); }
.office p { margin: 5px 0 0 0; }
.office p a { color: var(--primary-blue); text-decoration: none; transition: color 0.3s; }
.office p a:hover { color: var(--primary-green); }

/* --- PRODUCT PAGE --- */
.product-page { padding: 60px 0; background-color: var(--white); }
.product-header { text-align: center; margin-bottom: 40px; }
.product-title { font-size: 3.2rem; margin-bottom: 10px; font-weight: 700; }
.product-media { margin-bottom: 50px; }
.product-media img, .product-media video, .product-media iframe { width: 100%; height: auto; max-height: 600px; object-fit: cover; border-radius: var(--border-radius); box-shadow: var(--card-shadow); }
.product-core-details { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; margin-bottom: 60px; align-items: start; }
.product-description { font-size: 1.1rem; line-height: 1.8; color: var(--text-color); }
.product-meta-section { background: #f8f9fa; padding: 30px; border-radius: var(--border-radius); border: 1px solid var(--light-grey); position: sticky; top: 100px; }
.section-title { font-size: 1.8rem; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; }
.section-title .material-icons { color: var(--primary-blue); font-size: 2.2rem; }
.product-gallery, .product-resources { margin-top: 60px; padding-top: 60px; border-top: 1px solid var(--light-grey); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.gallery-grid img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--border-radius); box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.gallery-grid img:hover { transform: scale(1.05); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.gallery-video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--border-radius); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.gallery-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.resources-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.resource-list h4 { font-size: 1.2rem; margin-bottom: 15px; border-bottom: 2px solid var(--primary-green); padding-bottom: 10px; }
.resource-list ul { list-style: none; padding: 0; margin: 0; }
.resource-list li a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-color); padding: 12px 0; border-bottom: 1px solid #e0e0e0; transition: color 0.3s ease; font-weight: 500; }
.resource-list li a:hover { color: var(--primary-blue); }
.resource-list li a .material-icons { color: var(--primary-green); }

/* --- 4CORDINALS HUB SECTION --- */
.cordinals-hub {
    background-color: var(--white);
    border: 1px solid var(--light-grey);
    padding: 40px;
    border-radius: var(--border-radius);
    margin-top: 40px;
}
.hub-title {
    text-align: center;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 40px;
    position: relative;
}
.hub-title::after { content: ''; display: block; width: 50px; height: 3px; background: var(--gradient); margin: 10px auto 0; border-radius: 2px; }
.cordinals-grid { display: flex; justify-content: center; align-items: stretch; flex-wrap: wrap; gap: 20px; }
.cardinal-card, .resultant-card { background: #f8f9fa; border-top: 4px solid var(--primary-green); border-radius: var(--border-radius); padding: 25px; text-align: center; flex-basis: 28%; flex-grow: 1; min-width: 280px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); display: flex; flex-direction: column; }
.cardinal-header { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 15px; }
.cardinal-header .material-icons { color: var(--primary-green); font-size: 2.5rem; }
.cardinal-header h3 { margin: 0; font-size: 1rem; color: var(--text-light); text-transform: uppercase; font-weight: 500; }
.cardinal-card h4 { margin: 0 0 10px 0; font-size: 1.3rem; color: var(--dark-blue); flex-grow: 1; }
.cardinal-card p { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--text-light); }
.connector { display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--primary-blue); opacity: 0.5; }
.resultant-arrow { width: 100%; text-align: center; font-size: 3rem; color: var(--primary-blue); margin: 10px 0; }
.resultant-card { background: var(--dark-blue); color: var(--white); flex-basis: 100%; border-top: 4px solid var(--primary-blue); }
.resultant-card .cardinal-header .material-icons, .resultant-card .cardinal-header h3, .resultant-card h4 { color: var(--white); }

/* --- FOOTER --- */
footer {
    background: var(--dark-blue);
    color: var(--light-grey);
    text-align: center;
    padding: 40px 0;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 992px) {
    header .container { flex-direction: column; height: auto; padding: 20px; }
    header nav ul { margin-top: 15px; flex-wrap: wrap; justify-content: center; }
    .contact-grid, .product-core-details, .resources-grid { grid-template-columns: 1fr; }
    .product-meta-section { position: static; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    header nav ul li a { padding: 5px 10px; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .solutions-grid { grid-template-columns: 1fr; }
    .product-title { font-size: 2.2rem; }
}

