/*
 Theme Name: SimpleClean
 Theme URI: https://haroldnixon.com/themes/SimpleClean
 Author: Harold Nixon
 Author URI: https://haroldnixon.com
 Description: A modern, clean, and responsive WordPress theme with a video/image hero section.
 Version: 1.1
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: simpleclean
 Tags: modern, minimal, responsive, blog, video-hero
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #1a1a1a;
}

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

header {
    background: #121212;
    color: #fff;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

header .site-branding {
    text-align: center;
}

header .site-branding h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 600;
}

header .site-branding h1 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

header .site-branding h1 a:hover {
    color: #00aaff;
}

nav {
    background: #222;
    padding: 1rem 0;
}

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

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 400;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #00aaff;
}

.hero-section {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-video, .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

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

.hero-content {
    text-align: center;
    color: #fff;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.hero-content a {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #00aaff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.hero-content a:hover {
    background: #0088cc;
}

main {
    padding: 2rem 0;
}

article {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #222;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

article:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

article h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

article h2 a {
    color: #00aaff;
    text-decoration: none;
    transition: color 0.3s ease;
}

article h2 a:hover {
    color: #fff;
}

article .post-meta {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

article .post-content {
    margin-bottom: 1rem;
}

article .read-more {
    color: #00aaff;
    text-decoration: none;
    font-weight: 600;
}

article .read-more:hover {
    color: #fff;
}

footer {
    background: #121212;
    color: #e0e0e0;
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #333;
}

/* Portfolio Template */
.portfolio-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    text-align: center;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.portfolio-item h4 a {
    color: #00aaff;
    text-decoration: none;
}

.portfolio-item h4 a:hover {
    color: #fff;
}

/* Services Template */
.service-item {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #222;
    border-radius: 8px;
}

.service-item h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Blog with Sidebar Template */
.blog-with-sidebar {
    display: flex;
    gap: 2rem;
}

.content-area {
    flex: 3;
}

.sidebar {
    flex: 1;
    background: #222;
    padding: 1rem;
    border-radius: 8px;
}

.widget {
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #00aaff;
}

@media (max-width: 768px) {
    .blog-with-sidebar {
        flex-direction: column;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    header .site-branding h1 {
        font-size: 1.8rem;
    }

    .hero-section {
        height: 60vh;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}