/* Theme Variables */
:root {
  /* Light theme variables */
  --bg-primary: #f5f5f5;
  --bg-secondary: #e0e0e0;
  --text-primary: #333;
  --text-secondary: #555;
  --accent: #ff6b00;
  --accent-light: #ff8c33;
  --card-bg: #fff;
  --card-border: #ddd;
  --header-bg: #fff;
  --footer-bg: #222;
  --footer-text: #f0f0f0;
  --form-bg: #f9f9f9;
  --form-input-bg: #fff;
  --form-input-border: #ddd;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --accent-shadow: rgba(255, 107, 0, 0.2);
  --font-family: "Faster One", system-ui;
}

/* Dark theme variables */
[data-theme="dark"] {
  --bg-primary: #121212;
  --bg-secondary: #1c1c1c;
  --text-primary: #f0f0f0;
  --text-secondary: #ccc;
  --accent: #ff6b00;
  --accent-light: #ff8c33;
  --card-bg: #222;
  --card-border: #333;
  --header-bg: #121212;
  --footer-bg: #000;
  --footer-text: #f0f0f0;
  --form-bg: #222;
  --form-input-bg: #1a1a1a;
  --form-input-border: #333;
  --shadow-color: rgba(255, 107, 0, 0.2);
  --accent-shadow: rgba(255, 107, 0, 0.3);
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

.btn {
    display: inline-block;
    background: var(--accent);
    color: #000;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: bold;
    text-transform: uppercase;
}

.btn:hover {
    background: var(--accent-light);
}

/* Header */
header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px var(--shadow-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}
#logo_test {
    width: 10%;
    height: 10%px;
}
#worthless-energy {
    font-family: "Faster One", system-ui;
}

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

nav li {
    margin-left: 20px;
}

nav a {
    color: var(--text-primary);
    font-weight: 500;
    padding: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

nav a.active, 
nav a:hover {
    border-color: var(--accent);
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, #000, #333);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 107, 0, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.features h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--accent);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 3px 10px var(--shadow-color);
    transition: transform 0.3s;
    border-left: 3px solid var(--accent);
}

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

.feature h3 {
    margin-bottom: 15px;
    color: var(--accent);
}

/* CTA Section */
.cta {
    background: var(--accent);
    color: #000;
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    margin-bottom: 20px;
    font-weight: bold;
}

.cta p {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn {
    background: #000;
    color: var(--accent);
    font-weight: bold;
}

.cta .btn:hover {
    background: #222;
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 40px 0;
    border-top: 1px solid var(--accent);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social a {
    color: var(--footer-text);
    margin-left: 20px;
    transition: color 0.3s ease;
}

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

/* Page Header */
.page-header {
    background: linear-gradient(to right, #000, #333);
    color: var(--text-secondary);
    padding: 60px 0;
    text-align: center;
}

.page-header h2 {
    color: var(--accent);
}

/* About Page */
.about-content {
    padding: 60px 0;
}

.about-section {
    margin-bottom: 40px;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 5px;
    border-left: 3px solid var(--accent);
}

.about-section h3 {
    color: var(--accent);
    margin-bottom: 15px;
}

.about-section ul {
    margin-left: 20px;
    color: var(--text-primary);
}

/* Products Page */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid var(--card-border);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--accent-shadow);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #000, #333);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 3rem;
    border-bottom: 3px solid var(--accent);
}

.product-info {
    padding: 20px;
}

.product-title {
    margin: 0 0 10px 0;
    color: var(--accent);
}

.product-price {
    font-weight: bold;
    color: var(--text-primary);
    margin: 15px 0;
}

.product-button {
    display: inline-block;
    background: var(--accent);
    color: #000;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
}

.product-button:hover {
    background: var(--accent-light);
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.contact-form {
    background: var(--form-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
    border-left: 3px solid var(--accent);
}

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

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

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--form-input-border);
    background-color: var(--form-input-bg);
    color: var(--text-primary);
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    background: var(--form-bg);
    padding: 30px;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.contact-method {
    margin-bottom: 30px;
}

.contact-method h3 {
    color: var(--accent);
    margin-bottom: 10px;
}

.map-container {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #000, #333);
    color: var(--accent);
    border: 1px solid var(--accent);
}

/* Theme toggle switch */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
}
.theme-switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 50px;
}
.theme-switch input {
    display: none;
}
.slider {
    background-color: #333;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
}
.slider:before {
    background-color: var(--accent);
    bottom: 4px;
    content: "";
    height: 16px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 16px;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #666;
}
input:checked + .slider:before {
    transform: translateX(26px);
}
.theme-switch-wrapper .label {
    margin-left: 10px;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    header .container {
        flex-direction: column;
    }
    
    nav {
        margin-top: 20px;
    }
    
    nav li {
        margin: 0 10px;
    }
    
    footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    .social {
        margin-top: 20px;
    }
    
    .social a {
        margin: 0 10px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .theme-switch-wrapper {
        top: 70px;
    }
}