/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
  --green:       #18d26e;
  --green-light: #35e888;
  --dark:        #040404;
  --header-h:    68px;
  --footer-h:    48px;
  --font-body:   "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head:   "Poppins", "Segoe UI", sans-serif;
  --font-ui:     "Poppins", "Segoe UI", sans-serif;
}

/*--------------------------------------------------------------
# Reset & Base
--------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: #fff;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-light); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); }

img { max-width: 100%; height: auto; display: block; }

/*--------------------------------------------------------------
# Background — fixed, right-anchored
--------------------------------------------------------------*/
.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--dark) url("../img/bg.jpg") top right / auto 100% no-repeat;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .site-bg { background-attachment: fixed; }
}

/*--------------------------------------------------------------# Header — fixed top
--------------------------------------------------------------*/
#header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 100;
  background: rgba(4, 4, 4, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}

#header.header-scrolled { background: rgba(4, 4, 4, 0.92); }

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-ui);
  white-space: nowrap;
}
.logo a { color: #fff; }
.logo a:hover { color: var(--green); }

/*--------------------------------------------------------------
# Desktop Navbar
--------------------------------------------------------------*/
.navbar ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.navbar a {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;  color: rgba(255,255,255,0.7);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s;
  white-space: nowrap;
}

.navbar a::after {
  content: "";
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width 0.3s ease;
}

.navbar a:hover,
.navbar a.active { color: #fff; }

.navbar a:hover::after,
.navbar a.active::after { width: 100%; }

/*--------------------------------------------------------------
# Mobile Nav Toggle
--------------------------------------------------------------*/
.mobile-nav-toggle {
  display: none;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
  z-index: 110;
  line-height: 1;
  transition: color 0.3s;
}

/*--------------------------------------------------------------
# Footer — fixed bottom
--------------------------------------------------------------*/
#footer {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  height: var(--footer-h);
  z-index: 100;
  background: rgba(4, 4, 4, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;  justify-content: center;
}

#footer p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-ui);
}
#footer strong { color: var(--green); }

/*--------------------------------------------------------------
# Main + Pages
--------------------------------------------------------------*/
#main {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-h) - var(--footer-h));
  z-index: 1;
}

.page {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transform: translateY(12px);
}

.page.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.page-content { width: 100%; height: 100%; }

.page-content.scrollable {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--green) rgba(255,255,255,0.05);
  background: rgba(4, 4, 4, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 40px 28px calc(var(--footer-h) + 32px);}

.page-content.scrollable::-webkit-scrollbar { width: 4px; }
.page-content.scrollable::-webkit-scrollbar-track { background: transparent; }
.page-content.scrollable::-webkit-scrollbar-thumb { background: var(--green); border-radius: 2px; }

.page-content.scrollable > * {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

/*--------------------------------------------------------------
# Section Title
--------------------------------------------------------------*/
.section-title { margin-bottom: 28px; }

.section-title h2 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #888;
  font-family: var(--font-ui);
  margin-bottom: 4px;
}

.section-title h2::after {
  content: "";
  display: inline-block;
  width: 80px; height: 1px;
  background: var(--green);
  margin: 0 10px 2px;
  vertical-align: middle;
}

.section-title p {
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--font-ui);
  color: #fff;
  line-height: 1.2;
}

/*--------------------------------------------------------------
# HOME PAGE
--------------------------------------------------------------*/
.page-home {
  display: flex;  align-items: center;
}

.home-content {
  overflow: hidden !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.home-title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  color: #fff;
  font-family: var(--font-ui);
  line-height: 1.1;
  margin-bottom: 14px;
}

.home-subtitle {
  font-size: clamp(18px, 2.5vw, 28px);
  color: rgba(255,255,255,0.78);
  font-family: var(--font-body);
  font-weight: 400;
  margin-bottom: 32px;
}

.home-subtitle .highlight {
  color: #fff;
  border-bottom: 2px solid var(--green);
  padding-bottom: 2px;
}

.page-home .social-links {
  display: flex;
  gap: 12px;
}

.page-home .social-links a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  display: flex;
  align-items: center;  justify-content: center;
  font-size: 17px;
  transition: background 0.3s, transform 0.2s;
  border: 1px solid rgba(255,255,255,0.15);
}

.page-home .social-links a:hover {
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-3px);
  color: #fff;
}

/*--------------------------------------------------------------
# ABOUT PAGE
--------------------------------------------------------------*/
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: start;
}

.about-img img {
  width: 100%;
  border-radius: 8px;
  border: 3px solid rgba(255,255,255,0.1);
}

.about-text h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 6px;
}

.about-text .tagline {
  color: rgba(255,255,255,0.6);
  margin-bottom: 18px;
  font-size: 14px;
}

.info-list {
  list-style: none;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.info-list li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

.info-list li i { color: var(--green); font-size: 12px; flex-shrink: 0; }
.info-list li strong { white-space: nowrap; color: #fff; }

.about-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 12px;
}

/*--------------------------------------------------------------
# RESUME PAGE
--------------------------------------------------------------*/
.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 40px;
}

.resume-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 18px 0 16px;
  font-family: var(--font-ui);
}

.resume-item {
  padding: 0 0 18px 20px;
  border-left: 2px solid rgba(255,255,255,0.12);
  position: relative;
  margin-top: 4px;
}

.resume-item::before {
  content: "";
  position: absolute;
  left: -7px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--green);}

.resume-item h4 {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: var(--font-ui);
  color: var(--green);
  margin-bottom: 6px;
  line-height: 1.3;
}

.resume-item p,
.resume-item ul {
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
}

.resume-item p { margin-bottom: 4px; }
.resume-item ul { padding-left: 16px; }
.resume-item ul li { margin-bottom: 4px; }

.skills-block { margin-top: 10px; }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.skills-grid p {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  padding: 12px 14px;
  line-height: 1.6;
}
.skills-grid .skills-full { grid-column: 1 / -1; }

/*--------------------------------------------------------------
# SERVICES PAGE
--------------------------------------------------------------*/
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.icon-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 36px 20px;
  text-align: center;  transition: background 0.3s, border-color 0.3s, transform 0.2s;
}

.icon-box:hover {
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-4px);
}

.icon-box .icon {
  width: 58px; height: 58px;
  background: var(--green);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: background 0.3s;
  position: relative;
}

.icon-box .icon::before {
  content: "";
  position: absolute;
  left: -6px; top: -6px;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  z-index: -1;
  transition: background 0.3s;
}

.icon-box:hover .icon { background: #fff; }
.icon-box:hover .icon::before { background: rgba(255,255,255,0.25); }
.icon-box .icon i { font-size: 26px; color: #fff; transition: color 0.3s; }
.icon-box:hover .icon i { color: var(--green); }
.icon-box h4 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: #fff; }
.icon-box h4 a { color: #fff; }
.icon-box p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin: 0;
  transition: color 0.3s;
}
.icon-box:hover p,
.icon-box:hover h4 a { color: #fff; }

/*--------------------------------------------------------------
# CONTACT PAGE--------------------------------------------------------------*/
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.info-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 18px 18px 18px 72px;
  position: relative;
  min-height: 70px;
}

.info-box > i.bx {
  position: absolute;
  left: 16px; top: 16px;
  font-size: 22px;
  color: var(--green);
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  padding: 10px;
  line-height: 1;
}

.info-box h3 {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-ui);
  margin-bottom: 4px;
}

.info-box p { font-size: 13px; color: #fff; line-height: 1.5; }

.info-box .social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.info-box .social-links a {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s, transform 0.2s;
}
.info-box .social-links a:hover {
  color: var(--green);
  transform: translateY(-2px);
}

#contactForm {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 24px;
}

#contactForm input,
#contactForm textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  color: #fff;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  margin-bottom: 14px;
  display: block;
}

#contactForm input::placeholder,
#contactForm textarea::placeholder { color: rgba(255,255,255,0.35); }

#contactForm input:focus,
#contactForm textarea:focus {
  border-color: var(--green);
  background: rgba(255,255,255,0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-row input { margin-bottom: 0; }
.form-submit { text-align: center; margin-top: 6px; }

#contactForm button[type="submit"] {
  background: var(--green);
  color: #fff;
  border: none;  border-radius: 5px;
  padding: 10px 32px;
  font-size: 15px;
  font-family: var(--font-ui);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

#contactForm button[type="submit"]:hover {
  background: var(--green-light);
  transform: translateY(-2px);
}

#contactForm button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

#successMessage {
  background: var(--green);
  color: #fff;
  border-radius: 6px;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  margin-top: 14px;
}
.d-none { display: none !important; }

/*--------------------------------------------------------------
# Mobile Nav (FLOATING PANEL - NO OPACITY, SLIDE ONLY)
--------------------------------------------------------------*/
.navbar-mobile {
  position: fixed;
  top: calc(var(--header-h) + 8px);
  right: 10px;
  width: 200px;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 8px;
  padding: 10px 8px;
  z-index: 105;
  box-shadow: 0 6px 24px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.07);
  
  /* Slide animation ONLY, no opacity changes */
  transform: translateX(120%);  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: none; /* Hidden by default on desktop */
}

.navbar-mobile.active {
  transform: translateX(0);
  display: block;
}

.navbar-mobile ul {
  display: flex !important;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start; /* LEFT align items */
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar-mobile a {
  display: block;
  padding: 9px 12px;
  border-radius: 5px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  transition: background 0.2s, color 0.2s;
  text-align: left; /* LEFT align text */
  width: 100%;
}

.navbar-mobile a::after { display: none; } /* Remove desktop underline */

.navbar-mobile a:hover,
.navbar-mobile a.active {
  background: rgba(24, 210, 110, 0.12);
  color: var(--green);
}

/* Overlay - Instant show/hide, no fade */
.navbar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 104;
  display: none;
}
.navbar-overlay.active { display: block; }

/*--------------------------------------------------------------
# Responsive--------------------------------------------------------------*/
@media (max-width: 991px) {
  .mobile-nav-toggle { display: block; }
  .navbar ul { display: none; }
  .navbar-mobile { display: block; } /* Enable mobile menu container */

  .home-content { padding: 0 28px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img { max-width: 200px; }
  .info-list { grid-template-columns: 1fr; }
  .resume-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .skills-grid .skills-full { grid-column: 1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-row input { margin-bottom: 14px; }
}

@media (max-width: 576px) {
  :root { --header-h: 58px; --footer-h: 42px; }
  .logo { font-size: 17px; }
  .home-content { padding: 0 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .page-content.scrollable { padding: 20px 16px calc(var(--footer-h) + 28px); }
  .section-title p { font-size: 22px; }
  .section-title h2 { font-size: 11px; }

  .about-text p, .resume-item p, .resume-item ul li,
  .icon-box p, .info-box p, #contactForm input, #contactForm textarea { font-size: 15px; }
  .about-text h3 { font-size: 20px; }
  .info-list li { font-size: 15px; }
  .resume-item h4 { font-size: 14px; }
  .resume-title { font-size: 18px; }
  .icon-box h4 { font-size: 16px; }
  .info-box h3 { font-size: 15px; }
  .skills-grid p { font-size: 15px; }
  .info-box { padding: 14px 14px 14px 62px; }
}

@media (max-width: 380px) {
  .home-title { font-size: 26px; }
  .home-subtitle { font-size: 16px; }
}