/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* ==========================================================================
   1. NORMALIZE.CSS (Browser Reset)
   ========================================================================== */

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

main {
  display: block;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

a {
  background-color: transparent;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}

b,
strong {
  font-weight: bolder;
}

code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

img {
  border-style: none;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

details {
  display: block;
}

summary {
  display: list-item;
}

template {
  display: none;
}

[hidden] {
  display: none;
}

/* ==========================================================================
   2. CUSTOM VARIABLES & GLOBAL STYLES (NEW MODERN DESIGN)
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* New Modern Color Palette */
  --teal: #357b70;
  --gold: #e0b354;
  --dark: #2d3748;
  --white: #ffffff;
  --light: #f8f8f8;
  
  /* Legacy compatibility */
  --primary-color: #357b70;
  --primary-hover-color: #2a6259;
  --secondary-color: #f4f4f4;
  --text-color: #2d3748;
  --link-color: #357b70;
  --link-hover-color: #2a6259;
  --button-bg-color: #357b70;
  --button-text-color: #ffffff;
  --grid-item-bg-color: #357b70;
  --grid-item-text-color: #ffffff;
  --customized-orange: #e0b354;
  --customized-orange-hover: #c89c42;
  --alt-grid-item-bg-color: #ffffff;
  --alt-grid-item-text-color: #2d3748;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.5;
}

h1,
h2,
h3,
h4 {
  line-height: 1.4;
}

h1 {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -4px;
}

h2 {
  font-size: 1.8em;
  font-weight: 700;
}

h3 {
  font-size: 1.5em;
  font-weight: 700;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: opacity 0.3s;
}

a:hover,
a:focus {
  opacity: 0.7;
}

/* ==========================================================================
   3. WRAPPER & LAYOUT (NEW MODERN STRUCTURE)
   ========================================================================== */

.wrapper {
  min-height: 100vh;
  padding: 50px;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   4. HEADER & NAVIGATION (NEW MINIMALIST STYLE)
   ========================================================================== */

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
  padding: 0 0 30px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.brand {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
}

.nav-bar {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-bar a {
  text-decoration: none;
  color: #999;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
  position: relative;
}

.nav-bar a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width 0.3s;
}

.nav-bar a:hover {
  color: var(--teal);
}

.nav-bar a:hover::after {
  width: 100%;
}

/* Legacy Header Support (for old pages) */
.page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: var(--primary-color);
  color: #fff;
}

.page-header__item {
  margin-bottom: 10px;
}

.navigation-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  text-align: center;
  font-size: 1.2em;
}

.navigation-list li {
  display: inline-block;
  margin: 0 15px;
}

.navigation-list a {
  color: #fff;
  text-decoration: none;
}

.navigation-list a:hover,
.navigation-list a:focus {
  text-decoration: underline;
}

.navigation__logo {
  width: 100%;
  height: 10px;
  object-fit: cover;
  display: block;
  filter: brightness(0) saturate(100%) invert(78%) sepia(31%) saturate(753%) hue-rotate(359deg) brightness(97%) contrast(90%);
}

.nav-name {
  color: var(--customized-orange);
  font-weight: bold;
}

/* ==========================================================================
   5. HOME PAGE (NEW MODERN GRID)
   ========================================================================== */

.main-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 40px;
  flex: 1;
}

/* HERO CARD */
.hero-card {
  grid-column: 1 / 8;
  grid-row: 1 / 3;
  background: var(--teal);
  color: var(--white);
  padding: 33px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-card::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.05) 0%, 
    transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-card h1 {
  font-size: clamp(42px, 5.5vw, 68px);
  font-weight: 900;
  line-height: 0.9;
  margin-bottom: 40px;
  letter-spacing: -4px;
}

.hero-card h1 .line-1 {
  display: block;
  color: var(--white);
}

.hero-card h1 .line-2 {
  display: block;
  color: var(--gold);
  font-style: italic;
}

.hero-card p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 50px;
  max-width: 480px;
  opacity: 0.95;
  font-weight: 400;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s;
  position: relative;
  padding-bottom: 8px;
}

.cta-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--white);
  transition: width 0.3s;
}

.cta-link:hover::after {
  width: 100%;
}

.cta-link .arrow {
  font-size: 24px;
  transition: transform 0.3s;
}

.cta-link:hover .arrow {
  transform: translateX(10px);
}

/* IMAGE CARD */
.image-card {
  grid-column: 8 / 13;
  grid-row: 1 / 2;
  background: var(--white);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.image-card::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  border: 1px solid rgba(53, 123, 112, 0.1);
  z-index: 0;
}

.logo-image {
  max-width: 100%;
  display: block;
  position: relative;
  z-index: 1;
}

/* INFO CARD */
.info-card {
  grid-column: 8 / 13;
  grid-row: 2 / 3;
  background: var(--white);
  color: var(--dark);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 3px solid var(--gold);
}

.info-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #999;
}

.info-card p {
  font-size: 20px;
  margin: 6px 0;
  line-height: 1.8;
  color: var(--dark);
}

.info-card a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s;
}

.info-card a:hover {
  opacity: 0.7;
}

/* SOCIAL GRID */
.social-grid {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  align-items: center;
}

.social-grid a {
  transition: all 0.3s;
  display: inline-block;
}

.social-grid a:hover {
  transform: translateY(-3px);
  opacity: 0.7;
}

.social-grid img {
  width: 30px;
  height: 30px;
  display: block;
}

/* STATS CARDS */
.stats-row {
  grid-column: 1 / 13;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.stat-card {
  background: var(--white);
  padding: 50px 40px;
  text-align: center;
  text-decoration: none;
  color: var(--dark);
  transition: all 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  display: block;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--teal);
  transition: width 0.3s;
}

.stat-card:hover::before {
  width: 100%;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.stat-number {
  font-size: 22px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  font-weight: 600;
}

/* Legacy Hero Support */
.hero {
  background-color: #ffffff;
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.hero__portrait {
  width: 290px;
  height: 100px;
  border-radius: 2%;
  object-fit: cover;
  margin-bottom: 20px;
}

/* ==========================================================================
   6. ABOUT PAGE
   ========================================================================== */

.about-container {
  background: var(--white);
  padding: 80px;
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

/* About Container with Bogota Background */
.about-container--with-bg {
  background-image: url('../img/Bogota.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 600px;
  position: relative;
}

.about-container--with-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.79);
  z-index: 1;
}

.about-content-overlay {
  position: relative;
  z-index: 2;
}

.about-container h1 {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 40px;
  letter-spacing: -4px;
  text-align: center;
}

.about-container p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--dark);
  margin-bottom: 20px;
}

.about-container a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s;
}

.about-container a:hover {
  opacity: 0.7;
}

.about__portrait,
.about__profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 40px;
  display: block;
  border: 4px solid var(--teal);
  position: relative;
  z-index: 2;
}

.about__image-container {
  margin-top: 30px;
}

.about__image-container img {
  max-width: 50%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Legacy About Support */
.home-main,
.about-main,
.contact-main {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  min-height: calc(100vh - 250px);
}

/* ==========================================================================
   7. CONTACT PAGE
   ========================================================================== */

.contact-container {
  background: var(--white);
  padding: 80px;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
  position: relative;
}

/* Contact Container with Bogota Background */
.contact-container--with-bg {
  background-image: url('../img/Bogota.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 600px;
  position: relative;
}

.contact-container--with-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  z-index: 1;
}

.contact-content-overlay {
  position: relative;
  z-index: 2;
}

.contact-container h1 {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 30px;
  letter-spacing: -4px;
}

.contact-container > p,
.contact-content-overlay > p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--dark);
  margin-bottom: 20px;
}

.contact-details {
  margin: 40px 0;
  line-height: 2;
}

.contact-details p {
  font-size: 18px;
  color: var(--dark);
  margin: 15px 0;
}

.contact-details a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s;
}

.contact-details a:hover {
  opacity: 0.7;
}

.contact-container .social-grid {
  justify-content: center;
  margin-bottom: 10px;
}

/* ==========================================================================
   8. BUTTONS
   ========================================================================== */

.button {
  display: inline-block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid var(--teal);
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  background-color: var(--teal);
  color: var(--white);
}

.button:hover,
.button:focus {
  background-color: var(--dark);
  border-color: var(--dark);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.button--cv {
  display: inline-block;
  padding: 10px 40px;
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s;
  text-decoration: none;
  text-align: center;
  border: 2px solid var(--gold);
  margin-top: 40px;
}

.button--cv:hover {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Skill Buttons */
.skills-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 30px 0 40px;
}

.skill-button {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid var(--teal);
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.skill-button--primary {
  background-color: var(--teal);
  color: #ffffff !important;
}

.skill-button--primary:hover {
  background-color: var(--dark);
  border-color: var(--dark);
  color: #ffffff !important;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.skill-button--alt {
  background-color: var(--white);
  color: var(--teal) !important;
}

.skill-button--alt:hover {
  background-color: var(--teal);
  color: var(--white) !important;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   9. WORK PAGE (MODERN GRID)
   ========================================================================== */

.work-main {
  padding: 0;
}

.work-container {
  max-width: 1400px;
  margin: 0 auto;
}

.work-container h1 {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 60px;
  text-align: center;
  letter-spacing: -4px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.grid > [class^="grid__item"] {
  padding: 30px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.grid > [class^="grid__item"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.grid > [class^="grid__item"]:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.grid > [class^="grid__item"]:hover::before {
  transform: scaleX(1);
}

.grid > [class^="grid__item"] h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.grid > [class^="grid__item"] p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.grid > [class^="grid__item"] a {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 16px;
  margin-right: 10px;
  margin-top: 10px;
  transition: all 0.3s;
  text-decoration: none;
}

/* Theme 1: Teal Background */
.grid__item__1,
.grid__item__3,
.grid__item__5,
.grid__item__7 {
  background-color: var(--teal);
  color: var(--white);
}

.grid__item__1 h2,
.grid__item__3 h2,
.grid__item__5 h2,
.grid__item__7 h2 {
  color: var(--white);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
}

.grid__item__1 p,
.grid__item__3 p,
.grid__item__5 p,
.grid__item__7 p {
  color: var(--white);
}

.grid__item__1 a,
.grid__item__3 a,
.grid__item__5 a,
.grid__item__7 a {
  background: var(--gold);
  color: var(--dark);
}

.grid__item__1 a:hover,
.grid__item__3 a:hover,
.grid__item__5 a:hover,
.grid__item__7 a:hover {
  background: var(--white);
  color: var(--teal);
  transform: translateY(-2px);
}

/* Theme 2: White Background */
.grid__item__2,
.grid__item__4,
.grid__item__6,
.grid__item__8 {
  background-color: var(--white);
  color: var(--dark);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.grid__item__2 h2,
.grid__item__4 h2,
.grid__item__6 h2,
.grid__item__8 h2 {
  color: var(--dark);
  border-bottom: 2px solid var(--teal);
  padding-bottom: 10px;
}

.grid__item__2 p,
.grid__item__4 p,
.grid__item__6 p,
.grid__item__8 p {
  color: var(--dark);
}

.grid__item__2 a,
.grid__item__4 a,
.grid__item__6 a,
.grid__item__8 a {
  background: var(--teal);
  color: var(--white);
}

.grid__item__2 a:hover,
.grid__item__4 a:hover,
.grid__item__6 a:hover,
.grid__item__8 a:hover {
  background: var(--dark);
  transform: translateY(-2px);
}

.project-screenshot {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 12px;
  border: 1px solid var(--secondary-color);
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */

.page-footer {
  clear: both;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 20px;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 1.1em;
}

.page-footer a {
  color: var(--customized-orange);
  font-weight: bold;
}

.page-footer a:hover {
  color: var(--customized-orange-hover);
}

.social-media a {
  margin: 0 10px;
}

.resume-download {
  margin: 15px 0;
}

/* ==========================================================================
   11. RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1200px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .image-card,
  .info-card {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media all and (max-width: 992px) {
  .grid > [class^="grid__item"] {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .wrapper {
    padding: 30px 20px;
  }

  .header-bar {
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
    margin-bottom: 50px;
  }

  .nav-bar {
    gap: 25px;
  }

  .hero-card {
    padding: 26px 20px;
  }

  .main-grid {
    gap: 25px;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .about-container,
  .contact-container {
    padding: 40px 30px;
  }

  .about-container--with-bg,
  .contact-container--with-bg {
    min-height: 500px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .skill-button {
    width: calc(50% - 10px);
    max-width: none;
  }
}

@media all and (max-width: 600px) {
  .grid > [class^="grid__item"] {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media all and (max-width: 500px) {
  .skill-button {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .nav-bar {
    flex-direction: column;
    gap: 15px;
  }

  .nav-bar a {
    font-size: 13px;
  }

  .hero-card {
    padding: 23px 16px;
  }

  .hero-card h1 {
    font-size: 32px;
  }

  .hero-card p {
    font-size: 16px;
  }

  .stat-number {
    font-size: 20px;
  }

  .about-container,
  .contact-container {
    padding: 30px 20px;
  }

  .about-container--with-bg,
  .contact-container--with-bg {
    min-height: 450px;
    background-position: center center;
  }

  .about-container--with-bg::before {
    background: rgba(255, 255, 255, 0.82);
  }

  .contact-container--with-bg::before {
    background: rgba(255, 255, 255, 0.88);
  }

  .skills-buttons {
    flex-direction: column;
  }

  .skill-button {
    width: 100%;
  }
}