/* =============== CSS VARIABLES =============== */
:root {
  --header-height: 4rem;

  /* Colors */
  --hue: 210;
  --primary-color: hsl(var(--hue), 80%, 40%); /* Modern Blue */
  --primary-color-alt: hsl(var(--hue), 80%, 30%);
  --accent-color: #22c55e; /* Green */
  --title-color: hsl(var(--hue), 15%, 15%);
  --text-color: hsl(var(--hue), 8%, 45%);
  --text-color-light: hsl(var(--hue), 8%, 65%);
  --body-bg: #f8fafc;
  --container-bg: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.7);
  
  /* Typography */
  --body-font: 'Inter', sans-serif;
  --title-font: 'Playfair Display', serif;
  
  --biggest-font: 3rem;
  --h1-font: 2.25rem;
  --h2-font: 1.5rem;
  --h3-font: 1.25rem;
  --normal-font: 1rem;
  --small-font: 0.875rem;

  /* Margins */
  --mb-0-5: 0.5rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-3: 3rem;

  /* Z-Index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

@media screen and (min-width: 968px) {
  :root {
    --biggest-font: 4.5rem;
    --h1-font: 3rem;
    --h2-font: 2rem;
    --h3-font: 1.5rem;
    --normal-font: 1.1rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font);
  background-color: var(--body-bg);
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: 700;
}

h1, h2 {
  font-family: var(--title-font);
}

ul { list-style: none; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; }

/* =============== REUSABLE CSS CLASSES =============== */
.container {
  max-width: 1140px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding: 5rem 0 2rem;
}

.section-title {
  font-size: var(--h2-font);
  color: var(--title-color);
  text-align: center;
  margin-bottom: var(--mb-0-5);
}

.section-subtitle {
  display: block;
  font-size: var(--small-font);
  color: var(--text-color-light);
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--mb-3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  transition: .3s;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 10px 20px rgba(10, 61, 112, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-color-alt);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(10, 61, 112, 0.3);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* =============== HEADER & NAV =============== */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: transparent;
  transition: .4s;
}

/* Scroll Header Glassmorphism */
.scroll-header {
  background-color: var(--glass-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: var(--title-color);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 1px;
}
.logo span { color: var(--accent-color); }

@media screen and (max-width: 767px) {
  .nav-menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background-color: var(--container-bg);
    padding: 3rem 1.5rem 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,.05);
    transition: .4s;
    border-bottom-left-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
  }
}

.nav-list {
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
  text-align: center;
}

.nav-link {
  color: var(--title-color);
  font-weight: 600;
  transition: .3s;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

.nav-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.8rem;
  color: var(--title-color);
  cursor: pointer;
}

.nav-toggle {
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
}

/* Show Menu */
.show-menu { top: 0; }

/* =============== HERO SECTION =============== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #e0e7ff 0%, #f0fdf4 100%);
  padding-top: 8rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-container {
  row-gap: 3rem;
  align-items: center;
}

.hero-greeting {
  display: block;
  font-size: var(--h3-font);
  color: var(--text-color);
  margin-bottom: var(--mb-0-5);
  font-weight: 600;
}

.hero-title {
  font-size: var(--biggest-font);
  line-height: 1.1;
  margin-bottom: var(--mb-1);
}

.hero-subtitle {
  color: var(--primary-color);
  font-size: var(--h3-font);
  margin-bottom: var(--mb-1-5);
}

.hero-description {
  margin-bottom: var(--mb-2);
  max-width: 400px;
}

.hero-buttons {
  display: flex;
  column-gap: 1rem;
  flex-wrap: wrap;
  row-gap: 1rem;
}

.img-box {
  display: flex;
  justify-content: center;
}
.img-placeholder {
  width: 280px;
  height: 350px;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-color-alt) 100%);
  border-radius: 20px 20px 100px 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 8rem;
  box-shadow: 0 20px 40px rgba(10, 61, 112, 0.2);
}

/* =============== ABOUT SECTION =============== */
.about-container {
  row-gap: 2.5rem;
}

.about-description {
  text-align: center;
  margin-bottom: var(--mb-2);
}

.about-info {
  display: flex;
  justify-content: center;
  column-gap: 2rem;
}
.about-info > div {
  text-align: center;
}
.info-title {
  font-size: var(--h2-font);
  color: var(--primary-color);
  font-weight: 800;
  display: block;
}
.info-name {
  font-size: var(--small-font);
}

/* =============== SKILLS =============== */
.skills-container {
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

.skills-card {
  background-color: var(--container-bg);
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: .3s;
  border-bottom: 3px solid transparent;
}
.skills-card:hover {
  transform: translateY(-5px);
  border-bottom-color: var(--primary-color);
}
.skills-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: var(--mb-1);
}
.skills-title {
  font-size: var(--h3-font);
  margin-bottom: var(--mb-0-5);
}

/* =============== PORTFOLIO PREVIEW =============== */
.portfolio-container {
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

.portfolio-item {
  background-color: var(--container-bg);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.portfolio-img-box {
  height: 200px;
  background: linear-gradient(45deg, #e0e7ff, #f3e8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--primary-color);
}

.portfolio-data {
  padding: 1.5rem;
}

.portfolio-title {
  font-size: var(--h3-font);
  margin-bottom: var(--mb-0-5);
}

/* =============== CONTACT =============== */
.contact-container {
  row-gap: 3rem;
}

.contact-info {
  text-align: center;
}

.contact-title {
  font-size: var(--h3-font);
  margin-bottom: var(--mb-0-5);
}

.contact-details {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
  margin-top: var(--mb-2);
}

.contact-card {
  background-color: var(--container-bg);
  padding: 1rem;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  column-gap: 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-icon {
  font-size: 2rem;
  color: var(--primary-color);
}

.contact-form {
  background-color: var(--container-bg);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-content {
  margin-bottom: var(--mb-1-5);
}

.contact-input {
  width: 100%;
  background-color: var(--body-bg);
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: var(--normal-font);
  border: none;
  outline: none;
  padding: 1rem;
  border-radius: .5rem;
}

.contact-label {
  display: block;
  font-size: var(--small-font);
  margin-bottom: .25rem;
  font-weight: 600;
  color: var(--title-color);
}

/* =============== FOOTER =============== */
.footer {
  background-color: var(--primary-color);
  padding: 3rem 0 2rem;
  color: #fff;
  text-align: center;
}

.footer-title {
  color: #fff;
  margin-bottom: var(--mb-0-5);
}

.footer-social {
  display: flex;
  justify-content: center;
  column-gap: 1.5rem;
  margin: var(--mb-1-5) 0;
}

.footer-social-link {
  background-color: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.25rem;
  padding: .5rem;
  border-radius: 50%;
  display: inline-flex;
  transition: .3s;
}
.footer-social-link:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.footer-copy {
  font-size: var(--small-font);
  color: rgba(255,255,255,0.7);
}

/* =============== WHATSAPP FLOAT =============== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
  z-index: var(--z-fixed);
  transition: .3s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
}

/* =============== ANIMATIONS =============== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =============== MEDIA QUERIES =============== */
@media screen and (min-width: 768px) {
  .nav-toggle, .nav-close { display: none; }
  
  .nav-list {
    flex-direction: row;
    column-gap: 2.5rem;
  }
  
  .hero-container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }
  .hero-data { order: 1; }
  
  .skills-container {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .portfolio-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-info {
    text-align: left;
  }
}

@media screen and (min-width: 1024px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
  .about-container {
    padding: 0 5rem;
  }
}
