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

body {
  font-family: 'Inter', Arial, sans-serif;
  color: #eef2fa;
  background-color: #0f1420;     
  line-height: 1.65;
}
h1, h2, h3 {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-weight: 700;
  color: #eef2fa;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: #10182c;
  border-bottom: 1px solid #2c3757;
}
.navbar .brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #4fd1ae;
}
#menu {
  display: flex;
  gap: 4px;
  list-style-type: none;
}

#menu > li {
  position: relative;
}

#menu > li > a {
  display: block;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 0.92rem;
  color: #c9d2eb;
  transition: color .2s ease-in-out, background-color .2s ease-in-out;
}

#menu > li > a:hover,
#menu > li.active > a {
  background-color: #1c2540;
  color: #4fd1ae;
}

#menu ul.dropdown-content {
  position: absolute;
  top: 44px;
  left: 0;
  min-width: 190px;
  padding: 6px;
  border-radius: 8px;
  background: #1c2540;              
  background: linear-gradient(180deg, #1c2540 0%, #171f33 100%);
  border: 1px solid #2c3757;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease .05s, transform .2s ease .05s, visibility .2s ease .05s;
}
#menu li:hover > ul.dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#menu ul.dropdown-content li a {
  display: block;
  padding: 9px 12px;
  border-radius: 5px;
  font-size: 0.88rem;
  color: #c9d2eb;
}
#menu ul.dropdown-content li a:hover {
  background: #262f4d;
  color: #127dcf;
}

#hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
  padding: 96px 48px 80px;
  max-width: 1180px;
  margin: 0 auto;
}
#hero h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.15; }
#hero p.lede { margin-top: 20px; max-width: 46ch; color: #93a0bf; font-size: 1.05rem; }

.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn-primary { background: #4fd1ae; color: #0f1420; }
.btn-outline { border-color: #2c3757; color: #eef2fa; }
.btn:hover { filter: brightness(1.08); }

.hero-photo-wrap { position: relative; width: 100%; max-width: 320px; margin-left: auto; }
#photo-accent {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: repeating-linear-gradient(45deg, #f5a623 0 8px, transparent 8px 16px);
  opacity: 0.35;
  border-radius: 6px;
}
#profile-photo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 320px;
  object-fit: cover;
  border: 3px solid #021711;
  border-radius: 6px;
}

.about-section { padding: 64px 48px; background: #10182c; }
.about-inner { max-width: 1180px; margin: 0 auto; overflow: hidden; } 

.about-col-left {
  float: left;
  width: 300px;
}
.about-col-right {
  margin-left: 340px;
}
.about-col-left h2, .about-col-right h2 { font-size: 1.6rem; margin-bottom: 18px; }
.about-facts { border-top: 1px solid #2c3757; margin-top: 22px; }
.about-facts .fact { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #2c3757; font-size: 0.92rem; }
.about-facts .fact span:first-child { color: #93a0bf; }

.skills-section { padding: 64px 48px; max-width: 1180px; margin: 0 auto; }
.skills-section h2 { font-size: 1.6rem; margin-bottom: 28px; }
.skill-group { margin-bottom: 26px; }
.skill-group h3 { font-size: 0.95rem; color: #93a0bf; font-weight: 500; margin-bottom: 12px; }
.skill-badges { display: flex; flex-wrap: wrap; gap: 10px; }

.badge-lang, .badge-style, .badge-tool {
  font-family: 'IBM Plex Mono', monospace;
  border: 1px solid #2c3757;
  border-radius: 4px;
  padding: 7px 12px;
}
.badge-lang  { font-size: 0.85rem; color: #4fd1ae; background: #16261f; }
.badge-style { font-size: 0.85rem; color: #f5a623; background: #241c10; }
.badge-tool  { font-size: 0.85rem; color: #93a0bf; background: #171f33; }

.projects-section {
  padding: 64px 48px 80px;
  background-color: #10182c;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='2' cy='2' r='1.2' fill='%232c3757'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-position: left top;
}
.projects-inner { max-width: 1180px; margin: 0 auto; }
.projects-section h2 { font-size: 1.6rem; margin-bottom: 30px; }

.project-columns { overflow: hidden; }
.project-card {
  float: left;
  width: calc(33.333% - 14px);
  margin-right: 21px;
  background: #171f33;
  border: 1px solid #2c3757;
}
.project-card:last-child { margin-right: 0; }

.project-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-bottom: 3px solid #2c3757;
  opacity: 0.82;                   
  transition: opacity .2s ease, border-color .2s ease;
}
.project-card:hover img {
  opacity: 1;
  border-bottom-color: #4fd1ae;
}
.project-card .project-body { padding: 18px; }
.project-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.project-card p { font-size: 0.88rem; color: #93a0bf; }
.project-card .tags { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.project-card .tags span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: #4fd1ae;
  border: 1px solid #2c3757;
  border-radius: 3px;
  padding: 2px 6px;
}

#contact {
  position: relative;
  padding: 72px 48px;
  overflow: hidden;
  background-color: #12182b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Ctext x='200' y='260' font-size='260' font-family='Space Grotesk, sans-serif' font-weight='700' fill='%231c2540' text-anchor='middle'%3ERP%3C/text%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right bottom;   
}
.contact-inner { max-width: 1180px; margin: 0 auto; position: relative; z-index: 2; }
#contact h2 { font-size: 1.8rem; margin-bottom: 12px; }
#contact p.lede { color: #93a0bf; max-width: 50ch; margin-bottom: 30px; }

.contact-links { display: flex; gap: 16px; flex-wrap: wrap; }
.contact-links a {
  min-width: 180px;
  background-color: #1c2540;
  border: 1px solid #2c3757;
  border-radius: 6px;
  padding: 16px 18px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.25); 
}
.contact-links a .label { display: block; font-size: 0.78rem; color: #93a0bf; margin-bottom: 4px; }
.contact-links a .value { display: block; font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: #4fd1ae; }
.contact-links a:hover { border-color: #4fd1ae; }

footer {
  padding: 26px 48px;
  border-top: 1px solid #2c3757;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #93a0bf;
}
footer ul { display: flex; gap: 18px; }

@media (max-width: 860px) {
  .navbar { padding: 14px 20px; }
  #menu { gap: 0; }
  #hero { grid-template-columns: 1fr; padding: 56px 20px; }
  .hero-photo-wrap { max-width: 240px; margin: 0 auto; }
  .about-section, .skills-section, .projects-section, #contact { padding-left: 20px; padding-right: 20px; }
  .about-col-left { float: none; width: 100%; margin-bottom: 24px; }
  .about-col-right { margin-left: 0; }
  .project-card { float: none; width: 100%; margin-right: 0; margin-bottom: 20px; }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
