/*--------------------------------------------------------------
# Complete Earthtone Theme Styles
# Applies earthtone color palette to all theme sections and components
--------------------------------------------------------------*/

:root {
  /* Earthtone Color Palette */
  --earthtone-almond: #E3D5C5;      /* Lightest */
  --earthtone-khaki: #9E9B88;       /* Light neutral */
  --earthtone-ebony: #59614B;       /* Medium green */
  --earthtone-blackolive: #2D3126;  /* Dark green */
  --earthtone-black: #000000;       /* Darkest */
  
  /* Customizable Color Variables (overrideable via WordPress Customizer) */
  --theme-primary-bg: var(--earthtone-almond);
  --theme-secondary-bg: var(--earthtone-khaki);
  --theme-accent-bg: var(--earthtone-ebony);
  --theme-dark-bg: var(--earthtone-blackolive);
  --theme-primary-text: var(--earthtone-blackolive);
  --theme-secondary-text: var(--earthtone-khaki);
  --theme-accent-text: var(--earthtone-ebony);
  --theme-light-text: var(--earthtone-almond);
  --theme-border: rgba(158, 155, 136, 0.2);
  --theme-shadow: rgba(45, 49, 38, 0.15);
}

/*--------------------------------------------------------------
# Body and General Styling
--------------------------------------------------------------*/
body {
  background-color: var(--theme-primary-bg) !important;
  color: var(--theme-primary-text) !important;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  background: linear-gradient(135deg, var(--theme-dark-bg) 0%, var(--theme-accent-bg) 100%);
}

.hero h2 {
  color: var(--theme-light-text);
}

.hero p {
  color: var(--theme-secondary-text);
}

.hero .typed {
  color: var(--theme-light-text);
}

/*--------------------------------------------------------------
# Section Backgrounds and General
--------------------------------------------------------------*/
section {
  background-color: var(--theme-primary-bg);
  color: var(--theme-primary-text);
}

.section-title h2 {
  color: var(--theme-primary-text);
}

.section-title p {
  color: var(--theme-secondary-text);
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about {
  background-color: var(--theme-primary-bg);
}

.about-intro {
  color: var(--theme-secondary-text);
}

.about-profile-image {
  border: 4px solid var(--theme-border);
  box-shadow: 0 8px 25px var(--theme-shadow);
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats {
  background: linear-gradient(135deg, var(--theme-accent-bg) 0%, var(--theme-dark-bg) 100%);
}

.stats .stats-item {
  background: rgba(227, 213, 197, 0.1);
  border: 1px solid rgba(227, 213, 197, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.stats .stats-item i {
  color: var(--theme-light-text);
  background: linear-gradient(135deg, var(--earthtone-almond) 0%, var(--earthtone-khaki) 100%);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(227, 213, 197, 0.3);
}

.stats .stats-item .purecounter {
  color: var(--theme-light-text);
  font-size: 2.5rem;
  font-weight: 700;
}

.stats .stats-item p {
  color: var(--theme-light-text);
}

.stats .stats-item p strong {
  color: var(--theme-light-text);
}

.stats .stats-item p span {
  color: var(--earthtone-khaki);
}

/*--------------------------------------------------------------
# Skills Section
--------------------------------------------------------------*/
.skills {
  background-color: var(--theme-secondary-bg);
}

.skills .progress {
  background-color: rgba(45, 49, 38, 0.1);
  border-radius: 25px;
  border: 1px solid var(--theme-border);
}

.skills .progress-bar {
  background: linear-gradient(90deg, var(--theme-accent-bg) 0%, var(--theme-dark-bg) 100%);
}

.skills .skill .val {
  color: var(--theme-accent-text);
  font-weight: 600;
}

.skills .skill span {
  color: var(--theme-primary-text);
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services {
  background-color: var(--theme-primary-bg);
}

.services-item {
  background: #ffffff;
  border: 2px solid var(--theme-border);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px var(--theme-shadow);
}

.services-item:hover {
  transform: translateY(-8px);
  border-color: var(--theme-accent-bg);
  box-shadow: 0 15px 40px rgba(89, 97, 75, 0.2);
}

.services-item i {
  background: linear-gradient(135deg, var(--theme-accent-bg) 0%, var(--theme-dark-bg) 100%);
  color: var(--theme-light-text);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.services-item:hover i {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(89, 97, 75, 0.4);
}

.services-item .title {
  color: var(--theme-primary-text);
  font-weight: 600;
}

.services-item .description {
  color: var(--theme-secondary-text);
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio {
  background-color: var(--theme-secondary-bg);
}

.homepage-portfolio-post {
  background: #ffffff;
  border: 1px solid var(--theme-border);
  box-shadow: 0 6px 25px var(--theme-shadow);
}

.homepage-portfolio-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(89, 97, 75, 0.2);
  border-color: var(--theme-accent-bg);
}

.homepage-portfolio-post .post-title a {
  color: var(--theme-primary-text);
}

.homepage-portfolio-post .post-title a:hover {
  color: var(--theme-accent-text);
}

.homepage-portfolio-post .post-categories {
  color: var(--theme-secondary-text);
}

.homepage-portfolio-post .post-categories strong {
  color: var(--theme-primary-text);
}

.homepage-portfolio-post .post-excerpt {
  color: var(--theme-secondary-text);
}

.homepage-portfolio-post .post-meta {
  background: var(--theme-primary-bg);
  border-left: 4px solid var(--theme-accent-bg);
}

.homepage-portfolio-post .post-meta .technologies {
  color: var(--theme-primary-text);
}

.homepage-portfolio-post .read-more-btn {
  color: var(--theme-accent-text);
  font-weight: 600;
}

.homepage-portfolio-post .read-more-btn:hover {
  color: var(--theme-dark-bg);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact {
  background: linear-gradient(135deg, var(--theme-dark-bg) 0%, var(--theme-accent-bg) 100%);
}

.contact .section-title h2,
.contact .section-title p {
  color: var(--theme-light-text);
}

.contact .info-item i {
  background: var(--theme-accent-bg);
  color: var(--theme-light-text);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact .info-item h3 {
  color: var(--theme-light-text);
}

.contact .info-item p {
  color: var(--earthtone-khaki);
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
.php-email-form {
  background: rgba(227, 213, 197, 0.1);
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.php-email-form .form-control {
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--theme-border);
  color: var(--theme-primary-text);
}

.php-email-form .form-control:focus {
  border-color: var(--theme-accent-bg);
  box-shadow: 0 0 0 0.2rem rgba(89, 97, 75, 0.25);
}

.php-email-form label {
  color: var(--theme-light-text);
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn-primary {
  background: linear-gradient(135deg, var(--theme-accent-bg) 0%, var(--theme-dark-bg) 100%);
  border: none;
  color: var(--theme-light-text);
  border-radius: 25px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--theme-dark-bg) 0%, var(--theme-accent-bg) 100%);
  color: var(--theme-light-text);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(89, 97, 75, 0.3);
}

button[type="submit"] {
  background: linear-gradient(135deg, var(--theme-accent-bg) 0%, var(--theme-dark-bg) 100%);
  border: none;
  color: var(--theme-light-text);
  border-radius: 25px;
  padding: 12px 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

button[type="submit"]:hover {
  background: linear-gradient(135deg, var(--theme-dark-bg) 0%, var(--theme-accent-bg) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(89, 97, 75, 0.3);
}

/*--------------------------------------------------------------
# Links
--------------------------------------------------------------*/
a {
  color: var(--theme-accent-text);
}

a:hover {
  color: var(--theme-dark-bg);
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  color: var(--theme-primary-text);
}

p {
  color: var(--theme-secondary-text);
}

/*--------------------------------------------------------------
# Cards and Surfaces
--------------------------------------------------------------*/
.card,
.surface {
  background: #ffffff;
  border: 1px solid var(--theme-border);
  box-shadow: 0 4px 15px var(--theme-shadow);
}

.card:hover,
.surface:hover {
  box-shadow: 0 8px 25px rgba(89, 97, 75, 0.2);
}

/*--------------------------------------------------------------
# Borders and Dividers
--------------------------------------------------------------*/
.border {
  border-color: var(--theme-border) !important;
}

hr {
  border-color: var(--theme-border);
}

/*--------------------------------------------------------------
# Responsive Adjustments
--------------------------------------------------------------*/
@media (max-width: 768px) {
  .services-item {
    padding: 1.5rem;
  }
  
  .stats .stats-item {
    padding: 1.5rem;
  }
  
  .homepage-portfolio-post {
    margin-bottom: 2rem;
  }
}

/*--------------------------------------------------------------
# Footer (if exists)
--------------------------------------------------------------*/
.footer {
  background: var(--theme-dark-bg);
  color: var(--theme-light-text);
  border-top: 2px solid var(--theme-accent-bg);
}

.footer a {
  color: var(--earthtone-khaki);
}

.footer a:hover {
  color: var(--theme-light-text);
}

/*--------------------------------------------------------------
# Custom WordPress Classes
--------------------------------------------------------------*/
.wp-block-button__link {
  background: var(--theme-accent-bg);
  border-radius: 25px;
}

.wp-block-quote {
  border-left: 4px solid var(--theme-accent-bg);
  background: rgba(227, 213, 197, 0.1);
}

/*--------------------------------------------------------------
# Customizer Override Classes
# These allow WordPress Customizer to override default colors
--------------------------------------------------------------*/
.earthtone-customizer-primary-bg {
  background-color: var(--theme-primary-bg) !important;
}

.earthtone-customizer-secondary-bg {
  background-color: var(--theme-secondary-bg) !important;
}

.earthtone-customizer-accent-bg {
  background-color: var(--theme-accent-bg) !important;
}

.earthtone-customizer-dark-bg {
  background-color: var(--theme-dark-bg) !important;
}

.earthtone-customizer-primary-text {
  color: var(--theme-primary-text) !important;
}

.earthtone-customizer-secondary-text {
  color: var(--theme-secondary-text) !important;
}

.earthtone-customizer-accent-text {
  color: var(--theme-accent-text) !important;
}

.earthtone-customizer-light-text {
  color: var(--theme-light-text) !important;
}