:root {
    --primary-color: #4CAF50; /* Green from logo */
    --secondary-color: #FFA500; /* Orange from logo */
    --text-color: #333;
    --background-color: #fff;
    --background-light: #f4f4f4;
    --border-color: #ddd;
    --dark-mode-bg: #1a1a1a;
    --dark-mode-text: #f4f4f4;
    --dark-mode-surface: #2c2c2c;
    --dark-mode-border: #444;
    --header-height: 80px;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    --text-color: var(--dark-mode-text);
    --background-color: var(--dark-mode-bg);
    --background-light: var(--dark-mode-surface);
    --border-color: var(--dark-mode-border);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
}

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

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
header {
    background-color: var(--background-light);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: background-color 0.3s, border-color 0.3s;
}

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

header .logo img {
    height: 60px;
    width: auto;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

header nav ul li {
    margin-left: 25px;
}

header nav ul li a {
    color: var(--text-color);
    font-weight: bold;
    padding: 10px 0;
    position: relative;
}

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

header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

header nav ul li a.active::after,
header nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ======================
   Logo Styles 
   ====================== */
.circular-logo {
    border-radius: 50%;
    width: 100px; 
    height: 100px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.footer-logo .circular-logo {
    width: 80px;
    height: 80px;
}

/* Dark Mode Toggle - Compact Version */
.toggle-mode {
    position: absolute; /* Changed from fixed to absolute */
    top: 10px; /* Reduced from 20px */
    right: 10px; /* Reduced from 20px */
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 4px; /* Further reduced gap */
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px; /* Smaller padding */
    border-radius: 50px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Lighter shadow */
    font-size: 0.7em; /* Smaller text */
}

.switch {
    position: relative;
    display: inline-block;
    width: 26px; /* Further reduced from 30px */
    height: 14px; /* Further reduced from 16px */
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 14px; /* Match height */
}

.slider:before {
    position: absolute;
    content: "";
    height: 10px; /* Further reduced from 12px */
    width: 10px; /* Further reduced from 12px */
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

/* Adjust translateX for smaller slider */
input:checked + .slider:before {
    transform: translateX(12px); /* Reduced from 14px */
}

/* Dark mode background */
body.dark-mode .toggle-mode {
    background: rgba(0, 0, 0, 0.7);
}
/* Main Content */
main {
    padding-top: 20px; /* Adjust if header is fixed */
}

section {
    padding: 60px 0;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: url('../images/hero-placeholder.jpg') no-repeat center center/cover; /* Add a placeholder or real image */
    background-color: var(--primary-color); /* Fallback color */
    color: #fff;
    text-align: center;
    padding: 100px 0;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: normal;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-buttons a {
    margin: 0 10px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

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

.btn.primary:hover {
    background-color: #3e8e41; /* Darker green */
    color: #fff;
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn.secondary:hover {
    background-color: #e69500; /* Darker orange */
    color: #fff;
    transform: translateY(-2px);
}

/* About Section */
.about {
    background-color: var(--background-light);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.core-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.value-item {
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.value-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.value-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

body.dark-mode .service-card:hover {
    box-shadow: 0 5px 15px rgba(255,255,255,0.1);
}

.service-icon i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.service-card p {
    margin-bottom: 20px;
}

/* Gallery Section */
.gallery {
    background-color: var(--background-light);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.gallery-placeholder {
    background-color: var(--border-color);
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    opacity: 0.7;
}

.gallery-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Buy/Sell Sections */
.buy, .sell {
    background-color: var(--background-color);
}

.buy-content, .sell-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.buy-text, .sell-text {
    flex: 1;
}

.buy-text h3, .sell-text h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.materials-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.materials-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.materials-list i {
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 0.7em;
}

.cta-box {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 5px;
    margin-top: 30px;
    border: 1px solid var(--border-color);
}

.cta-box h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cta-box p {
    margin-bottom: 20px;
}

/* Contact Section */
.contact {
    background-color: var(--background-light);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info h3, .contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.info-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-right: 15px;
    width: 20px; /* Align icons */
    text-align: center;
}

.social-media {
    margin-top: 20px;
}

.social-icon {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-right: 15px;
}

.social-icon:hover {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--background-color);
    color: var(--text-color);
    box-sizing: border-box; /* Include padding in width */
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.form-group textarea {
    resize: vertical;
}

.contact-form button {
    width: auto;
}

/* Footer */
footer {
    background-color: var(--dark-mode-bg); /* Use dark bg for footer always? Or match theme? */
    color: var(--dark-mode-text);
    padding: 40px 0 20px;
    margin-top: 40px;
}

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

.footer-logo img {
    height: 50px;
    margin-bottom: 10px;
}

.footer-logo p {
    font-weight: bold;
}

footer h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    color: var(--dark-mode-text);
    opacity: 0.8;
}

footer ul li a:hover {
    color: var(--secondary-color);
    opacity: 1;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--dark-mode-border);
    font-size: 0.9em;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        width: 95%;
    }
    .section-title {
        font-size: 2rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    header .container {
        position: relative;
    }
    header nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--background-light);
        border-top: 1px solid var(--border-color);
        display: none; /* Initially hidden */
        flex-direction: column;
        padding: 10px 0;
    }
    header nav.active {
        display: flex; /* Show when active */
    }
    header nav ul {
        flex-direction: column;
        width: 100%;
    }
    header nav ul li {
        margin: 10px 0;
        text-align: center;
    }
    .mobile-menu {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    .toggle-mode {
        position: absolute;
        right: 60px; /* Adjust position */
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }
    .about-content {
        flex-direction: column;
    }
    .contact-content {
        flex-direction: column;
    }
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content h2 {
        font-size: 1.2rem;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .core-values {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

