/* ============================================================
   OMARGPAX PORTFOLIO — style.css  (v2 — full-screen layout)
   Mobile-first, full-viewport design
   ============================================================ */

/* ─── DESIGN TOKENS ──────────────────────────────────────── */
:root {
  --color-bg:       #f1f2f6;
  --color-surface:  #eceff4;
  --color-border:   #ffffff;
  --color-text:     #4d4f51;
  --color-heading:  #282848;

  --blue:           #4b8cef;
  --blue-dark:      #021623;
  --blue-faded:     rgba(75, 140, 239, 0.35);
  --violet:         rgba(165, 166, 246, 1);
  --gradient-main:  linear-gradient(180deg, #ff9bb5 0%, #4b8cef 100%);

  --green:  #01c94f;
  --yellow: #febc45;
  --red:    #fe615d;

  --radius-sm: 8px;
  --radius-md: 15px;
  --radius-lg: 25px;

  --ease-out: cubic-bezier(0.05, 0.61, 0.41, 0.95);

  --shadow-out: 7px 7px 20px #c9cbcf, -7px -7px 20px #ffffff;
  --shadow-in:  inset 7px 7px 20px #c9cbcf, inset -7px -7px 20px #ffffff;
  --shadow-btn: 1px 1px 2px #9c9ea1, -5px -5px 10px #ffffff;
  --shadow-btn-hov: 4px 4px 8px #9c9ea1, -4px -4px 10px #ffffff;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

html::-webkit-scrollbar         { width: 5px; height: 5px; }
html::-webkit-scrollbar-thumb   { background: var(--violet); border-radius: 25px; }
html::-webkit-scrollbar-track   { background: transparent; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  width: 100%;
}

img    { display: block; max-width: 100%; }
button { cursor: pointer; border: none; outline: none; background: none; }
button:focus { outline: none; }
a      { text-decoration: none; }
h2     { font-family: "Inter", sans-serif; }

/* ─── SURFACES ───────────────────────────────────────────── */
.neumorph {
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-out);
}
.neumorph-2 {
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-in);
  overflow: hidden;
}

.section-label {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

/* ============================================================
   SITE WRAPPER — fills full screen
   ============================================================ */
.site-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

/* ─── SECTION TOP ────────────────────────────────────────── */
.section-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

/* ─── SECTION BOTTOM ─────────────────────────────────────── */
.section-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  padding-bottom: 1rem;
}

/* ============================================================
   PROFILE CARD
   ============================================================ */
#profile-card {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.avatar:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.profile-text h2 {
  font-size: 1.15rem;
  color: var(--color-heading);
  line-height: 1.2;
}
.profile-text p { font-size: 0.82rem; color: var(--color-text); }

/* Social links */
.social-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.social-btn {
  padding: 5px 9px;
  border-radius: 9px;
  background: var(--color-surface);
  box-shadow: var(--shadow-btn);
  transition: box-shadow 0.25s;
}
.social-btn:hover  { box-shadow: var(--shadow-btn-hov); }
.social-btn:active { background: linear-gradient(145deg, #fdffff, #d4d7dc); }
.social-btn img    { height: 28px; width: auto; }

/* Profile sections */
.profile-section { display: flex; flex-direction: column; }

/* Skill tags */
.tags-row { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tag {
  padding: 5px 18px;
  border-radius: 25px;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--color-surface);
  box-shadow: var(--shadow-btn);
  background-image: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}
.skill-tag::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 25px;
  background: var(--color-surface);
  box-shadow: var(--shadow-btn);
  z-index: -1;
}

/* Software icons */
.software-row { display: flex; flex-wrap: wrap; gap: 6px; }
.software-item {
  padding: 6px 8px;
  border-radius: 10px;
  background: linear-gradient(145deg, #ebf1f1, #c1c5cc);
  box-shadow: 5px 5px 10px #e7eaef, -5px -5px 10px #f1f4f9;
}
.software-item img { height: 34px; width: auto; }

/* Soft skills donut */
.soft-skills-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}
.donut-chart {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
}
.recorte {
  border-radius: 50%;
  clip: rect(0, 80px, 80px, 40px);
  height: 100%;
  position: absolute;
  width: 100%;
}
.quesito {
  border-radius: 50%;
  clip: rect(0, 40px, 80px, 0);
  height: 100%;
  position: absolute;
  width: 100%;
}
#porcion1    { transform: rotate(0deg);   } #porcion1 .quesito   { background: #282848; transform: rotate(110deg); }
#porcion2    { transform: rotate(110deg); } #porcion2 .quesito   { background: #3E3E6A; transform: rotate(140deg); }
#porcion3    { transform: rotate(215deg); } #porcion3 .quesito   { background: #56567A; transform: rotate(90deg);  }
#porcionFin  { transform: rotate(-60deg); } #porcionFin .quesito { background: #7F7FA4; transform: rotate(60deg);  }

.soft-skills-legend p {
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.soft-skills-legend span {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}
.soft-skills-img { width: 90px; height: auto; }

/* ============================================================
   RIGHT COLUMN
   ============================================================ */
.right-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

/* ─── PROJECTS PANEL ─────────────────────────────────────── */
.projects-panel {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.project-card {
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}
.project-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.project-img-wrap {
  padding: 0.75rem 0.5rem 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100px;
  overflow: hidden;
}
.project-img-wrap.dual { justify-content: space-around; }
.project-img-wrap img  { max-height: 100%; width: auto; object-fit: contain; }

.project-info {
  padding: 0.6rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.project-header h3 {
  font-family: "Dosis", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.2;
}
.year-badge {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 30px;
  background: var(--blue-dark);
  color: var(--color-surface);
  white-space: nowrap;
  flex-shrink: 0;
}
.project-footer {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: auto;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.project-tags span {
  font-family: "Dosis", sans-serif;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 20px;
  background: #282848c4;
  color: #ddd;
}
.project-links { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.project-links a {
  font-family: "Dosis", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 5px;
  color: var(--blue);
  background: var(--blue-faded);
  transition: background 0.2s;
}
.project-links a:hover { background: rgba(75,140,239,0.5); }
.project-links a i { font-size: 0.7rem; margin-left: 4px; }

/* ─── SLIDER PANEL ───────────────────────────────────────── */
.slider-panel { padding: 1rem; flex: 1; }

.slide-views {
  display: flex;
  width: 100%;
  height: 200px;
  color: var(--color-surface);
  font-family: "Dosis", sans-serif;
}
.detect-view {
  position: relative;
  min-width: 50px;
  background: var(--bg) center / cover no-repeat;
  overflow: hidden;
  margin: 0 4px;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: flex-grow 0.5s var(--ease-out);
  flex-grow: 1;
  /* Accessibility */
  tabindex: 0;
}
.detect-view.active { flex-grow: 10000; }
.detect-view .shadow {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 90px;
  background: linear-gradient(0, rgba(0,0,0,0.65), transparent);
}
.detect-view .label {
  display: flex;
  position: absolute;
  left: 12px; bottom: 12px;
  gap: 10px;
  align-items: center;
  transition: opacity 0.4s;
}
.detect-view:not(.active) .label { opacity: 0; }
.detect-view.active .label       { opacity: 1; }
.detect-view .icon {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 38px; height: 38px;
  background: white;
  color: var(--color);
  border-radius: 50%;
  flex-shrink: 0;
}
.detect-view .info { white-space: nowrap; }
.detect-view .info .title { font-weight: 700; font-size: 1rem; }
.detect-view .info > div:last-child { font-size: 0.75rem; opacity: 0.9; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow:hidden;
}

.terminal-card {
  background: #011522;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #01192e;
}
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.dot.red    { background: var(--red);    }
.dot.yellow { background: var(--yellow); }
.dot.green  { background: var(--green);  }

.terminal-body {
  color: var(--color-surface);
  font-size: 0.72rem;
  padding: 0.75rem 1rem 1.25rem;
}
#exec-comand {
  display: block;
  white-space: nowrap;
  width: 34ch;
  max-width: 100%;
  overflow: hidden;
  font-family: Verdana, sans-serif;
  animation: typecommand 1.7s steps(34) both;
}
.terminal-prompt { color: #008aca; font-family: Verdana, sans-serif; }
@keyframes typecommand { from { width: 0; } }

.terminal-output {
  font-family: "Courier New", Courier, monospace;
  margin-top: 0.5rem;
  line-height: 1.5;
}
.terminal-output h3 { font-size: 0.75rem; margin-top: 0.25rem; }
.terminal-output p  { font-size: 0.72rem; line-height: 1.5; }

/* Connections */
.connections { display: flex; flex-direction: column; gap: 0.6rem; flex-shrink: 0; }
.conn-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 8px 14px;
  border-radius: 10px;
  font-family: "Dosis", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #443f3f;
  background: var(--color-surface);
  box-shadow: var(--shadow-btn);
  transition: box-shadow 0.25s;
}
.conn-btn:hover { box-shadow: var(--shadow-btn-hov); }
.conn-btn img   { height: 30px; flex-shrink: 0; }
.creator-badge-wrap { border-radius: 10px; overflow: hidden; }

/* Contact form */
.contact-form-wrap { display: flex; flex-direction: column; gap: 0.6rem; }
.contact-form-wrap h2 { font-size: 1.1rem; color: var(--violet); }
.form-input,
.form-textarea {
  width: 100%;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0.55rem 12px;
  font-family: "Poppins", sans-serif;
  font-size: 0.8rem;
  color: #3e3e6a;
  background: var(--color-surface);
  box-shadow: var(--shadow-in);
  resize: none;
  outline: none;
  transition: border-color 0.15s, color 0.15s;
}
.form-input:focus,
.form-textarea:focus { border-color: white; color: var(--violet); }
.form-submit {
  width: 100%;
  padding: 0.5rem;
  border-radius: 10px;
  background: var(--violet);
  color: var(--color-surface);
  font-family: "Dosis", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  transition: background 0.25s;
}
.form-submit:hover { background: #7d7fff; }
.form-submit:disabled { opacity: 0.7; cursor: not-allowed; }

/* ============================================================
   SIDEBAR DETAILS
   ============================================================ */
.sidebar-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.playlist {
  display: flex;
  flex: 1; /* Ocupa todo el espacio horizontal restante */
  min-width: 0; /* Evita que el contenido rompa el layout de flexbox */
  align-self: stretch; /* Se asegura de estirarse al alto máximo de #about */
}

.playlist iframe {
  width: 100%;
  height: 100%; /* Fuerza al iframe a llenar el contenedor .playlist */
  border-radius: 12px; /* Opcional: para que las esquinas hagan match con tu diseño */
}

#clock-widget {
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.clock {
  font-family: "Dosis", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  user-select: none;
  flex-wrap: wrap;
}
#sparator { margin: -0.4rem 0.25rem; }
.box-time { display: flex; flex-direction: column; font-size: 1rem; font-weight: 600; margin: 0 0.25rem; }
#time { color: var(--blue); }
.clock img { margin-left: 0.5rem; height: 70px; }

.copyright {
  font-family: "Dosis", sans-serif;
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-family: "Dosis", sans-serif;
  font-weight: 700;
}
.modal-content {
  background: white;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.image-container { position: relative; flex: 4; }
.modal-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.close-btn {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(0,0,0,0.55);
  color: white;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.close-btn:hover { background: rgba(0,0,0,0.85); }
.modal-footer {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f5f5;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.modal-title { font-size: 1rem; color: #333; }
.modal-link { color: #0066cc; font-weight: 700; padding: 8px 16px; border-radius: 4px; transition: background 0.25s; }
.modal-link:hover { background: rgba(0,102,204,0.1); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 20px; left: 20px;
  z-index: 9999;
  display: none;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 12px 18px;
  border-radius: 6px;
  box-shadow: 2px 2px 10px 2px rgba(10,10,10,0.2);
  font-family: "Open Sans", sans-serif;
  font-size: 0.875rem;
  color: #444;
  max-width: 300px;
}
.toast.show { display: flex; }

/* ============================================================
   REVIEWS PAGE
   ============================================================ */
.reviews { display: flex; flex-direction: column; align-items: center; padding: 1rem 1.5rem; }
.reviews > .desc    { width: 100%; display: flex; align-items: center; gap: 0.5rem; }
.reviews > .content { width: 100%; }

/* ============================================================
   BREAKPOINT: TABLET (≥ 640px)
   ============================================================ */
@media (min-width: 640px) {
  .site-wrapper { padding: 1.25rem; gap: 1.25rem; }
  .slide-views  { height: 220px; }

  /* About: wrap into row */
  #about { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .terminal-card     { flex: 1 1 250px; }
  .connections       { flex: 0 0 200px; }
  .contact-form-wrap { flex: 1 1 240px; }

  /* Sidebar: side by side */
  .sidebar-details { flex-direction: row; }
  #clock-widget { flex: 1 1 40%; }
}

/* ============================================================
   BREAKPOINT: LAPTOP (≥ 960px)
   ============================================================ */
@media (min-width: 960px) {
  /* Top section: profile sidebar + right content */
  .section-top {
    grid-template-columns: 280px 1fr;
    align-items: stretch;
  }
  #profile-card { height: 100%; }

  /* 4-column projects grid */
  .projects-panel {
    grid-template-columns: repeat(4, 1fr);
  }
  .project-img-wrap { height: 110px; }

  /* Slider */
  .slide-views { height: 240px; }

  /* Bottom: about + sidebar */
  .section-bottom {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }

  /* About: horizontal three-column */
  #about {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
  }
  .terminal-card     { flex: 0 0 230px; }
  .connections       { flex: 0 0 195px; }
  .contact-form-wrap { flex: 1; min-width: 0; }

  /* Sidebar: stacked again */
  .sidebar-details  { flex-direction: column; }
}

/* ============================================================
   BREAKPOINT: DESKTOP (≥ 1280px)
   ============================================================ */
@media (min-width: 1280px) {
  .site-wrapper   { padding: 1.5rem 2rem; gap: 1.25rem; }
  .section-top    { grid-template-columns: 300px 1fr; }
  .section-bottom { grid-template-columns: 1fr 330px; }
  .slide-views    { height: 260px; }
  .project-img-wrap { height: 120px; }
  .terminal-card  { flex: 0 0 250px !important; }
  .connections    { flex: 0 0 400px !important; }
}

/* ============================================================
   BREAKPOINT: WIDE (≥ 1600px)
   ============================================================ */
@media (min-width: 1600px) {
  .section-top    { grid-template-columns: 320px 1fr; }
  .section-bottom { grid-template-columns: 1fr 360px; }
  .slide-views    { height: 290px; }
}
