/* ============================================
   MODERN COMPONENT STYLES
   Buttons, Cards, Forms, etc.
   ============================================ */

/* === BUTTONS === */

/* Base button styles */
.btn {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Primary Button - Gold */
.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-white);
  border: 2px solid var(--color-gold);
}

.btn-primary:hover {
  background-color: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Button - Outline */
.btn-secondary {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 2px solid var(--color-text-primary);
}

.btn-secondary:hover {
  background-color: var(--color-text-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* White Button (for dark backgrounds) */
.btn-white {
  background-color: var(--color-white);
  color: var(--color-text-primary);
  border: 2px solid var(--color-white);
}

.btn-white:hover {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

/* Button sizes */
.btn-sm {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-base);
}

/* Button with icon */
.btn i {
  margin-left: var(--space-2);
  transition: transform var(--transition-base);
}

.btn:hover i {
  transform: translateX(4px);
}

/* Legacy button compatibility */
.btn-learn {
  /* Inherits from .btn-primary */
}

/* === SECTION HEADINGS === */

.heading-meta {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  margin-bottom: var(--space-4);
}

.colorlib-heading {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-light);
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}

@media (min-width: 768px) {
  .colorlib-heading {
    font-size: var(--text-4xl);
  }
}

/* === CARDS === */

.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card__image {
  width: 100%;
  height: auto;
  display: block;
}

.card__content {
  padding: var(--space-6);
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.card__text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* === PROJECT CARDS === */

.project {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-base);
}

@media (max-width: 768px) {
  .project {
    height: 300px;
  }
}

.project:hover {
  transform: scale(1.02);
}

.project::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(43, 43, 43, 0.7) 70%,
    rgba(43, 43, 43, 0.9) 100%
  );
  transition: background var(--transition-base);
}

.project:hover::before {
  background: linear-gradient(
    180deg,
    rgba(43, 43, 43, 0.2) 0%,
    rgba(43, 43, 43, 0.8) 70%,
    rgba(43, 43, 43, 0.95) 100%
  );
}

.project .desc {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  z-index: 2;
}

.project .desc .con h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-2);
}

.project .desc .con h3 a {
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--transition-base);
}

.project .desc .con h3 a:hover {
  color: var(--color-gold);
}

.project .desc .con span {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-3);
}

.project .desc .con .icon {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-sm);
}

.project .desc .con .icon a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-base);
}

.project .desc .con .icon a:hover {
  color: var(--color-gold);
}

/* === SERVICE CARDS === */

.colorlib-feature {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.colorlib-feature .colorlib-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-cream);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.colorlib-feature:hover .colorlib-icon {
  background-color: var(--color-gold);
  transform: scale(1.05);
}

.colorlib-feature .colorlib-icon i {
  font-size: 32px;
  color: var(--color-gold);
  transition: color var(--transition-base);
}

.colorlib-feature:hover .colorlib-icon i {
  color: var(--color-white);
}

.colorlib-feature .colorlib-text h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.colorlib-feature .colorlib-text p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}

/* === SERVICES WRAP === */

.services-wrap {
  position: relative;
  display: block;
  height: 250px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-6);
  transition: transform var(--transition-base);
}

.services-wrap:hover {
  transform: scale(1.02);
}

.services-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(43, 43, 43, 0.6) 100%
  );
  transition: background var(--transition-base);
}

.services-wrap:hover::before {
  background: linear-gradient(
    180deg,
    rgba(201, 168, 106, 0.3) 0%,
    rgba(43, 43, 43, 0.7) 100%
  );
}

.services-wrap .desc {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  z-index: 2;
}

.services-wrap .desc h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-white);
  margin: 0;
}

/* === ABOUT SECTION === */

.about-img {
  width: 100%;
  height: 500px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
  .about-img {
    height: 350px;
    margin-bottom: var(--space-8);
  }
}

.about-desc p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

/* === STEPS/VALUES === */

.steps {
  display: block;
  text-align: center;
  padding: var(--space-6);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  text-decoration: none;
}

.steps:hover {
  background-color: var(--color-cream);
}

.steps .icon {
  margin-bottom: var(--space-4);
}

.steps .icon span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--color-gold);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-size: 24px;
}

.steps h3 {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  margin: 0;
  line-height: var(--leading-snug);
}

.steps.active {
  background-color: var(--color-gold);
}

.steps.active h3 {
  color: var(--color-white);
}

.steps.active .icon span {
  background-color: var(--color-white);
  color: var(--color-gold);
}

/* === COUNTERS === */

.colorlib-counter {
  text-align: center;
  color: var(--color-white);
}

.colorlib-counter .icon {
  display: block;
  margin-bottom: var(--space-4);
}

.colorlib-counter .icon i {
  font-size: 48px;
  color: var(--color-gold);
}

.colorlib-counter .colorlib-counter {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--weight-light);
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.colorlib-counter-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* === BLOG ENTRIES === */

.blog-entry {
  margin-bottom: var(--space-8);
  transition: transform var(--transition-base);
}

.blog-entry:hover {
  transform: translateY(-4px);
}

.blog-entry .blog-img {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.blog-entry .blog-img img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow);
}

.blog-entry:hover .blog-img img {
  transform: scale(1.05);
}

.blog-entry .desc span {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.blog-entry .desc h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-3);
}

.blog-entry .desc h3 a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

.blog-entry .desc h3 a:hover {
  color: var(--color-gold);
}

.blog-entry .desc p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

