:root {
    --left-bg-color: rgba(0, 0, 0, 0.6);
    --right-bg-color: rgba(0, 0, 0, 0.6);
    --hover-width: 75%;
    --other-width: 25%;
    --speed: 1000ms;
    --primary-color: #333;
    --accent-color: #007bff;
    --text-color: #333;
    --light-bg: #f4f4f4;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    background-color: #333;
}

/* Subpage Overrides */
body.subpage {
    overflow-y: auto;
    height: auto;
    background-color: var(--light-bg);
    color: var(--text-color);
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.language-switcher select {
    padding: 10px;
    border-radius: 5px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    cursor: pointer;
    font-weight: bold;
}

/* Navbar (Subpages) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    height: 90px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section (Subpages) */
.hero {
    height: 70vh; /* Increased height */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-attachment: fixed; /* Parallax effect */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* Slightly lighter overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: #fff;
}

/* Section Styles */
.section {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto 0;
}

.section-title-left {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
}

.section-title-left::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px 0 0;
}

/* Layout Utilities */
.container-narrow {
    max-width: 1100px;
    margin: 0 auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.row.reverse {
    flex-direction: row-reverse;
}

.col-text {
    flex: 1;
    min-width: 300px;
}

.col-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
    font-size: 1rem;
    text-shadow: none; /* Reset shadow from hero p */
}

.col-img {
    flex: 1;
    min-width: 300px;
}

.col-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Mission Vision Cards */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card-mv {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-top: 4px solid var(--accent-color);
}

.card-mv:hover {
    transform: translateY(-5px);
}

.card-mv i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.card-mv h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card-mv p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    text-shadow: none;
}

/* Values Section */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.value-item {
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    transition: background 0.3s;
}

.value-item:hover {
    background: rgba(255,255,255,0.05);
}

.value-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    display: block;
}

.value-item span {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Utility Classes */
.bg-light {
    background-color: #f9f9f9;
}

.bg-dark {
    background-color: #222;
}

.text-white {
    color: #fff;
}

.text-white .section-title {
    color: #fff;
}

/* Cards Grid (Products) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
    text-shadow: none;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    aspect-ratio: 1 / 1; /* Square thumbnails */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: #fff;
    font-size: 2rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

/* Contact Section */
.contact-info h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.contact-info a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--accent-color);
}

.col-map iframe {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: #fff;
    padding: 2rem 5%;
    text-align: center;
}

footer p {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-shadow: none;
}

/* Container (Landing) */
.container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #333;
}

/* Split Divs */
.split {
    position: absolute;
    width: 50%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    transition: width var(--speed) ease-in-out;
}

.split.left {
    left: 0;
    background: url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center center no-repeat;
    background-size: cover;
}

.split.right {
    right: 0;
    background: url('https://images.unsplash.com/photo-1558769132-cb1aea458c5e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center center no-repeat;
    background-size: cover;
}

/* Overlay */
.split .overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--left-bg-color);
    transition: background-color 0.3s ease;
}

.split.right .overlay {
    background-color: var(--right-bg-color);
}

/* Hover Effects */
.split:hover .overlay {
    background-color: rgba(0, 0, 0, 0.3);
}

.container.hover-left .left {
    width: var(--hover-width);
}

.container.hover-left .right {
    width: var(--other-width);
}

.container.hover-right .right {
    width: var(--hover-width);
}

.container.hover-right .left {
    width: var(--other-width);
}

/* Content (Landing) */
.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    white-space: nowrap;
    z-index: 10;
    transition: all var(--speed) ease-in-out;
}

h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

p {
    font-size: 1.5rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Responsive */
@media(max-width: 800px) {
    h1 { font-size: 2rem; }
    p { font-size: 1rem; }
    .container.hover-left .left,
    .container.hover-left .right,
    .container.hover-right .left,
    .container.hover-right .right {
        width: 50%; 
    }
    
    .nav-links {
        display: none; /* Mobile menu to be implemented if needed, or simple hide for now */
    }

    .row {
        flex-direction: column;
    }

    .row.reverse {
        flex-direction: column;
    }

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