/* CSS Variables */
:root {
--primary-color: #00897b;
--secondary-color: #004d40;
--accent-color: #4db6ac;
--text-dark: #2c3e50;
--text-light: #636e72;
--bg-light: #f8f9fa;
--white: #ffffff;
--shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
--shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
--transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: var(--text-dark);
overflow-x: hidden;
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

/* Navigation */
.navbar {
background: var(--white);
box-shadow: var(--shadow);
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
transition: var(--transition);
}

.navbar .container {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 20px;
}

.nav-brand {
display: flex;
align-items: center;
gap: 10px;
font-size: 1.5rem;
font-weight: 700;
color: var(--primary-color);
}
.cta-item i {
font-size: 1.5rem;
}

.cta-item-lines {
display: flex;
flex-direction: column;
gap: 0.3rem;
text-align: left;
}

.nav-brand i {
font-size: 2rem;
}

.nav-menu {
display: flex;
list-style: none;
gap: 2rem;
}

.nav-menu a {
text-decoration: none;
color: var(--text-dark);
font-weight: 500;
transition: var(--transition);
position: relative;
}

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

.nav-menu a::after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 0;
height: 2px;
background: var(--primary-color);
transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
width: 100%;
}

/* Products dropdown */
.nav-dropdown {
position: relative;
}

.nav-dropdown > a {
display: flex;
align-items: center;
gap: 0.35rem;
}

.nav-dropdown > a i {
font-size: 0.7rem;
transition: var(--transition);
}

.nav-dropdown:hover > a i {
transform: rotate(180deg);
}

.dropdown-menu {
position: absolute;
top: calc(100% + 14px);
left: 50%;
transform: translate(-50%, -8px);
background: var(--white);
min-width: 250px;
box-shadow: var(--shadow-hover);
border-radius: 8px;
padding: 0.5rem 0;
list-style: none;
opacity: 0;
visibility: hidden;
transition: var(--transition);
z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
opacity: 1;
visibility: visible;
transform: translate(-50%, 0);
}

.dropdown-menu li {
list-style: none;
}

.dropdown-menu a {
display: block;
padding: 0.65rem 1.3rem;
color: var(--text-dark);
font-weight: 500;
font-size: 0.92rem;
white-space: nowrap;
}

.dropdown-menu a::after {
display: none;
}

.dropdown-menu a:hover {
background: var(--bg-light);
color: var(--primary-color);
}

.hamburger {
display: none;
flex-direction: column;
cursor: pointer;
gap: 5px;
}

.hamburger span {
width: 25px;
height: 3px;
background: var(--primary-color);
transition: var(--transition);
}

/* Hero Section */
.hero {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
position: relative;
margin-top: 60px;
color: var(--white);
text-align: center;
}

.hero-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.3);
}

.hero-content {
position: relative;
z-index: 1;
}

.hero h1 {
font-size: 3.5rem;
margin-bottom: 1rem;
animation: fadeInUp 1s ease;
}

.hero p {
font-size: 1.5rem;
margin-bottom: 2rem;
animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-buttons {
display: flex;
gap: 1rem;
justify-content: center;
animation: fadeInUp 1s ease 0.4s backwards;
}

/* Buttons */
.btn {
padding: 1rem 2rem;
border-radius: 50px;
text-decoration: none;
font-weight: 600;
transition: var(--transition);
display: inline-block;
border: 2px solid transparent;
}

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

.btn-primary:hover {
background: var(--secondary-color);
transform: translateY(-3px);
box-shadow: var(--shadow-hover);
}

.btn-secondary {
background: transparent;
color: var(--white);
border-color: var(--white);
}

.btn-secondary:hover {
background: var(--white);
color: var(--primary-color);
transform: translateY(-3px);
}

/* Section Title */
.section-title {
text-align: center;
margin-bottom: 3rem;
}

.section-title h2 {
font-size: 2.5rem;
color: var(--primary-color);
margin-bottom: 0.5rem;
}

.section-title p {
color: var(--text-light);
font-size: 1.1rem;
}

/* Features Section */
.features {
padding: 5rem 0;
background: var(--bg-light);
}

.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}

.feature-card {
background: var(--white);
padding: 2rem;
border-radius: 10px;
text-align: center;
box-shadow: var(--shadow);
transition: var(--transition);
}

.feature-card:hover {
transform: translateY(-10px);
box-shadow: var(--shadow-hover);
}

.feature-icon {
width: 80px;
height: 80px;
background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1.5rem;
}

.feature-icon i {
font-size: 2rem;
color: var(--white);
}

.feature-card h3 {
color: var(--primary-color);
margin-bottom: 1rem;
}

/* Products Preview */
.products-preview {
padding: 5rem 0;
}

.products-tabs {
margin-bottom: 2rem;
}

.tab-buttons {
display: flex;
gap: 1rem;
justify-content: center;
margin-bottom: 2rem;
}

.tab-btn {
padding: 0.8rem 2rem;
border: 2px solid var(--primary-color);
background: var(--white);
color: var(--primary-color);
border-radius: 50px;
cursor: pointer;
font-weight: 600;
transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
background: var(--primary-color);
color: var(--white);
}

.tab-content {
background: var(--bg-light);
padding: 2rem;
border-radius: 10px;
}

.tab-pane {
display: none;
}

.tab-pane.active {
display: block;
animation: fadeIn 0.5s ease;
}

.product-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
}

.product-item {
background: var(--white);
padding: 1.5rem;
border-radius: 8px;
text-align: center;
box-shadow: var(--shadow);
transition: var(--transition);
font-weight: 600;
color: var(--primary-color);
}

.product-item:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-hover);
}

.text-center {
text-align: center;
margin-top: 2rem;
}

/* About Preview */
.about-preview {
padding: 5rem 0;
background: var(--bg-light);
}

.about-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 3rem;
align-items: center;
}

.about-content h2 {
color: var(--primary-color);
font-size: 2.5rem;
margin-bottom: 1.5rem;
}

.about-content p {
margin-bottom: 1rem;
color: var(--text-light);
}

.about-list {
list-style: none;
margin: 2rem 0;
}

.about-list li {
padding: 0.5rem 0;
display: flex;
align-items: center;
gap: 10px;
}

.about-list i {
color: var(--primary-color);
}

.about-image .image-placeholder {
background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
height: 400px;
border-radius: 10px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: var(--white);
}

.about-image i {
font-size: 5rem;
margin-bottom: 1rem;
}

/* CTA Section */
.cta {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: var(--white);
padding: 5rem 0;
text-align: center;
}

.cta h2 {
font-size: 2.5rem;
margin-bottom: 1rem;
}

.cta p {
font-size: 1.2rem;
margin-bottom: 2rem;
}

.cta-contact {
display: flex;
gap: 3rem;
justify-content: center;
margin-bottom: 2rem;
}

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

.cta-item i {
font-size: 1.5rem;
}

/* Footer */
.footer {
background: var(--text-dark);
color: var(--white);
padding: 3rem 0 1rem;
}

.footer-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-bottom: 2rem;
}

.footer-col h3 {
color: var(--accent-color);
margin-bottom: 1rem;
}

.footer-col ul {
list-style: none;
}

.footer-col ul li {
margin-bottom: 0.5rem;
}

.footer-col a {
color: var(--white);
text-decoration: none;
transition: var(--transition);
}

.footer-col a:hover {
color: var(--accent-color);
}

.contact-info li {
display: flex;
align-items: flex-start;
gap: 10px;
margin-bottom: 1rem;
}

.social-links {
display: flex;
gap: 1rem;
margin-top: 1rem;
}

.social-links a {
width: 40px;
height: 40px;
background: var(--primary-color);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: var(--transition);
}

.social-links a:hover {
background: var(--accent-color);
transform: translateY(-3px);
}

.footer-bottom {
text-align: center;
padding-top: 2rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}

/* ==========================================================
   Compound / Product data cards (products.html enrichment)
   ========================================================== */
.compound-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}

.compound-card {
background: var(--white);
border-radius: 10px;
overflow: hidden;
box-shadow: var(--shadow);
transition: var(--transition);
display: flex;
flex-direction: column;
}

.compound-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-hover);
}

.compound-image {
background: var(--bg-light);
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
height: 190px;
}

.compound-image img {
max-height: 100%;
max-width: 100%;
object-fit: contain;
}

.compound-body {
padding: 1.5rem;
flex: 1;
display: flex;
flex-direction: column;
}

.compound-body h3 {
color: var(--primary-color);
margin-bottom: 0.4rem;
}

.compound-syn {
color: var(--text-light);
font-size: 0.88rem;
margin-bottom: 1rem;
font-style: italic;
}

.compound-specs {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
gap: 0.75rem;
margin-bottom: 0.75rem;
}

.compound-code-label {
font-weight: 600;
color: var(--text-light);
font-size: 0.78rem;
display: block;
margin-bottom: 0.25rem;
text-transform: uppercase;
letter-spacing: 0.5px;
}

.compound-code {
background: var(--bg-light);
padding: 0.6rem 0.8rem;
border-radius: 5px;
font-family: 'Courier New', Courier, monospace;
font-size: 0.76rem;
word-break: break-all;
color: var(--text-dark);
margin-top: 0.35rem;
}

.compound-link {
margin-top: auto;
padding-top: 0.75rem;
font-size: 0.85rem;
}

.compound-link a {
color: var(--primary-color);
text-decoration: none;
font-weight: 600;
}

.compound-link a:hover {
text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
.hamburger {
display: flex;
}

.nav-menu {
position: fixed;
top: 70px;
right: -100%;
width: 100%;
background: var(--white);
flex-direction: column;
padding: 2rem;
box-shadow: var(--shadow);
transition: var(--transition);
}

.nav-menu.active {
right: 0;
}

.dropdown-menu {
position: static;
opacity: 1;
visibility: visible;
transform: none;
box-shadow: none;
background: var(--bg-light);
border-radius: 6px;
margin-top: 0.5rem;
display: none;
}

.nav-dropdown.open .dropdown-menu {
display: block;
}

.nav-dropdown:hover .dropdown-menu {
transform: none;
}

.nav-dropdown > a i {
margin-left: auto;
}

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

.hero p {
font-size: 1.2rem;
}

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

.about-grid {
grid-template-columns: 1fr;
}

.cta-contact {
flex-direction: column;
gap: 1rem;
}
}
