:root {
  --primary: #ff6b6b;
  --secondary: #1a1a2e;
  --text: #e0e0e0;
  --text-secondary: #a0a0a0;
  --background: #0f0f1e;
  --card-bg: #16213e;
}

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

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
  }

  .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
  }

  .linkedin-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
  }

  .project-image-wrapper:hover img {
    transform: scale(1.1);
  }

  .view-project:hover {
    border-bottom-color: #ffffff;
    transform: translateY(-2px);
  }

  .experience-card:hover {
    border-color: rgba(255, 107, 107, 0.35);
    background: rgba(255, 107, 107, 0.04);
  }

  .skill-tag:hover {
    border-color: rgba(255, 107, 107, 0.4);
    color: var(--primary);
  }

  .btn-primary:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
  }

  .btn-whatsapp:hover {
    background-color: #0E7A6E;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(18, 140, 126, 0.4);
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
}

main {
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.hero-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 50%, #16213e 100%);
}

.hero-background,
.hero-background * {
  pointer-events: none;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(255, 107, 107, 0.3) 0%,
    rgba(255, 107, 107, 0.15) 25%,
    rgba(255, 107, 107, 0.05) 50%,
    transparent 70%
  );
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.8;
  }
}

.hero-content {
  text-align: left;
}

.hero-label {
  display: inline-block;
  padding: 0.4rem 1.5rem;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 50px;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 650px;
}

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

.btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  border: 2px solid transparent;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.hero-email {
  margin-top: 2rem;
  font-size: 1.05rem;
  color: var(--text);
}

.hero-email a {
  color: var(--primary);
  text-decoration: none;
}

.linkedin-embed-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0;
  max-width: 420px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.li-embed-header {
  padding: 0.6rem 1.25rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px 12px 0 0;
}

.li-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 22px;
  color: #ffffff;
}

.li-logo svg {
  width: 100%;
  height: auto;
  display: block;
}

.li-embed-body {
  padding: 0 1.25rem 1.25rem;
}

.li-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.li-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.li-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.li-headline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.3;
  margin: 0.15rem 0 0;
}

.li-location,
.li-connections {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.li-connections{
    font-weight: 600;
}

.linkedin-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.4rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: transparent;
  width: auto;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.projects {
  padding: 80px 0;
  background-color: #0f1419;
  color: #e4e6eb;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 20px 0;
  letter-spacing: -0.5px;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

.project-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: center;
}

.project-item.reverse {
  direction: rtl;
}

.project-item.reverse > * {
  direction: ltr;
}

.project-image-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.project-image-wrapper img {
  transition: transform 0.4s ease;
}

.project-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.project-details {
  padding: 20px 0;
}

.project-title {
  font-size: 1.9rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 15px 0;
}

.project-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.view-project {
  display: inline-flex;
  gap: 0.85rem;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid #ff5252;
  padding-bottom: 0.25rem;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.experience {
  padding: 80px 0;
  background: linear-gradient(180deg, #0f0f1e 0%, #12122a 100%);
}

.experience .section-header {
  margin-bottom: 3rem;
}

.experience .section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.experience-card {
  display: grid;
  grid-template-columns: 220px 40px 1fr;
  gap: 0 1rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.exp-company-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 0.15rem;
}

.exp-logo-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.exp-logo-icon {
  width: 26px;
  height: 26px;
}

.exp-company-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.exp-company-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

.exp-company-type {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.exp-timeline-col {
  display: flex;
  justify-content: center;
}

.exp-dot-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 16px;
}

.exp-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.6);
  flex-shrink: 0;
  margin-top: 0.55rem;
}

.exp-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(255, 107, 107, 0.5) 0%,
    rgba(255, 107, 107, 0.05) 100%
  );
  margin-top: 6px;
}

.exp-details-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.1rem;
}

.exp-role-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.exp-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.exp-duration-badge {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.25);
  border-radius: 50px;
  padding: 0.2rem 0.75rem;
  white-space: nowrap;
}

.exp-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.exp-loc-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.6;
}

.exp-bullets {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.exp-bullets li {
  font-size: 0.9rem;
  color: rgba(224, 224, 224, 0.85);
  line-height: 1.65;
  padding-left: 1.1rem;
  position: relative;
}

.exp-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.7;
}

.exp-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.skill-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact {
  padding: 6rem 0;
  text-align: center;
  background-color: var(--card-bg);
  width: 100%;
}

.contact h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-intro {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-buttons .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-whatsapp {
  background-color: #075E54;
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .services-timeline {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile Styles */
@media (max-width: 968px) {
  .project-item,
  .project-item.reverse {
    grid-template-columns: 1fr;
    gap: 30px;
    direction: ltr;
  }
  
  .projects-list {
    gap: 60px;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 3rem 1.5rem;
  }

  .hero-main {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero-side {
    display: flex;
    justify-content: center;
  }

  .hero-label {
    font-size: 0.7rem;
    padding: 0.35rem 1.2rem;
    margin-bottom: 1.25rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
    margin-bottom: 1.25rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
    gap: 0.75rem;
  }

  .btn {
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
  }

  .hero-email {
    margin-top: 1.5rem;
    font-size: 1rem;
    text-align: center;
  }

  .linkedin-embed-card {
    max-width: 100%;
    width: 100%;
  }

  .hero-glow {
    width: 600px;
    height: 600px;
  }

  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .experience-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 1rem;
    padding: 1.5rem;
  }

  .exp-company-col {
    flex-direction: row;
    align-items: center;
  }

  .exp-timeline-col {
    display: none;
  }

  .exp-role-header {
    flex-direction: column;
    gap: 0.4rem;
  }

  .contact-buttons {
    flex-direction: column;
    width: 100%;
  }

  .contact-buttons .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .projects {
    padding: 60px 0;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .title-line {
    height: 40px;
  }
  
  .project-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 1rem;
  }

  .hero-main {
    gap: 2rem;
  }

  .hero-label {
    font-size: 0.65rem;
    padding: 0.3rem 1rem;
  }

  .hero-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .linkedin-embed-card {
    padding: 0;
  }

  .li-embed-header {
    padding: 0.5rem 1rem;
  }

  .li-embed-body {
    padding: 0 1rem 1rem;
  }

  .li-avatar {
    width: 48px;
    height: 48px;
  }

  .li-name {
    font-size: 1.05rem;
  }

  .li-headline {
    font-size: 0.8rem;
  }

  .li-location,
  .li-connections {
    font-size: 0.7rem;
  }

  .linkedin-btn {
    padding: 0.35rem 1.25rem;
    font-size: 0.85rem;
  }

  .hero-glow {
    width: 400px;
    height: 400px;
  }
}