/*
Theme Name: DevPortfolio
Theme URI: https://eslamdev.com/devportfolio
Author: EsLaM Hamed
Author URI: https://eslamdev.com
Description: A premium, high-performance WordPress theme for developers. Features dedicated sections for Plugins, Scripts, Templates, and Projects with deep Elementor integration and WooCommerce e-commerce support.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: devportfolio
Tags: portfolio, one-column, custom-colors, custom-logo, theme-options, rtl-language-support, footer-widgets, featured-images
Tested up to: 6.4
Requires PHP: 7.4

DevPortfolio Theme, Copyright 2024 EsLaM
DevPortfolio is distributed under the terms of the GNU GPL v2 or later.
*/

/* Reset & Base */
:root {
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --primary-color: #6c5ce7;
    --secondary-color: #00cec9;
    --accent-color: #fd79a8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.5px;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Screen Reader Text - Required by WordPress */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* WordPress Required Classes */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5em;
}

.wp-caption img {
    display: block;
    max-width: 100%;
    height: auto;
}

.wp-caption-text {
    text-align: center;
    font-style: italic;
    color: var(--text-color);
    padding: 0.5em 0;
}

.sticky {
    display: block;
}

.gallery-caption {
    display: block;
    font-size: 0.875em;
    color: var(--text-color);
}

.bypostauthor {
    display: block;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* WooCommerce Overrides */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #fff;
}

.woocommerce span.onsale {
    background-color: var(--primary-color);
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 30px;
}