/*
Theme Name: Josu Etxaniz Portfolio
Theme URI: https://josuetxaniz.com
Description: Theme custom profesional para el portfolio de Josu Etxaniz - Diseñador y Desarrollador Web. Sitio web moderno con animaciones GSAP y diseño exclusivo.
Version: 1.0.0
Author: Josu Etxaniz
Author URI: https://josuetxaniz.com
Text Domain: josuetxaniz
Tags: portfolio, custom-theme, one-page, business, creative
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ========================================
   RESET & BASE STYLES
   ======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  overflow-x: hidden;
}

/* ========================================
   CSS CUSTOM PROPERTIES (Variables)
   ======================================== */

:root {
  /* Colors - OKLCH */
  --background: oklch(0.098 0.005 285);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.13 0.005 285);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.13 0.005 285);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.75 0.18 180);
  --primary-foreground: oklch(0.098 0.005 285);
  --secondary: oklch(0.18 0.005 285);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.22 0.005 285);
  --muted-foreground: oklch(0.65 0 0);
  --accent: oklch(0.75 0.18 180);
  --accent-foreground: oklch(0.098 0.005 285);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.985 0 0);
  --border: oklch(0.25 0.005 285);
  --input: oklch(0.22 0.005 285);
  --ring: oklch(0.75 0.18 180);

  /* Radius */
  --radius: 0.75rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Transitions */
  --transition-base: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--foreground);
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: 1rem;
  color: var(--muted-foreground);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--foreground);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   UTILITIES
   ======================================== */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--foreground);
  color: var(--background);
}

.btn-primary:hover {
  background-color: var(--muted-foreground);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--foreground);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Cards */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-slow);
}

.card:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(79, 209, 197, 0.1);
  transform: translateY(-4px);
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Text Balance */
.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.8s ease-out forwards;
  opacity: 0;
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease-out forwards;
  opacity: 0;
}

.animate-slide-in-left {
  animation: slide-in-left 0.8s ease-out forwards;
  opacity: 0;
}

.animate-slide-in-right {
  animation: slide-in-right 0.8s ease-out forwards;
  opacity: 0;
}

/* ========================================
   WORDPRESS SPECIFIC
   ======================================== */

.alignleft {
  float: left;
  margin-right: 1.5rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ========================================
   NEW ABOUT SECTION REDESIGN
   ======================================== */

.about-new-wrapper {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .about-new-wrapper {
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
  }
}

/* Content Left */
.about-new-content {
  position: relative;
  z-index: 2;
}

.about-new-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.about-signature-simple {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--primary);
  padding-left: 1rem;
}

.sig-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--foreground);
  font-weight: 600;
}

.sig-role {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Image Right */
.about-new-image-wrapper {
  position: relative;
  padding: 1rem;
}

.about-image-glass-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 2rem;
  padding: 1rem;
  transform: rotate(2deg);
  transition: transform 0.5s ease;
  z-index: 2;
}

.about-new-image-wrapper:hover .about-image-glass-card {
  transform: rotate(0deg) scale(1.02);
  border-color: rgba(79, 209, 197, 0.3);
}

.about-image-inner {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  transform: rotate(-2deg);
  /* Counter act the card rotation */
  transition: transform 0.5s ease;
  aspect-ratio: 4/5;
}

.about-new-image-wrapper:hover .about-image-inner {
  transform: rotate(0deg);
}

.about-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.1);
  transition: filter 0.5s ease;
}

.about-new-image-wrapper:hover .about-profile-img {
  filter: grayscale(0%) contrast(1);
}

.image-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 9, 11, 0.6), transparent 50%);
  pointer-events: none;
}

/* Decoration */
.about-dec-circle {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  filter: blur(60px);
}

.c-1 {
  width: 200px;
  height: 200px;
  background: var(--primary);
  top: -20px;
  right: -20px;
  opacity: 0.2;
}

.about-dec-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--secondary);
  border-radius: 50%;
  z-index: 3;
}

.d-1 {
  top: 10%;
  left: -20px;
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary);
}

.d-2 {
  bottom: 20%;
  right: -10px;
  background: #ffffff;
  width: 8px;
  height: 8px;
  opacity: 0.5;
}