:root {
  --bg: #080d18;
  --surface: #101827;
  --surface2: #141e2f;
  --text: #eef4ff;
  --muted: #a5b0c2;
  --line: rgba(255, 255, 255, 0.10);
  --accent: #5ee7d4;
  --accent2: #77a8ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  color: var(--muted);
}

strong {
  color: var(--text);
}

.container {
  max-width: 1160px;
}

.section-pad {
  padding: 105px 0;
}

.alt-section {
  background: var(--surface);
}


/* 
========================================================
LIGHT THEME
======================================================== 
 */

body.light-theme {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface2: #eef2f7;
  --text: #132033;
  --muted: #5b6779;
  --line: rgba(15, 30, 50, 0.12);
  --shadow: 0 20px 55px rgba(28, 43, 70, 0.10);
  --accent: #0cfcdc;
  --accent2: #1265f5;
}

/* 
=========================================================
NAVIGATION
========================================================= 
*/

.glass-nav {
  background: rgba(8, 13, 24, 0.60);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: 0.25s;
}

.light-theme .glass-nav {
  background: rgba(245, 247, 251, 0.72);
}

.glass-nav.scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
  display: flex;
  align-items: center;
  color: var(--muted);
}

.navbar-brand:hover{
  color: var(--text);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  margin-right: 7px;

  img{
    width: 50px;
  }

  .brand-name{
    color: var(--muted) !important;
  }
}

.nav-link {
  color: var(--muted) !important;
  font-size: 0.92rem;
}

.nav-link:hover, .brand-name:hover {
  color: var(--text) !important;
}

.navbar-toggler {
  border: 1px solid var(--line);
  color: var(--text);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
}


/* 
=========================================================
HERO SECTION
========================================================= 
*/

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 145px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 80% 35%,
      rgba(94, 231, 212, 0.08),
      transparent 28%
    ),
  radial-gradient(circle at 10% 80%,rgba(119, 168, 255, 0.07),transparent 30%);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      var(--line) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      var(--line) 1px,
      transparent 1px
    );
    background-size: 70px 70px;
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4),
        transparent 70%
      );
    mask-image:
      linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4),
        transparent 70%
      );
    pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns:1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
  position: relative;
}

.eyebrow,
.section-heading > span,
.company-section .eyebrow,
.cv-banner span {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 10px;
}

.hero-copy h1 {
  font-size: clamp(3.1rem, 7vw, 6.7rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  margin: 20px 0;
}

.hero-copy h1 span {
  color: transparent;
  -webkit-text-stroke:1px var(--text);
}

.hero-title {
  font-size: 1.18rem;
  color: var(--text);
}

.hero-title b {
  color: var(--accent);
  font-weight: 400;
  margin: 0 5px;
}

.hero-lead {
  font-size: 1.08rem;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.btn {
  border-radius: 11px;
  padding: 12px 18px;
  font-weight: 700;
}

.btn-primary-custom {
  background: var(--accent);
  color: #061018;
  border: 1px solid var(--accent);
}

.btn-primary-custom:hover {
  background: transparent;
  color: var(--accent);
}

.btn-outline-custom {
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-outline-custom:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-company {
  border: 1px solid rgba(119, 168, 255, 0.4);
  color: var(--accent2);
}

.social-row {
  display: flex;
  gap: 10px;
}

.social-row a,
.social-disabled {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.social-row a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.social-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.hero-visual {
  min-height: 450px;
  display: grid;
  place-items: center;
  position: relative;
}

.profile-card {
  width: min(390px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(16, 24, 39, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.light-theme .profile-card {
  background: rgba(255, 255, 255, 0.78);
}

.profile-top {
  font-size: 0.76rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar.photo-avatar {
  width: 150px;
height: 150px;
  margin: 20px auto;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), 0 12px 30px rgba(0, 0, 0, 0.18);
  background: #fff;
}

.avatar.photo-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  object-position: center;
  border-radius: 50%;
}

.profile-card h2 {
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
}

.profile-card p {
    text-align: center;
    font-size: 0.9rem;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 25px;
}

.mini-grid span {
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  color: var(--muted);
}

.mini-grid i {
  color: var(--accent);
  margin-right: 5px;
}


/* 
=========================================================
HERO ORBITS
========================================================= 
*/

.tech-orbit {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orbit-one {
  width: 420px;
  height: 420px;
}

.orbit-two {
  width: 540px;
  height: 540px;
  border-style: dashed;
  opacity: 0.5;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 70px;
  border: 1px solid var(--line);
  background: var(--line);
  position: relative;
}

.hero-strip span {
    padding: 18px;

    background: var(--bg);

    color: var(--muted);

    font-size: 0.8rem;

    text-align: center;
}

.hero-strip i {
    color: var(--accent);
    margin-right: 6px;
}


/* =========================================================
   13. SECTION HEADINGS
   ========================================================= */

.section-heading {
    margin-bottom: 55px;
    max-width: 820px;
}

.section-heading h2 {
    font-size: clamp(2.2rem, 4.2vw, 4rem);

    line-height: 1.02;

    letter-spacing: -0.04em;

    margin: 14px 0;
}

.section-heading em {
    font-style: normal;
    color: var(--accent);
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text);
}

.text-link {
    color: var(--accent);
    font-weight: 700;
}

.text-link:hover {
    text-decoration: underline;
}


/* =========================================================
   14. ABOUT SECTION
   ========================================================= */

.about-card {
    border: 1px solid var(--line);

    border-radius: 20px;

    background: var(--surface2);

    padding: 10px;
}

.about-row {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 18px;

    border-bottom: 1px solid var(--line);
}

.about-row:last-child {
    border-bottom: 0;
}

.about-row span {
    color: var(--muted);
    font-size: 0.85rem;
}

.about-row strong {
    text-align: right;
    font-size: 0.9rem;
}


/* =========================================================
   15. CARDS
   ========================================================= */

.service-card,
.skill-panel,
.achievement-card,
.project-card,
.education-card,
.contact-card {
    height: 100%;

    border: 1px solid var(--line);

    background: var(--bg);

    border-radius: 18px;

    padding: 25px;

    transition: 0.25s;
}

.service-card:hover,
.skill-panel:hover,
.achievement-card:hover,
.project-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(94, 231, 212, 0.35);

    box-shadow: var(--shadow);
}

.service-card > i,
.achievement-card > i {
    font-size: 1.8rem;
    color: var(--accent);
}

.service-card h3,
.achievement-card h3,
.skill-panel h3,
.project-body h3 {
    font-size: 1.05rem;

    margin: 20px 0 10px;
}

.service-card p,
.achievement-card p {
    font-size: 0.88rem;
    margin: 0;
}


/* =========================================================
   16. SKILLS
   ========================================================= */

.skill-panel h3 {
    margin-top: 0;
}

.skill-panel h3 i {
    color: var(--accent);
    margin-right: 8px;
}

.tags,
.cv-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}

.tags span,
.cv-tags span {
    font-size: 0.73rem;

    border: 1px solid var(--line);

    padding: 6px 9px;

    border-radius: 999px;

    color: teal;
}

section.education li, section.certifications li{
    color: gray;

    strong{
        color: teal;
    }
}


/* =========================================================
   17. EXPERIENCE TIMELINE
   ========================================================= */

.timeline {
    max-width: 900px;

    margin: auto;

    position: relative;
}

.timeline::before {
    content: "";

    position: absolute;

    left: 12px;
    top: 0;
    bottom: 0;

    width: 1px;

    background: var(--line);
}

.timeline-item {
    position: relative;

    padding-left: 52px;

    margin-bottom: 25px;
}

.timeline-dot {
    position: absolute;

    left: 6px;
    top: 22px;

    width: 13px;
    height: 13px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow:
        0 0 0 5px var(--bg);
}

.timeline-card {
    border: 1px solid var(--line);

    border-radius: 17px;

    padding: 24px;

    background: var(--surface);
}

.timeline-date {
    font-size: 0.72rem;

    color: var(--accent);

    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.timeline-card h3 {
    font-size: 1.1rem;
    margin: 8px 0;
}

.timeline-card p {
    margin: 0;
    font-size: 0.9rem;
}


/* =========================================================
   18. PROJECTS
   ========================================================= */

.project-card {
    padding: 0;

    overflow: hidden;

    background: var(--surface);
}

.project-thumb {
    height: 190px;

    background:
        linear-gradient(
            135deg,
            var(--surface2),
            var(--bg)
        );

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 24px;

    color: var(--muted);

    border-bottom: 1px solid var(--line);
}

.project-thumb span {
    font-size: 0.7rem;

    letter-spacing: 0.15em;
}

.project-thumb i {
    font-size: 4rem;

    color: var(--accent);

    opacity: 0.55;
}

.project-body {
    padding: 25px;
}

.project-kicker {
    font-size: 0.7rem;

    color: var(--accent);

    text-transform: uppercase;

    letter-spacing: 0.14em;
}

.project-body p {
    font-size: 0.9rem;
}

.feature-list {
    list-style: none;

    padding: 0;

    margin: 18px 0;
}

.feature-list li {
    font-size: 0.78rem;

    color: var(--muted);

    margin: 6px 0;
}

.feature-list i {
    color: var(--accent);
    margin-right: 8px;
}

.project-actions {
    display: flex;

    gap: 15px;

    flex-wrap: wrap;
}

.muted-link {
    font-size: 0.78rem;
    color: #788499;
}


/* =========================================================
   19. CREDENTIALS & EDUCATION
   ========================================================= */

.credential-list {
    display: grid;
    gap: 12px;
}

.credential {
    display: flex;

    gap: 16px;

    padding: 20px;

    border: 1px solid var(--line);

    border-radius: 16px;

    background: var(--bg);
}

.credential > i {
    font-size: 1.4rem;
    color: var(--accent);
}

.credential span,
.education-card > span {
    font-size: 0.7rem;

    color: var(--accent);

    text-transform: uppercase;

    letter-spacing: 0.12em;
}

.credential h3 {
    font-size: 1rem;
    margin: 5px 0;
}

.credential p {
    margin: 0;
    font-size: 0.82rem;
}

.education-card h3 {
    font-size: 1rem;
}

.education-card p {
    font-size: 0.85rem;
}

.education-card hr {
    border-color: var(--line);
}


/* =========================================================
   20. AVITECH SOLUTIONS / COMPANY SECTION
   ========================================================= */

.company-section {
    background:
        linear-gradient(
            135deg,
            #0c1726,
            #111c2e
        );
}

.company-card {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 35px;

    padding: 55px;

    border: 1px solid rgba(94, 231, 212, 0.18);

    border-radius: 25px;

    background:
        linear-gradient(
            135deg,
            rgba(94, 231, 212, 0.08),
            rgba(119, 168, 255, 0.06)
        );
}

.company-card h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin: 10px 0;
}

.company-card p {
    max-width: 680px;
}

.company-actions {
    display: flex;

    flex-direction: column;

    gap: 10px;

    min-width: 190px;
}

.btn-light-custom {
    background: #f4f8ff;
    color: #08111e;
}

.btn-whatsapp {
    background: #1fbf72;
    color: #fff;
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}


/* =========================================================
   21. CONTACT SECTION
   ========================================================= */

.contact-card {
    display: grid;

    gap: 3px;

    background: var(--surface);
}

.contact-card > a,
.contact-card > div {
    display: flex;

    gap: 16px;

    align-items: center;

    padding: 15px 0;

    border-bottom: 1px solid var(--line);
}

.contact-card > a:last-child {
    border: 0;
}

.contact-card i {
    font-size: 1.3rem;
    color: var(--accent);
}

.contact-card span {
    font-size: 0.9rem;
}

.contact-card small {
    display: block;

    color: var(--muted);

    font-size: 0.68rem;

    text-transform: uppercase;

    letter-spacing: 0.1em;
}


/* =========================================================
   22. CONTACT FORM
   ========================================================= */

.contact-form {
    border: 1px solid var(--line);

    padding: 25px;

    border-radius: 18px;

    background: var(--bg);
}

.contact-form label {
    font-size: 0.78rem;

    color: var(--muted);

    display: block;

    margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;

    border: 1px solid var(--line);

    background: var(--surface);

    color: var(--text);

    border-radius: 10px;

    padding: 12px;

    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
}

.form-success {
    color: var(--accent);
    font-size: 0.8rem;
}

.form-error {
    color: #ff8d8d;
    font-size: 0.8rem;
}

.small-note {
    color: var(--muted);
    font-size: 0.78rem;
}


/* =========================================================
   23. CV DOWNLOAD BANNER
   ========================================================= */

.cv-banner {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 38px;

    border: 1px solid var(--line);

    border-radius: 20px;

    background: var(--surface);
}

.cv-banner h2 {
    margin: 6px 0 0;
}

.cv-photo { 
  flex: 0 0 auto; 
} 

.cv-photo img { 
  display: block; 
  width: 145px; 
  height: 145px; 
  object-fit: fill; 
  border-radius: 50%; 
  border: 5px solid #ffffff; 
  outline: 2px solid var(--cv-primary); 
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15); 
}


/* =========================================================
   24. FOOTER
   ========================================================= */

.footer {
    padding: 35px 0;

    border-top: 1px solid var(--line);

    color: var(--muted);

    font-size: 0.8rem;
}

.footer p {
    margin: 0;
}

.footer a {
    color: var(--accent);
}


/* =========================================================
   25. BACK TO TOP
   ========================================================= */

.back-top {
    position: fixed;

    right: 20px;
    bottom: 20px;

    width: 44px;
    height: 44px;

    border-radius: 12px;

    border: 1px solid var(--line);

    background: var(--surface);
    color: var(--text);

    opacity: 0;

    pointer-events: none;

    transition: 0.2s;

    z-index: 100;
}

.back-top.show {
    opacity: 1;
    pointer-events: auto;
}


/* =========================================================
   26. SCROLL REVEAL ANIMATION
   ========================================================= */

.reveal {
    opacity: 0;

    transform: translateY(18px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}


/* =========================================================
   27. CV PAGE
   ========================================================= */

.cv-page {
    background: #e8edf4;
}

.cv-main {
    padding: 125px 0 70px;
}

.cv-sheet {
    max-width: 900px;

    margin: auto;

    background: #fff;

    color: #172033;

    padding: 55px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.12);
}

.cv-header {
    display: flex;

    justify-content: space-between;

    gap: 25px;

    border-bottom: 2px solid #172033;

    padding-bottom: 25px;
}

.cv-header h1 {
    font-size: 2.5rem;
    margin: 0;
}

.cv-header p {
    color: #4f5d70;
    margin: 6px 0;
}

.cv-contact {
    font-size: 0.8rem;
    color: #5f6b7a;
}

.cv-initials {
    width: 85px;
    height: 85px;

    border-radius: 18px;

    display: grid;
    place-items: center;

    background: #172033;
    color: #fff;

    font-size: 1.6rem;
    font-weight: 900;
}

.cv-sheet section {
    margin-top: 30px;
}

.cv-sheet section h2 {
    font-size: 0.85rem;

    letter-spacing: 0.15em;

    text-transform: uppercase;

    border-bottom: 1px solid #dbe1e8;

    padding-bottom: 8px;
}

.cv-entry {
    margin: 17px 0;
}

.cv-entry b {
    display: block;
}

.cv-entry span {
    display: block;

    color: #01b9a1;

    font-size: 0.78rem;

    font-weight: 700;
}

.cv-entry p {
    color: gray;

    font-size: 0.88rem;

    margin: 5px 0;
}

.cv-sheet li {
    color: #4f5d70;

    font-size: 0.88rem;

    margin: 6px 0;
}


/* =========================================================
   28. RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 991px) {

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero-visual {
        min-height: 350px;
    }

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

    .company-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .company-actions {
        width: 100%;

        flex-direction: row;

        flex-wrap: wrap;
    }

    .company-actions .btn {
        flex: 1;
    }

    .nav-link {
        padding: 9px 0;
    }
}


/* =========================================================
   29. RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 575px) {

    .section-pad {
        padding: 78px 0;
    }

    .hero-copy h1 {
        font-size: 3.25rem;
    }

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

    .profile-card {
        padding: 22px;
    }

    .orbit-one {
        width: 330px;
        height: 330px;
    }

    .orbit-two {
        width: 410px;
        height: 410px;
    }

    .company-card {
        padding: 30px;
    }

    .cv-sheet {
        padding: 28px;
    }

    .cv-header {
        flex-direction: column;
    }

    .cv-initials {
        width: 65px;
        height: 65px;
    }

    .cv-main {
        padding-top: 100px;
    }
}


/* =========================================================
   30. ACCESSIBILITY — REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;

        transform: none;

        transition: none;
    }
}